我正在尝试将alpn-boot
依赖项添加到引导类路径。以下应该在 pom.xml 文件中起作用:
<properties>
<jetty.alpn.path>${settings.localRepository}/org/mortbay/jetty/alpn/alpn-boot/${jetty.alpn.version}/alpn-boot-${jetty.alpn.version}.jar</jetty.alpn.path>
<argLine.bootcp>-Xbootclasspath/p:${jetty.alpn.path}</argLine.bootcp>
<jetty.alpn.version>8.1.6.v20151105</jetty.alpn.version>
</properties>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>get-alpn-boot</id>
<phase>validate</phase>
<goals>
<goal>get</goal>
</goals>
<configuration>
<groupId>org.mortbay.jetty.alpn</groupId>
<artifactId>alpn-boot</artifactId>
<version>${jetty.alpn.version}</version>
</configuration>
</execution>
</executions>
</plugin>
但是,它绝对没有被添加到引导类路径中。我在 Pivotal Web Services 上运行我的应用程序。可能与此有关吗?还是我的 pom.xml 文件有问题?