AWS_Beginner
AWS_Beginner

Reputation: 476

Maven build issue in git submodule

I am using Adobe Cloud manager pipeline to build my Java AMS project.

Here i am using git submodules & here is parent pom look like

<artifactId>parent</artifactId>
<groupId>aem65</groupId>
<version>5.10.0</version>

<modules>
    <module>child-1</module>
</modules>

Above is parent pom and we have specified child project in this.

This pipeline uses below command

mvn --batch-mode org.codehaus.mojo:versions-maven-plugin:2.6:set -DnewVersion=5.10.0 -DprocessAllModules=true

Now since this pipeline uses above mvn command it creates child project artifacts with version 5.10.0 (which is parents version)

I cannot edit this pipeline or this command.

Somehow i want to override the effect of -DnewVersion=5.10.0 so that it create child project artifacts with its version not parent version.

I tried to override its effect using .mvn/maven.config and .mvn/jvm.config file. also tried with version lock property,maven flattern plugin but none of these worked.

Please suggest.

Upvotes: 1

Views: 31

Answers (0)

Related Questions