You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Julien CARSIQUE <jc...@nuxeo.com> on 2008/08/25 12:26:33 UTC

maven-assembly-plugin / artifact built from maven-assembly-plugin being installed before execution of following plugins in same pom.xml

Changed subject (maven-assembly-plugin)

Julien CARSIQUE a �crit :
> Hi,
>
> I need to build resources artifacts (I use maven-assembly-plugin) and 
> use them (with our maven-nuxeo-plugin) from the same pom.xml
> The built resources artifacts do not need to be in the project 
> dependency but have to be installed before the execution of the second 
> plugin.
>
> Is it possible to make artifacts built from maven-assembly-plugin 
> being installed before the execution of the following 
> maven-nuxeo-plugin ?
>
> I have this error when running "mvn install":
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building Nuxeo EP EAR
> [INFO]    task-segment: [clean, install]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory 
> /Users/julien/Documents/workspace/nuxeo/nuxeo-platform/nuxeo-platform-ear/target 
>
> ...
> [INFO] [assembly:attached {execution: make-resources}]
> [INFO] Reading assembly descriptor: src/main/assemble/resources/mono.xml
> ...
> [INFO] Building zip: 
> /Users/julien/Documents/workspace/nuxeo/nuxeo-platform/nuxeo-platform-ear/target/nuxeo-platform-ear-5.1.6-SNAPSHOT-resources-mono.zip 
>
> ...
> [INFO] [nuxeo:assembly {execution: assemble-ear}]
> [INFO] Loading assembly descriptor: 
> /Users/julien/Documents/workspace/nuxeo/nuxeo-platform/nuxeo-platform-ear/src/main/assemble/nuxeo.xml 
>
> ...
> org.apache.maven.plugin.MojoExecutionException: Unable to find artifact.
> ...
> Caused by: 
> org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable 
> to download the artifact from any repository
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
>    mvn install:install-file -DgroupId=org.nuxeo.ecm.platform 
> -DartifactId=nuxeo-platform-ear -Dversion=5.1.6-SNAPSHOT 
> -Dclassifier=resources-mono -Dpackaging=zip -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file 
> there:
>    mvn deploy:deploy-file -DgroupId=org.nuxeo.ecm.platform 
> -DartifactId=nuxeo-platform-ear -Dversion=5.1.6-SNAPSHOT 
> -Dclassifier=resources-mono -Dpackaging=zip -Dfile=/path/to/file 
> -Durl=[url] -DrepositoryId=[id]
> ...
>
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Failed to run assembly
>
>
> Here's an extract of my pom.xml:
>
>      <plugin>
>        <artifactId>maven-assembly-plugin</artifactId>
>        <configuration>
>          <descriptors>
>            <descriptor>src/main/assemble/resources/mono.xml</descriptor>
>                ...
>          </descriptors>
>        </configuration>
>        <executions>
>          <execution>
>            <id>make-resources</id>
>            <phase>package</phase>
>            <goals>
>              <goal>attached</goal>
>            </goals>
>          </execution>
>        </executions>
>      </plugin>
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-nuxeo-plugin</artifactId>
>        <extensions>true</extensions>
>        <executions>
>          <execution>
>            <id>assemble-ear</id>
>            <phase>package</phase>
>            <goals>
>              <goal>assembly</goal>
>            </goals>
>            <configuration>
>                ...
>           </configuration>
>          </execution>
>        </executions>
>      </plugin>
>
>
> Thanks,
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org