Oscar Bou created ISIS-501:
------------------------------
Summary: Maven error with DN enhancer: required artifact missing
Key: ISIS-501
URL: https://issues.apache.org/jira/browse/ISIS-501
Project: Isis
Issue Type: Dependency upgrade
Components: Objectstore: JDO
Affects Versions: objectstore-jdo-1.2.0
Reporter: Oscar Bou
Assignee: Oscar Bou
Fix For: objectstore-jdo-1.2.0
Seems that there has been changes on the DN repositories and/or dependencies
recently.
The current snapshot fails to build with message:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:23.839s
[INFO] Finished at: Tue Aug 27 21:14:03 CEST 2013
[INFO] Final Memory: 59M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.datanucleus:datanucleus-maven-plugin:3.2.0-release:enhance (default) on
project isis-objectstore-jdo-applib: Execution default of goal
org.datanucleus:datanucleus-maven-plugin:3.2.0-release:enhance failed: Plugin
org.datanucleus:datanucleus-maven-plugin:3.2.0-release or one of its
dependencies could not be resolved: Could not find artifact
javax.jdo:jdo-api:jar:3.1-SNAPSHOT -> [Help 1]
The solution, detailed on [1], is to go to the pom.xml of the "dom" (domain)
module and force the "datanucleus-maven-plugin" to use the jdo-api 3.0.1
version, instead of a the 3.0.1-SNAPSHOT version. To do that, simply add this:
<build>
<plugins>
<plugin>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-maven-plugin</artifactId>
<version>3.2.0-release</version>
<dependencies>
.....
<dependency>
<groupId>javax.jdo</groupId>
<artifactId>jdo-api</artifactId>
<version>3.0.1</version>
</dependency>
.....
[1] http://www.datanucleus.org/servlet/jira/browse/NUCMAVEN-27
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira