I have many projects on my Windows machine that make up with Maven I currently are all in SNAPSHOT-State. When I build a project that relies on another project Maven, it always adds classes of other projects to the jar. This problem does not arise if I create this project on my CI-server. Is anyone's idea that why Maven connects class files to my jar?
I am using maven 2.2.1
when I build a project that relies on another project maven, then always adds class files of other projects to the jar.
This is not a default behavior, and if this happens then you are somehow asking Maven to do this. If you want to hunt potential inconsistencies, then check using the following targets on effective- pom , effective-settings , active profiles Strong> Both Machines:
-
Help: Effective-pom -
Help: Effective-Settings -
Help: Active Profile
Additionally, additional how is applied to the CI machine (additional command line Aramitr, etc.).
Comments
Post a Comment