[
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