maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MNG-5807) Both classes and shaded jar exposed as dependency from artifact in multimodule build
Date Sat, 17 Dec 2016 23:43:58 GMT

     [ https://issues.apache.org/jira/browse/MNG-5807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Osipov closed MNG-5807.
-------------------------------
    Resolution: Cannot Reproduce

Cannot reproduce with

{noformat}
Apache Maven 3.4.0-SNAPSHOT (8a1b6359f31178ce804018cfb524e72f1178028a; 2016-12-17T20:46:55+01:00)
Maven home: D:\Entwicklung\Programme\apache-maven-3.4.0-SNAPSHOT
Java version: 1.8.0_112, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_112\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
{noformat}

by running {{mvn clean install}} on master:

{noformat}
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ trees ---
[INFO] Installing D:\Entwicklung\Projekte\immutables\trees\target\trees-2.3.11-SNAPSHOT.jar
to C:\Users\mosipov\.m2\repository\org\immutables\trees\2.3.11-SNAPSHOT\trees-2.3.11-SNAPSHOT.jar
[INFO] Installing D:\Entwicklung\Projekte\immutables\trees\pom.xml to C:\Users\mosipov\.m2\repository\org\immutables\trees\2.3.11-SNAPSHOT\trees-2.3.11-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] org.immutables.immutables .......................... SUCCESS [  0.694 s]
[INFO] org.immutables.dependency.utility .................. SUCCESS [  0.046 s]
[INFO] org.immutables.testing ............................. SUCCESS [  1.937 s]
[INFO] org.immutables.generator ........................... SUCCESS [  1.900 s]
[INFO] org.immutables.generator-processor ................. SUCCESS [  3.334 s]
[INFO] org.immutables.metainf ............................. SUCCESS [  3.000 s]
[INFO] org.immutables.generator-fixture ................... SUCCESS [  1.516 s]
[INFO] org.immutables.mirror .............................. SUCCESS [  0.985 s]
[INFO] org.immutables.value-processor ..................... SUCCESS [  7.876 s]
[INFO] org.immutables.value ............................... SUCCESS [  2.007 s]
[INFO] org.immutables.ordinal ............................. SUCCESS [  1.313 s]
[INFO] org.immutables.builder ............................. SUCCESS [  1.594 s]
[INFO] org.immutables.android-stub ........................ SUCCESS [  0.062 s]
[INFO] org.immutables.gson ................................ SUCCESS [  4.406 s]
[INFO] org.immutables.mongo ............................... SUCCESS [  2.285 s]
[INFO] org.immutables.func ................................ SUCCESS [  0.530 s]
[INFO] org.immutables.serial .............................. SUCCESS [  1.296 s]
[INFO] org.immutables.encode .............................. SUCCESS [  0.288 s]
[INFO] org.immutables.value-fixture ....................... SUCCESS [ 17.613 s]
[INFO] org.immutables.trees ............................... SUCCESS [  2.536 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 55.461 s
[INFO] Finished at: 2016-12-18T00:42:24+01:00
[INFO] Final Memory: 107M/1480M
[INFO] ------------------------------------------------------------------------
{noformat}

> Both classes and shaded jar exposed as dependency from artifact in multimodule build
> ------------------------------------------------------------------------------------
>
>                 Key: MNG-5807
>                 URL: https://issues.apache.org/jira/browse/MNG-5807
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.3.1
>         Environment: Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-13T13:10:27-07:00)
> Maven home: /usr/local/Cellar/maven/3.3.1/libexec
> Java version: 1.8.0_25, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.9.5", arch: "x86_64", family: "mac"
>            Reporter: Eugene Lucash
>
> After upgrade from 3.2.x to 3.3.1 my project experienced build failure.
> During multi-module build, where couple of module has dependency on another module. The
dependency itself is an annotation processor module which builds shaded all-in-one jar (with
relocated dependencies) which becomes main artifact of that module. It worked well in 3.2.x,
but in 3.3.1, the dependent modules' classpath receives both shaded and original/classes dependencies.
> The dependent module fails to build due to duplicate processor runs (files already generated
etc). Interesting is that if I resume build from the failed module (using `-rf`) then it would
succeed as only shaded jar will be available then.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message