You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Graham Leggett (JIRA)" <ji...@codehaus.org> on 2008/08/23 15:13:27 UTC
[jira] Created: (MNG-3725) Cannot override plugin dependencies in
maven 2.0.9
Cannot override plugin dependencies in maven 2.0.9
--------------------------------------------------
Key: MNG-3725
URL: http://jira.codehaus.org/browse/MNG-3725
Project: Maven 2
Issue Type: Bug
Components: Dependencies
Affects Versions: 2.0.9
Environment: Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.4" arch: "ppc" Family: "unix"
Reporter: Graham Leggett
When an attempt is made to override the version of torque-templates used by the maven-torque-plugin as below, maven still tries to use the original version of the torque-templates jar. The overridden jar is ignored.
According to http://jira.codehaus.org/browse/MNG-2972, this behaviour used to be broken in maven v2.0.8 and earlier, and was apparently fixed. This doesn't seem to be the case though.
The configuration looks like this:
<plugin>
<groupId>org.apache.torque</groupId>
<artifactId>torque-maven-plugin</artifactId>
<version>3.3</version>
<dependencies>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.4.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.torque</groupId>
<artifactId>torque-templates</artifactId>
<version>3.3.1</version>
</dependency>
</dependencies>
</plugin>
The original torque-templates jar is v3.3. The overridden torque-templates jar is v3.3.1.
As the plugin gives no clues as to which version is being used, I deleted the original torque-templates v3.3 release from the local repository. What I expected to see was maven ignoring the v3.3 jar and using the v3.3.1 jar instead, but maven tries to re-download the v3.3 release and use it instead.
maven-torque-plugin depends on torque-gen, which in turn depends on torque-templates. It may be that direct plugin dependencies can be overridden, but transitive plugin dependencies cannot be overridden.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-3725) Cannot override plugin dependencies in
maven 2.0.9
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MNG-3725:
-----------------------------------
Attachment: pom.xml
Using Maven 2.0.9 on the attached POM yields the following debug output:
{noformat}
[DEBUG] Plugin dependencies for:
org.apache.torque:torque-maven-plugin:3.3
are:
org.apache.torque:torque-templates:jar:3.3-RC3:compile
org.apache.maven:maven-plugin-api:jar:2.0:runtime
org.apache.maven:maven-artifact:jar:2.0:runtime
org.apache.maven:maven-settings:jar:2.0:runtime
org.apache.maven:maven-plugin-descriptor:jar:2.0:runtime
org.apache.maven:maven-core:jar:2.0:runtime
org.apache.torque:torque-generator:jar:3.3:runtime
org.apache.maven:maven-project:jar:2.0:runtime
org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
log4j:log4j:jar:1.2.14:runtime
commons-configuration:commons-configuration:jar:1.4:runtime
{noformat}
i.e. the overriden version of torque-templates is used.
More than likely, the issue is another occurrence of MNG-1323.
As a final note, the act of downloading something does not induce it is actually used.
> Cannot override plugin dependencies in maven 2.0.9
> --------------------------------------------------
>
> Key: MNG-3725
> URL: http://jira.codehaus.org/browse/MNG-3725
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Environment: Maven version: 2.0.9
> Java version: 1.5.0_13
> OS name: "mac os x" version: "10.5.4" arch: "ppc" Family: "unix"
> Reporter: Graham Leggett
> Attachments: pom.xml
>
>
> When an attempt is made to override the version of torque-templates used by the maven-torque-plugin as below, maven still tries to use the original version of the torque-templates jar. The overridden jar is ignored.
> According to http://jira.codehaus.org/browse/MNG-2972, this behaviour used to be broken in maven v2.0.8 and earlier, and was apparently fixed. This doesn't seem to be the case though.
> The configuration looks like this:
> {code:xml}
> <plugin>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-maven-plugin</artifactId>
> <version>3.3</version>
> <dependencies>
> <dependency>
> <groupId>org.apache.derby</groupId>
> <artifactId>derby</artifactId>
> <version>10.4.1.3</version>
> </dependency>
> <dependency>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-templates</artifactId>
> <version>3.3.1</version>
> </dependency>
> </dependencies>
> </plugin>
> {code}
> The original torque-templates jar is v3.3. The overridden torque-templates jar is v3.3.1.
> As the plugin gives no clues as to which version is being used, I deleted the original torque-templates v3.3 release from the local repository. What I expected to see was maven ignoring the v3.3 jar and using the v3.3.1 jar instead, but maven tries to re-download the v3.3 release and use it instead.
> maven-torque-plugin depends on torque-gen, which in turn depends on torque-templates. It may be that direct plugin dependencies can be overridden, but transitive plugin dependencies cannot be overridden.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MNG-3725) Cannot override plugin dependencies in
maven 2.0.9
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-3725.
----------------------------------
Resolution: Cannot Reproduce
Fix Version/s: (was: 3.0-alpha-8)
Assignee: Benjamin Bentmann
> Cannot override plugin dependencies in maven 2.0.9
> --------------------------------------------------
>
> Key: MNG-3725
> URL: http://jira.codehaus.org/browse/MNG-3725
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Environment: Maven version: 2.0.9
> Java version: 1.5.0_13
> OS name: "mac os x" version: "10.5.4" arch: "ppc" Family: "unix"
> Reporter: Graham Leggett
> Assignee: Benjamin Bentmann
> Attachments: pom.xml
>
>
> When an attempt is made to override the version of torque-templates used by the maven-torque-plugin as below, maven still tries to use the original version of the torque-templates jar. The overridden jar is ignored.
> According to http://jira.codehaus.org/browse/MNG-2972, this behaviour used to be broken in maven v2.0.8 and earlier, and was apparently fixed. This doesn't seem to be the case though.
> The configuration looks like this:
> {code:xml}
> <plugin>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-maven-plugin</artifactId>
> <version>3.3</version>
> <dependencies>
> <dependency>
> <groupId>org.apache.derby</groupId>
> <artifactId>derby</artifactId>
> <version>10.4.1.3</version>
> </dependency>
> <dependency>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-templates</artifactId>
> <version>3.3.1</version>
> </dependency>
> </dependencies>
> </plugin>
> {code}
> The original torque-templates jar is v3.3. The overridden torque-templates jar is v3.3.1.
> As the plugin gives no clues as to which version is being used, I deleted the original torque-templates v3.3 release from the local repository. What I expected to see was maven ignoring the v3.3 jar and using the v3.3.1 jar instead, but maven tries to re-download the v3.3 release and use it instead.
> maven-torque-plugin depends on torque-gen, which in turn depends on torque-templates. It may be that direct plugin dependencies can be overridden, but transitive plugin dependencies cannot be overridden.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-3725) Cannot override plugin dependencies in
maven 2.0.9
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MNG-3725:
-----------------------------------
Description:
When an attempt is made to override the version of torque-templates used by the maven-torque-plugin as below, maven still tries to use the original version of the torque-templates jar. The overridden jar is ignored.
According to http://jira.codehaus.org/browse/MNG-2972, this behaviour used to be broken in maven v2.0.8 and earlier, and was apparently fixed. This doesn't seem to be the case though.
The configuration looks like this:
{code:xml}
<plugin>
<groupId>org.apache.torque</groupId>
<artifactId>torque-maven-plugin</artifactId>
<version>3.3</version>
<dependencies>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.4.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.torque</groupId>
<artifactId>torque-templates</artifactId>
<version>3.3.1</version>
</dependency>
</dependencies>
</plugin>
{code}
The original torque-templates jar is v3.3. The overridden torque-templates jar is v3.3.1.
As the plugin gives no clues as to which version is being used, I deleted the original torque-templates v3.3 release from the local repository. What I expected to see was maven ignoring the v3.3 jar and using the v3.3.1 jar instead, but maven tries to re-download the v3.3 release and use it instead.
maven-torque-plugin depends on torque-gen, which in turn depends on torque-templates. It may be that direct plugin dependencies can be overridden, but transitive plugin dependencies cannot be overridden.
was:
When an attempt is made to override the version of torque-templates used by the maven-torque-plugin as below, maven still tries to use the original version of the torque-templates jar. The overridden jar is ignored.
According to http://jira.codehaus.org/browse/MNG-2972, this behaviour used to be broken in maven v2.0.8 and earlier, and was apparently fixed. This doesn't seem to be the case though.
The configuration looks like this:
<plugin>
<groupId>org.apache.torque</groupId>
<artifactId>torque-maven-plugin</artifactId>
<version>3.3</version>
<dependencies>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.4.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.torque</groupId>
<artifactId>torque-templates</artifactId>
<version>3.3.1</version>
</dependency>
</dependencies>
</plugin>
The original torque-templates jar is v3.3. The overridden torque-templates jar is v3.3.1.
As the plugin gives no clues as to which version is being used, I deleted the original torque-templates v3.3 release from the local repository. What I expected to see was maven ignoring the v3.3 jar and using the v3.3.1 jar instead, but maven tries to re-download the v3.3 release and use it instead.
maven-torque-plugin depends on torque-gen, which in turn depends on torque-templates. It may be that direct plugin dependencies can be overridden, but transitive plugin dependencies cannot be overridden.
> Cannot override plugin dependencies in maven 2.0.9
> --------------------------------------------------
>
> Key: MNG-3725
> URL: http://jira.codehaus.org/browse/MNG-3725
> Project: Maven 2
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Environment: Maven version: 2.0.9
> Java version: 1.5.0_13
> OS name: "mac os x" version: "10.5.4" arch: "ppc" Family: "unix"
> Reporter: Graham Leggett
> Fix For: 3.x
>
>
> When an attempt is made to override the version of torque-templates used by the maven-torque-plugin as below, maven still tries to use the original version of the torque-templates jar. The overridden jar is ignored.
> According to http://jira.codehaus.org/browse/MNG-2972, this behaviour used to be broken in maven v2.0.8 and earlier, and was apparently fixed. This doesn't seem to be the case though.
> The configuration looks like this:
> {code:xml}
> <plugin>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-maven-plugin</artifactId>
> <version>3.3</version>
> <dependencies>
> <dependency>
> <groupId>org.apache.derby</groupId>
> <artifactId>derby</artifactId>
> <version>10.4.1.3</version>
> </dependency>
> <dependency>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-templates</artifactId>
> <version>3.3.1</version>
> </dependency>
> </dependencies>
> </plugin>
> {code}
> The original torque-templates jar is v3.3. The overridden torque-templates jar is v3.3.1.
> As the plugin gives no clues as to which version is being used, I deleted the original torque-templates v3.3 release from the local repository. What I expected to see was maven ignoring the v3.3 jar and using the v3.3.1 jar instead, but maven tries to re-download the v3.3 release and use it instead.
> maven-torque-plugin depends on torque-gen, which in turn depends on torque-templates. It may be that direct plugin dependencies can be overridden, but transitive plugin dependencies cannot be overridden.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-3725) Cannot override plugin dependencies in
maven 2.0.9
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl updated MNG-3725:
-------------------------------
Fix Version/s: (was: 3.x)
3.0-alpha-7
> Cannot override plugin dependencies in maven 2.0.9
> --------------------------------------------------
>
> Key: MNG-3725
> URL: http://jira.codehaus.org/browse/MNG-3725
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Environment: Maven version: 2.0.9
> Java version: 1.5.0_13
> OS name: "mac os x" version: "10.5.4" arch: "ppc" Family: "unix"
> Reporter: Graham Leggett
> Fix For: 3.0-alpha-7
>
>
> When an attempt is made to override the version of torque-templates used by the maven-torque-plugin as below, maven still tries to use the original version of the torque-templates jar. The overridden jar is ignored.
> According to http://jira.codehaus.org/browse/MNG-2972, this behaviour used to be broken in maven v2.0.8 and earlier, and was apparently fixed. This doesn't seem to be the case though.
> The configuration looks like this:
> {code:xml}
> <plugin>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-maven-plugin</artifactId>
> <version>3.3</version>
> <dependencies>
> <dependency>
> <groupId>org.apache.derby</groupId>
> <artifactId>derby</artifactId>
> <version>10.4.1.3</version>
> </dependency>
> <dependency>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-templates</artifactId>
> <version>3.3.1</version>
> </dependency>
> </dependencies>
> </plugin>
> {code}
> The original torque-templates jar is v3.3. The overridden torque-templates jar is v3.3.1.
> As the plugin gives no clues as to which version is being used, I deleted the original torque-templates v3.3 release from the local repository. What I expected to see was maven ignoring the v3.3 jar and using the v3.3.1 jar instead, but maven tries to re-download the v3.3 release and use it instead.
> maven-torque-plugin depends on torque-gen, which in turn depends on torque-templates. It may be that direct plugin dependencies can be overridden, but transitive plugin dependencies cannot be overridden.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-3725) Cannot override plugin dependencies in
maven 2.0.9
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-3725:
------------------------------
Fix Version/s: 3.x
> Cannot override plugin dependencies in maven 2.0.9
> --------------------------------------------------
>
> Key: MNG-3725
> URL: http://jira.codehaus.org/browse/MNG-3725
> Project: Maven 2
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Environment: Maven version: 2.0.9
> Java version: 1.5.0_13
> OS name: "mac os x" version: "10.5.4" arch: "ppc" Family: "unix"
> Reporter: Graham Leggett
> Fix For: 3.x
>
>
> When an attempt is made to override the version of torque-templates used by the maven-torque-plugin as below, maven still tries to use the original version of the torque-templates jar. The overridden jar is ignored.
> According to http://jira.codehaus.org/browse/MNG-2972, this behaviour used to be broken in maven v2.0.8 and earlier, and was apparently fixed. This doesn't seem to be the case though.
> The configuration looks like this:
> <plugin>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-maven-plugin</artifactId>
> <version>3.3</version>
> <dependencies>
> <dependency>
> <groupId>org.apache.derby</groupId>
> <artifactId>derby</artifactId>
> <version>10.4.1.3</version>
> </dependency>
> <dependency>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-templates</artifactId>
> <version>3.3.1</version>
> </dependency>
> </dependencies>
> </plugin>
> The original torque-templates jar is v3.3. The overridden torque-templates jar is v3.3.1.
> As the plugin gives no clues as to which version is being used, I deleted the original torque-templates v3.3 release from the local repository. What I expected to see was maven ignoring the v3.3 jar and using the v3.3.1 jar instead, but maven tries to re-download the v3.3 release and use it instead.
> maven-torque-plugin depends on torque-gen, which in turn depends on torque-templates. It may be that direct plugin dependencies can be overridden, but transitive plugin dependencies cannot be overridden.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-3725) Cannot override plugin dependencies in
maven 2.0.9
Posted by "Graham Leggett (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145799#action_145799 ]
Graham Leggett commented on MNG-3725:
-------------------------------------
Further testing:
If an attempt is made to make a private release of torque-generator, which depends on the private release of torque-templates (which needs to be overridden), and if the maven-torque-plugin is told to override torque-generator, the override works.
>From this, it looks like it is possible to override a direct plugin dependency, but it is not possible to override a transitive plugin dependency.
> Cannot override plugin dependencies in maven 2.0.9
> --------------------------------------------------
>
> Key: MNG-3725
> URL: http://jira.codehaus.org/browse/MNG-3725
> Project: Maven 2
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Environment: Maven version: 2.0.9
> Java version: 1.5.0_13
> OS name: "mac os x" version: "10.5.4" arch: "ppc" Family: "unix"
> Reporter: Graham Leggett
>
> When an attempt is made to override the version of torque-templates used by the maven-torque-plugin as below, maven still tries to use the original version of the torque-templates jar. The overridden jar is ignored.
> According to http://jira.codehaus.org/browse/MNG-2972, this behaviour used to be broken in maven v2.0.8 and earlier, and was apparently fixed. This doesn't seem to be the case though.
> The configuration looks like this:
> <plugin>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-maven-plugin</artifactId>
> <version>3.3</version>
> <dependencies>
> <dependency>
> <groupId>org.apache.derby</groupId>
> <artifactId>derby</artifactId>
> <version>10.4.1.3</version>
> </dependency>
> <dependency>
> <groupId>org.apache.torque</groupId>
> <artifactId>torque-templates</artifactId>
> <version>3.3.1</version>
> </dependency>
> </dependencies>
> </plugin>
> The original torque-templates jar is v3.3. The overridden torque-templates jar is v3.3.1.
> As the plugin gives no clues as to which version is being used, I deleted the original torque-templates v3.3 release from the local repository. What I expected to see was maven ignoring the v3.3 jar and using the v3.3.1 jar instead, but maven tries to re-download the v3.3 release and use it instead.
> maven-torque-plugin depends on torque-gen, which in turn depends on torque-templates. It may be that direct plugin dependencies can be overridden, but transitive plugin dependencies cannot be overridden.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira