ste*_*ven 4 deployment maven-2
我希望有人能帮助我进行maven部署(通常通过发布插件运行).
我希望在发布时将除打包的jar之外的文件部署到repo,例如特定的指令文档和生成的SQL文件.
如果我不必deploy:deploy-file为每一个使用它会很好.最好是我可以将每个文件添加到我的POM文件中的列表中,并在发布时自动为我拾取.
Pas*_*ent 12
使用Maven Assembly Plugin将它们打包到将要安装/部署的程序集中.
或者使用build-helper插件的attach-artifact目标:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>some file</file>
<type>extension of your file</type>
<classifier>optional</classifier>
</artifact>
...
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3412 次 |
| 最近记录: |