我对在Jenkins中使用Maven发布插件有疑问。我收到以下错误:
Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on project You don't have a SNAPSHOT project in the reactor projects list. -> [Help 1]
有人可以指出我的问题吗?
这是我的项目pom.xml结构
父pom.xml
<parent>
<groupId>org.company.parent</groupId>
<artifactId>comany-parent</artifactId>
<version>0.2</version>
</parent>
<groupId>org.company.test</groupId>
<artifactId>my Parent Project</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>Parent</name>
child1 pom.xml
<parent>
<groupId>org.company.test</groupId>
<artifactId>my Parent Project</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>child1</artifactId>
<name>child-one</name>
child2 pom.xml
<parent>
<groupId>org.company.test</groupId>
<artifactId>my Parent Project</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>child2</artifactId>
<name>child-two</name>