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

Matthias Mantel updated MRELEASE-924:
-------------------------------------
    Description: 
If there is a newline inside the value of "arguments" the build results in an 
error:

{noformat}
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] Total time: 1.150s
[INFO] [INFO] Finished at: Tue Sep 29 17:49:51 CEST 2015
[INFO] [INFO] Final Memory: 16M/619M
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [ERROR] No goals have been specified for this build. 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. -> [Help 1]
[INFO] [ERROR] 
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e switch.
[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/NoGoalSpecifiedException
[INFO] ------------------------------------------------------------------------
{noformat}

Configuration inside the pom:

{code}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5.2</version>
                <configuration>
                                <username>jenkins</username>
                               <password>jenkins</password>
                               <arguments>-Di18n.de.version=${i18n.de.version} 
-DSERVER_SVNURL=${SERVER_SVNURL} -Dtest.env=jenkins</arguments>
                               <tagBase>A_SVN_URL</tagBase>
                               <preparationGoals>compile</preparationGoals>
                               
<autoVersionSubmodules>true</autoVersionSubmodules>
                </configuration>
</plugin>
{code}

As we're using an enforced formatting of xml code, Eclipse will break lines 
inside a xml value. 
It would be nice if you could either ignore those new line characters or at 
least print out a reasonable error message. It is quite annoying to find out 
that the error lies in a new line character of a xml value ;)

If you need any further information, feel free to ask.

Thanks,

Matthias.

  was:
If there is a newline inside the value of "arguments" the build results in an 
error:

{noformat}
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] Total time: 1.150s
[INFO] [INFO] Finished at: Tue Sep 29 17:49:51 CEST 2015
[INFO] [INFO] Final Memory: 16M/619M
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [ERROR] No goals have been specified for this build. 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. -> [Help 1]
[INFO] [ERROR] 
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e switch.
[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/NoGoalSpecifiedException
[INFO] ------------------------------------------------------------------------
{noformat}

Configuration inside the pom:

{code}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5.2</version>
                <configuration>
                                <username>jenkins</username>
                               <password>jenkins</password>
                               <arguments>-Di18n.de.version=${i18n.de.version} 
-DSERVER_SVNURL=${SERVER_SVNURL} -Dtest.env=jenkins</arguments>
                               <tagBase>A_SVN_URL</tagBase>
                               <preparationGoals>compile</preparationGoals>
                               
<autoVersionSubmodules>true</autoVersionSubmodules>
                </configuration>
</plugin>
{code}

As we're using a enforced a formatting of xml code, Eclipse will break lines 
inside a xml value. 
It would be nice if you could either ignore those new line characters or at 
least print out a reasonable error message. It is quite annoying to find out 
that the error lies in a new line character of a xml value ;)

If you need any further information, feel free to ask.

Thanks,

Matthias.


> New line character inside the arguments value results in error
> --------------------------------------------------------------
>
>                 Key: MRELEASE-924
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-924
>             Project: Maven Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5.2
>            Reporter: Matthias Mantel
>
> If there is a newline inside the value of "arguments" the build results in an 
> error:
> {noformat}
> [INFO] [INFO] BUILD FAILURE
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] Total time: 1.150s
> [INFO] [INFO] Finished at: Tue Sep 29 17:49:51 CEST 2015
> [INFO] [INFO] Final Memory: 16M/619M
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [ERROR] No goals have been specified for this build. 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. -> [Help 1]
> [INFO] [ERROR] 
> [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with 
> the -e switch.
> [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/NoGoalSpecifiedException
> [INFO] 
> ------------------------------------------------------------------------
> {noformat}
> Configuration inside the pom:
> {code}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-release-plugin</artifactId>
>                 <version>2.5.2</version>
>                 <configuration>
>                                 <username>jenkins</username>
>                                <password>jenkins</password>
>                                
> <arguments>-Di18n.de.version=${i18n.de.version} 
> -DSERVER_SVNURL=${SERVER_SVNURL} -Dtest.env=jenkins</arguments>
>                                <tagBase>A_SVN_URL</tagBase>
>                                <preparationGoals>compile</preparationGoals>
>                                
> <autoVersionSubmodules>true</autoVersionSubmodules>
>                 </configuration>
> </plugin>
> {code}
> As we're using an enforced formatting of xml code, Eclipse will break lines 
> inside a xml value. 
> It would be nice if you could either ignore those new line characters or at 
> least print out a reasonable error message. It is quite annoying to find out 
> that the error lies in a new line character of a xml value ;)
> If you need any further information, feel free to ask.
> Thanks,
> Matthias.



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

Reply via email to