zy681249 / test-analytics

Automatically exported from code.google.com/p/test-analytics
0 stars 0 forks source link

Last checking to pom.xml broke the build #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The last checking (changing repository tag to pluginRepository) breaks the 
build as gwt-dnd cannot be resolved anymore. I assume who ever checked it in 
had a local copy of the jar in .m2. 
Reverting resolved the gwt-dnd unresolved dependency but there are still 
missing artifacts:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) javax.jdo:jdo2-api:jar:2.3-ec

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=javax.jdo -DartifactId=jdo2-api -Dversion=2.3-ec -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=jdo2-api -Dversion=2.3-ec -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
    1) org.datanucleus:maven-datanucleus-plugin:maven-plugin:1.1.4
    2) javax.jdo:jdo2-api:jar:2.3-ec

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

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

from the specified remote repositories:
  maven-secure.jive.snapshots (http://maven-secure.jiveland.com/archiva/repository/jive.snapshots),
  maven-secure.jive.internal (http://maven-secure.jiveland.com/archiva/repository/jive.internal),
  central (http://repo1.maven.org/maven2),
  DN_M2_Repo (http://www.datanucleus.org/downloads/maven2/),
  maven-int.snapshots (http://maven-int.jiveland.com/archiva/repository/snapshots),
  has gwt-dnd 3.1.1 (http://gwtquery-plugins.googlecode.com/svn/mavenrepo),
  maven-int.internal (http://maven-int.jiveland.com/archiva/repository/internal),
  sonatype-releases (https://oss.sonatype.org/content/repositories/releases)

Original issue reported on code.google.com by dirkh...@gmail.com on 3 Feb 2012 at 9:01

GoogleCodeExporter commented 8 years ago
Are you sure this broke this specifically?  It seems like that repo doesn't 
provide what it's complaining is  missing, so I'm unclear on why changing the 
gwtquery repo would have any affect.

Do you know what alterations to the file would fix it for your build?

Original comment by jimr@google.com on 3 Feb 2012 at 10:33

GoogleCodeExporter commented 8 years ago
I added this to the pom:

  <repositories>
    <repository>
      <id>has gwt-dnd 3.1.1</id>
      <url>http://gwtquery-plugins.googlecode.com/svn/mavenrepo</url>
    </repository>
    <repository>
      <id>has jdo-api-2.3-ec</id>
      <url>http://www.datanucleus.org/downloads/maven2</url>
    </repository>
  </repositories>

I did remove the pluginRepository section but that might not have been 
necessary. After adding the section above I still needed to download 
jdo2-api-2.3-ec.jar from 
http://www.datanucleus.org/downloads/maven2/javax/jdo/jdo2-api/2.3-ec/ and 
install it via mvn install:install-file -DgroupId=javax.jdo 
-DartifactId=jdo2-api -Dversion=2.3-ec -Dpackaging=jar -Dfile=<pathToFile> 
which finally got me a war artifact.

Original comment by dirkh...@gmail.com on 3 Feb 2012 at 10:52

GoogleCodeExporter commented 8 years ago
On rereading my above comment - obviously adding the DN repo did not work since 
I still had to install the latest jdo jar. I guess the DN folks are a little 
behind in pushing their latest jar to maven.

Original comment by dirkh...@gmail.com on 3 Feb 2012 at 10:53

GoogleCodeExporter commented 8 years ago

Original comment by jimr@google.com on 16 May 2012 at 4:19