maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Harvey (JIRA)" <j...@codehaus.org>
Subject [jira] (MDEP-474) Overriding the tomcat-maven-plugin dependencies to 7.0.53 does not get picked up by dependency:resolve-plugins
Date Thu, 04 Dec 2014 20:29:10 GMT

     [ https://jira.codehaus.org/browse/MDEP-474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John Harvey updated MDEP-474:
-----------------------------

    Description: 
ENVIRONMENT:

Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T16:58:10-04:00)
Maven home: /opt/apache-maven-3.2.3
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"

DESCRIPTION:

I'm overriding the maven-tomcat-plugin with the 7.0.53 version of its dependencies (instead
of the standard 7.0.47 dependency as noted in the poms), but dependency:resolve-plugins says
it's not working.  After testing tomcat, it seems the 7.0.53 version is indeed picked up,
but the resolve-plugins task is erroneously reporting 7.0.47 is still what's being used.

Here's a test pom (also attached to the ticket to preserve formatting):
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
 
    <groupId>com.tomcattest</groupId>
    <artifactId>test</artifactId>
    <version>1.0-SNAPSHOT</version>
 
    <properties>
        <tomcat.version>7.0.53</tomcat.version>
    </properties>
 
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.2</version>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.tomcat.embed</groupId>
                        <artifactId>tomcat-embed-core</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-util</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-coyote</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-api</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-jdbc</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-dbcp</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-servlet-api</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-jsp-api</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-jasper</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-jasper-el</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-el-api</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-catalina</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-tribes</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-catalina-ha</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-annotations-api</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-juli</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat.embed</groupId>
                        <artifactId>tomcat-embed-logging-juli</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomcat.embed</groupId>
                        <artifactId>tomcat-embed-logging-log4j</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>
</project>

Command:
mvn dependency:resolve-plugins

Output:
[INFO] Plugin Resolved: tomcat7-maven-plugin-2.2.jar
[INFO]     Plugin Dependency Resolved: tomcat-embed-core-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-util-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-coyote-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-api-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-jdbc-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-dbcp-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-servlet-api-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-jsp-api-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-jasper-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-jasper-el-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-el-api-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-catalina-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-tribes-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-catalina-ha-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-annotations-api-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-juli-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-embed-logging-juli-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-embed-logging-log4j-7.0.47.jar
...


  was:
ENVIRONMENT:

Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T16:58:10-04:00)
Maven home: /opt/apache-maven-3.2.3
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"

DESCRIPTION:

I'm trying to override the maven-tomcat-plugin with the 7.0.53 version of tomcat, but dependency:resolve-plugins
says it's not working.  I'm not sure if there is a bug with the tomcat plugin, or if the resolve-plugins
part of the dependency plugin is simply reporting incorrect data.

Here's a test pom:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
 
    <groupId>com.tomcattest</groupId>
    <artifactId>test</artifactId>
    <version>1.0-SNAPSHOT</version>
 
    <properties>
        <tomcat.version>7.0.53</tomcat.version>
    </properties>
 
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.2</version>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.tomcat.embed</groupId>
                        <artifactId>tomcat-embed-core</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-util</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-coyote</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-api</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-jdbc</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-dbcp</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-servlet-api</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-jsp-api</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-jasper</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-jasper-el</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-el-api</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-catalina</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-tribes</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-catalina-ha</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-annotations-api</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-juli</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
 
                    <dependency>
                        <groupId>org.apache.tomcat.embed</groupId>
                        <artifactId>tomcat-embed-logging-juli</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomcat.embed</groupId>
                        <artifactId>tomcat-embed-logging-log4j</artifactId>
                        <version>${tomcat.version}</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>
</project>

Command:
mvn dependency:resolve-plugins

Output:
[INFO] Plugin Resolved: tomcat7-maven-plugin-2.2.jar
[INFO]     Plugin Dependency Resolved: tomcat-embed-core-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-util-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-coyote-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-api-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-jdbc-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-dbcp-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-servlet-api-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-jsp-api-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-jasper-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-jasper-el-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-el-api-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-catalina-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-tribes-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-catalina-ha-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-annotations-api-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-juli-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-embed-logging-juli-7.0.47.jar
[INFO]     Plugin Dependency Resolved: tomcat-embed-logging-log4j-7.0.47.jar
...


> Overriding the tomcat-maven-plugin dependencies to 7.0.53 does not get picked up by dependency:resolve-plugins
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MDEP-474
>                 URL: https://jira.codehaus.org/browse/MDEP-474
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: resolve-plugins
>    Affects Versions: 2.8
>            Reporter: John Harvey
>         Attachments: pom.xml
>
>
> ENVIRONMENT:
> Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T16:58:10-04:00)
> Maven home: /opt/apache-maven-3.2.3
> Java version: 1.7.0_71, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"
> DESCRIPTION:
> I'm overriding the maven-tomcat-plugin with the 7.0.53 version of its dependencies (instead
of the standard 7.0.47 dependency as noted in the poms), but dependency:resolve-plugins says
it's not working.  After testing tomcat, it seems the 7.0.53 version is indeed picked up,
but the resolve-plugins task is erroneously reporting 7.0.47 is still what's being used.
> Here's a test pom (also attached to the ticket to preserve formatting):
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>  
>     <groupId>com.tomcattest</groupId>
>     <artifactId>test</artifactId>
>     <version>1.0-SNAPSHOT</version>
>  
>     <properties>
>         <tomcat.version>7.0.53</tomcat.version>
>     </properties>
>  
>     <build>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.2</version>
>                 <dependencies>
>                     <dependency>
>                         <groupId>org.apache.tomcat.embed</groupId>
>                         <artifactId>tomcat-embed-core</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-util</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-coyote</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-api</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-jdbc</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-dbcp</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-servlet-api</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-jsp-api</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-jasper</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-jasper-el</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-el-api</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-catalina</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-tribes</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-catalina-ha</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-annotations-api</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat</groupId>
>                         <artifactId>tomcat-juli</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>  
>                     <dependency>
>                         <groupId>org.apache.tomcat.embed</groupId>
>                         <artifactId>tomcat-embed-logging-juli</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>                     <dependency>
>                         <groupId>org.apache.tomcat.embed</groupId>
>                         <artifactId>tomcat-embed-logging-log4j</artifactId>
>                         <version>${tomcat.version}</version>
>                     </dependency>
>                 </dependencies>
>             </plugin>
>         </plugins>
>     </build>
> </project>
> Command:
> mvn dependency:resolve-plugins
> Output:
> [INFO] Plugin Resolved: tomcat7-maven-plugin-2.2.jar
> [INFO]     Plugin Dependency Resolved: tomcat-embed-core-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-util-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-coyote-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-api-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-jdbc-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-dbcp-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-servlet-api-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-jsp-api-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-jasper-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-jasper-el-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-el-api-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-catalina-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-tribes-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-catalina-ha-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-annotations-api-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-juli-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-embed-logging-juli-7.0.47.jar
> [INFO]     Plugin Dependency Resolved: tomcat-embed-logging-log4j-7.0.47.jar
> ...



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message