Issue Type: Bug Bug
Assignee: Unassigned
Components: maven-plugin
Created: 15/Nov/14 11:32 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:

<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>

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:

<dependencies>
<dependency>
<groupId>my.pkg</groupId>
<artifactId>artId</artifactId>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
...

The exclusions somewhat mitigate the problem introduced by mis-using the provded scope and reduce it to resources/classes contained in my.pkg:artId.

Project: Jenkins
Priority: Minor Minor
Reporter: Mr Cinquero
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.

Reply via email to