在战争中拆开程序集
我有另一个包含静态内容(css、图像、JS等)的项目,我需要将其复制到jetty的web根目录进行测试。在该项目中,我输出一个打包所有图像、CSS 等的 zip 文件。
我有几个针对不同客户端的虚拟主机项目,我的问题是,如何解压已安装到 Maven 存储库中的 zip 文件到码头网络根?
@更新:
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
沃尔特
I have another project which contains static content (css, images, JS, etc.), and I need that to be copied to the web root directory of jetty for testing. In that project, I output a zip file packaging up all of the images, CSS, etc.
I have several of those virtualhost projects for different clients and my question is, how do I unpack the zip file that was already installed into the maven repository to the jetty web root?
@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
Walter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应该可以使用
dependency:unpack
比您可以在prepare-package
阶段绑定。有关示例,请参阅解压特定工件(在您的情况下,请使用zip
)。It should be possible with
dependency:unpack
than you could bind onprepare-package
phase. See Unpacking specific artifacts for an example (in you case, use a<type>zip</type>
).