Discussion:
[jira] [Created] (COCOON-2343) Maven Dependencies with same artifactId but different classifier
Lennart Reuther (JIRA)
2015-01-14 21:17:35 UTC
Permalink
Lennart Reuther created COCOON-2343:
---------------------------------------

Summary: Maven Dependencies with same artifactId but different classifier
Key: COCOON-2343
URL: https://issues.apache.org/jira/browse/COCOON-2343
Project: Cocoon
Issue Type: Bug
Components: - Build System: Maven
Reporter: Lennart Reuther
Fix For: 2.1.13, 2.2.1


The {cocoon-maven-plugin} does not handle dependencies with the same artifactId but different classifiern. This prevents projects using e.g. saxon in combination with saxon-dom from being build correctly in a given Cocoon block.

{{code}}
[ERROR] Failed to execute goal org.apache.cocoon:cocoon-maven-plugin:1.0.2:prepare (default) on project myBlock1: There are at least two artifacts with the ID 'saxon':
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:9.1.0.8
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8
{{code}}

A possible patch for {cocoon-maven-plugin} version 1.0.3-SNAPSHOT is attached.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Lennart Reuther (JIRA)
2015-01-14 21:18:35 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lennart Reuther updated COCOON-2343:
------------------------------------
Description:
The cocoon-maven-plugin does not handle dependencies with the same artifactId but different classifiern. This prevents projects using e.g. saxon in combination with saxon-dom from being build correctly in a given Cocoon block.

[ERROR] Failed to execute goal org.apache.cocoon:cocoon-maven-plugin:1.0.2:prepare (default) on project myBlock1: There are at least two artifacts with the ID 'saxon':
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:9.1.0.8
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8

A possible patch for cocoon-maven-plugin version 1.0.3-SNAPSHOT is attached.

was:
The {cocoon-maven-plugin} does not handle dependencies with the same artifactId but different classifiern. This prevents projects using e.g. saxon in combination with saxon-dom from being build correctly in a given Cocoon block.

{{code}}
[ERROR] Failed to execute goal org.apache.cocoon:cocoon-maven-plugin:1.0.2:prepare (default) on project myBlock1: There are at least two artifacts with the ID 'saxon':
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:9.1.0.8
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8
{{code}}

A possible patch for {cocoon-maven-plugin} version 1.0.3-SNAPSHOT is attached.
Post by Lennart Reuther (JIRA)
Maven Dependencies with same artifactId but different classifier
----------------------------------------------------------------
Key: COCOON-2343
URL: https://issues.apache.org/jira/browse/COCOON-2343
Project: Cocoon
Issue Type: Bug
Components: - Build System: Maven
Reporter: Lennart Reuther
Fix For: 2.1.13, 2.2.1
The cocoon-maven-plugin does not handle dependencies with the same artifactId but different classifiern. This prevents projects using e.g. saxon in combination with saxon-dom from being build correctly in a given Cocoon block.
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:9.1.0.8
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8
A possible patch for cocoon-maven-plugin version 1.0.3-SNAPSHOT is attached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Lennart Reuther (JIRA)
2015-01-14 21:19:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lennart Reuther updated COCOON-2343:
------------------------------------
Attachment: handle_classifier_in_artifacts.patch

