Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Adding npn-boot to the bootclasspath using Maven

The key is that Xbootclasspath can only be set on JVM startup.  It cannot be set after the JVM is initialized.
So your exec-maven-plugin configuration must use "exec:exec", not "exec:java".
Which means you'll have to find the jvm binary for the <executable> and your <arguments> have to include the -Xbootclasspath you need to execute.
Also, don't forget that the the npn jar is JVM dependant, so you'll likely want to configure the appropriate npn version based on your JVM.
See the <profile> sections in the root pom.xml from jetty 9.x for examples on this.

Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts

On Fri, Sep 27, 2013 at 5:50 PM, Nicholas Lun <nlun@xxxxxx> wrote:
Hi all,

I'm trying to use SPDY in Jetty 9 and I understand that I am supposed to add
npn-boot to the bootclasspath when I start the server like this: java

However, I'm trying to do this in a maven project and cannot for the life of
me figure out how to specify this using the exec-maven-plugin. Does anybody
have experience running embedded jetty inside a maven project that uses


View this message in context:
Sent from the Jetty User mailing list archive at
jetty-users mailing list

Back to the top