RE: Error creating from archetype
So I tried to create different archetupes (sipmple project, web) and these seem to work, only portlet archetype is out of order. What would be the best way to proceed with trying to build portlets with Maven? Should I create a simple web project and add some needed files and folders manually? Evi -Original Message- From: evi [mailto:[EMAIL PROTECTED] Sent: Sunday, January 21, 2007 10:54 PM To: 'Maven Users List' Subject: RE: Error creating from archetype This jira issue seems to be very old, June-September 2006... Evi -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Sunday, January 21, 2007 10:29 PM To: Maven Users List Subject: Re: Error creating from archetype On 1/21/07, evi [EMAIL PROTECTED] wrote: Thanks for response. I tried to run 'mvn archetype:create' from elsewhere but had the same result. And yes, the eviart/pom.xml has many project elements in it, mine has six project elements... It seems to be like that in svn: http://svn.apache.org/repos/asf/maven/archetype/trunk/maven-archetype-bundle s/maven-archetype-portlet/src/main/resources/archetype-resources/pom.xml ... and there's already an issue open: http://jira.codehaus.org/browse/ARCHETYPE-40 -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error creating from archetype
On 1/20/07, evi [EMAIL PROTECTED] wrote: When executing C:\Documents and Settings\Administrator\Desktop\Installid\maven-2.0.4-bin\maven-2.0.4\binmvn archetype:create -DgroupId=evigr -DartifactId=eviart -DarchetypeArtifactId=maven-archetype-portlet -e I get an error: [INFO] Error creating from archetype Embedded error: Error reading POM start tag not allowed in epilog but got p (position: END_TAG seen .../dependencies\n/project\np... @46:3) What is going wrong? Please don't re-post the same question. Sometimes it will take more than a day for someone to have time to respond, especially on the weekend. I see the same thing. After this happens, look at eviart/pom.xml. Mine seems to have three project elements in it. There may be something wrong with the portlet archetype in the repository. I haven't yet had time to investigate, which is why I had not yet answered. (This is not the cause of your problem, but I'd suggest running 'mvn archetype:create' from a directory other than where you've installed Maven.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error creating from archetype
Thanks for response. I tried to run 'mvn archetype:create' from elsewhere but had the same result. And yes, the eviart/pom.xml has many project elements in it, mine has six project elements... Evi Will be more patient in future:-) -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Sunday, January 21, 2007 7:11 PM To: Maven Users List Subject: Re: Error creating from archetype On 1/20/07, evi [EMAIL PROTECTED] wrote: When executing C:\Documents and Settings\Administrator\Desktop\Installid\maven-2.0.4-bin\maven-2.0.4\b inmvn archetype:create -DgroupId=evigr -DartifactId=eviart -DarchetypeArtifactId=maven-archetype-portlet -e I get an error: [INFO] Error creating from archetype Embedded error: Error reading POM start tag not allowed in epilog but got p (position: END_TAG seen .../dependencies\n/project\np... @46:3) What is going wrong? Please don't re-post the same question. Sometimes it will take more than a day for someone to have time to respond, especially on the weekend. I see the same thing. After this happens, look at eviart/pom.xml. Mine seems to have three project elements in it. There may be something wrong with the portlet archetype in the repository. I haven't yet had time to investigate, which is why I had not yet answered. (This is not the cause of your problem, but I'd suggest running 'mvn archetype:create' from a directory other than where you've installed Maven.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error creating from archetype
On 1/21/07, evi [EMAIL PROTECTED] wrote: Thanks for response. I tried to run 'mvn archetype:create' from elsewhere but had the same result. And yes, the eviart/pom.xml has many project elements in it, mine has six project elements... It seems to be like that in svn: http://svn.apache.org/repos/asf/maven/archetype/trunk/maven-archetype-bundles/maven-archetype-portlet/src/main/resources/archetype-resources/pom.xml ... and there's already an issue open: http://jira.codehaus.org/browse/ARCHETYPE-40 -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error creating from archetype
This jira issue seems to be very old, June-September 2006... Evi -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Sunday, January 21, 2007 10:29 PM To: Maven Users List Subject: Re: Error creating from archetype On 1/21/07, evi [EMAIL PROTECTED] wrote: Thanks for response. I tried to run 'mvn archetype:create' from elsewhere but had the same result. And yes, the eviart/pom.xml has many project elements in it, mine has six project elements... It seems to be like that in svn: http://svn.apache.org/repos/asf/maven/archetype/trunk/maven-archetype-bundle s/maven-archetype-portlet/src/main/resources/archetype-resources/pom.xml ... and there's already an issue open: http://jira.codehaus.org/browse/ARCHETYPE-40 -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error creating from archetype, can somebody help?
Looks like you have a bad pom.xml file somewhere. Your file seems to have: /dependencies /project p... Wayne On 1/21/07, evi [EMAIL PROTECTED] wrote: Hello! When executing C:\Documents and Settings\Administrator\Desktop\Installid\maven-2.0.4-bin\maven-2.0.4\binmvn archetype:create -DgroupId=evigr -DartifactId=eviart -DarchetypeArtifactId=maven-archetype-portlet -e I get an error: [INFO] Error creating from archetype Embedded error: Error reading POM start tag not allowed in epilog but got p (position: END_TAG seen .../dependencies\n/project\np... @46:3) What is going wrong? Evi [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error creating from arch etype at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:219) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.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: Error creating from a rchetype at org.apache.maven.plugin.archetype.MavenArchetypeMojo.execute(MavenArc hetypeMojo.java:201) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) ... 16 more Caused by: org.apache.maven.archetype.ArchetypeTemplateProcessingException: Erro r reading POM at org.apache.maven.archetype.DefaultArchetype.processTemplates(DefaultA rchetype.java:498) at org.apache.maven.archetype.DefaultArchetype.createArchetype(DefaultAr chetype.java:329) at org.apache.maven.plugin.archetype.MavenArchetypeMojo.execute(MavenArc hetypeMojo.java:188) ... 18 more Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: start tag n ot allowed in epilog but got p (position: END_TAG seen .../dependencies\n/pro ject\np... @46:3) at org.codehaus.plexus.util.xml.pull.MXParser.parseEpilog(MXParser.java: 1585) at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:139 0) at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re ader.java:2394) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j ava:4422) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j ava:4433) at org.apache.maven.archetype.DefaultArchetype.processTemplates(DefaultA rchetype.java:490) ... 20 more [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Sat Jan 20 16:25:16 EET 2007 [INFO] Final Memory: 4M/8M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error creating from archetype, can somebody help?
On 1/21/07, Wayne Fay [EMAIL PROTECTED] wrote: Looks like you have a bad pom.xml file somewhere. ... No, (well, yes, but...) The portlet archetype is broken. http://www.nabble.com/APT-Images-With-URL-t3038137s177.html#a8478899 (evi: start a new thread next time, don't reply to an unrelated message...) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error creating from archetype, can somebody help?
Hi, Just an additional info. You could set your %M2_HOME%\bin to your path variable so that you won't have to cd to M2_HOME everytime when executing the batch file.. Cheers, -allan On 1/22/07, Wayne Fay [EMAIL PROTECTED] wrote: Looks like you have a bad pom.xml file somewhere. Your file seems to have: /dependencies /project p... Wayne On 1/21/07, evi [EMAIL PROTECTED] wrote: Hello! When executing C:\Documents and Settings\Administrator\Desktop\Installid\maven-2.0.4-bin\maven-2.0.4\bin mvn archetype:create -DgroupId=evigr -DartifactId=eviart -DarchetypeArtifactId=maven-archetype-portlet -e I get an error: [INFO] Error creating from archetype Embedded error: Error reading POM start tag not allowed in epilog but got p (position: END_TAG seen .../dependencies\n/project\np... @46:3) What is going wrong? Evi [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error creating from arch etype at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:219) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.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: Error creating from a rchetype at org.apache.maven.plugin.archetype.MavenArchetypeMojo.execute(MavenArc hetypeMojo.java:201) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) ... 16 more Caused by: org.apache.maven.archetype.ArchetypeTemplateProcessingException: Erro r reading POM at org.apache.maven.archetype.DefaultArchetype.processTemplates(DefaultA rchetype.java:498) at org.apache.maven.archetype.DefaultArchetype.createArchetype(DefaultAr chetype.java:329) at org.apache.maven.plugin.archetype.MavenArchetypeMojo.execute(MavenArc hetypeMojo.java:188) ... 18 more Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: start tag n ot allowed in epilog but got p (position: END_TAG seen .../dependencies\n/pro ject\np... @46:3) at org.codehaus.plexus.util.xml.pull.MXParser.parseEpilog(MXParser.java: 1585) at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:139 0) at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re ader.java:2394) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j ava:4422) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j ava:4433) at org.apache.maven.archetype.DefaultArchetype.processTemplates(DefaultA rchetype.java:490) ... 20 more [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Sat Jan 20 16:25:16 EET 2007 [INFO] Final Memory: 4M/8M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL