[
https://issues.apache.org/jira/browse/SMX4NMR-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré resolved SMX4NMR-278.
------------------------------------------
Resolution: Fixed
Thanks for the patch Jonathan.
Revision 1144420.
> Build issue with NMR source when offline
> ----------------------------------------
>
> Key: SMX4NMR-278
> URL: https://issues.apache.org/jira/browse/SMX4NMR-278
> Project: ServiceMix NMR
> Issue Type: Task
> Reporter: Jonathan Anstey
> Assignee: Jean-Baptiste Onofré
> Attachments: add-plugin-versions.diff
>
>
> If you build the NMR in an environment without Internet access or with the -o
> option, you may get an error like the following:
> {code}
> ERROR] Error resolving version for plugin
> 'org.codehaus.mojo:cobertura-maven-plugin' from the repositories [local
> (/home/janstey/.m2/repository), central (http://repo1.maven.org/maven2)]:
> Plugin not found in any plugin repository
> {code}
> This is because there are no versions specified for most plugins so it is
> left up to Maven to determine the best version to use... which it fails at in
> this situation :) Adding versions seems to do the trick so I'm going to
> attach a path for this shortly.
> This also gets rid of a bunch of Maven 3 warnings like:
> {code}
> [WARNING] Some problems were encountered while building the effective model
> for
> org.apache.servicemix.nmr:org.apache.servicemix.nmr.branding:bundle:1.5.0-SNAPSHOT
> [WARNING] 'reporting.plugins.plugin.version' for
> org.apache.maven.plugins:maven-javadoc-plugin is missing.
> [WARNING] 'reporting.plugins.plugin.version' for
> org.apache.maven.plugins:maven-jxr-plugin is missing.
> [WARNING] 'reporting.plugins.plugin.version' for
> org.codehaus.mojo:cobertura-maven-plugin is missing.
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira