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 Abley (JIRA)" <ji...@codehaus.org> on 2008/03/11 14:03:28 UTC

[jira] Created: (MASSEMBLY-294) Regression - dependency is skipped?

Regression - dependency is skipped?
-----------------------------------

                 Key: MASSEMBLY-294
                 URL: http://jira.codehaus.org/browse/MASSEMBLY-294
             Project: Maven 2.x Assembly Plugin
          Issue Type: Bug
    Affects Versions: 2.2-beta-2
         Environment: Windows Vista Business, Sun JDK 5
Fedora Core 4, Sun JDK 5
            Reporter: James Abley


There has been a regression between 2.2-beta-1, which was working for us, and 2.2-beta-2, which showed up the problem.

With 2.2-beta-1, we saw the following output.

[INFO] [assembly:directory-inline {execution: create-directories}]
[INFO] Reading assembly descriptor: c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\src\main\assembly\dep.xml
[INFO] Processing DependencySet (output=/applications)
[INFO] Expanding: C:\Users\jabley\.m2\repository\com\example\serviceoptimizer\serviceoptimizer-webapp\1.17-SNAPSHOT\serviceoptimizer-webapp-1.17-SNAPSHOT.war into c:\Users\jabley\
AppData\Local\Temp\archived-file-set.770382062.tmp
[INFO] Processing DependencySet (output=/applications)
[INFO] Expanding: C:\Users\jabley\.m2\repository\com\example\contentrepository\gwt-interface\1.16-SNAPSHOT\gwt-interface-1.16-SNAPSHOT.war into c:\Users\jabley\AppData\Local\Temp\
archived-file-set.1945898079.tmp
[INFO] Processing DependencySet (output=/applications)
[INFO] Copying 1878 files to c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\target\mpinstaller-dependencies.dir
[INFO] [antrun:run {execution: default}]

With 2.2-beta-2, we see the output below.

