You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Ingo Weichsel (JIRA)" <ji...@codehaus.org> on 2005/11/03 14:30:06 UTC

[jira] Created: (MNG-1408) filesetId does not contain all dependencies when artifact was not yet locally installed

filesetId does not contain all dependencies when artifact was not yet locally installed
---------------------------------------------------------------------------------------

         Key: MNG-1408
         URL: http://jira.codehaus.org/browse/MNG-1408
     Project: Maven 2
        Type: Bug
  Components: maven-artifact-ant  
    Versions: 2.0    
 Environment: java version "1.4.2_04", Linux 2.6.11.12, Apache Ant version 1.6.5
    Reporter: Ingo Weichsel


In the artifact:dependencies task the filesetId is only correctly set, when the artifact was installed locally before running ant. 

After deletion of the local repository the dependant artifacts will be downloaded to the local repository, but only one of two dependant files will be included in the ant fileset. The classpath is set correctly.

After running "mvn install" locally for the "as-base-launcher" maven project, ant computes the correct filesetId.

The ant-project depends on the artifact "as-base-launcher" which itselfs depends only on classworlds. Snippets from ant buildfiles, poms and ant output follows:

>From the ant buildfile:

<target name="launcherJAR" depends="init">
<artifact:pom id="as-base.project" file="../poms/as-base.xml" />										
<artifact:dependencies  filesetId="as-launcher.fileset" pathId="as-launcher.classpath" verbose="true">
	<pom refid="as-base.project"/>
	<remoteRepository refid="actisRepository" />
</artifact:dependencies>

<pathconvert property="mypath" targetos="unix">
	<path>
		<path refid="as-launcher.classpath" />
	</path>
</pathconvert>
<echo message="CLASSPATH: ${mypath}"/>

<pathconvert property="myset" targetos="unix">
	<path>
		<fileset refid="as-launcher.fileset"/>
	</path>
</pathconvert>
<echo message="FILESET: ${myset}"/>
</target>


The referenced POM defining the ant dependencies:

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>actis</groupId>
  <artifactId>ant-as-base</artifactId>
  <version>1.0-SNAPSHOT</version>
  <dependencies>
    <dependency>
      <groupId>actis</groupId>
      <artifactId>as-base-launcher</artifactId>
      <version>1.0-SNAPSHOT</version>
    </dependency>
  </dependencies>
  <repositories>
    <repository>
	<id>actisRepository</id>
	<name>actisRepository</name>
	<url>http://company.com:9999/repository/</url>
    </repository>
  </repositories>
</project>


Output of the ant run:

launcherJAR:
actis:ant-as-base:jar:1.0-SNAPSHOT (selected)
  actis:as-base-launcher:jar:1.0-SNAPSHOT (selected)
    classworlds:classworlds:jar:1.1-alpha-1 (selected)
     [echo] CLASSPATH: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar:/home/iwe/.m2/repository/actis/as-base-launcher/1.0-20051103.102305-8/as-base-launcher-1.0-20051103.102305-8.jar
     [echo] FILESET: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1408) filesetId does not contain all dependencies when artifact was not yet locally installed

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1408?page=all ]

John Casey updated MNG-1408:
----------------------------

    Fix Version:     (was: 2.0.1)
                 2.0.2

> filesetId does not contain all dependencies when artifact was not yet locally installed
> ---------------------------------------------------------------------------------------
>
>          Key: MNG-1408
>          URL: http://jira.codehaus.org/browse/MNG-1408
>      Project: Maven 2
>         Type: Bug
>   Components: Ant tasks
>     Versions: 2.0
>  Environment: java version "1.4.2_04", Linux 2.6.11.12, Apache Ant version 1.6.5
>     Reporter: Ingo Weichsel
>      Fix For: 2.0.2

