[ 
https://issues.apache.org/jira/browse/ARCHETYPE-482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Petar Tahchiev resolved ARCHETYPE-482.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4

> Regression: goal.txt doesn't accept ending the goals with a new line anymore
> ----------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-482
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-482
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 2.3
>         Environment: OS X 10.10.3
> Oracle JDK 1.7.0_80
>            Reporter: Christian Schlichtherle
>             Fix For: 2.4
>
>
> In the file {{src/test/resources/projects/basic/goal.txt}} If have the 
> following content:
> {code}
> verify
> {code}
> Note that the file terminates with a new line character, which is not 
> displayed here.
> This used to work fine with the maven-archetype-plugin 2.2. Now with 2.3, I 
> get the following when trying to run the integration test for the archetype 
> module:
> {code}
> [INFO] --- maven-archetype-plugin:2.3:integration-test 
> (default-integration-test) @ truevfs-archetype-profile ---
> [INFO] Processing Archetype IT project: basic
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Using following parameters for creating project from Archetype: 
> truevfs-archetype-profile:0.10.9-SNAPSHOT
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Parameter: groupId, Value: com.company
> [INFO] Parameter: artifactId, Value: truevfs-profile-custom
> [INFO] Parameter: version, Value: 0.1-SNAPSHOT
> [INFO] Parameter: package, Value: null
> [INFO] Parameter: packageInPathFormat, Value: null
> [INFO] Parameter: version, Value: 0.1-SNAPSHOT
> [INFO] Parameter: truevfs-version, Value: 0.10.9-SNAPSHOT
> [INFO] Parameter: scala-version, Value: 2.11.6
> [INFO] Parameter: groupId, Value: com.company
> [INFO] Parameter: truecommons-version, Value: 2.5-SNAPSHOT
> [INFO] Parameter: artifactId, Value: truevfs-profile-custom
> [INFO] project created from Archetype in dir: 
> /Users/christian/projects/truevfs~v1/truevfs-archetype/truevfs-archetype-profile/target/test-classes/projects/basic/project/truevfs-profile-custom
> [INFO] Invoking post-archetype-generation goals: verify
> [INFO] [INFO] Error stacktraces are turned on.
> [INFO] [INFO] Scanning for projects...
> [INFO] [INFO]                                                                 
>         
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] Building truevfs-profile-custom 0.1-SNAPSHOT
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] BUILD FAILURE
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] Total time: 0.094s
> [INFO] [INFO] Finished at: Sat May 16 18:24:48 CEST 2015
> [INFO] [INFO] Final Memory: 9M/245M
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [ERROR] Unknown lifecycle phase "verify
> [INFO] [ERROR] ". You must specify a valid lifecycle phase or a goal in the 
> format <plugin-prefix>:<goal> or 
> <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available 
> lifecycle phases are: validate, initialize, generate-sources, 
> process-sources, generate-resources, process-resources, compile, 
> process-classes, generate-test-sources, process-test-sources, 
> generate-test-resources, process-test-resources, test-compile, 
> process-test-classes, test, prepare-package, package, pre-integration-test, 
> integration-test, post-integration-test, verify, install, deploy, pre-clean, 
> clean, post-clean, pre-site, site, post-site, site-deploy.
> [INFO] [ERROR] -> [Help 1]
> [INFO] org.apache.maven.lifecycle.LifecyclePhaseNotFoundException: Unknown 
> lifecycle phase "verify
> [INFO] ". You must specify a valid lifecycle phase or a goal in the format 
> <plugin-prefix>:<goal> or 
> <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available 
> lifecycle phases are: validate, initialize, generate-sources, 
> process-sources, generate-resources, process-resources, compile, 
> process-classes, generate-test-sources, process-test-sources, 
> generate-test-resources, process-test-resources, test-compile, 
> process-test-classes, test, prepare-package, package, pre-integration-test, 
> integration-test, post-integration-test, verify, install, deploy, pre-clean, 
> clean, post-clean, pre-site, site, post-site, site-deploy.
> [INFO]        at 
> org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateLifecycleMappings(DefaultLifecycleExecutionPlanCalculator.java:222)
> [INFO]        at 
> org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:193)
> [INFO]        at 
> org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:112)
> [INFO]        at 
> org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:129)
> [INFO]        at 
> org.apache.maven.lifecycle.internal.BuilderCommon.resolveBuildPlan(BuilderCommon.java:92)
> [INFO]        at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
> [INFO]        at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> [INFO]        at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> [INFO]        at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> [INFO]        at 
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> [INFO]        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> [INFO]        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> [INFO]        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> [INFO]        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> [INFO]        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [INFO]        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> [INFO]        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [INFO]        at java.lang.reflect.Method.invoke(Method.java:606)
> [INFO]        at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> [INFO]        at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> [INFO]        at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> [INFO]        at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> [INFO] [ERROR] 
> [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [INFO] [ERROR] 
> [INFO] [ERROR] For more information about the errors and possible solutions, 
> please read the following articles:
> [INFO] [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
> [INFO] Post-archetype-generation invoker exit code: 1
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 2.998s
> [INFO] Finished at: Sat May 16 18:24:48 CEST 2015
> [INFO] Final Memory: 17M/245M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:2.3:integration-test 
> (default-integration-test) on project truevfs-archetype-profile:
> [ERROR] Archetype IT 'basic' failed: Execution failure: exit code = 1
> [ERROR] -> [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/MojoExecutionException
> {code}
> Apparently the newline character is read now. Removing the newline character 
> solves the problem indeed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to