DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCAPIJDO-41
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Unassigned
Reporter: Torben Vesterager
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus API JDO

Missing: javax.jdo:jdo-api:jar:3.1-SNAPSHOT-20120609

Created: 10/Sep/12 09:30 AM   Updated: 06/Jan/13 08:12 PM   Resolved: 10/Sep/12 12:57 PM
Component/s: None
Affects Version/s: 3.1.0.release
Fix Version/s: None


 Description  « Hide
Downloading: http://repo1.maven.org/maven2/javax/jdo/jdo-api/3.1-SNAPSHOT-20120609/jdo-api-3.1-SNAPSHOT-20120609.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) javax.jdo:jdo-api:jar:3.1-SNAPSHOT-20120609

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=javax.jdo -DartifactId=jdo-api -Dversion=3.1-SNAPSHOT-20120609 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=javax.jdo -DartifactId=jdo-api -Dversion=3.1-SNAPSHOT-20120609 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.datanucleus:maven-datanucleus-plugin:maven-plugin:3.0.2
        2) javax.jdo:jdo-api:jar:3.1-SNAPSHOT-20120609

----------
1 required artifact is missing.

for artifact:
  org.datanucleus:maven-datanucleus-plugin:maven-plugin:3.0.2



Sort Order: Ascending order - Click to sort in descending order
Torben Vesterager added a comment - 10/Sep/12 12:11 PM
pom.xml:

<!-- JDO & DataNucleus -->
<dependency>
<groupId>javax.jdo</groupId>
<artifactId>jdo-api</artifactId>
<version>3.0</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-core</artifactId>
<version>3.1.0-release</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-api-jdo</artifactId>
<version>3.1.0-release</version>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-rdbms</artifactId>
<version>3.1.0-release</version>
<scope>runtime</scope>
</dependency>

Andy Jefferson added a comment - 10/Sep/12 12:57 PM
This artifact is present in DN M2 repo, so no idea why Maven is incapable of seeing that; if you find out why then post back here if there's some more info that can go in the DN M2 repo, but not a priority for us.

Anyway, the problem really is Apache JDO not bothering releasing things better than every 2 or 3 years.

Torben Vesterager added a comment - 10/Sep/12 01:06 PM
Log output from our Jenkins build server:

[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 73 source files to /home/hudson/hudson/jobs/Deploy-SOA-trunk/workspace/integration/skjema2/target/classes
[INFO] artifact org.datanucleus:datanucleus-core: checking for updates from nexus
[INFO] artifact org.datanucleus:datanucleus-core: checking for updates from DN_M2_Repo
[INFO] artifact org.datanucleus:datanucleus-core: checking for updates from central
[INFO] artifact org.datanucleus:datanucleus-core: checking for updates from nexusSnapshot
[INFO] artifact org.datanucleus:datanucleus-core: checking for updates from nexusPublic
[INFO] artifact org.datanucleus:datanucleus-core: checking for updates from central
[INFO] artifact org.datanucleus:datanucleus-enhancer: checking for updates from nexus
[INFO] artifact org.datanucleus:datanucleus-enhancer: checking for updates from DN_M2_Repo
[INFO] artifact org.datanucleus:datanucleus-enhancer: checking for updates from central
[INFO] artifact org.datanucleus:datanucleus-enhancer: checking for updates from nexusSnapshot
[INFO] artifact org.datanucleus:datanucleus-enhancer: checking for updates from nexusPublic
[INFO] artifact org.datanucleus:datanucleus-enhancer: checking for updates from central
[INFO] artifact asm:asm: checking for updates from nexus
[INFO] artifact asm:asm: checking for updates from DN_M2_Repo
[INFO] artifact asm:asm: checking for updates from nexusSnapshot
[INFO] artifact asm:asm: checking for updates from nexusPublic
[INFO] artifact asm:asm: checking for updates from central
[INFO] artifact javax.jdo:jdo-api: checking for updates from nexus
[INFO] artifact javax.jdo:jdo-api: checking for updates from DN_M2_Repo
[INFO] artifact javax.jdo:jdo-api: checking for updates from central
[INFO] artifact javax.jdo:jdo-api: checking for updates from nexusSnapshot
[INFO] artifact javax.jdo:jdo-api: checking for updates from nexusPublic
[INFO] artifact javax.jdo:jdo-api: checking for updates from central
Downloading: http://test-oks-portal:8100/nexus/content/groups/public/javax/jdo/jdo-api/3.1-SNAPSHOT-20120609/jdo-api-3.1-SNAPSHOT-20120609.pom
[INFO] Unable to find resource 'javax.jdo:jdo-api:pom:3.1-SNAPSHOT-20120609' in repository nexus (http://test-oks-portal:8100/nexus/content/groups/public)
Downloading: http://www.datanucleus.org/downloads/maven2//javax/jdo/jdo-api/3.1-SNAPSHOT-20120609/jdo-api-3.1-SNAPSHOT-20120609.pom
1/5K
2/5K
3/5K
5/5K
5/5K
5K downloaded (jdo-api-3.1-SNAPSHOT-20120609.pom)
Downloading: http://repo1.maven.org/maven2/javax/jdo/jdo-api/3.1-SNAPSHOT-20120609/jdo-api-3.1-SNAPSHOT-20120609.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) javax.jdo:jdo-api:jar:3.1-SNAPSHOT-20120609

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=javax.jdo -DartifactId=jdo-api -Dversion=3.1-SNAPSHOT-20120609 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=javax.jdo -DartifactId=jdo-api -Dversion=3.1-SNAPSHOT-20120609 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
   1) org.datanucleus:maven-datanucleus-plugin:maven-plugin:3.0.2
   2) javax.jdo:jdo-api:jar:3.1-SNAPSHOT-20120609

