Thanks Svein. I noticed you are using IntelliJ, like me. Can I ask how you configured IntelliJ to use the 2.4 plugin instead either of the two it comes bundled with? I like to do everything from the IDE rather than 'mvn' from the command line. Thanks!
> Hi all, > > I am a first time user of Tapestry, and am attempting to build the > Tapestry QuickStart project. My IDE comes bundled with two versions of > Maven, but both fail to build the project (see below for the output of > both). > > I read on the Tapestry website the recommendation to use Maven 2.4, which > I downloaded. Though I am unsure where to place the JAR so that IntelliJ > will use it instead of either of the bundled versions. I prefer to build > from within IntelliJ rather than having to switch to commandline each time > to run 'mvn'. > > Your assistance would be greatly appreciated. > > > **My Environment** > > IDE: IntelliJ IDEA 2016.1.4 > SDK: 1.8.0_121 > Maven: 3.0.5 or 2.2.1 (bundled) > > > **Using Maven 2.2.1** > > "C:\Program Files\Java\jdk1.8.0_121\bin\java" "-Dmaven.home=C:\Program > Files\JetBrains\IntelliJ IDEA 2016.1.4\plugins\maven\lib\maven2" > "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA > 2016.1.4\plugins\maven\lib\maven2\bin\m2.conf" -Dfile.encoding=UTF-8 > -classpath "C:\Program Files\JetBrains\IntelliJ IDEA > 2016.1.4\plugins\maven\lib\maven2\boot\classworlds-1.1.jar" > org.codehaus.classworlds.Launcher -Didea.version=2016.1.4 > --no-plugin-registry -DinteractiveMode=false -DgroupId=com.example > -DartifactId=harbour -Dversion=1.0-SNAPSHOT > -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart > -DarchetypeVersion=RELEASE > org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error resolving version for > 'org.apache.maven.plugins:maven-archetype-plugin': Plugin requires Maven > version 3.0 > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: < 1 second > [INFO] Finished at: Sat Aug 19 20:35:24 NZST 2017 > [INFO] Final Memory: 3M/15M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Maven execution terminated abnormally (exit code 1) > > > **Using Maven 3.0.5** > > "C:\Program Files\Java\jdk1.8.0_121\bin\java" "-Dmaven.home=C:\Program > Files\JetBrains\IntelliJ IDEA 2016.1.4\plugins\maven\lib\maven3" > "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA > 2016.1.4\plugins\maven\lib\maven3\bin\m2.conf" -Dfile.encoding=UTF-8 > -classpath "C:\Program Files\JetBrains\IntelliJ IDEA > 2016.1.4\plugins\maven\lib\maven3\boot\plexus-classworlds-2.4.jar" > org.codehaus.classworlds.Launcher -Didea.version=2016.1.4 > -DinteractiveMode=false -DgroupId=com.example -DartifactId=harbour > -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.tapestry > -DarchetypeArtifactId=quickstart -DarchetypeVersion=RELEASE > org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate > [INFO] Scanning for projects... > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Maven Stub Project (No POM) 1 > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) @ > standalone-pom >>> > [INFO] > [INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) @ > standalone-pom <<< > [INFO] > [INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ > standalone-pom --- > [INFO] Generating project in Batch mode > [INFO] Archetype repository not defined. Using the one from > [org.apache.tapestry:quickstart:5.4.3] found in catalog remote > [INFO] > ---------------------------------------------------------------------------- > [INFO] Using following parameters for creating project from Archetype: > quickstart:RELEASE > [INFO] > ---------------------------------------------------------------------------- > [INFO] Parameter: groupId, Value: com.example > [INFO] Parameter: artifactId, Value: harbour > [INFO] Parameter: version, Value: 1.0-SNAPSHOT > [INFO] Parameter: package, Value: com.example > [INFO] Parameter: packageInPathFormat, Value: com/example > [INFO] Parameter: package, Value: com.example > [INFO] Parameter: version, Value: 1.0-SNAPSHOT > [INFO] Parameter: groupId, Value: com.example > [INFO] Parameter: artifactId, Value: harbour > [WARNING] Don't override file > C:\Users\Setup\AppData\Local\Temp\archetypetmp\harbour\src\test\java > [WARNING] Don't override file > C:\Users\Setup\AppData\Local\Temp\archetypetmp\harbour\src\main\webapp > [ERROR] ResourceManager.getResource() parse exception > [ERROR] org.apache.velocity.exception.ParseErrorException: Lexical > error, > Encountered: "\ufffd" (65533), after : "" at > archetype-resources/src/main/webapp/mybootstrap/fonts/glyphicons-halflings-regular.eot[line > 16, column 21] > at org.apache.velocity.Template.process(Template.java:151) > at > org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:437) > at > org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:352) > at > org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1533) > at > org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:343) > at > org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator.processTemplate(DefaultFilesetArchetypeGenerator.java:770) > at > org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator.processFileSet(DefaultFilesetArchetypeGenerator.java:571) > at > org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator.processTemplates(DefaultFilesetArchetypeGenerator.java:820) > at > org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator.processArchetypeTemplates(DefaultFilesetArchetypeGenerator.java:545) > at > org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator.processFilesetProject(DefaultFilesetArchetypeGenerator.java:663) > at > org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator.processFilesetModule(DefaultFilesetArchetypeGenerator.java:596) > at > org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator.generateArchetype(DefaultFilesetArchetypeGenerator.java:207) > at > org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processFileSetArchetype(DefaultArchetypeGenerator.java:135) > at > org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:106) > at > org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:149) > at > org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:175) > at > org.apache.maven.archetype.DefaultArchetypeManager.generateProjectFromArchetype(DefaultArchetypeManager.java:73) > at > org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:202) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > at org.codehaus.classworlds.Launcher.main(Launcher.java:47) > > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 12.773s > [INFO] Finished at: Sat Aug 19 20:37:48 NZST 2017 > [INFO] Final Memory: 9M/38M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate > (default-cli) on project standalone-pom: > org.apache.maven.archetype.exception.ArchetypeGenerationFailure: Error > merging velocity templates: Lexical error, Encountered: "\ufffd" > (65533), after : "" at > archetype-resources/src/main/webapp/mybootstrap/fonts/glyphicons-halflings-regular.eot[line > 16, column 21] -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the > -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > [ERROR] Maven execution terminated abnormally (exit code 1) > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org