1

コマンド mvn jetty:run を使用して、jetty プラグインを使用して maven で jetty を実行しています。

外部ディレクトリをクラスパスに追加するコマンド ライン オプションはありますか? java -cp オプションのようなものですか?

ティア

4

3 に答える 3

1

ここで提案されている解決策を試しましたか:

maven integration-test で実行されている jetty へのクラスパスの追加

<webAppConfig>
  <contextPath>/nportal</contextPath>
  <!-- All I want to do here is add in the /etc/jetty/classes for runtime files. For some reason I have to also add back in the /target/classes directory -->
  <extraClasspath>${basedir}/target/classes/;${basedir}/etc/jetty/classes/</extraClasspath>
</webAppConfig> 
于 2011-11-08T17:13:30.350 に答える
0

によって印刷されたものmvn jetty:help -Ddetail=true -Dgoal=runから、コマンドラインからはできないようです

于 2015-04-24T08:10:56.023 に答える