How to disable jsessionid for Jetty working with the Eclipse Jetty Maven plugin?

We are having problems with jsessionid, and I'm trying to find a way to disable this. Does anyone know how you can do this using org.mortbay.jetty: jetty-maven-plugin: 7.xx? So far, all I've come across is ways to do this using the old Mortbay plugin, whose settings are incompatible with the Eclipse version.

Thanks in advance,

Martin

+5
source share
1 answer

- , - , , - , , , maven-jetty-plugin (< 7.x).

Jetty , , :

<build>
    <plugins>
        <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>${version.jetty}</version>
            <configuration>
                <webAppConfig>
                    <contextPath>/foo</contextPath>

                    <sessionHandler implementation="org.eclipse.jetty.server.session.SessionHandler">
                        <sessionManager implementation="org.eclipse.jetty.server.session.HashSessionManager">
                            <!-- Disable url sessions using JSessionID -->
                            <sessionIdPathParameterName>none</sessionIdPathParameterName>
                        </sessionManager>
                    </sessionHandler>
                </webAppConfig>
            </configuration>
        </plugin>

    <plugins>

</build>

+10

All Articles