benkamphaus commented on issue #11681: [MXNET-531] improvement of adding 
source.jar to assembly
URL: https://github.com/apache/incubator-mxnet/pull/11681#issuecomment-406161510
 
 
   @nswamy and @lanking520 -- (and cc @gigasquid ) I think something may be 
going on with the scala build based on some of the assembly changes that 
impacts the maven artifact of which Clojure is a consumer. Since I'm new to the 
build process here and reading through CI, it's possible I could be 
misinterpreting something though.
   
   In the CI logs I see this set of warnings:
   
   ```
   [INFO] Reading assembly descriptor: src/main/assembly/assembly.xml
   
   [WARNING] Artifact: 
org.apache.mxnet:mxnet-full_2.11-linux-x86_64-cpu:jar:1.3.0-SNAPSHOT references 
the same file as the assembly destination file. Moving it to a temporary 
location for inclusion.
   
   [INFO] Building jar: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT.jar
   
   [WARNING] Configuration options: 'appendAssemblyId' is set to false, and 
'classifier' is missing.
   
   Instead of attaching the assembly file: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT.jar,
 it will become the file for main project artifact.
   
   NOTE: If multiple descriptors or descriptor-formats are provided for this 
project, the value of this file will be non-deterministic!
   
   [WARNING] Replacing pre-existing project main-artifact file: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/archive-tmp/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT.jar
   
   with assembly file: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT.jar
   
   [INFO] 
   
   [INFO] --- maven-assembly-plugin:2.5.5:single (sources-jar) @ 
mxnet-full_2.11-linux-x86_64-cpu ---
   
   [INFO] Reading assembly descriptor: 
/work/mxnet/scala-package/assembly/src/source.xml
   
   [INFO] Processing sources for module project: 
org.apache.mxnet:mxnet-core_2.11:jar:1.3.0-SNAPSHOT
   
   [INFO] Building jar: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT-sources.jar
   
   [WARNING] Configuration options: 'appendAssemblyId' is set to false, and 
'classifier' is missing.
   
   Instead of attaching the assembly file: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT-sources.jar,
 it will become the file for main project artifact.
   
   NOTE: If multiple descriptors or descriptor-formats are provided for this 
project, the value of this file will be non-deterministic!
   
   [WARNING] Replacing pre-existing project main-artifact file: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT.jar
   
   with assembly file: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT-sources.jar
   
   [INFO] 
   
   [INFO] --- maven-assembly-plugin:2.5.5:single (javadoc-jar) @ 
mxnet-full_2.11-linux-x86_64-cpu ---
   
   [INFO] Reading assembly descriptor: 
/work/mxnet/scala-package/assembly/src/javadoc.xml
   
   [INFO] Building jar: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT-javadoc.jar
   
   [WARNING] Configuration options: 'appendAssemblyId' is set to false, and 
'classifier' is missing.
   
   Instead of attaching the assembly file: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT-javadoc.jar,
 it will become the file for main project artifact.
   
   NOTE: If multiple descriptors or descriptor-formats are provided for this 
project, the value of this file will be non-deterministic!
   
   [WARNING] Replacing pre-existing project main-artifact file: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT-sources.jar
   
   with assembly file: 
/work/mxnet/scala-package/assembly/linux-x86_64-cpu/target/mxnet-full_2.11-linux-x86_64-cpu-1.3.0-SNAPSHOT-javadoc.jar
   
   ```
   
   Carin looked into this a bit as well and passed me some notes. From this I 
can see in her logs that she saw the javadoc jar overwrite the project jar in 
her local maven repo:
   
   ```
   [INFO] Installing 
/Users/cmeier/workspace/deep-learning/mxnet/scala-package/assembly/osx-x86_64-cpu/target/mxnet-full_2.11-osx-x86_64-cpu-1.3.0-SNAPSHOT-javadoc.jar
 to 
/Users/cmeier/.m2/repository/org/apache/mxnet/mxnet-full_2.11-osx-x86_64-cpu/1.3.0-SNAPSHOT/mxnet-full_2.11-osx-x86_64-cpu-1.3.0-SNAPSHOT.jar
   ```
   
   I see a [related StackOverflow issue](https://stackoverflow.com/a/38484021) 
that would suggest that the wrong jar getting published as the main artifact 
could be the culprit here.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to