Migrate to maven 2 and M2Eclipse (Eclipse with Maven integrated)
So folks... inorder to get my Eclipse IDE up the way I want it I tried to migrate the project from Maven 1 to Maven 2. I think I'm almost there but there are some issues with the repositories that I can't fix.
Here's what I want to do:
http://docs.codehaus.org/display/M2ECLIPSE/Integration+with+Subversive
Here's the guide that I followed:
http://maven.apache.org/guides/mini/guide-m1-m2.html and http://maven.apache.org/download.html
Which generated the pom.xml that I needed (see attachment for the pom.xml for archtypes). Now I get this issue in Eclipse when I try to load the project.
2/1/09 8:50:01 PM PST: Missing artifact commons-resources:commons-resources:jar:1.0-dev:compile
2/1/09 8:50:01 PM PST: Missing artifact jtestcase:jtestcase:jar:3.0.0:compile
2/1/09 8:50:01 PM PST: Missing indirectly referenced artifact xmlbeans:xmlbeans-jsr173-api:jar:2.0-dev:compile
2/1/09 8:50:01 PM PST: Missing indirectly referenced artifact javax.mail:mail:jar:1.3.2:compile
2/1/09 8:50:01 PM PST: Missing indirectly referenced artifact javax.activation:activation:jar:1.0.2:compile
2/1/09 8:50:01 PM PST: Missing artifact springmodules:springmodules:jar:0.2:compile
2/1/09 8:50:01 PM PST: Missing artifact drools:jsr94:jar:1.1:compile
2/1/09 8:50:01 PM PST: Missing artifact jug:jug:jar:2.0rc4:compile
2/1/09 8:50:01 PM PST: Missing artifact castor:castor-xml:jar:0.9.7:compile
2/1/09 8:50:01 PM PST: Missing artifact hibernate:hibernate:jar:3.2.6:compile
2/1/09 8:50:01 PM PST: Missing artifact jsap:JSAP:jar:2.0a:compile
2/1/09 8:50:01 PM PST: Missing artifact jta:jta:jar:1.0.1:compile
2/1/09 8:50:01 PM PST: Missing artifact mysql:mysql-connector-java:jar:5.1.5-bin:compile
2/1/09 8:50:01 PM PST: Missing artifact commons-jxpath:commons-jxpath:jar:1.3-20060323:compile
2/1/09 8:50:01 PM PST: Missing artifact org.openvpms:openvpms-framework:jar:1.3-beta-1:compile
I don't know why some files downloaded from repository and some didn't. I think it's something on the server end because I get the same error doing it the command line way.
mvn scm:checkout -Dmaven.repo.remote=http://maven.openvpms.org,http://mirrors.ibiblio.org/pub/mirrors/maven,http://cvs.apache.org/repository/ -DconnectionUrl=scm:svn:svn://svn.openvpms.org/openvpms/archetypes/trunk -Dmaven.scm.checkout.dir=openvpms-archetypes
-------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) commons-resources:commons-resources:jar:1.0-dev
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-resources -DartifactId=commons
resources -Dversion=1.0-dev -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-resources -DartifactId=commons-r
sources -Dversion=1.0-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dre
ositoryId=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) commons-resources:commons-resources:jar:1.0-dev
2) jtestcase:jtestcase:jar:3.0.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=jtestcase -DartifactId=jtestcase -Dver
ion=3.0.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=jtestcase -DartifactId=jtestcase -Dversi
n=3.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) jtestcase:jtestcase:jar:3.0.0
3) xmlbeans:xmlbeans-jsr173-api:jar:2.0-dev
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=xmlbeans -DartifactId=xmlbeans-jsr173-
pi -Dversion=2.0-dev -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=xmlbeans -DartifactId=xmlbeans-jsr173-ap
-Dversion=2.0-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor
Id=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) stax:stax:jar:1.1.2-dev
3) xmlbeans:xmlbeans-jsr173-api:jar:2.0-dev
4) javax.mail:mail:jar:1.3.2
Try downloading the file manually from:
http://java.sun.com/products/javamail/downloads/index.html
Then, install it using the command:
mvn install:install-file -DgroupId=javax.mail -DartifactId=mail -Dversion
1.3.2 -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.mail -DartifactId=mail -Dversion=1
3.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) org.springframework:spring-support:jar:1.2.5
3) javax.mail:mail:jar:1.3.2
5) javax.activation:activation:jar:1.0.2
Try downloading the file manually from:
http://java.sun.com/products/javabeans/glasgow/jaf.html
Then, install it using the command:
mvn install:install-file -DgroupId=javax.activation -DartifactId=activati
n -Dversion=1.0.2 -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.activation -DartifactId=activation
-Dversion=1.0.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId
[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) org.springframework:spring-support:jar:1.2.5
3) javax.mail:mail:jar:1.3.2
4) javax.activation:activation:jar:1.0.2
6) springmodules:springmodules:jar:0.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=springmodules -DartifactId=springmodul
s -Dversion=0.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=springmodules -DartifactId=springmodules
-Dversion=0.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[
d]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) springmodules:springmodules:jar:0.2
7) drools:jsr94:jar:1.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=drools -DartifactId=jsr94 -Dversion=1.
-Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=drools -DartifactId=jsr94 -Dversion=1.1
Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) drools:jsr94:jar:1.1
8) jug:jug:jar:2.0rc4
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=jug -DartifactId=jug -Dversion=2.0rc4
Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=jug -DartifactId=jug -Dversion=2.0rc4 -D
ackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) jug:jug:jar:2.0rc4
9) castor:castor-xml:jar:0.9.7
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=castor -DartifactId=castor-xml -Dversi
n=0.9.7 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=castor -DartifactId=castor-xml -Dversion
0.9.7 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) castor:castor-xml:jar:0.9.7
10) hibernate:hibernate:jar:3.2.6
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=hibernate -DartifactId=hibernate -Dver
ion=3.2.6 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=hibernate -DartifactId=hibernate -Dversi
n=3.2.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) hibernate:hibernate:jar:3.2.6
11) jsap:JSAP:jar:2.0a
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=jsap -DartifactId=JSAP -Dversion=2.0a
Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=jsap -DartifactId=JSAP -Dversion=2.0a -D
ackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) jsap:JSAP:jar:2.0a
12) jta:jta:jar:1.0.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=jta -DartifactId=jta -Dversion=1.0.1 -
packaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=jta -DartifactId=jta -Dversion=1.0.1 -Dp
ckaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) jta:jta:jar:1.0.1
13) mysql:mysql-connector-java:jar:5.1.5-bin
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=mysql -DartifactId=mysql-connector-jav
-Dversion=5.1.5-bin -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=mysql -DartifactId=mysql-connector-java
Dversion=5.1.5-bin -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor
Id=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) mysql:mysql-connector-java:jar:5.1.5-bin
14) commons-jxpath:commons-jxpath:jar:1.3-20060323
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-jxpath -DartifactId=commons-jx
ath -Dversion=1.3-20060323 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-jxpath -DartifactId=commons-jxpa
h -Dversion=1.3-20060323 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drep
sitoryId=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) commons-jxpath:commons-jxpath:jar:1.3-20060323
15) org.openvpms:openvpms-framework:jar:1.3-beta-1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.openvpms -DartifactId=openvpms-fra
ework -Dversion=1.3-beta-1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.openvpms -DartifactId=openvpms-frame
ork -Dversion=1.3-beta-1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drep
sitoryId=[id]
Path to dependency:
1) org.openvpms:openvpms-archetypes:jar:1.3-beta-1
2) org.openvpms:openvpms-framework:jar:1.3-beta-1
----------
15 required artifacts are missing.
for artifact:
org.openvpms:openvpms-archetypes:jar:1.3-beta-1
from the specified remote repositories:
ibiblio (http://mirrors.ibiblio.org/pub/mirrors/maven),
central (http://repo1.maven.org/maven2),
openvpms (http://maven.openvpms.org),
apache (http://cvs.apache.org/repository/)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30 seconds
[INFO] Finished at: Sun Feb 01 20:51:28 PST 2009
[INFO] Final Memory: 7M/12M
[INFO] ------------------------------------------------------------------------
--
Albert T. Wong
http://alberttwong.com
RE: Migrate to maven 2 and M2Eclipse (Eclipse withMaven integra
Just one thing, can you post to the developers forum not the users forum so we don't scare all the users out there with this propellor head jargon :-)
Tony
[OpenVPMS Developers] Fwd: Migrate to maven 2 and M2Eclipse (Ecl
Anyhow I think I figured out what wrong with the openvpms repository. I think there is no md5 on some of the entries. Anyhow, I've got a new pom.xml (newer version of project.xml) that at least loads everything. Someone has to work on the goals. In the meantime, can someone upload this to openvpms-archetypes?
Re: [OpenVPMS Developers] Migrate to maven 2 and M2Eclipse
I'll take a look at the poms you've submitted.
Thanks,
Tim