----------
1 required artifact is missing.

for artifact:
  org.datanucleus:maven-datanucleus-plugin:maven-plugin:3.0.2

from the specified remote repositories:
  nexusPublic (http://test-oks-portal:8100/nexus/content/groups/public),
  nexusSnapshot (http://test-oks-portal:8100/nexus/content/repositories/snapshots),
  central (http://repo1.maven.org/maven2),
  libs-snapshot-local (http://jenkins.usrv.ubergenkom.no/artifactory/libs-snapshot-local),
  nexus (http://test-oks-portal:8100/nexus/content/groups/public),
  libs-release-local (http://jenkins.usrv.ubergenkom.no/artifactory/libs-release-local),
  DN_M2_Repo (http://www.datanucleus.org/downloads/maven2/),
  ext-release-local (http://jenkins.usrv.ubergenkom.no/artifactory/ext-release-local),
  ext-snapshot-local (http://jenkins.usrv.ubergenkom.no/artifactory/ext-snapshot-local)


Torben Vesterager added a comment - 10/Sep/12 01:07 PM
Yes, it is strange that it downloads the pom from http://www.datanucleus.org/downloads/maven2
But it only tries to download the .jar from http://repo1.maven.org/maven2

Andy Jefferson added a comment - 10/Sep/12 01:11 PM
Suggest you try something in your pom.xml with a "repository" for DN M2 repo, with
<snapshots>
    <enabled>true</enabled>
</snapshots>
setting? maybe it counts it as a SNAPSHOT and doesn't download without that?

Torben Vesterager added a comment - 10/Sep/12 01:45 PM - edited
Thanks Andy - defining your repo in our mother-pom did the trick:

<repository>
<id>DN_M2_Repo</id>
<name>http://www.datanucleus.org/downloads/maven2&lt;/name>
<url>http://www.datanucleus.org/downloads/maven2&lt;/url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>

Although - it's not really great to reference a SNAPSHOT jar from a release, is it?

Emmanuel Poitier added a comment - 06/Jan/13 08:12 PM
All,

in my case, I was obliged to use an external maven repository (http://dev.nightlabs.org/maven-repository/DataNucleus_M2-cache) as shown in the patch below for any persons encountering the issue. The same issue happened for the jdo-connector plugin as well.

Index: pom.xml
===================================================================
--- pom.xml (révision 16337)
+++ pom.xml (copie de travail)
@@ -36,6 +36,13 @@
 
     <repositories>
         <repository>
+ <id>DN_M2_Cache</id>
+ <url>http://dev.nightlabs.org/maven-repository/DataNucleus_M2-cache&lt;/url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <repository>
             <id>DN_M2_Repo</id>
             <url>http://www.datanucleus.org/downloads/maven2/&lt;/url>
             <snapshots>
@@ -76,7 +83,7 @@
         <dependency>
             <groupId>javax.jdo</groupId>
             <artifactId>jdo-api</artifactId>
- <version>3.1-SNAPSHOT</version>
+ <version>3.1-SNAPSHOT-20120609</version>
         </dependency>
         <dependency>
             <groupId>javax.resource</groupId>


Best regards,
Emmanuel Poitier