You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "James Walker (JIRA)" <ji...@codehaus.org> on 2008/04/27 04:54:47 UTC

[jira] Created: (MDEP-164) dependency:copy-dependencies does honour 'copyPom'

dependency:copy-dependencies does honour 'copyPom'
--------------------------------------------------

                 Key: MDEP-164
                 URL: http://jira.codehaus.org/browse/MDEP-164
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: copy-dependencies
    Affects Versions: 2.0-alpha-4
            Reporter: James Walker
            Assignee: Brian Fox


Configure the pom as follows:
{quote}
<build>
...
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>2.0-alpha-4</version>
          <configuration>
            <copyPom>true</copyPom>
            <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
            <outputDirectory>lib</outputDirectory>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
...
{quote}

Running:
{quote}
   mvn dependency:copy-dependencies 
{quote}
will copy the dependent jars but not their pom files.  Adding configuration to use the repository layout doesn't fix the problem.



-- 
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: (MDEP-164) dependency:copy-dependencies does not honour 'copyPom'

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Gier updated MDEP-164:
---------------------------

         Assignee: Paul Gier  (was: Brian Fox)
    Fix Version/s: 2.2

> dependency:copy-dependencies does not honour 'copyPom'
> ------------------------------------------------------
>
>                 Key: MDEP-164
>                 URL: http://jira.codehaus.org/browse/MDEP-164
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: James Walker
>            Assignee: Paul Gier
>             Fix For: 2.2
>
>
> Configure the pom as follows:
> {quote}
> <build>
> ...
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-dependency-plugin</artifactId>
>           <version>2.0-alpha-4</version>
>           <configuration>
>             <copyPom>true</copyPom>
>             <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
>             <outputDirectory>lib</outputDirectory>
>           </configuration>
>         </plugin>
>       </plugins>
>     </pluginManagement>
> ...
> {quote}
> Running:
> {quote}
>    mvn dependency:copy-dependencies 
> {quote}
> will copy the dependent jars but not their pom files.  Adding configuration to use the repository layout doesn't fix the problem.

-- 
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: (MDEP-164) dependency:copy-dependencies does not honour 'copyPom'

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189862#action_189862 ] 

Paul Gier commented on MDEP-164:
--------------------------------

Looks like the plugin does not copy poms if the jar files already exist.  To reproduce this, run copy-dependencies once with copyPoms not set or set to false.  Then run copy-dependencies with copyPom set to "true" and the Poms are not copied.

> dependency:copy-dependencies does not honour 'copyPom'
> ------------------------------------------------------
>
>                 Key: MDEP-164
>                 URL: http://jira.codehaus.org/browse/MDEP-164
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: James Walker
>            Assignee: Brian Fox
>
> Configure the pom as follows:
> {quote}
> <build>
> ...
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-dependency-plugin</artifactId>
>           <version>2.0-alpha-4</version>
>           <configuration>
>             <copyPom>true</copyPom>
>             <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
>             <outputDirectory>lib</outputDirectory>
>           </configuration>
>         </plugin>
>       </plugins>
>     </pluginManagement>
> ...
> {quote}
> Running:
> {quote}
>    mvn dependency:copy-dependencies 
> {quote}
> will copy the dependent jars but not their pom files.  Adding configuration to use the repository layout doesn't fix the problem.

-- 
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: (MDEP-164) dependency:copy-dependencies does honour 'copyPom'

Posted by "James Walker (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=132763#action_132763 ] 

James Walker commented on MDEP-164:
-----------------------------------

title should have been "does *NOT* honour" - sorry.


