my dog learned polymorphism*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Build Error--Help--- Urgent 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 "Maven Build Error--Help--- Urgent" Watch "Maven Build Error--Help--- Urgent" New topic
Author

Maven Build Error--Help--- Urgent

swapnil dangore
Ranch Hand

Joined: Jun 05, 2006
Posts: 46
Hi All,
I am getting MavenExecutionException while running package command. I am using JDK5 (Program Files\IBM\SDP\runtimes\base_v61\java\bin).
Below is the stacktrace.

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: unknown

Reason: Failed to build model from file 'D:\ALL_WORKSPACE\AEDC MAVEN Build\MS3_Was6\MS3\pom.xml'.
Error: 'null' for project unknown


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Failed to build model from file 'D:\ALL_WORKSPACE\AEDC MAVEN Build\MS3_Was6\MS3\pom.xml'.
Error: 'null' for project unknown
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:448)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
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.project.ProjectBuildingException: Failed to build model from file 'D:\ALL_WORKSPACE\AEDC MAVEN Build\MS3_Was6\MS3\pom.xml'.
Error: 'null' for project unknown
at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1606)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:522)
at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:216)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:648)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:531)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:604)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:435)
... 11 more
Caused by: sun.io.MalformedInputException
at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:262)
at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:316)
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:366)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:252)
at java.io.InputStreamReader.read(InputStreamReader.java:212)
at hidden.org.codehaus.plexus.util.xml.XmlReader.read(XmlReader.java:440)
at java.io.Reader.read(Reader.java:143)
at hidden.org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212)
at hidden.org.codehaus.plexus.util.IOUtil.toString(IOUtil.java:416)
at hidden.org.codehaus.plexus.util.IOUtil.toString(IOUtil.java:405)
at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1621)
at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1597)
... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Sat May 08 18:03:02 IST 2010
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------
D:\ALL_WORKSPACE\AEDC MAVEN Build\MS3_Was6>


Please help.

Thanks

Cheers<br />-------------<br />Swapnil<br /> <br />SCJP5-81%<br /> <br />"Dictionary is the only place where Success come before Work"
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Caused by: sun.io.MalformedInputException

That'd be where I'd start. Without the pom, it's impossible to help.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15957
    
  19

You have spaces in your filename. That's enough to cause major trouble in many cases, right there.


Customer surveys are for companies who didn't pay proper attention to begin with.
swapnil dangore
Ranch Hand

Joined: Jun 05, 2006
Posts: 46
Hi David & Tim,
Thanks for your reply. I have solved the isuue. The issue was with JRE that I was using (IBM). I have installed JDK5 and it started working
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven Build Error--Help--- Urgent
 
Similar Threads
maven release build error
com.sun.tools.jxc.maven2:maven-jaxb-schemagen-plugin not found
sonar requires a project with an existing pom.xml, but the build is not using one
Cannot find parent error while "mvn compile"
maven java:compile