>
>
> In the artifact:dependencies task the filesetId is only correctly set, when the artifact was installed locally before running ant. 
> After deletion of the local repository the dependant artifacts will be downloaded to the local repository, but only one of two dependant files will be included in the ant fileset. The classpath is set correctly.
> After running "mvn install" locally for the "as-base-launcher" maven project, ant computes the correct filesetId.
> The ant-project depends on the artifact "as-base-launcher" which itselfs depends only on classworlds. Snippets from ant buildfiles, poms and ant output follows:
> From the ant buildfile:
> <target name="launcherJAR" depends="init">
> <artifact:pom id="as-base.project" file="../poms/as-base.xml" />										
> <artifact:dependencies  filesetId="as-launcher.fileset" pathId="as-launcher.classpath" verbose="true">
> 	<pom refid="as-base.project"/>
> 	<remoteRepository refid="actisRepository" />
> </artifact:dependencies>
> <pathconvert property="mypath" targetos="unix">
> 	<path>
> 		<path refid="as-launcher.classpath" />
> 	</path>
> </pathconvert>
> <echo message="CLASSPATH: ${mypath}"/>
> <pathconvert property="myset" targetos="unix">
> 	<path>
> 		<fileset refid="as-launcher.fileset"/>
> 	</path>
> </pathconvert>
> <echo message="FILESET: ${myset}"/>
> </target>
> The referenced POM defining the ant dependencies:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>actis</groupId>
>   <artifactId>ant-as-base</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>actis</groupId>
>       <artifactId>as-base-launcher</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>   </dependencies>
>   <repositories>
>     <repository>
> 	<id>actisRepository</id>
> 	<name>actisRepository</name>
> 	<url>http://company.com:9999/repository/</url>
>     </repository>
>   </repositories>
> </project>
> Output of the ant run:
> launcherJAR:
> actis:ant-as-base:jar:1.0-SNAPSHOT (selected)
>   actis:as-base-launcher:jar:1.0-SNAPSHOT (selected)
>     classworlds:classworlds:jar:1.1-alpha-1 (selected)
>      [echo] CLASSPATH: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar:/home/iwe/.m2/repository/actis/as-base-launcher/1.0-20051103.102305-8/as-base-launcher-1.0-20051103.102305-8.jar
>      [echo] FILESET: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1408) filesetId does not contain all dependencies when artifact was not yet locally installed

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1408?page=all ]

Jason van Zyl updated MNG-1408:
-------------------------------

    Fix Version:     (was: 2.0.3)
                 2.0.4

> filesetId does not contain all dependencies when artifact was not yet locally installed
> ---------------------------------------------------------------------------------------
>
>          Key: MNG-1408
>          URL: http://jira.codehaus.org/browse/MNG-1408
>      Project: Maven 2
>         Type: Bug

>   Components: Ant tasks
>     Versions: 2.0
>  Environment: java version "1.4.2_04", Linux 2.6.11.12, Apache Ant version 1.6.5
>     Reporter: Ingo Weichsel
>      Fix For: 2.0.4
>  Attachments: patch.txt
>
>
> In the artifact:dependencies task the filesetId is only correctly set, when the artifact was installed locally before running ant. 
> After deletion of the local repository the dependant artifacts will be downloaded to the local repository, but only one of two dependant files will be included in the ant fileset. The classpath is set correctly.
> After running "mvn install" locally for the "as-base-launcher" maven project, ant computes the correct filesetId.
> The ant-project depends on the artifact "as-base-launcher" which itselfs depends only on classworlds. Snippets from ant buildfiles, poms and ant output follows:
> From the ant buildfile:
> <target name="launcherJAR" depends="init">
> <artifact:pom id="as-base.project" file="../poms/as-base.xml" />										
> <artifact:dependencies  filesetId="as-launcher.fileset" pathId="as-launcher.classpath" verbose="true">
> 	<pom refid="as-base.project"/>
> 	<remoteRepository refid="actisRepository" />
> </artifact:dependencies>
> <pathconvert property="mypath" targetos="unix">
> 	<path>
> 		<path refid="as-launcher.classpath" />
> 	</path>
> </pathconvert>
> <echo message="CLASSPATH: ${mypath}"/>
> <pathconvert property="myset" targetos="unix">
> 	<path>
> 		<fileset refid="as-launcher.fileset"/>
> 	</path>
> </pathconvert>
> <echo message="FILESET: ${myset}"/>
> </target>
> The referenced POM defining the ant dependencies:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>actis</groupId>
>   <artifactId>ant-as-base</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>actis</groupId>
>       <artifactId>as-base-launcher</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>   </dependencies>
>   <repositories>
>     <repository>
> 	<id>actisRepository</id>
> 	<name>actisRepository</name>
> 	<url>http://company.com:9999/repository/</url>
>     </repository>
>   </repositories>
> </project>
> Output of the ant run:
> launcherJAR:
> actis:ant-as-base:jar:1.0-SNAPSHOT (selected)
>   actis:as-base-launcher:jar:1.0-SNAPSHOT (selected)
>     classworlds:classworlds:jar:1.1-alpha-1 (selected)
>      [echo] CLASSPATH: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar:/home/iwe/.m2/repository/actis/as-base-launcher/1.0-20051103.102305-8/as-base-launcher-1.0-20051103.102305-8.jar
>      [echo] FILESET: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1408) filesetId does not contain all dependencies when artifact was not yet locally installed

Posted by "Steve Metcalfe (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1408?page=comments#action_50308 ] 

Steve Metcalfe commented on MNG-1408:
-------------------------------------

I've had this problem too. Here's what i've found:
Line 207 of DependenciesTask: filename = localRepo.pathOf(artifact)

Returns (in my case):
orange-portal/search-service/1.0-20051107.144552-1/search-service-1.0-20051107.144552-1.jar

However the location of the jar that has been downloaded by the resolver is:
orange-portal/search-service/1.0-SNAPSHOT/search-service-1.0-20051107.144552-1.jar

> filesetId does not contain all dependencies when artifact was not yet locally installed
> ---------------------------------------------------------------------------------------
>
>          Key: MNG-1408
>          URL: http://jira.codehaus.org/browse/MNG-1408
>      Project: Maven 2
>         Type: Bug
>   Components: maven-artifact-ant
>     Versions: 2.0
>  Environment: java version "1.4.2_04", Linux 2.6.11.12, Apache Ant version 1.6.5
>     Reporter: Ingo Weichsel
>      Fix For: 2.0.1

>
>
> In the artifact:dependencies task the filesetId is only correctly set, when the artifact was installed locally before running ant. 
> After deletion of the local repository the dependant artifacts will be downloaded to the local repository, but only one of two dependant files will be included in the ant fileset. The classpath is set correctly.
> After running "mvn install" locally for the "as-base-launcher" maven project, ant computes the correct filesetId.
> The ant-project depends on the artifact "as-base-launcher" which itselfs depends only on classworlds. Snippets from ant buildfiles, poms and ant output follows:
> From the ant buildfile:
> <target name="launcherJAR" depends="init">
> <artifact:pom id="as-base.project" file="../poms/as-base.xml" />										
> <artifact:dependencies  filesetId="as-launcher.fileset" pathId="as-launcher.classpath" verbose="true">
> 	<pom refid="as-base.project"/>
> 	<remoteRepository refid="actisRepository" />
> </artifact:dependencies>
> <pathconvert property="mypath" targetos="unix">
> 	<path>
> 		<path refid="as-launcher.classpath" />
> 	</path>
> </pathconvert>
> <echo message="CLASSPATH: ${mypath}"/>
> <pathconvert property="myset" targetos="unix">
> 	<path>
> 		<fileset refid="as-launcher.fileset"/>
> 	</path>
> </pathconvert>
> <echo message="FILESET: ${myset}"/>
> </target>
> The referenced POM defining the ant dependencies:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>actis</groupId>
>   <artifactId>ant-as-base</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>actis</groupId>
>       <artifactId>as-base-launcher</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>   </dependencies>
>   <repositories>
>     <repository>
> 	<id>actisRepository</id>
> 	<name>actisRepository</name>
> 	<url>http://company.com:9999/repository/</url>
>     </repository>
>   </repositories>
> </project>
> Output of the ant run:
> launcherJAR:
> actis:ant-as-base:jar:1.0-SNAPSHOT (selected)
>   actis:as-base-launcher:jar:1.0-SNAPSHOT (selected)
>     classworlds:classworlds:jar:1.1-alpha-1 (selected)
>      [echo] CLASSPATH: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar:/home/iwe/.m2/repository/actis/as-base-launcher/1.0-20051103.102305-8/as-base-launcher-1.0-20051103.102305-8.jar
>      [echo] FILESET: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1408) filesetId does not contain all dependencies when artifact was not yet locally installed

Posted by "Michael Hartmeier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1408?page=all ]

Michael Hartmeier updated MNG-1408:
-----------------------------------

    Attachment: patch.txt

> filesetId does not contain all dependencies when artifact was not yet locally installed
> ---------------------------------------------------------------------------------------
>
>          Key: MNG-1408
>          URL: http://jira.codehaus.org/browse/MNG-1408
>      Project: Maven 2
>         Type: Bug

