You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Andrius Karpavicius <An...@sintagma.lt> on 2005/08/17 01:44:15 UTC

M2 Build from svn: Failed to parse model from file maven-plugin-parent-2.0-beta-1-SNAPSHOT.pom

Hello,

Wanted to try the latest version of M2 as described in 
http://maven.apache.org/maven2/building.html.

Compilation and etc.. of Maven worked fine, but when trying to build my 
project I get this error. The same task worked fine with alpha-3 release.

Something should I change?

Thank you,
Andrius

C:\projektai\stotissi_v4\projects\authentication>m2 clean:clean
[INFO] 
----------------------------------------------------------------------------
[INFO] Building User authentication and administration component
[INFO] 
----------------------------------------------------------------------------
[INFO] maven-clean-plugin: using locally installed snapshot
[INFO] maven-plugin-parent: using locally installed snapshot
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] Diagnosis: Error configuring plugin for execution of 'clean:clean'.
[INFO] 
----------------------------------------------------------------------------
[ERROR] Cause:
org.apache.maven.plugin.MojoExecutionException: Error configuring plugin 
for execution of 'clean:clean'.
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:378)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:169)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:150)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:133)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:103)
        at 
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
        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:303)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Cannot 
resolve plugin dependencies
        at 
org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete(DefaultPluginManager.java:616)
        at 
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:493)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:373)
        ... 15 more
Caused by: 
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: 
Unable to read the metadata file
        at 
org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:88)
        at 
org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete(DefaultPluginManager.java:564)
        ... 17 more
Caused by: org.apache.maven.project.ProjectBuildingException: Failed to 
parse model from file 'C:\Documents and Settings
\AndriusK\.m2\repository\org\apache\maven\plugins\maven-plugin-parent\2.0-beta-1-SNAPSHOT\maven-plugin-parent-2.0-beta-1
-SNAPSHOT.pom'.
Error: 'TEXT must be immediately followed by END_TAG and not START_TAG 
(position: START_TAG seen ...<snapshotRepository>
\r\n      <id>... @84:11) '
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:525)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:2
44)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:491)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:297)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:220)
        at 
org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:81)
        ... 18 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: TEXT 
must be immediately followed by END_TAG and no
t START_TAG (position: START_TAG seen ...<snapshotRepository>\r\n <id>... 
@84:11)
        at 
org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:1059)
        at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDistributionManagement(MavenXpp3Reader.java:847)
        at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:1339)
        at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:2604)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:510)
        ... 23 more
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Aug 17 02:28:13 EEST 2005
[INFO] Final Memory: 1M/2M
[INFO] 
----------------------------------------------------------------------------

C:\projektai\stotissi_v4\projects\authentication>

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


Re: M2 Build from svn: Failed to parse model from file maven-plugin-parent-2.0-beta-1-SNAPSHOT.pom

Posted by Trygve Laugstøl <tr...@codehaus.org>.
On Wed, Aug 17, 2005 at 06:52:27PM +0200, Incze Lajos wrote:
> On Wed, Aug 17, 2005 at 03:44:22AM +0200, Trygve Laugstøl wrote:
> > On Wed, Aug 17, 2005 at 02:44:15AM +0300, Andrius Karpavicius wrote:
> > > Hello,
> > > 
> > > Wanted to try the latest version of M2 as described in 
> > > http://maven.apache.org/maven2/building.html.
> > > 
> > > Compilation and etc.. of Maven worked fine, but when trying to build my 
> > > project I get this error. The same task worked fine with alpha-3 release.
> > > 
> > > Something should I change?
> > 
> > It seems like you're still using the alpha-3 version as the POM format
> > changed slighly from alpha 3 to trunk.
> > 
> > Make sure that your PATH include the newly built Maven 2 and that M2_HOME
> > also is pointing to the correct location.
> > 
> > --
> > Trygve
> 
> Wouldn't be good to start versioning the POM (it's allways 4.0.0, altough
> changing)?

Now that we've reached the beta we won't break the POM format without
increasing the model version. We do have the option to *add* stuff but it
won't break anything.

--
Trygve

Re: M2 Build from svn: Failed to parse model from file maven-plugin-parent-2.0-beta-1-SNAPSHOT.pom

Posted by Incze Lajos <in...@axelero.hu>.
On Wed, Aug 17, 2005 at 03:44:22AM +0200, Trygve Laugstøl wrote:
> On Wed, Aug 17, 2005 at 02:44:15AM +0300, Andrius Karpavicius wrote:
> > Hello,
> > 
> > Wanted to try the latest version of M2 as described in 
> > http://maven.apache.org/maven2/building.html.
> > 
> > Compilation and etc.. of Maven worked fine, but when trying to build my 
> > project I get this error. The same task worked fine with alpha-3 release.
> > 
> > Something should I change?
> 
> It seems like you're still using the alpha-3 version as the POM format
> changed slighly from alpha 3 to trunk.
> 
> Make sure that your PATH include the newly built Maven 2 and that M2_HOME
> also is pointing to the correct location.
> 
> --
> Trygve

Wouldn't be good to start versioning the POM (it's allways 4.0.0, altough
changing)?

incze

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


Re: M2 Build from svn: Failed to parse model from file maven-plugin-parent-2.0-beta-1-SNAPSHOT.pom

Posted by Trygve Laugstøl <tr...@codehaus.org>.
On Wed, Aug 17, 2005 at 02:44:15AM +0300, Andrius Karpavicius wrote:
> Hello,
> 
> Wanted to try the latest version of M2 as described in 
> http://maven.apache.org/maven2/building.html.
> 
> Compilation and etc.. of Maven worked fine, but when trying to build my 
> project I get this error. The same task worked fine with alpha-3 release.
> 
> Something should I change?

It seems like you're still using the alpha-3 version as the POM format
changed slighly from alpha 3 to trunk.

Make sure that your PATH include the newly built Maven 2 and that M2_HOME
also is pointing to the correct location.

--
Trygve