Skip to content

[MNG-7838] Local repository breaks exec plugin #9080

@jira-importer

Description

@jira-importer

Romain Manni-Bucau opened MNG-7838 and commented

Didn't fully investigate but in a multimodule project with modules A and B and A used in B with exec plugin (exec:java, add project deps =true), doing cd A && mvn install && cd ../B && mvn package exec:java keeps using an outdated version of A whereas it shouldnt.

 

here some logs when replacing second command by one from the root module:

 

[INFO] --- exec:3.0.0:java (generate-model) @ B ---
[WARNING] File 'app/A/target/classes/com/app/tools/soap/GenerateLightModels$Elt.class' is more recent than the packaged artifact for 'A', please run a full `mvn package` build
[WARNING] File 'app/A/target/classes/com/app/tools/soap/GenerateLightModels$Elt.class' is more recent than the packaged artifact for 'A', please run a full `mvn package` build
[WARNING] File 'app/A/target/classes/com/app/tools/soap/GenerateLightModels$Elt.class' is more recent than the packaged artifact for 'A', please run a full `mvn package` build
[INFOS]ㅤGenerated 73 files in /opt/rmannibucau/dev/app/B/target/generated-sources/models (some.xsd)
[INFO]  

Affects: 4.0.0-alpha-5

Remote Links:

Backported to: 4.0.0-beta-4

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions