【发布时间】:2011-05-10 22:35:10
【问题描述】:
我在 Web 应用程序的 pom 文件中有一个构建配置文件,它为 qa 测试做了一些必要的事情(在我的代码中)。
我在 svn 上有这段代码,这段代码是在 Hudson 中编译的,它在 nexus 中部署工件..
Hudson 有两份工作,一份负责 qa 配置文件 (-P qa),另一份负责客户。
我需要的是在部署阶段更改我的 qa 配置文件中工件的名称,以便 nexus 有两个不同的 war 文件,一个用于 qa,一个用于客户。
我使用(在 Google 搜索后)以下看起来在 hudshon 中没有任何作用!
<profile>
<id>qa</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.5</version>
<configuration>
<classifier>qa</classifier>
</configuration>
</plugin>
</plugins>
</build>
</profile>
有人有什么想法吗?
【问题讨论】:
标签: maven profile nexus classification maven-deploy-plugin