Uses artifactId and classifierId when retrieving dependencies.
Post by Lennart Reuther (JIRA)
Maven Dependencies with same artifactId but different classifier
----------------------------------------------------------------
Key: COCOON-2343
URL: https://issues.apache.org/jira/browse/COCOON-2343
Project: Cocoon
Issue Type: Bug
Components: - Build System: Maven
Reporter: Lennart Reuther
Fix For: 2.1.13, 2.2.1
Attachments: handle_classifier_in_artifacts.patch
The cocoon-maven-plugin does not handle dependencies with the same artifactId but different classifiern. This prevents projects using e.g. saxon in combination with saxon-dom from being build correctly in a given Cocoon block.
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:9.1.0.8
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8
A possible patch for cocoon-maven-plugin version 1.0.3-SNAPSHOT is attached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Lennart Reuther (JIRA)
2015-01-14 21:22:36 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lennart Reuther updated COCOON-2343:
------------------------------------
Urgency: Normal (was: Urgent)
Post by Lennart Reuther (JIRA)
Maven Dependencies with same artifactId but different classifier
----------------------------------------------------------------
Key: COCOON-2343
URL: https://issues.apache.org/jira/browse/COCOON-2343
Project: Cocoon
Issue Type: Bug
Components: - Build System: Maven
Reporter: Lennart Reuther
Fix For: 2.1.13, 2.2.1
Attachments: handle_classifier_in_artifacts.patch
The cocoon-maven-plugin does not handle dependencies with the same artifactId but different classifiern. This prevents projects using e.g. saxon in combination with saxon-dom from being build correctly in a given Cocoon block.
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:9.1.0.8
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8
A possible patch for cocoon-maven-plugin version 1.0.3-SNAPSHOT is attached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Francesco Chicchiriccò (JIRA)
2015-01-15 07:40:35 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò updated COCOON-2343:
-------------------------------------------
Fix Version/s: (was: 2.1.13)
Post by Lennart Reuther (JIRA)
Maven Dependencies with same artifactId but different classifier
----------------------------------------------------------------
Key: COCOON-2343
URL: https://issues.apache.org/jira/browse/COCOON-2343
Project: Cocoon
Issue Type: Bug
Components: - Build System: Maven
Reporter: Lennart Reuther
Assignee: Francesco Chicchiriccò
Fix For: 2.2.1
Attachments: handle_classifier_in_artifacts.patch
The cocoon-maven-plugin does not handle dependencies with the same artifactId but different classifiern. This prevents projects using e.g. saxon in combination with saxon-dom from being build correctly in a given Cocoon block.
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:9.1.0.8
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8
A possible patch for cocoon-maven-plugin version 1.0.3-SNAPSHOT is attached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Francesco Chicchiriccò (JIRA)
2015-01-15 07:40:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò reassigned COCOON-2343:
----------------------------------------------

Assignee: Francesco Chicchiriccò
Post by Lennart Reuther (JIRA)
Maven Dependencies with same artifactId but different classifier
----------------------------------------------------------------
Key: COCOON-2343
URL: https://issues.apache.org/jira/browse/COCOON-2343
Project: Cocoon
Issue Type: Bug
Components: - Build System: Maven
Reporter: Lennart Reuther
Assignee: Francesco Chicchiriccò
Fix For: 2.2.1
Attachments: handle_classifier_in_artifacts.patch
The cocoon-maven-plugin does not handle dependencies with the same artifactId but different classifiern. This prevents projects using e.g. saxon in combination with saxon-dom from being build correctly in a given Cocoon block.
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:9.1.0.8
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8
A possible patch for cocoon-maven-plugin version 1.0.3-SNAPSHOT is attached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Francesco Chicchiriccò (JIRA)
2015-01-15 07:43:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò closed COCOON-2343.
------------------------------------------
Resolution: Fixed

Patch applied, thanks.

I have also uploaded the 1.0.3-SNAPSHOT artifact.
Post by Lennart Reuther (JIRA)
Maven Dependencies with same artifactId but different classifier
----------------------------------------------------------------
Key: COCOON-2343
URL: https://issues.apache.org/jira/browse/COCOON-2343
Project: Cocoon
Issue Type: Bug
Components: - Build System: Maven
Reporter: Lennart Reuther
Assignee: Francesco Chicchiriccò
Fix For: 2.2.1
Attachments: handle_classifier_in_artifacts.patch
The cocoon-maven-plugin does not handle dependencies with the same artifactId but different classifiern. This prevents projects using e.g. saxon in combination with saxon-dom from being build correctly in a given Cocoon block.
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:9.1.0.8
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8:compile
[ERROR] com.mycompany:myBlock1:jar:1.0.1-SNAPSHOT
[ERROR] net.sourceforge.web-harvest:webharvest-core:jar:2.1.0-RC1
[ERROR] net.sourceforge.saxon:saxon:jar:dom:9.1.0.8
A possible patch for cocoon-maven-plugin version 1.0.3-SNAPSHOT is attached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Loading...