You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by emerson cargnin <ec...@gmail.com> on 2009/05/15 20:37:09 UTC
assembly plugin can find the assemblies
I have two projects that are children of a pom type project.
When I build them alone it works fine, but if I try to build them from
the parent pom level, it tells it can't find the assemblies.
This is what I have on the child pom:
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<finalName>crawlControl</finalName>
<descriptors>
<descriptor>./assemble/distribution.xml</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
my project has the structure:
parent
|-pom.xml
|
|---module1
|-pom.xml
|-assemble
|-distribution.xml
My log when I run from the top level (from the module it works alright):
[INFO] [jar:jar]
[INFO] Building jar:
C:\dev\svn\modules_m2_exp\webcrawl\crawler\apptus\com.wcr.control\target\com..wcr.control-1.0-SNAPSHOT.jar
[INFO] [assembly:assembly]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error reading assemblies: No assembly descriptors found.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error reading
assemblies: No assembly descriptors found.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:584)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
thanks
Emerson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: assembly plugin can find the assemblies
Posted by Brian Fox <br...@infinity.nu>.
try just assemble/dsitribution.xml or even better
${basedir}/assemble/distribution.xml
On Fri, May 15, 2009 at 2:37 PM, emerson cargnin <echofloripa.yell@gmail.com
> wrote:
> I have two projects that are children of a pom type project.
> When I build them alone it works fine, but if I try to build them from
> the parent pom level, it tells it can't find the assemblies.
>
> This is what I have on the child pom:
> <build>
> <plugins>
> <plugin>
>
> <artifactId>maven-assembly-plugin</artifactId>
> <configuration>
> <finalName>crawlControl</finalName>
> <descriptors>
>
> <descriptor>./assemble/distribution.xml</descriptor>
> </descriptors>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> my project has the structure:
>
> parent
> |-pom.xml
> |
> |---module1
> |-pom.xml
> |-assemble
> |-distribution.xml
>
>
> My log when I run from the top level (from the module it works alright):
>
> [INFO] [jar:jar]
> [INFO] Building jar:
>
> C:\dev\svn\modules_m2_exp\webcrawl\crawler\apptus\com.wcr.control\target\com..wcr.control-1.0-SNAPSHOT.jar
> [INFO] [assembly:assembly]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error reading assemblies: No assembly descriptors found.
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error reading
> assemblies: No assembly descriptors found.
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:584)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
>
>
> thanks
> Emerson
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>