>   Components: Ant tasks
>     Versions: 2.0
>  Environment: java version "1.4.2_04", Linux 2.6.11.12, Apache Ant version 1.6.5
>     Reporter: Ingo Weichsel
>      Fix For: 2.0.3
>  Attachments: patch.txt
>
>
> In the artifact:dependencies task the filesetId is only correctly set, when the artifact was installed locally before running ant. 
> After deletion of the local repository the dependant artifacts will be downloaded to the local repository, but only one of two dependant files will be included in the ant fileset. The classpath is set correctly.
> After running "mvn install" locally for the "as-base-launcher" maven project, ant computes the correct filesetId.
> The ant-project depends on the artifact "as-base-launcher" which itselfs depends only on classworlds. Snippets from ant buildfiles, poms and ant output follows:
> From the ant buildfile:
> <target name="launcherJAR" depends="init">
> <artifact:pom id="as-base.project" file="../poms/as-base.xml" />										
> <artifact:dependencies  filesetId="as-launcher.fileset" pathId="as-launcher.classpath" verbose="true">
> 	<pom refid="as-base.project"/>
> 	<remoteRepository refid="actisRepository" />
> </artifact:dependencies>
> <pathconvert property="mypath" targetos="unix">
> 	<path>
> 		<path refid="as-launcher.classpath" />
> 	</path>
> </pathconvert>
> <echo message="CLASSPATH: ${mypath}"/>
> <pathconvert property="myset" targetos="unix">
> 	<path>
> 		<fileset refid="as-launcher.fileset"/>
> 	</path>
> </pathconvert>
> <echo message="FILESET: ${myset}"/>
> </target>
> The referenced POM defining the ant dependencies:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>actis</groupId>
>   <artifactId>ant-as-base</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>actis</groupId>
>       <artifactId>as-base-launcher</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>   </dependencies>
>   <repositories>
>     <repository>
> 	<id>actisRepository</id>
> 	<name>actisRepository</name>
> 	<url>http://company.com:9999/repository/</url>
>     </repository>
>   </repositories>
> </project>
> Output of the ant run:
> launcherJAR:
> actis:ant-as-base:jar:1.0-SNAPSHOT (selected)
>   actis:as-base-launcher:jar:1.0-SNAPSHOT (selected)
>     classworlds:classworlds:jar:1.1-alpha-1 (selected)
>      [echo] CLASSPATH: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar:/home/iwe/.m2/repository/actis/as-base-launcher/1.0-20051103.102305-8/as-base-launcher-1.0-20051103.102305-8.jar
>      [echo] FILESET: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1408) filesetId does not contain all dependencies when artifact was not yet locally installed

Posted by "Charles Paclat (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1408?page=comments#action_58815 ] 

Charles Paclat commented on MNG-1408:
-------------------------------------

I was seeing a similar problem when using the ant tasks.  It seemed to me that the problem maybe somewhat further down the stack in that it when creating the new filename it was using the "baseVersion" and that was returning the timestamped version and not the actual base version.  Applied the work around and it appeared to work for me as well though it did not seem like that was the correct fix for the problem...

> filesetId does not contain all dependencies when artifact was not yet locally installed
> ---------------------------------------------------------------------------------------
>
>          Key: MNG-1408
>          URL: http://jira.codehaus.org/browse/MNG-1408
>      Project: Maven 2
>         Type: Bug

