You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Eric Fetzer <el...@yahoo.com> on 2010/08/25 18:54:08 UTC
Maven throwing error being built by continuum but not from command line
I reveive the following error when attempting to build a project from continuum
using Maven. The error does not happen when built from the command line.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured:
/home/continuum/apache-continuum-1.3.6/data/working-directory/myProject-client-ria/src/main/flex/assets
does not exist.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException
has occured:
/home/continuum/apache-continuum-1.3.6/data/working-directory/myProject-client-ria/src/main/flex/assets
does not exist.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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: An Ant BuildException
has occured:
/home/continuum/apache-continuum-1.3.6/data/working-directory/myProject-client-ria/src/main/flex/assets
does not exist.
at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:224)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:81)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by:
/home/continuum/apache-continuum-1.3.6/data/working-directory/myProject-client-ria/src/main/flex/assets
does not exist.
at
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:449)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:211)
... 20 more
The thing that confuses me is, why is it looking in
data/working-directory/myProject-client-ria..., when just before this error, it
was working in /data/working-directory/25/target/myProject-client-ria? Seems it
is in the completely wrong place. Any help?
Thanks,
Eric
Re: Maven throwing error being built by continuum but not from
command line
Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, Aug 25, 2010 at 12:54 PM, Eric Fetzer <el...@yahoo.com> wrote:
> I reveive the following error when attempting to build a project from continuum
> using Maven. The error does not happen when built from the command line.
>
>
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured:
> /home/continuum/apache-continuum-1.3.6/data/working-directory/myProject-client-ria/src/main/flex/assets
> does not exist.
...
> The thing that confuses me is, why is it looking in
> data/working-directory/myProject-client-ria..., when just before this error, it
> was working in /data/working-directory/25/target/myProject-client-ria? Seems it
> is in the completely wrong place. Any help?
I'm guessing that your build tries to get something out of another
module using a relative path.
In Continuum, by default, each module is checked out into a separate
numbered directory. Maven modules are intended to stand alone,
sharing is done through the repository.
If that's the problem and you can't fix the build so it works, then
you might want to try the options for checking out in a single
directory that you see when adding a project.
--
Wendy