Bug 787264
Summary: | Plugin dependencies; commons-logging and cobertura have wrong scope | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Elias Ross <genman> |
Component: | Build System | Assignee: | RHQ Project Maintainer <rhq-maint> |
Status: | CLOSED WORKSFORME | QA Contact: | Mike Foley <mfoley> |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 4.3 | CC: | hrupp |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-03 20:41:47 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Elias Ross
2012-02-03 18:20:28 UTC
per bz triage (asantos, ccrouch, mfoley. loleary) I have not had any success using the copy-dependencies goal. It appears to be buggy and the way scopes are specified is very unintuitive. I recommend using the copy-libs goal instead and explicitly specifying the jars you want to include, which is what we do in all the core plugins. For example, from the as7 plugin: <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-libs</id> <phase>process-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId> </artifactItem> <artifactItem> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-mapper-asl</artifactId> </artifactItem> <artifactItem> <groupId>org.jboss.sasl</groupId> <artifactId>jboss-sasl</artifactId> </artifactItem> </artifactItems> <outputDirectory>${project.build.outputDirectory}/lib</outputDirectory> </configuration> </execution> </executions> </plugin> Defining an rhq-agent-plugin Maven packaging type that encapsulates things like copying runtime deps into the lib dir and validating the plugin descriptor is a good idea and something I have been wanting to do for a while. Can you create a separate BZ for that? I created Bug 840634 - Define an rhq-agent-plugin Maven packaging type This bug may be marked as duplicate or closed. I don't think this is an issue anymore. |