> dependency:copy-dependencies does honour 'copyPom'
> --------------------------------------------------
>
>                 Key: MDEP-164
>                 URL: http://jira.codehaus.org/browse/MDEP-164
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: James Walker
>            Assignee: Brian Fox
>
> Configure the pom as follows:
> {quote}
> <build>
> ...
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-dependency-plugin</artifactId>
>           <version>2.0-alpha-4</version>
>           <configuration>
>             <copyPom>true</copyPom>
>             <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
>             <outputDirectory>lib</outputDirectory>
>           </configuration>
>         </plugin>
>       </plugins>
>     </pluginManagement>
> ...
> {quote}
> Running:
> {quote}
>    mvn dependency:copy-dependencies 
> {quote}
> will copy the dependent jars but not their pom files.  Adding configuration to use the repository layout doesn't fix the problem.

-- 
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: (MDEP-164) dependency:copy-dependencies does not honour 'copyPom'

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Gier closed MDEP-164.
--------------------------

    Resolution: Fixed

Fixed in [r813560|http://svn.apache.org/viewvc?view=rev&revision=813560]

> dependency:copy-dependencies does not honour 'copyPom'
> ------------------------------------------------------
>
>                 Key: MDEP-164
>                 URL: http://jira.codehaus.org/browse/MDEP-164
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: James Walker
>            Assignee: Paul Gier
>             Fix For: 2.2
>
>
> Configure the pom as follows:
> {quote}
> <build>
> ...
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-dependency-plugin</artifactId>
>           <version>2.0-alpha-4</version>
>           <configuration>
>             <copyPom>true</copyPom>
>             <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
>             <outputDirectory>lib</outputDirectory>
>           </configuration>
>         </plugin>
>       </plugins>
>     </pluginManagement>
> ...
> {quote}
> Running:
> {quote}
>    mvn dependency:copy-dependencies 
> {quote}
> will copy the dependent jars but not their pom files.  Adding configuration to use the repository layout doesn't fix the problem.

-- 
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: (MDEP-164) dependency:copy-dependencies does not honour 'copyPom'

Posted by "Sonia L (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=270401#comment-270401 ] 

Sonia L commented on MDEP-164:
------------------------------

I also have the same issue:
When running 'mvn org.apache.maven.plugins:maven-dependency-plugin:2.2:copy-dependencies -DoutputDirectory=/proj/solo -DuseRepositoryLayout=true'

It does not copy the POMs nor does it respect the repository layout!!!


> dependency:copy-dependencies does not honour 'copyPom'
> ------------------------------------------------------
>
>                 Key: MDEP-164
>                 URL: http://jira.codehaus.org/browse/MDEP-164
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: James Walker
>            Assignee: Paul Gier
>             Fix For: 2.2
>
>
> Configure the pom as follows:
> {quote}
> <build>
> ...
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-dependency-plugin</artifactId>
>           <version>2.0-alpha-4</version>
>           <configuration>
>             <copyPom>true</copyPom>
>             <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
>             <outputDirectory>lib</outputDirectory>
>           </configuration>
>         </plugin>
>       </plugins>
>     </pluginManagement>
> ...
> {quote}
> Running:
> {quote}
>    mvn dependency:copy-dependencies 
> {quote}
> will copy the dependent jars but not their pom files.  Adding configuration to use the repository layout doesn't fix the problem.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MDEP-164) dependency:copy-dependencies does not honour 'copyPom'

Posted by "Marco Tedone (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=258658#action_258658 ] 

Marco Tedone commented on MDEP-164:
-----------------------------------

Running copy-dependencies 2.2 and still seeing this issue. The command which I run is: mvn -f target/test-classes/root.pom -s target/test-classes/settings.xml dependency:copy-dependencies -DoutputDirectory=C:/Users/mtedone/.m2/dependencies-copy -DcopyPom=true

Jars are copied, poms are not. Even when target folder does not exist.

> dependency:copy-dependencies does not honour 'copyPom'
> ------------------------------------------------------
>
>                 Key: MDEP-164
>                 URL: http://jira.codehaus.org/browse/MDEP-164
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: James Walker
>            Assignee: Paul Gier
>             Fix For: 2.2
>
>
> Configure the pom as follows:
> {quote}
> <build>
> ...
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-dependency-plugin</artifactId>
>           <version>2.0-alpha-4</version>
>           <configuration>
>             <copyPom>true</copyPom>
>             <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
>             <outputDirectory>lib</outputDirectory>
>           </configuration>
>         </plugin>
>       </plugins>
>     </pluginManagement>
> ...
> {quote}
> Running:
> {quote}
>    mvn dependency:copy-dependencies 
> {quote}
> will copy the dependent jars but not their pom files.  Adding configuration to use the repository layout doesn't fix the problem.

-- 
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: (MDEP-164) dependency:copy-dependencies does not honour 'copyPom'

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MDEP-164:
-----------------------------------

    Summary: dependency:copy-dependencies does not honour 'copyPom'  (was: dependency:copy-dependencies does honour 'copyPom')

Updated title.

> dependency:copy-dependencies does not honour 'copyPom'
> ------------------------------------------------------
>
>                 Key: MDEP-164
>                 URL: http://jira.codehaus.org/browse/MDEP-164
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: James Walker
>            Assignee: Brian Fox
>
> Configure the pom as follows:
> {quote}
> <build>
> ...
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-dependency-plugin</artifactId>
>           <version>2.0-alpha-4</version>
>           <configuration>
>             <copyPom>true</copyPom>
>             <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
>             <outputDirectory>lib</outputDirectory>
>           </configuration>
>         </plugin>
>       </plugins>
>     </pluginManagement>
> ...
> {quote}
> Running:
> {quote}
>    mvn dependency:copy-dependencies 
> {quote}
> will copy the dependent jars but not their pom files.  Adding configuration to use the repository layout doesn't fix the problem.

-- 
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: (MDEP-164) dependency:copy-dependencies does not honour 'copyPom'

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=259054#action_259054 ] 

Paul Gier commented on MDEP-164:
--------------------------------

Marco, can you open a new jira issue, and attach a test case for the problem you are seeing?

> dependency:copy-dependencies does not honour 'copyPom'
> ------------------------------------------------------
>
>                 Key: MDEP-164
>                 URL: http://jira.codehaus.org/browse/MDEP-164
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: James Walker
>            Assignee: Paul Gier
>             Fix For: 2.2
>
>
> Configure the pom as follows:
> {quote}
> <build>
> ...
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-dependency-plugin</artifactId>
>           <version>2.0-alpha-4</version>
>           <configuration>
>             <copyPom>true</copyPom>
>             <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
>             <outputDirectory>lib</outputDirectory>
>           </configuration>
>         </plugin>
>       </plugins>
>     </pluginManagement>
> ...
> {quote}
> Running:
> {quote}
>    mvn dependency:copy-dependencies 
> {quote}
> will copy the dependent jars but not their pom files.  Adding configuration to use the repository layout doesn't fix the problem.

-- 
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: (MDEP-164) dependency:copy-dependencies does not honour 'copyPom'

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138295#action_138295 ] 

Anders Hammar commented on MDEP-164:
------------------------------------

For me copyPom works with copy-dependencies. I'm using v2.0 of the plugin.


> dependency:copy-dependencies does not honour 'copyPom'
> ------------------------------------------------------
>
>                 Key: MDEP-164
>                 URL: http://jira.codehaus.org/browse/MDEP-164
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: James Walker
>            Assignee: Brian Fox
>
> Configure the pom as follows:
> {quote}
> <build>
> ...
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-dependency-plugin</artifactId>
>           <version>2.0-alpha-4</version>
>           <configuration>
>             <copyPom>true</copyPom>
>             <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
>             <outputDirectory>lib</outputDirectory>
>           </configuration>
>         </plugin>
>       </plugins>
>     </pluginManagement>
> ...
> {quote}
> Running:
> {quote}
>    mvn dependency:copy-dependencies 
> {quote}
> will copy the dependent jars but not their pom files.  Adding configuration to use the repository layout doesn't fix the problem.

-- 
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