Hi,

I'm using Maven 3.0.3.  I have a multi-module project and want to use the
Maven release plugin (through Jenkins).  When running release:prepare, the
process dies with the error

        Executing Maven:  -B -f /scratch/jenkins/workspace/subco/parent/pom.xml
-amd -pl org.mainco.subco:childModuleA -DdevelopmentVersion=38.0.1-SNAPSHOT
-DreleaseVersion=38.0.0 -Dusername=myuser -Dpassword=********* -P prod -P
cloudbees -DskipTests -Dresume=false -DdryRun=true release:prepare
        …
        message : Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on
project childModuleA: Can't release project due to non released dependencies
:
            org.mainco.subco:childModuleB:jar:38.0.0-SNAPSHOT:compile
            org.mainco.subco:parent:pom:38.0.0-SNAPSHOT


Is there another way I can write the child dependency so that a release
version will be used?  I could hard code things but then I would have to go
and update all my child poms every time I want to use the Maven release
plugin, which seems to defeat the purpose.

The problematic child module (similar to others) is setup like so …

        <artifactId>childModuleA</artifactId>
        <packaging>jar</packaging>
                ...
        <parent>
                <artifactId>parent</artifactId>
                <groupId>org.mainco.subco</groupId>
                <version>38.0.0-SNAPSHOT</version>
        </parent>
                ...
        <dependencies>
                        ...
                <dependency>
                        <groupId>org.mainco.subco</groupId>
                        <artifactId>childModuleB</artifactId>
                        <version>${project.version}</version>
                </dependency>



Thanks, - Dave



--
View this message in context: 
http://maven.40175.n5.nabble.com/Any-way-to-generically-specify-a-release-version-in-a-child-POM-when-using-the-Maven-release-plugin-tp5768328.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to