[ 
https://issues.apache.org/jira/browse/MNG-7838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17741139#comment-17741139
 ] 

Romain Manni-Bucau commented on MNG-7838:
-----------------------------------------

Right but maven set of sources is known (repos), so guess we should check all 
local ones at least - maybe just all since remote ones will be ignored with the 
update policy. Don't think it is what we do, we just check the other module 
target which misses the case I mention. Likely not critical but a bit weird if 
you get an artifact installed in another way. From my window it looks like 
maven does not respects maven or that end user must understand the internals, 
this is why I'm a bit mixed about this issue.

> Local repository breaks exec plugin
> -----------------------------------
>
>                 Key: MNG-7838
>                 URL: https://issues.apache.org/jira/browse/MNG-7838
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 4.0.0-alpha-5
>            Reporter: Romain Manni-Bucau
>            Assignee: Guillaume Nodet
>            Priority: Major
>
> 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:
>  
> {code:java}
> [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]  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to