![]() |
|
|
|
|
Change By:
|
Mr Cinquero
(15/Nov/14 11:34 AM)
|
|
Description:
|
Jenkins analyzes the maven pom.xml during execution of the maven build, which includes analyzing the dependencies. However, it does not seem to work for plugins' dependencies, namely "my.pkg:artId" in the following example: {noformat} <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <executions> <execution> <phase>process-resources</phase> <goals> <goal>java</goal> </goals> </execution> </executions> <configuration> <includePluginDependencies>true</includePluginDependencies> <executableDependency> <groupId>my.pkg</groupId> <artifactId>artId</artifactId> </executableDependency> <mainClass>my.pkg.bla.App</mainClass> </configuration> <dependencies> <dependency> <groupId>my.pkg</groupId> <artifactId>artId</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies> </plugin> {noformat} Is there any way (except manually configuring the Jenkins jobs) to tell Jenkins to consider my.pkg:artId as one of the project's dependencies? I tried putting the dependency declaration into the build dependency list using the provided scope. That, however, has side-effects: for example, NetBeans will consider transitive dependencies of my.pkg:artId as present, thereby not indicating missing dependencies in the build etc: {noformat} <dependencies> <dependency> <groupId>my.pkg</groupId> <artifactId>artId</artifactId> <scope>provided</scope> <exclusions> <exclusion> <groupId>*</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency> ... {noformat} The exclusions somewhat mitigate the problem introduced by mis-using the
provded
provided
scope and reduce it to resources/classes contained in my.pkg:artId.
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected].
For more options, visit
https://groups.google.com/d/optout.