Basic example fails to build: InvalidProjectModelException
----------------------------------------------------------

                 Key: SM-997
                 URL: https://issues.apache.org/activemq/browse/SM-997
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-assembly
    Affects Versions: 3.1.1
         Environment: Servicemix 3.1.1-incubating, Windows XP, Java 1.5.0_12, 
Maven 2.0.6
            Reporter: Evan Deaubl


When I attempt to run either mvn install, or mvn jbi:embeddedServicemix on the 
project in examples/basic, I receive the following error.  I have completely 
removed my Maven repository and had it redownload everything from scratch, and 
still received this error.  I manually checked the file it had downloaded, and 
the XML file was indeed invalid, and downloading the file directly from the 
source 
(http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/servicemix/3.1.1-incubating/servicemix-3.1.1-incubating.pom)
 using Firefox yields an XML Parsing Error.

[INFO] Scanning for projects...
Downloading: 
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/samples/3.1.1-incubating/samples-3.1.1-incubating.pom
2K downloaded
Downloading: 
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/servicemix/3.1.1-incubating/servicemix-3.1.1-incubating.pom
69K downloaded
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'507906935d130cfa9b44696270f62e006367533d'; remote = 
'a79a1012430e34db6e471c444f0dd77c28be9d0e' - RETRYING
Downloading: 
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/servicemix/3.1.1-incubating/servicemix-3.1.1-incubating.pom
69K downloaded
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'507906935d130cfa9b44696270f62e006367533d'; remote = 
'a79a1012430e34db6e471c444f0dd77c28be9d0e' - IGNORING
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.servicemix:samples:pom:null

Reason: Cannot find parent: org.apache.servicemix:servicemix for project: 
org.apache.servicemix:samples:pom:null


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: 
org.apache.servicemix:servicemix for project: 
org.apache.servicemix:samples:pom:null
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        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.project.ProjectBuildingException: Cannot find 
parent: org.apache.servicemix:servicemix for project: 
org.apache.servicemix:samples:pom:null
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1264)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1281)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:749)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:479)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:537)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
        ... 11 more
Caused by: org.apache.maven.project.InvalidProjectModelException: Parse error 
reading POM. Reason: end tag name </exclusion> must match start tag name 
<dependency> from line 819 (position: TEXT seen ...<dependency>\n     
</exclusion>... @820:18)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1423)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1380)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:530)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1260)
        ... 18 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: end tag 
name </exclusion> must match start tag name <dependency> from line 819 
(position: TEXT seen ...<dependency>\n     </exclusion>... @820:18)
        at 
org.codehaus.plexus.util.xml.pull.MXParser.parseEndTag(MXParser.java:1686)
        at 
org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1128)
        at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090)
        at 
org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1077)
        at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDependency(MavenXpp3Reader.java:1178)
        at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDependencyManagement(MavenXpp3Reader.java:1313)
        at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2372)
        at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:4438)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1419)
        ... 21 more


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to