>   Components: Ant tasks
>     Versions: 2.0
>  Environment: java version "1.4.2_04", Linux 2.6.11.12, Apache Ant version 1.6.5
>     Reporter: Ingo Weichsel
>      Fix For: 2.0.4
>  Attachments: patch.txt
>
>
> In the artifact:dependencies task the filesetId is only correctly set, when the artifact was installed locally before running ant. 
> After deletion of the local repository the dependant artifacts will be downloaded to the local repository, but only one of two dependant files will be included in the ant fileset. The classpath is set correctly.
> After running "mvn install" locally for the "as-base-launcher" maven project, ant computes the correct filesetId.
> The ant-project depends on the artifact "as-base-launcher" which itselfs depends only on classworlds. Snippets from ant buildfiles, poms and ant output follows:
> From the ant buildfile:
> <target name="launcherJAR" depends="init">
> <artifact:pom id="as-base.project" file="../poms/as-base.xml" />										
> <artifact:dependencies  filesetId="as-launcher.fileset" pathId="as-launcher.classpath" verbose="true">
> 	<pom refid="as-base.project"/>
> 	<remoteRepository refid="actisRepository" />
> </artifact:dependencies>
> <pathconvert property="mypath" targetos="unix">
> 	<path>
> 		<path refid="as-launcher.classpath" />
> 	</path>
> </pathconvert>
> <echo message="CLASSPATH: ${mypath}"/>
> <pathconvert property="myset" targetos="unix">
> 	<path>
> 		<fileset refid="as-launcher.fileset"/>
> 	</path>
> </pathconvert>
> <echo message="FILESET: ${myset}"/>
> </target>
> The referenced POM defining the ant dependencies:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>actis</groupId>
>   <artifactId>ant-as-base</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>actis</groupId>
>       <artifactId>as-base-launcher</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>   </dependencies>
>   <repositories>
>     <repository>
> 	<id>actisRepository</id>
> 	<name>actisRepository</name>
> 	<url>http://company.com:9999/repository/</url>
>     </repository>
>   </repositories>
> </project>
> Output of the ant run:
> launcherJAR:
> actis:ant-as-base:jar:1.0-SNAPSHOT (selected)
>   actis:as-base-launcher:jar:1.0-SNAPSHOT (selected)
>     classworlds:classworlds:jar:1.1-alpha-1 (selected)
>      [echo] CLASSPATH: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar:/home/iwe/.m2/repository/actis/as-base-launcher/1.0-20051103.102305-8/as-base-launcher-1.0-20051103.102305-8.jar
>      [echo] FILESET: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1408) filesetId does not contain all dependencies when artifact was not yet locally installed

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1408?page=all ]

Brett Porter updated MNG-1408:
------------------------------

    Fix Version: 2.0.1

> filesetId does not contain all dependencies when artifact was not yet locally installed
> ---------------------------------------------------------------------------------------
>
>          Key: MNG-1408
>          URL: http://jira.codehaus.org/browse/MNG-1408
>      Project: Maven 2
>         Type: Bug
>   Components: maven-artifact-ant
>     Versions: 2.0
>  Environment: java version "1.4.2_04", Linux 2.6.11.12, Apache Ant version 1.6.5
>     Reporter: Ingo Weichsel
>      Fix For: 2.0.1

>
>
> In the artifact:dependencies task the filesetId is only correctly set, when the artifact was installed locally before running ant. 
> After deletion of the local repository the dependant artifacts will be downloaded to the local repository, but only one of two dependant files will be included in the ant fileset. The classpath is set correctly.
> After running "mvn install" locally for the "as-base-launcher" maven project, ant computes the correct filesetId.
> The ant-project depends on the artifact "as-base-launcher" which itselfs depends only on classworlds. Snippets from ant buildfiles, poms and ant output follows:
> From the ant buildfile:
> <target name="launcherJAR" depends="init">
> <artifact:pom id="as-base.project" file="../poms/as-base.xml" />										
> <artifact:dependencies  filesetId="as-launcher.fileset" pathId="as-launcher.classpath" verbose="true">
> 	<pom refid="as-base.project"/>
> 	<remoteRepository refid="actisRepository" />
> </artifact:dependencies>
> <pathconvert property="mypath" targetos="unix">
> 	<path>
> 		<path refid="as-launcher.classpath" />
> 	</path>
> </pathconvert>
> <echo message="CLASSPATH: ${mypath}"/>
> <pathconvert property="myset" targetos="unix">
> 	<path>
> 		<fileset refid="as-launcher.fileset"/>
> 	</path>
> </pathconvert>
> <echo message="FILESET: ${myset}"/>
> </target>
> The referenced POM defining the ant dependencies:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>actis</groupId>
>   <artifactId>ant-as-base</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>actis</groupId>
>       <artifactId>as-base-launcher</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>   </dependencies>
>   <repositories>
>     <repository>
> 	<id>actisRepository</id>
> 	<name>actisRepository</name>
> 	<url>http://company.com:9999/repository/</url>
>     </repository>
>   </repositories>
> </project>
> Output of the ant run:
> launcherJAR:
> actis:ant-as-base:jar:1.0-SNAPSHOT (selected)
>   actis:as-base-launcher:jar:1.0-SNAPSHOT (selected)
>     classworlds:classworlds:jar:1.1-alpha-1 (selected)
>      [echo] CLASSPATH: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar:/home/iwe/.m2/repository/actis/as-base-launcher/1.0-20051103.102305-8/as-base-launcher-1.0-20051103.102305-8.jar
>      [echo] FILESET: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org