aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Build Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Build Error" Watch "Build Error" New topic
Author

Build Error

Sri Yasasvi
Greenhorn

Joined: Nov 07, 2008
Posts: 28
Hi All

I am trying to build and install war file on remote Websphere 6.1 server using Maven 2.0.11. But i am getting the following error. Could anybody help me in this please if you get this issue before.


[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to execute: Executing Ant script: /was.build.xml [was-action]: Failed to execute.

The directory you specified does not exist
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute: Executing Ant script: /was.build.xml [was-action]: Failed to execute.
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.java:331)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:345)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:132)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:290)
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:585)
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: Failed to execute: Executing Ant script: /was.build.xml [was-action]: Failed to execute.
at org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.java:56)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
... 16 more
Caused by: org.codehaus.plexus.component.factory.ant.AntComponentExecutionException: Executing Ant script: /was.build.xml [was-action]: Failed to execute.
at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(AntScriptInvoker.java:227)
at org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.java:52)
... 18 more
Caused by: C:\DOCUME~1\716602\LOCALS~1\Temp\plexus-ant-component48057.build.xml:202: The following error occurred while executing this line:
C:\DOCUME~1\716602\LOCALS~1\Temp\plexus-ant-component48057.build.xml:220: The directory you specified does not exist
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(AntScriptInvoker.java:222)
... 19 more
Caused by: C:\DOCUME~1\716602\LOCALS~1\Temp\plexus-ant-component48057.build.xml:220: The directory you specified does not exist
at org.apache.tools.ant.taskdefs.ExecTask.checkConfiguration(ExecTask.java:467)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:450)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
... 27 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17 seconds
[INFO] Finished at: Mon Nov 22 16:34:25 EST 2010
[INFO] Final Memory: 12M/31M
[INFO] ------------------------------------------------------------------------


Thanks,
Sri
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Caused by: C:\DOCUME~1\716602\LOCALS~1\Temp\plexus-ant-component48057.build.xml:220: The directory you specified does not exist

Don't you just love useless errors like this that don't tell you which directory they are talking about? Anyway, without knowing what directory is being mentioned in this build script at this line there is not much we can do to help you.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Build Error