Hi guys i have a question related to the use of the copy-dependencies plugin. with the target to copy only the dependences of a related profile.
In my project i have 2 profile one used for the develop and another one used for the production the develop is configure to be active by default the dependences are defined outside the profiles if are common for both, or specific dependences are inside the profile that need them. Inside the production profile is defined in the build section of the mvn.xml file the configuration of the maven dependences plug-in <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>target/dist/lib</outputDirectory> <overWriteReleases>true</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots> <overWriteIfNewer>true</overWriteIfNewer> </configuration> </execution> </executions> </plugin> the issue is when i run the package phase from command line with the flag that identify that i'm using the production profile, the dependences are copied, but the plug-in doesn't care what is the list of dependences definition related to the profile production, it copy always all the dependences and the indirect dependences and dont take care about the profile and the dependences defined in it it is the normale beavour of the plug-in? and in case... if i have to manage two different production environment with two different application server, so dependences needed are different how can i manage the configuration in the pom files and let to maven to help me to undestand what are the required dependences based on the profile? thanks -- View this message in context: http://maven.40175.n5.nabble.com/how-to-copy-dependencies-related-to-one-profile-tp5668047p5668047.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org