[INFO] [assembly:directory-inline {execution: create-directories}]
[INFO] Reading assembly descriptor: src/main/assembly/dep.xml
[INFO] Processing DependencySet (output=/applications)
[WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
[INFO] Processing DependencySet (output=/applications)
[WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
[WARNING] Archive: C:\Users\jabley\.m2\repository\com\example\contentrepository\gwt-interface\1.16-SNAPSHOT\gwt-interface-1.16-SNAPSHOT.war has already been added. Skipping.
[WARNING] Archive: C:\Users\jabley\.m2\repository\com\example\serviceoptimizer\serviceoptimizer-webapp\1.17-SNAPSHOT\serviceoptimizer-webapp-1.17-SNAPSHOT.war has already been add
ed. Skipping.
[INFO] Processing DependencySet (output=/applications)
[WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
[INFO] Copying files to c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\target\mpinstaller-dependencies.dir
[INFO] [antrun:run {execution: default}]

I can provide debug output if you think it would be helpful, for both cases.

In my pom.xml

            <!-- Get all of the dependencies for the installer -->
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2-beta-2</version>
                <configuration>
                    <appendAssemblyId>false</appendAssemblyId>
                    <descriptors>
                        <descriptor>
                            src/main/assembly/dep.xml
                        </descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>create-directories</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>directory-inline</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

And in the assembly dep.xml mentioned in the pom.xml

<assembly>
    <id>mpinstaller-dependencies</id>
    <formats>
        <format>zip</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>
    <fileSets>
        <!-- Include release notes and related documentation -->
        <fileSet>
            <directory>src/site</directory>
            <includes>
                <include>RELEASE-NOTES.txt</include>
            </includes>
            <outputDirectory>docs</outputDirectory>
        </fileSet>
    </fileSets>
    <dependencySets>
        <dependencySet>
            <includes>
                <include>serviceoptimizer-*war</include>
            </includes>
            <outputFileNameMapping>ms.war</outputFileNameMapping>
            <outputDirectory>/applications</outputDirectory>
            <!-- Extract the war files - makes it easier to filter and for Deployers to work with -->
            <unpack>true</unpack>
            <scope>runtime</scope>
        </dependencySet>
        <dependencySet>
            <includes>
                <include>gwt-interface*war</include>
            </includes>
            <outputFileNameMapping>mmi.war</outputFileNameMapping>
            <outputDirectory>/applications</outputDirectory>
            <!-- Extract the war files - makes it easier to filter and for Deployers to work with -->
            <unpack>true</unpack>
            <scope>runtime</scope>
        </dependencySet>
        <dependencySet>
            <includes>
                <include>jackrabbit*rar</include>
            </includes>
            <outputFileNameMapping>jcr-repository.rar</outputFileNameMapping>
            <outputDirectory>/applications</outputDirectory>
            <unpack>false</unpack>
            <scope>runtime</scope>
        </dependencySet>
    </dependencySets>
</assembly>


Sorry for not being able to provide a test case. I'm not yet familiar with how to write tests for maven. This ticket may be a duplicate of one of the existing reported issues with dependency resolution in 2.2-beta-2, but I thought it worth reporting (as much a reference for me as for the developers). I can at least try out subsequent RC for the plugin and see if the problem is fixed.

-- 
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: (MASSEMBLY-294) Regression - dependency is skipped?

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MASSEMBLY-294.
--------------------------------

      Assignee: John Casey
    Resolution: Incomplete

> Regression - dependency is skipped?
> -----------------------------------
>
>                 Key: MASSEMBLY-294
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-294
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: Windows Vista Business, Sun JDK 5
> Fedora Core 4, Sun JDK 5
>            Reporter: James Abley
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.2-beta-3
>
>
> There has been a regression between 2.2-beta-1, which was working for us, and 2.2-beta-2, which showed up the problem.
> With 2.2-beta-1, we saw the following output.
> [INFO] [assembly:directory-inline {execution: create-directories}]
> [INFO] Reading assembly descriptor: c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\src\main\assembly\dep.xml
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Expanding: C:\Users\jabley\.m2\repository\com\example\serviceoptimizer\serviceoptimizer-webapp\1.17-SNAPSHOT\serviceoptimizer-webapp-1.17-SNAPSHOT.war into c:\Users\jabley\
> AppData\Local\Temp\archived-file-set.770382062.tmp
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Expanding: C:\Users\jabley\.m2\repository\com\example\contentrepository\gwt-interface\1.16-SNAPSHOT\gwt-interface-1.16-SNAPSHOT.war into c:\Users\jabley\AppData\Local\Temp\
> archived-file-set.1945898079.tmp
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Copying 1878 files to c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\target\mpinstaller-dependencies.dir
> [INFO] [antrun:run {execution: default}]
> With 2.2-beta-2, we see the output below.
> [INFO] [assembly:directory-inline {execution: create-directories}]
> [INFO] Reading assembly descriptor: src/main/assembly/dep.xml
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [WARNING] Archive: C:\Users\jabley\.m2\repository\com\example\contentrepository\gwt-interface\1.16-SNAPSHOT\gwt-interface-1.16-SNAPSHOT.war has already been added. Skipping.
> [WARNING] Archive: C:\Users\jabley\.m2\repository\com\example\serviceoptimizer\serviceoptimizer-webapp\1.17-SNAPSHOT\serviceoptimizer-webapp-1.17-SNAPSHOT.war has already been add
> ed. Skipping.
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [INFO] Copying files to c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\target\mpinstaller-dependencies.dir
> [INFO] [antrun:run {execution: default}]
> I can provide debug output if you think it would be helpful, for both cases.
> In my pom.xml
>             <!-- Get all of the dependencies for the installer -->
>             <plugin>
>                 <artifactId>maven-assembly-plugin</artifactId>
>                 <version>2.2-beta-2</version>
>                 <configuration>
>                     <appendAssemblyId>false</appendAssemblyId>
>                     <descriptors>
>                         <descriptor>
>                             src/main/assembly/dep.xml
>                         </descriptor>
>                     </descriptors>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <id>create-directories</id>
>                         <phase>compile</phase>
>                         <goals>
>                             <goal>directory-inline</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> And in the assembly dep.xml mentioned in the pom.xml
> <assembly>
>     <id>mpinstaller-dependencies</id>
>     <formats>
>         <format>zip</format>
>     </formats>
>     <includeBaseDirectory>false</includeBaseDirectory>
>     <fileSets>
>         <!-- Include release notes and related documentation -->
>         <fileSet>
>             <directory>src/site</directory>
>             <includes>
>                 <include>RELEASE-NOTES.txt</include>
>             </includes>
>             <outputDirectory>docs</outputDirectory>
>         </fileSet>
>     </fileSets>
>     <dependencySets>
>         <dependencySet>
>             <includes>
>                 <include>serviceoptimizer-*war</include>
>             </includes>
>             <outputFileNameMapping>ms.war</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <!-- Extract the war files - makes it easier to filter and for Deployers to work with -->
>             <unpack>true</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>         <dependencySet>
>             <includes>
>                 <include>gwt-interface*war</include>
>             </includes>
>             <outputFileNameMapping>mmi.war</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <!-- Extract the war files - makes it easier to filter and for Deployers to work with -->
>             <unpack>true</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>         <dependencySet>
>             <includes>
>                 <include>jackrabbit*rar</include>
>             </includes>
>             <outputFileNameMapping>jcr-repository.rar</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <unpack>false</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>     </dependencySets>
> </assembly>
> Sorry for not being able to provide a test case. I'm not yet familiar with how to write tests for maven. This ticket may be a duplicate of one of the existing reported issues with dependency resolution in 2.2-beta-2, but I thought it worth reporting (as much a reference for me as for the developers). I can at least try out subsequent RC for the plugin and see if the problem is fixed.

-- 
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: (MASSEMBLY-294) Regression - dependency is skipped?

Posted by "Michael Osipov (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135012#action_135012 ] 

Michael Osipov commented on MASSEMBLY-294:
------------------------------------------

I am suffering from the same problem: http://jira.codehaus.org/browse/MASSEMBLY-309
switching back to beta-1 resolved the issue.

> Regression - dependency is skipped?
> -----------------------------------
>
>                 Key: MASSEMBLY-294
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-294
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: Windows Vista Business, Sun JDK 5
> Fedora Core 4, Sun JDK 5
>            Reporter: James Abley
>
> There has been a regression between 2.2-beta-1, which was working for us, and 2.2-beta-2, which showed up the problem.
> With 2.2-beta-1, we saw the following output.
> [INFO] [assembly:directory-inline {execution: create-directories}]
> [INFO] Reading assembly descriptor: c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\src\main\assembly\dep.xml
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Expanding: C:\Users\jabley\.m2\repository\com\example\serviceoptimizer\serviceoptimizer-webapp\1.17-SNAPSHOT\serviceoptimizer-webapp-1.17-SNAPSHOT.war into c:\Users\jabley\
> AppData\Local\Temp\archived-file-set.770382062.tmp
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Expanding: C:\Users\jabley\.m2\repository\com\example\contentrepository\gwt-interface\1.16-SNAPSHOT\gwt-interface-1.16-SNAPSHOT.war into c:\Users\jabley\AppData\Local\Temp\
> archived-file-set.1945898079.tmp
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Copying 1878 files to c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\target\mpinstaller-dependencies.dir
> [INFO] [antrun:run {execution: default}]
> With 2.2-beta-2, we see the output below.
> [INFO] [assembly:directory-inline {execution: create-directories}]
> [INFO] Reading assembly descriptor: src/main/assembly/dep.xml
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [WARNING] Archive: C:\Users\jabley\.m2\repository\com\example\contentrepository\gwt-interface\1.16-SNAPSHOT\gwt-interface-1.16-SNAPSHOT.war has already been added. Skipping.
> [WARNING] Archive: C:\Users\jabley\.m2\repository\com\example\serviceoptimizer\serviceoptimizer-webapp\1.17-SNAPSHOT\serviceoptimizer-webapp-1.17-SNAPSHOT.war has already been add
> ed. Skipping.
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [INFO] Copying files to c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\target\mpinstaller-dependencies.dir
> [INFO] [antrun:run {execution: default}]
> I can provide debug output if you think it would be helpful, for both cases.
> In my pom.xml
>             <!-- Get all of the dependencies for the installer -->
>             <plugin>
>                 <artifactId>maven-assembly-plugin</artifactId>
>                 <version>2.2-beta-2</version>
>                 <configuration>
>                     <appendAssemblyId>false</appendAssemblyId>
>                     <descriptors>
>                         <descriptor>
>                             src/main/assembly/dep.xml
>                         </descriptor>
>                     </descriptors>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <id>create-directories</id>
>                         <phase>compile</phase>
>                         <goals>
>                             <goal>directory-inline</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> And in the assembly dep.xml mentioned in the pom.xml
> <assembly>
>     <id>mpinstaller-dependencies</id>
>     <formats>
>         <format>zip</format>
>     </formats>
>     <includeBaseDirectory>false</includeBaseDirectory>
>     <fileSets>
>         <!-- Include release notes and related documentation -->
>         <fileSet>
>             <directory>src/site</directory>
>             <includes>
>                 <include>RELEASE-NOTES.txt</include>
>             </includes>
>             <outputDirectory>docs</outputDirectory>
>         </fileSet>
>     </fileSets>
>     <dependencySets>
>         <dependencySet>
>             <includes>
>                 <include>serviceoptimizer-*war</include>
>             </includes>
>             <outputFileNameMapping>ms.war</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <!-- Extract the war files - makes it easier to filter and for Deployers to work with -->
>             <unpack>true</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>         <dependencySet>
>             <includes>
>                 <include>gwt-interface*war</include>
>             </includes>
>             <outputFileNameMapping>mmi.war</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <!-- Extract the war files - makes it easier to filter and for Deployers to work with -->
>             <unpack>true</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>         <dependencySet>
>             <includes>
>                 <include>jackrabbit*rar</include>
>             </includes>
>             <outputFileNameMapping>jcr-repository.rar</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <unpack>false</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>     </dependencySets>
> </assembly>
> Sorry for not being able to provide a test case. I'm not yet familiar with how to write tests for maven. This ticket may be a duplicate of one of the existing reported issues with dependency resolution in 2.2-beta-2, but I thought it worth reporting (as much a reference for me as for the developers). I can at least try out subsequent RC for the plugin and see if the problem is fixed.

-- 
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: (MASSEMBLY-294) Regression - dependency is skipped?

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148915#action_148915 ] 

John Casey commented on MASSEMBLY-294:
--------------------------------------

Is it possible this issue is related to MASSEMBLY-357? I'm marking this issue as incomplete on that assumption, since I've reproduced that issue reliably and can probably fix it eventually...though it won't make it into 2.2-beta-3.

Please reopen this issue with a test project I can use to express the problem, if you have one.

> Regression - dependency is skipped?
> -----------------------------------
>
>                 Key: MASSEMBLY-294
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-294
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: Windows Vista Business, Sun JDK 5
> Fedora Core 4, Sun JDK 5
>            Reporter: James Abley
>            Priority: Blocker
>             Fix For: 2.2-beta-3
>
>
> There has been a regression between 2.2-beta-1, which was working for us, and 2.2-beta-2, which showed up the problem.
> With 2.2-beta-1, we saw the following output.
> [INFO] [assembly:directory-inline {execution: create-directories}]
> [INFO] Reading assembly descriptor: c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\src\main\assembly\dep.xml
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Expanding: C:\Users\jabley\.m2\repository\com\example\serviceoptimizer\serviceoptimizer-webapp\1.17-SNAPSHOT\serviceoptimizer-webapp-1.17-SNAPSHOT.war into c:\Users\jabley\
> AppData\Local\Temp\archived-file-set.770382062.tmp
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Expanding: C:\Users\jabley\.m2\repository\com\example\contentrepository\gwt-interface\1.16-SNAPSHOT\gwt-interface-1.16-SNAPSHOT.war into c:\Users\jabley\AppData\Local\Temp\
> archived-file-set.1945898079.tmp
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Copying 1878 files to c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\target\mpinstaller-dependencies.dir
> [INFO] [antrun:run {execution: default}]
> With 2.2-beta-2, we see the output below.
> [INFO] [assembly:directory-inline {execution: create-directories}]
> [INFO] Reading assembly descriptor: src/main/assembly/dep.xml
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [WARNING] Archive: C:\Users\jabley\.m2\repository\com\example\contentrepository\gwt-interface\1.16-SNAPSHOT\gwt-interface-1.16-SNAPSHOT.war has already been added. Skipping.
> [WARNING] Archive: C:\Users\jabley\.m2\repository\com\example\serviceoptimizer\serviceoptimizer-webapp\1.17-SNAPSHOT\serviceoptimizer-webapp-1.17-SNAPSHOT.war has already been add
> ed. Skipping.
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [INFO] Copying files to c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\target\mpinstaller-dependencies.dir
> [INFO] [antrun:run {execution: default}]
> I can provide debug output if you think it would be helpful, for both cases.
> In my pom.xml
>             <!-- Get all of the dependencies for the installer -->
>             <plugin>
>                 <artifactId>maven-assembly-plugin</artifactId>
>                 <version>2.2-beta-2</version>
>                 <configuration>
>                     <appendAssemblyId>false</appendAssemblyId>
>                     <descriptors>
>                         <descriptor>
>                             src/main/assembly/dep.xml
>                         </descriptor>
>                     </descriptors>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <id>create-directories</id>
>                         <phase>compile</phase>
>                         <goals>
>                             <goal>directory-inline</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> And in the assembly dep.xml mentioned in the pom.xml
> <assembly>
>     <id>mpinstaller-dependencies</id>
>     <formats>
>         <format>zip</format>
>     </formats>
>     <includeBaseDirectory>false</includeBaseDirectory>
>     <fileSets>
>         <!-- Include release notes and related documentation -->
>         <fileSet>
>             <directory>src/site</directory>
>             <includes>
>                 <include>RELEASE-NOTES.txt</include>
>             </includes>
>             <outputDirectory>docs</outputDirectory>
>         </fileSet>
>     </fileSets>
>     <dependencySets>
>         <dependencySet>
>             <includes>
>                 <include>serviceoptimizer-*war</include>
>             </includes>
>             <outputFileNameMapping>ms.war</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <!-- Extract the war files - makes it easier to filter and for Deployers to work with -->
>             <unpack>true</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>         <dependencySet>
>             <includes>
>                 <include>gwt-interface*war</include>
>             </includes>
>             <outputFileNameMapping>mmi.war</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <!-- Extract the war files - makes it easier to filter and for Deployers to work with -->
>             <unpack>true</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>         <dependencySet>
>             <includes>
>                 <include>jackrabbit*rar</include>
>             </includes>
>             <outputFileNameMapping>jcr-repository.rar</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <unpack>false</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>     </dependencySets>
> </assembly>
> Sorry for not being able to provide a test case. I'm not yet familiar with how to write tests for maven. This ticket may be a duplicate of one of the existing reported issues with dependency resolution in 2.2-beta-2, but I thought it worth reporting (as much a reference for me as for the developers). I can at least try out subsequent RC for the plugin and see if the problem is fixed.

-- 
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: (MASSEMBLY-294) Regression - dependency is skipped?

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148378#action_148378 ] 

John Casey commented on MASSEMBLY-294:
--------------------------------------

If you could please just create a project structure that you could zip up and attach to this issue, something that was expressing the problem, I'd be happy to take a look. However, I'm not really able to tell what the problem is from your description, and there's certainly not enough information to debug the issue here. This doesn't have to be a special test case or anything like that; just a failing project build that you could zip up and attach, and maybe some instructions for what command-line options to use to build it.

> Regression - dependency is skipped?
> -----------------------------------
>
>                 Key: MASSEMBLY-294
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-294
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: Windows Vista Business, Sun JDK 5
> Fedora Core 4, Sun JDK 5
>            Reporter: James Abley
>            Priority: Blocker
>             Fix For: 2.2-beta-3
>
>
> There has been a regression between 2.2-beta-1, which was working for us, and 2.2-beta-2, which showed up the problem.
> With 2.2-beta-1, we saw the following output.
> [INFO] [assembly:directory-inline {execution: create-directories}]
> [INFO] Reading assembly descriptor: c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\src\main\assembly\dep.xml
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Expanding: C:\Users\jabley\.m2\repository\com\example\serviceoptimizer\serviceoptimizer-webapp\1.17-SNAPSHOT\serviceoptimizer-webapp-1.17-SNAPSHOT.war into c:\Users\jabley\
> AppData\Local\Temp\archived-file-set.770382062.tmp
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Expanding: C:\Users\jabley\.m2\repository\com\example\contentrepository\gwt-interface\1.16-SNAPSHOT\gwt-interface-1.16-SNAPSHOT.war into c:\Users\jabley\AppData\Local\Temp\
> archived-file-set.1945898079.tmp
> [INFO] Processing DependencySet (output=/applications)
> [INFO] Copying 1878 files to c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\target\mpinstaller-dependencies.dir
> [INFO] [antrun:run {execution: default}]
> With 2.2-beta-2, we see the output below.
> [INFO] [assembly:directory-inline {execution: create-directories}]
> [INFO] Reading assembly descriptor: src/main/assembly/dep.xml
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [WARNING] Archive: C:\Users\jabley\.m2\repository\com\example\contentrepository\gwt-interface\1.16-SNAPSHOT\gwt-interface-1.16-SNAPSHOT.war has already been added. Skipping.
> [WARNING] Archive: C:\Users\jabley\.m2\repository\com\example\serviceoptimizer\serviceoptimizer-webapp\1.17-SNAPSHOT\serviceoptimizer-webapp-1.17-SNAPSHOT.war has already been add
> ed. Skipping.
> [INFO] Processing DependencySet (output=/applications)
> [WARNING] Cannot include project artifact: com.example.mpinstaller:mpinstaller-dependencies:pom:1.14-SNAPSHOT; it doesn't have an associated file or directory.
> [INFO] Copying files to c:\Users\jabley\work\eclipse\workspaces\main\mpinstaller\mpinstaller-dependencies\target\mpinstaller-dependencies.dir
> [INFO] [antrun:run {execution: default}]
> I can provide debug output if you think it would be helpful, for both cases.
> In my pom.xml
>             <!-- Get all of the dependencies for the installer -->
>             <plugin>
>                 <artifactId>maven-assembly-plugin</artifactId>
>                 <version>2.2-beta-2</version>
>                 <configuration>
>                     <appendAssemblyId>false</appendAssemblyId>
>                     <descriptors>
>                         <descriptor>
>                             src/main/assembly/dep.xml
>                         </descriptor>
>                     </descriptors>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <id>create-directories</id>
>                         <phase>compile</phase>
>                         <goals>
>                             <goal>directory-inline</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> And in the assembly dep.xml mentioned in the pom.xml
> <assembly>
>     <id>mpinstaller-dependencies</id>
>     <formats>
>         <format>zip</format>
>     </formats>
>     <includeBaseDirectory>false</includeBaseDirectory>
>     <fileSets>
>         <!-- Include release notes and related documentation -->
>         <fileSet>
>             <directory>src/site</directory>
>             <includes>
>                 <include>RELEASE-NOTES.txt</include>
>             </includes>
>             <outputDirectory>docs</outputDirectory>
>         </fileSet>
>     </fileSets>
>     <dependencySets>
>         <dependencySet>
>             <includes>
>                 <include>serviceoptimizer-*war</include>
>             </includes>
>             <outputFileNameMapping>ms.war</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <!-- Extract the war files - makes it easier to filter and for Deployers to work with -->
>             <unpack>true</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>         <dependencySet>
>             <includes>
>                 <include>gwt-interface*war</include>
>             </includes>
>             <outputFileNameMapping>mmi.war</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <!-- Extract the war files - makes it easier to filter and for Deployers to work with -->
>             <unpack>true</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>         <dependencySet>
>             <includes>
>                 <include>jackrabbit*rar</include>
>             </includes>
>             <outputFileNameMapping>jcr-repository.rar</outputFileNameMapping>
>             <outputDirectory>/applications</outputDirectory>
>             <unpack>false</unpack>
>             <scope>runtime</scope>
>         </dependencySet>
>     </dependencySets>
> </assembly>
> Sorry for not being able to provide a test case. I'm not yet familiar with how to write tests for maven. This ticket may be a duplicate of one of the existing reported issues with dependency resolution in 2.2-beta-2, but I thought it worth reporting (as much a reference for me as for the developers). I can at least try out subsequent RC for the plugin and see if the problem is fixed.

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