1

静的コンテンツ(css、画像、JSなど)を含む別のプロジェクトがあり、テストのためにそれをjettyのWebルートディレクトリにコピーする必要があります。そのプロジェクトでは、すべての画像、CSSなどをパッケージ化したzipファイルを出力しました。

さまざまなクライアント用の仮想ホストプロジェクトがいくつかありますが、質問は、Mavenリポジトリにすでにインストールされているzipファイルをjetty Webルートに解凍するにはどうすればよいですか?

@アップデート:

Embedded error: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId= com.virtualhost -DartifactId=something
-Dversion=0.0.1 -Dpackaging=zip -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=c com.virtualhost -DartifactId=something-D
version=0.0.1 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[i
d]


  com.virtualhost:something:zip:0.0.1

ウォルター

4

1 に答える 1

2

フェーズdependency:unpackでバインドできるよりも可能であるはずです。例については、特定のアーティファクトprepare-packageの解凍を参照してください(この場合は、を使用してください)。<type>zip</type>

于 2010-05-26T13:20:24.630 に答える