打开战争中的组件包装

时间:2010-05-26 12:48:23

标签: maven-2 jetty virtualhost

我有另一个包含静态内容(css,图像,JS等)的项目,我需要将其复制到jetty的web根目录进行测试。在该项目中,我输出一个zip文件打包所有图像,CSS等。

我有几个针对不同客户端的虚拟主机项目,我的问题是,如何将已经安装到maven存储库的zip文件解压缩到jetty web根目录?

@Update:

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

沃尔特

1 个答案:

答案 0 :(得分:2)

dependency:unpack应该可以在prepare-package阶段绑定。有关示例,请参阅Unpacking specific artifacts(在您的情况下,使用<type>zip</type>)。