Seems that there has been changes on the DN repositories and/or dependencies 
recently.

Our current build process has just failed with message:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:07.084s (Wall Clock)
[INFO] Finished at: Sun Aug 25 22:09:56 CEST 2013
[INFO] Final Memory: 23M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.datanucleus:datanucleus-maven-plugin:3.2.0-release:enhance (default) on 
project xms-framework-architecture-domain: 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]
[ERROR] 


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> 

                                                                                
.....




Some time ago, there was another "problem" regarding the "datanucleus-core" 
version used by the "datanucleus-maven-plugin", incompatible with the one used 
by Isis. That forced also to add to the "dependencies" another one.

So, just for completeness and to let others have the full working example, I've 
pasted it here:


                .......
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.datanucleus</groupId>
                                
<artifactId>datanucleus-maven-plugin</artifactId>
                                <version>3.2.0-release</version>
                                <!-- XMS -->
                                <dependencies>
                                        <!-- Force the enhancer to use the same 
version of core that's already 
                                                on the classpath -->
                                        <dependency>
                                                
<groupId>org.datanucleus</groupId>
                                                
<artifactId>datanucleus-core</artifactId>
                                                <version>3.2.4</version>
                                        </dependency>
                                        <!-- Force the enhancer to use a 
released version, instead of the SNAPSHOT 
                                                version. -->
                                        <dependency>
                                                <groupId>javax.jdo</groupId>
                                                <artifactId>jdo-api</artifactId>
                                                <version>3.0.1</version>
                                        </dependency>
                                </dependencies>
                                <!-- XMS -->
                                <configuration>
                                .....




HTH,

Oscar



[1] http://www.datanucleus.org/servlet/jira/browse/NUCMAVEN-27

Reply via email to