You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Simone Tripodi (JIRA)" <ji...@codehaus.org> on 2013/01/08 13:12:13 UTC
[jira] (MDOAP-38) property value not interpolated
Simone Tripodi created MDOAP-38:
-----------------------------------
Summary: <shortdesc> property value not interpolated
Key: MDOAP-38
URL: https://jira.codehaus.org/browse/MDOAP-38
Project: Maven 2.x DOAP Plugin
Issue Type: Bug
Affects Versions: 1.1
Reporter: Simone Tripodi
I am trying to use the DOAP-plugin in [Apache Onami|http://svn.apache.org/repos/asf/incubator/onami/trunk/parent/pom.xml] and noticed that {{shortdesc}} property is not interpolated.
If not specified, the plugin terminates with an error:
{code}
[ERROR] A <doapOptions><shortdesc/></doapOptions> parameter is required by ASF.
{code}
If I specify as
{code}
<doapOptions>
<shortdesc>${project.description}</shortdesc>
</doapOptions>
{code}
it terminates with the same error message:
{code}
[ERROR] A <doapOptions><shortdesc/></doapOptions> parameter is required by ASF.
{code}
If I set a value, such as
{code}
<doapOptions>
<shortdesc>Bazinga!</shortdesc>
</doapOptions>
{code}
It goes ok.
Ah, and yes, the ${project.description} property is specified in the pom :P
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MDOAP-38) too long value provide better error
message
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDOAP-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MDOAP-38.
-----------------------------
Resolution: Fixed
Fix Version/s: 1.2
Assignee: Olivier Lamy
fixed.
message will be "The <doapOptions><shortdesc/></doapOptions> first is too long maximum words number is 10."
> <shortdesc> too long value provide better error message
> -------------------------------------------------------
>
> Key: MDOAP-38
> URL: https://jira.codehaus.org/browse/MDOAP-38
> Project: Maven 2.x DOAP Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Reporter: Simone Tripodi
> Assignee: Olivier Lamy
> Fix For: 1.2
>
>
> I am trying to use the DOAP-plugin in [Apache Onami|http://svn.apache.org/repos/asf/incubator/onami/trunk/parent/pom.xml] and noticed that {{shortdesc}} property is not interpolated.
> If not specified, the plugin terminates with an error:
> {code}
> [ERROR] A <doapOptions><shortdesc/></doapOptions> parameter is required by ASF.
> {code}
> If I specify as
> {code}
> <doapOptions>
> <shortdesc>${project.description}</shortdesc>
> </doapOptions>
> {code}
> it terminates with the same error message:
> {code}
> [ERROR] A <doapOptions><shortdesc/></doapOptions> parameter is required by ASF.
> {code}
> If I set a value, such as
> {code}
> <doapOptions>
> <shortdesc>Bazinga!</shortdesc>
> </doapOptions>
> {code}
> It goes ok.
> Ah, and yes, the ${project.description} property is specified in the pom :P
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MDOAP-38) too long value provide better error
message
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDOAP-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy updated MDOAP-38:
------------------------------
Summary: <shortdesc> too long value provide better error message (was: <shortdesc> property value not interpolated)
> <shortdesc> too long value provide better error message
> -------------------------------------------------------
>
> Key: MDOAP-38
> URL: https://jira.codehaus.org/browse/MDOAP-38
> Project: Maven 2.x DOAP Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Reporter: Simone Tripodi
>
> I am trying to use the DOAP-plugin in [Apache Onami|http://svn.apache.org/repos/asf/incubator/onami/trunk/parent/pom.xml] and noticed that {{shortdesc}} property is not interpolated.
> If not specified, the plugin terminates with an error:
> {code}
> [ERROR] A <doapOptions><shortdesc/></doapOptions> parameter is required by ASF.
> {code}
> If I specify as
> {code}
> <doapOptions>
> <shortdesc>${project.description}</shortdesc>
> </doapOptions>
> {code}
> it terminates with the same error message:
> {code}
> [ERROR] A <doapOptions><shortdesc/></doapOptions> parameter is required by ASF.
> {code}
> If I set a value, such as
> {code}
> <doapOptions>
> <shortdesc>Bazinga!</shortdesc>
> </doapOptions>
> {code}
> It goes ok.
> Ah, and yes, the ${project.description} property is specified in the pom :P
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MDOAP-38) property value not interpolated
Posted by "Simone Tripodi (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDOAP-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=316952#comment-316952 ]
Simone Tripodi commented on MDOAP-38:
-------------------------------------
This is my environment:
{code}
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /Applications/apache-maven-3.0.4
Java version: 1.6.0_37, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.2", arch: "x86_64", family: "mac"
{code}
> <shortdesc> property value not interpolated
> -------------------------------------------
>
> Key: MDOAP-38
> URL: https://jira.codehaus.org/browse/MDOAP-38
> Project: Maven 2.x DOAP Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Reporter: Simone Tripodi
>
> I am trying to use the DOAP-plugin in [Apache Onami|http://svn.apache.org/repos/asf/incubator/onami/trunk/parent/pom.xml] and noticed that {{shortdesc}} property is not interpolated.
> If not specified, the plugin terminates with an error:
> {code}
> [ERROR] A <doapOptions><shortdesc/></doapOptions> parameter is required by ASF.
> {code}
> If I specify as
> {code}
> <doapOptions>
> <shortdesc>${project.description}</shortdesc>
> </doapOptions>
> {code}
> it terminates with the same error message:
> {code}
> [ERROR] A <doapOptions><shortdesc/></doapOptions> parameter is required by ASF.
> {code}
> If I set a value, such as
> {code}
> <doapOptions>
> <shortdesc>Bazinga!</shortdesc>
> </doapOptions>
> {code}
> It goes ok.
> Ah, and yes, the ${project.description} property is specified in the pom :P
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MDOAP-38) property value not interpolated
Posted by "Simone Tripodi (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MDOAP-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=316970#comment-316970 ]
Simone Tripodi commented on MDOAP-38:
-------------------------------------
I maybe got where my error is, I just noticed the following code snippet:
{code}
// try to get the first 10 words of the description
String sentence = StringUtils.split( shortdesc, "." )[0];
if ( StringUtils.split( sentence, " " ).length > 10 )
{
messages.addMessage( new String[] { "doapOptions", "shortdesc" }, null,
UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
return;
}
{code}
The error message maybe gets users confused because the value could be set but doesn't match the requirements.
> <shortdesc> property value not interpolated
> -------------------------------------------
>
> Key: MDOAP-38
> URL: https://jira.codehaus.org/browse/MDOAP-38
> Project: Maven 2.x DOAP Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Reporter: Simone Tripodi
>
> I am trying to use the DOAP-plugin in [Apache Onami|http://svn.apache.org/repos/asf/incubator/onami/trunk/parent/pom.xml] and noticed that {{shortdesc}} property is not interpolated.
> If not specified, the plugin terminates with an error:
> {code}
> [ERROR] A <doapOptions><shortdesc/></doapOptions> parameter is required by ASF.
> {code}
> If I specify as
> {code}
> <doapOptions>
> <shortdesc>${project.description}</shortdesc>
> </doapOptions>
> {code}
> it terminates with the same error message:
> {code}
> [ERROR] A <doapOptions><shortdesc/></doapOptions> parameter is required by ASF.
> {code}
> If I set a value, such as
> {code}
> <doapOptions>
> <shortdesc>Bazinga!</shortdesc>
> </doapOptions>
> {code}
> It goes ok.
> Ah, and yes, the ${project.description} property is specified in the pom :P
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira