Hi,
I just ran into this... is there any news about this problem ? Is an
enhancement planned ?
Thanks
David DIDIER
[EMAIL PROTECTED] a écrit :
I've run into the same problem myself. As far as I can tell, mvn
assembly:assembly is not multi-project aware.
Ian
It's better to be hated for who you are
than loved for who you are not
Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078
"Gautham Pamu"
<[EMAIL PROTECTED] To: "Maven Users List" <[email protected]>
il.com> cc:
Subject: m2 Error creating assembly
04/14/2006 07:19
PM
Please respond to
"Maven Users
List"
Hi,
The problem we are seeing is that running assembly goal from within a given
maven project is ok. However, if we setup many projects underneath a
parent project, the assembly goal no longer works, as the path is now
incorrect. This simple (attached) parent/project will show you how to
reproduce the problem.
mvm clean install is working from the test.maven child project but not
working from the parent project.
multi project directory structure..
pom.xml
test.maven (Child project)
- pom.xml
-src folder...
Can you tell us if it is bug in the plugin or maven or is this problem with
the configuration in pom.xml file.
Thanks
Gautham Pamu
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1
.0-alpha-5/plexus-archiver-1.0-alpha-5.jar
129K downloaded
[WARNING] DEPRECATED [descriptor]: Please use descriptors instead
[INFO] [assembly:assembly {execution: default}]
[INFO] Expanding: E:\Documents and
Settings\gpamu\.m2\repository\junit\junit\3.8
.1\junit-3.8.1.jar into
E:\Temp\com.foo.parent\test.maven\target\assembly\work\j
unit-3.8.1
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating assembly
Embedded error: E:\Temp\com.foo.parent\target\classes isn't a directory.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
assembly
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java :322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch (Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException : Error creating
assemb
ly
at
org.apache.maven.plugin.assembly.AssemblyMojo.createAssembly(Assembly
Mojo.java:213)
at
org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.ja
va:185)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 17 more
Caused by: org.codehaus.plexus.archiver.ArchiverException:
E:\Temp\com.foo.paren
t\target\classes isn't a directory.
at
org.codehaus.plexus.archiver.AbstractArchiver.addDirectory(AbstractAr
chiver.java:125)
at
org.apache.maven.plugin.assembly.AssemblyMojo.processFileSets(Assembl
yMojo.java:533)
at
org.apache.maven.plugin.assembly.AssemblyMojo.createArchive(AssemblyM
ojo.java:229)
at
org.apache.maven.plugin.assembly.AssemblyMojo.createAssembly(Assembly
Mojo.java:205)
... 20 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 6 seconds
[INFO] Finished at: Fri Apr 14 18:21:31 CDT 2006
[INFO] Final Memory: 6M/19M
[INFO]
------------------------------------------------------------------------
E:\Temp\com.foo.parent>
(See attached file: assemblyParentProblem.tar.bz2)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]