Issue Details (XML | Word | Printable)

Key: CHAIN-9
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Wendy Smoak
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Chain

[chain] Maven build updates

Created: 17/Oct/05 05:49 AM   Updated: 02/Jan/08 07:01 AM
Return to search
Component/s: None
Affects Version/s: Nightly Builds
Fix Version/s: 1.1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File chain-build.diff 2005-10-17 05:50 AM Wendy Smoak 1 kB
Environment:
Operating System: other
Platform: Other

Bugzilla Id: 37107


 Description  « Hide
For the transitive dependency feature of Maven 2 to work, the group and artifact
IDs need to be consistent across projects.

I'm having trouble with a project that depends on MyFaces 1.1.0 and Chain 1.0.

Chain is bringing in a dependency on MyFaces 1.0.8-beta which has a different
artifact id, and Maven has no way of knowing that myfaces-jsf-api-1.0.8-beta.jar
and myfaces-api-1.1.0.jar are two versions of the same artifact.

Similarly, updating the group and artifact ids for the Sun APIs. (See:
http://maven.apache.org/reference/standard-sun-jar-names.html)



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Wendy Smoak added a comment - 17/Oct/05 05:50 AM
Created an attachment (id=16707)
Patch for Chain's Maven build

Joe Germuska added a comment - 17/Oct/05 09:16 AM
Patch applied in commit set 322530. Thanks, Wendy!

Wendy Smoak added a comment - 17/Oct/05 10:07 AM
Can the pom in the repository be fixed as well?
http://www.ibiblio.org/maven2/commons-chain/commons-chain/1.0/commons-chain-1.0.pom

At least the servlet and portlet sections could be fixed. I'm not so sure about
changing the MyFaces dependency, since it involves a different version. Then
again, it could be argued that switching from a beta to the official certified
api .jar isn't a bad thing.

For now, projects which depend on Chain 1.0, can work around the unwanted m2
transitive dependencies with exclusions. For example:

<dependency>
<groupId>myfaces</groupId>
<artifactId>myfaces-api</artifactId>
<version>1.1.0</version>
<exclusions>
<exclusion>
<groupId>myfaces</groupId>
<artifactId>myfaces-jsf-api</artifactId>
</exclusion>
</exclusions>
</dependency>

and

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<exclusions>
<exclusion>
<groupId>servletapi</groupId>
<artifactId>servletapi</artifactId>
</exclusion>
</exclusions>
</dependency>


Henri Yandell made changes - 16/May/06 10:01 AM
Field Original Value New Value
issue.field.bugzillaimportkey 37107 12342637
Henri Yandell made changes - 16/May/06 11:10 AM
Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
Component/s Chain [ 12311103 ]
Key COM-2485 CHAIN-9
Affects Version/s Nightly Builds [ 12311648 ]
Project Commons [ 12310458 ] Commons Chain [ 12310462 ]
Henri Yandell made changes - 16/May/06 12:08 PM
Affects Version/s Nightly Builds [ 12311694 ]
Niall Pemberton made changes - 31/May/06 01:57 AM
Fix Version/s 1.1 [ 12311930 ]
Bugzilla Id 37107
Henri Yandell made changes - 02/Jan/08 07:01 AM
Status Resolved [ 5 ] Closed [ 6 ]