You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by SelvaKumar <se...@cognizant.com> on 2008/05/19 11:55:30 UTC

"build.xml:141 Java Returned 1"... Help me out to kill this error

Hi,
    I have downloaded MAVEN2.2 source. when i tried to build the source
using "ANT", i got an error  "build.xml:141 java returned 1". i could not
recognize why this error occured.I have included my output below... Help me
out to build the souce code successfully using ANT.


    [java] url = http://snapshots.repository.codehaus.org/
     [java] Downloading:
http://snapshots.repository.codehaus.org//org/apache/ma
ven/maven-plugin-descriptor/2.0.5/maven-plugin-descriptor-2.0.5.jar
     [java] url = http://repo1.maven.org/maven2
     [java] Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-pl
ugin-descriptor/2.0.5/maven-plugin-descriptor-2.0.5.jar
     [java] url = http://snapshots.repository.codehaus.org/
     [java] Downloading:
http://snapshots.repository.codehaus.org//org/apache/ma
ven/maven-monitor/2.0.5/maven-monitor-2.0.5.jar
     [java] url = http://repo1.maven.org/maven2
     [java] Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-mo
nitor/2.0.5/maven-monitor-2.0.5.jar
     [java] [ERROR]
     [java] Failed to construct build plan for: Apache Maven
     [java] Id: org.apache.maven:maven:pom:2.1-SNAPSHOT
     [java] task-segment: [clean, install]. Reason: Failed to load plugin
descri
ptor for:
org.apache.maven.plugins:maven-remote-resources-plugin:1.0-beta-2:proc
ess. Cannot discover it's default phase, specified in its plugin descriptor.
     [java]
     [java] While building project with id:
org.apache.maven:maven:pom:2.1-SNAPS
HOT
     [java] Project File: D:\Build\maven\pom.xml
     [java]
     [java]
     [java] [INFO]
-------------------------------------------------------------
-----------
     [java] [INFO] For more information, run with the -e flag
     [java] [INFO]
-------------------------------------------------------------
-----------
     [java] [INFO] BUILD FAILED
     [java] [INFO]
-------------------------------------------------------------
-----------
     [java] [INFO] Total time: 10 minutes 7 seconds
     [java] [INFO] Finished at: Mon May 19 05:05:25 GMT 2008
     [java] [INFO] Final Memory: 8M/15M
     [java] [INFO]
-------------------------------------------------------------
-----------

BUILD FAILED
D:\Build\maven\build.xml:141: Java returned: 1

Total time: 11 minutes 12 seconds


Please help me to remove this bug. I expect your valuable suggestions and
ideas.. Thanks in advance...
-- 
View this message in context: http://www.nabble.com/%22build.xml%3A141-Java-Returned-1%22...-Help-me-out-to-kill-this-error-tp17315162p17315162.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: "build.xml:141 Java Returned 1"... Help me out to kill this error

Posted by Wayne Fay <wa...@gmail.com>.
Why are you trying to build Maven 2.1-SNAPSHOT? The code is not
particularly "stable" which is why you are running into these
problems. The expectation is that people who are working on 2.1
(currently) are developers and able to handle these kinds of problems.

The "root" cause of this failure is in the lines below. As to how you
should solve this problem to allow you to continue building 2.1, I
couldn't tell you.

Wayne

On Mon, May 19, 2008 at 4:55 AM, SelvaKumar
<se...@cognizant.com> wrote:
>
>     [java] task-segment: [clean, install]. Reason: Failed to load plugin
> descri
> ptor for:
> org.apache.maven.plugins:maven-remote-resources-plugin:1.0-beta-2:proc
> ess. Cannot discover it's default phase, specified in its plugin descriptor.
>     [java]
>     [java] While building project with id:
> org.apache.maven:maven:pom:2.1-SNAPSHOT

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org