You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Graham Leggett (JIRA)" <ji...@codehaus.org> on 2007/04/24 16:54:26 UTC

[jira] Commented: (MASSEMBLY-203) assembly:attached creates empty assemblies in reactor builds, but works fine in normal builds

    [ http://jira.codehaus.org/browse/MASSEMBLY-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_93997 ] 

Graham Leggett commented on MASSEMBLY-203:
------------------------------------------

Further details:

Turns out the assembly has as dependencies some packages that include classifiers:

    <dependency>
      <groupId>alchemy</groupId>
      <artifactId>alchemy-quant</artifactId>
      <version>${alchemy-native-version}</version>
      <classifier>${os-platform}</classifier>
    </dependency>

When the assembly is built from the assembly artifact, the assembly is built correctly.

When the assembly is built as part of the reactor build, the assembly packaging process breaks at the point where the dependency with the classifier is unpacked.

The key breakage is found by the presence of a directory called "-linux" in the jar (the classifier resolves to "linux"):

Archive:  /udd001/app/alchemy/development/mx/trunk/alchemy-measure-assembly/target/alchemy-measure-assembly-4.0.4-SNAPSHOT-jar-with-dependencies.jar
  Length     Date   Time    Name
 --------    ----   ----    ----
        0  04-24-07 16:15   META-INF/
     3006  04-24-07 16:15   META-INF/MANIFEST.MF
        0  12-12-06 13:04   org/
        0  12-12-06 13:03   org/jboss/
        0  04-24-07 16:15   org/jboss/annotation/
        0  04-24-07 16:15   org/jboss/annotation/security/
        0  04-24-07 16:15   org/jboss/annotation/ejb/
        0  04-24-07 16:15   org/jboss/annotation/ejb/cache/
        0  04-24-07 16:15   org/jboss/annotation/ejb/cache/simple/
        0  04-24-07 16:15   org/jboss/annotation/ejb/cache/tree/
        0  04-24-07 16:15   org/jboss/annotation/internal/
        0  04-03-07 16:18   quant/
        0  04-24-07 16:15   -linux/
        0  04-03-07 16:18   -linux/quant/
        0  04-03-07 16:18   -linux/META-INF/
     1273  12-12-06 13:03   org/jboss/annotation/security/SecurityDomainImpl.class
      440  12-12-06 13:03   org/jboss/annotation/security/RunAsPrincipal.class
      668  12-12-06 13:03   org/jboss/annotation/security/RunAsPrincipalImpl.class
      507  12-12-06 13:03   org/jboss/annotation/security/SecurityDomain.class
      734  12-12-06 13:03   org/jboss/annotation/ejb/LocalBindingImpl.class
      445  12-12-06 13:03   org/jboss/annotation/ejb/LocalBinding.class
      430  12-12-06 13:03   org/jboss/annotation/ejb/Local.class
      661  12-12-06 13:03   org/jboss/annotation/ejb/IIOP.class
      594  12-12-06 13:03   org/jboss/annotation/ejb/ExcludeDefaultInterceptorsImpl.class
      586  12-12-06 13:03   org/jboss/annotation/ejb/ExcludeClassInterceptorsImpl.class
     1038  12-12-06 13:03   org/jboss/annotation/ejb/Durability.class
     1135  12-12-06 13:03   org/jboss/annotation/ejb/DependsImpl.class
      449  12-12-06 13:03   org/jboss/annotation/ejb/Depends.class
     1062  12-12-06 13:03   org/jboss/annotation/ejb/DeliveryMode.class
     1818  12-12-06 13:03   org/jboss/annotation/ejb/DefaultActivationSpecsImpl.class
      470  12-12-06 13:03   org/jboss/annotation/ejb/DefaultActivationSpecs.class
      555  12-12-06 13:03   org/jboss/annotation/ejb/CurrentMessageImpl.class
      419  12-12-06 13:03   org/jboss/annotation/ejb/CurrentMessage.class
     2217  12-12-06 13:03   org/jboss/annotation/ejb/ConsumerImpl.class
      540  12-12-06 13:03   org/jboss/annotation/ejb/Consumer.class
     1464  12-12-06 13:03   org/jboss/annotation/ejb/ClusteredImpl.class
      600  12-12-06 13:03   org/jboss/annotation/ejb/Clustered.class
      522  12-12-06 13:03   org/jboss/annotation/ejb/cache/simple/CacheConfig.class
     1031  12-12-06 13:03   org/jboss/annotation/ejb/cache/simple/CacheConfigImpl.class
      455  12-12-06 13:03   org/jboss/annotation/ejb/cache/simple/PersistenceManager.class
      911  12-12-06 13:03   org/jboss/annotation/ejb/cache/simple/PersistenceManagerImpl.class
      612  12-12-06 13:03   org/jboss/annotation/ejb/cache/tree/CacheConfig.class
     1323  12-12-06 13:03   org/jboss/annotation/ejb/cache/tree/CacheConfigImpl.class
      422  12-12-06 13:03   org/jboss/annotation/ejb/cache/Cache.class
      694  12-12-06 13:03   org/jboss/annotation/ejb/cache/CacheImpl.class
     1239  12-12-06 13:03   org/jboss/annotation/ejb/AcknowledgementMode.class
      431  12-12-06 13:03   org/jboss/annotation/ejb/AspectDomain.class
      739  12-12-06 13:03   org/jboss/annotation/ejb/AspectDomainImpl.class
      671  12-12-06 13:03   org/jboss/annotation/ejb/LocalHomeImpl.class
      521  12-12-06 13:03   org/jboss/annotation/ejb/LocalImpl.class
      476  12-12-06 13:03   org/jboss/annotation/ejb/Management.class
      780  12-12-06 13:03   org/jboss/annotation/ejb/ManagementImpl.class
      748  12-12-06 13:03   org/jboss/annotation/ejb/MessageProperties.class
     2038  12-12-06 13:03   org/jboss/annotation/ejb/MessagePropertiesImpl.class
      524  12-12-06 13:03   org/jboss/annotation/ejb/PoolClass.class
     1724  12-12-06 13:03   org/jboss/annotation/ejb/PoolClassImpl.class
      650  12-12-06 13:03   org/jboss/annotation/ejb/Producer.class
      443  12-12-06 13:03   org/jboss/annotation/ejb/Producers.class
      667  12-12-06 13:03   org/jboss/annotation/ejb/RemoteBinding.class
     2804  12-12-06 13:03   org/jboss/annotation/ejb/RemoteBindingImpl.class
      458  12-12-06 13:03   org/jboss/annotation/ejb/RemoteBindings.class
     1107  12-12-06 13:03   org/jboss/annotation/ejb/RemoteBindingsImpl.class
      675  12-12-06 13:03   org/jboss/annotation/ejb/RemoteHomeImpl.class
      437  12-12-06 13:03   org/jboss/annotation/ejb/ResourceAdapter.class
      745  12-12-06 13:03   org/jboss/annotation/ejb/ResourceAdapterImpl.class
      428  12-12-06 13:03   org/jboss/annotation/ejb/SerializedConcurrentAccess.class
      605  12-12-06 13:03   org/jboss/annotation/ejb/SerializedConcurrentAccessImpl.class
      490  12-12-06 13:03   org/jboss/annotation/ejb/Service.class
     1234  12-12-06 13:03   org/jboss/annotation/ejb/ServiceImpl.class
      474  12-12-06 13:03   org/jboss/annotation/ejb/TransactionTimeout.class
      866  12-12-06 13:03   org/jboss/annotation/ejb/TransactionTimeoutImpl.class
      198  12-12-06 13:03   org/jboss/annotation/internal/DefaultInterceptorMarker.class
      608  12-12-06 13:03   org/jboss/annotation/internal/DefaultInterceptorMarkerImpl.class
      419  12-12-06 13:03   org/jboss/annotation/IgnoreDependency.class
      553  12-12-06 13:03   org/jboss/annotation/IgnoreDependencyImpl.class
      498  12-12-06 13:03   org/jboss/annotation/JndiInject.class
    81397  04-03-07 16:18   quant/quantlibs.class
      449  04-03-07 16:18   quant/quantlibs$1.class
     2114  04-03-07 16:18   quant/quantSharedMCR.class
      460  04-03-07 16:18   quant/quantSharedMCR$1.class
     8427  04-03-07 16:18   quant/quantMCR.class
    81397  04-03-07 16:18   -linux/quant/quantlibs.class
      449  04-03-07 16:18   -linux/quant/quantlibs$1.class
     2114  04-03-07 16:18   -linux/quant/quantSharedMCR.class
      460  04-03-07 16:18   -linux/quant/quantSharedMCR$1.class
     8427  04-03-07 16:18   -linux/quant/quantMCR.class
       71  04-03-07 16:18   -linux/META-INF/MANIFEST.MF
 --------                   -------
   237096                   87 files


> assembly:attached creates empty assemblies in reactor builds, but works fine in normal builds
> ---------------------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-203
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-203
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-1
>         Environment: java version "1.5.0_09"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_09-b01, mixed mode)
>            Reporter: Graham Leggett
>
> When attaching an assemply to the package phase as below, and running mvn install, the assembly is built without a problem.
> If however the assembly is a sub-artifact built as part of a reactor / multimodule build, mvn install in the root pom produces an empty assembly.
> The kludge workaround is to cd to the assembly artifact directory and run mvn install from there.
>       <plugin>
>         <artifactId>maven-assembly-plugin</artifactId>
>         <version>2.2-beta-1</version>
>         <configuration>
>           <descriptors>
>             <descriptor>assembly.xml</descriptor>
>           </descriptors>
>         </configuration>
>         <executions>
>           <execution>
>             <id>make-assembly</id>
>             <phase>package</phase>
>             <goals>
>               <goal>attached</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>

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