0

我有多模块项目,在每个 pom.xml 中我都有相同的父 pom.xml。我正在使用 maven-release-plugin 以便在 svn 中使用父级的 pom.xml 的以下部分制作标签

<profile>
            <id>make-tag</id>
            <modules>
                <module>../module1</module>
                <module>../module2</module>
                <module>../module3</module>
                <module>../module4</module>
                <module>../module5</module>
            </modules>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-release-plugin</artifactId>
                        <version>2.4</version>
                        <configuration>
                            <preparationGoals>validate</preparationGoals>
                            <tagBase>http://<svn_ip>:8080/repos/DMC/<project>/tags</tagBase>
                            <useEditMode>true</useEditMode>
                            <autoVersionSubmodules>true</autoVersionSubmodules>
                            <updateWorkingCopyVersions>false</updateWorkingCopyVersions>
                            <tagNameFormat>rel-${env.REL_TAG}</tagNameFormat>
                            <username>${env.SCM_USER}</username>
                            <password>${env.SCM_PASSWD}</password>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

我正在通过 Jenkins 运行这个 maven,并且工作每秒钟都失败。当它失败时,我收到以下错误:

[INFO] Can't release project due to non released dependencies :
    com.group.id:module1:pom:0.0.1-SNAPSHOT
in project 'module1' (com.group.id:module1:jar:0.0.1-SNAPSHOT)

但第二次工作成功。它可以是什么?

4

0 回答 0