How I loathe thee maven.
meetoblivion Nov 29, 2009 4:55 PMSo first let it be known, maven and I do not get along. It never does things the way I want, and I never do things the way it wants.
However, since jboss uses it heavily I have to use it to integrate jboss "stuffs" into my projects. So I'm trying to throw weld 1.0 into my jboss 5.1 install (local machine)
I get this:
|c:\apps\jboss\weld-1.0.0.SP1\jboss-as>ant update
Buildfile: build.xml
install-weld.deployer:
[echo] Installing Weld 1.0.0-SNAPSHOT to C:/apps/jboss/jboss-current
[artifact:dependencies] [INFO] snapshot org.jboss.weld.integration:weld-jboss-int:5.2.0-SNAPSHOT: checking for updates from snapshots.jboss.org
[artifact:dependencies] Downloading: org/jboss/weld/weld-core/1.0.0-SNAPSHOT/weld-core-1.0.0-SNAPSHOT.pom from repository.jboss.org
[artifact:dependencies] Downloading: org/jboss/weld/weld-core/1.0.0-SNAPSHOT/weld-core-1.0.0-SNAPSHOT.pom from snapshots.jboss.org
[artifact:dependencies] Downloading: org/jboss/weld/weld-core/1.0.0-SNAPSHOT/weld-core-1.0.0-SNAPSHOT.jar from repository.jboss.org
[artifact:dependencies] Downloading: org/jboss/weld/weld-core/1.0.0-SNAPSHOT/weld-core-1.0.0-SNAPSHOT.jar from snapshots.jboss.org
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.jboss.weld:weld-core:jar:1.0.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies] Then, install it using the command:
[artifact:dependencies] mvn install:install-file -DgroupId=org.jboss.weld -DartifactId=weld-core -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies] mvn deploy:deploy-file -DgroupId=org.jboss.weld -DartifactId=weld-core -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[
ositoryId=[id]
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) org.apache.maven:super-pom:jar:2.0
[artifact:dependencies] 2) org.jboss.weld:weld-core:jar:1.0.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies] org.apache.maven:super-pom:jar:2.0
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] snapshots.jboss.org (http://snapshots.jboss.org/maven2),
[artifact:dependencies] central (http://downloads.planetmirror.com/pub/maven2),
[artifact:dependencies] repository.jboss.org (http://repository.jboss.org/maven2)
[artifact:dependencies]
[artifact:dependencies]
BUILD FAILED
c:\apps\jboss\weld-1.0.0.SP1\jboss-as\build.xml:26: Unable to resolve artifact: Missing:
----------
1) org.jboss.weld:weld-core:jar:1.0.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.weld -DartifactId=weld-core -Dversion=1.0.0-SNAPSHOT -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.jboss.weld -DartifactId=weld-core -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:jar:2.0
2) org.jboss.weld:weld-core:jar:1.0.0-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:jar:2.0
from the specified remote repositories:
snapshots.jboss.org (http://snapshots.jboss.org/maven2),
central (http://downloads.planetmirror.com/pub/maven2),
repository.jboss.org (http://repository.jboss.org/maven2)
Total time: 2 seconds
c:\apps\jboss\weld-1.0.0.SP1\jboss-as>
|
This is what my build.properties looks like:
|
# Container a number of properties associated with installing Weld into JBoss AS and running the TCK in JBoss AS
jboss.home=C:/apps/jboss/jboss-current
org.jboss.testharness.container.javaOpts=-Xms128m -Xmx512m -XX:MaxPermSize=192m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
# time to allow before attempting to restart JBoss AS
# org.jboss.testharness.container.shutdownDelay=15000
# maximum number of TCK tests to deploy before restarting JBoss AS
# jboss.deployments.restart = 25
weld-deployer.version=5.2.0-SNAPSHOT
weld.version=1.0.0-SNAPSHOT
jboss-ejb3.version=1.0.0
javassist.version=3.11.0.GA
validation.version=1.0.CR3
|
I tried both weld.version=1.0.0.SP1 as well as SNAPSHOT. Same result.
However, since jboss uses it heavily I have to use it to integrate jboss "stuffs" into my projects. So I'm trying to throw weld 1.0 into my jboss 5.1 install (local machine)
I get this:
|c:\apps\jboss\weld-1.0.0.SP1\jboss-as>ant update
Buildfile: build.xml
install-weld.deployer:
[echo] Installing Weld 1.0.0-SNAPSHOT to C:/apps/jboss/jboss-current
[artifact:dependencies] [INFO] snapshot org.jboss.weld.integration:weld-jboss-int:5.2.0-SNAPSHOT: checking for updates from snapshots.jboss.org
[artifact:dependencies] Downloading: org/jboss/weld/weld-core/1.0.0-SNAPSHOT/weld-core-1.0.0-SNAPSHOT.pom from repository.jboss.org
[artifact:dependencies] Downloading: org/jboss/weld/weld-core/1.0.0-SNAPSHOT/weld-core-1.0.0-SNAPSHOT.pom from snapshots.jboss.org
[artifact:dependencies] Downloading: org/jboss/weld/weld-core/1.0.0-SNAPSHOT/weld-core-1.0.0-SNAPSHOT.jar from repository.jboss.org
[artifact:dependencies] Downloading: org/jboss/weld/weld-core/1.0.0-SNAPSHOT/weld-core-1.0.0-SNAPSHOT.jar from snapshots.jboss.org
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.jboss.weld:weld-core:jar:1.0.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies] Then, install it using the command:
[artifact:dependencies] mvn install:install-file -DgroupId=org.jboss.weld -DartifactId=weld-core -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies] mvn deploy:deploy-file -DgroupId=org.jboss.weld -DartifactId=weld-core -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[
ositoryId=[id]
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) org.apache.maven:super-pom:jar:2.0
[artifact:dependencies] 2) org.jboss.weld:weld-core:jar:1.0.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies] org.apache.maven:super-pom:jar:2.0
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] snapshots.jboss.org (http://snapshots.jboss.org/maven2),
[artifact:dependencies] central (http://downloads.planetmirror.com/pub/maven2),
[artifact:dependencies] repository.jboss.org (http://repository.jboss.org/maven2)
[artifact:dependencies]
[artifact:dependencies]
BUILD FAILED
c:\apps\jboss\weld-1.0.0.SP1\jboss-as\build.xml:26: Unable to resolve artifact: Missing:
----------
1) org.jboss.weld:weld-core:jar:1.0.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.weld -DartifactId=weld-core -Dversion=1.0.0-SNAPSHOT -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.jboss.weld -DartifactId=weld-core -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:jar:2.0
2) org.jboss.weld:weld-core:jar:1.0.0-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:jar:2.0
from the specified remote repositories:
snapshots.jboss.org (http://snapshots.jboss.org/maven2),
central (http://downloads.planetmirror.com/pub/maven2),
repository.jboss.org (http://repository.jboss.org/maven2)
Total time: 2 seconds
c:\apps\jboss\weld-1.0.0.SP1\jboss-as>
|
This is what my build.properties looks like:
|
# Container a number of properties associated with installing Weld into JBoss AS and running the TCK in JBoss AS
jboss.home=C:/apps/jboss/jboss-current
org.jboss.testharness.container.javaOpts=-Xms128m -Xmx512m -XX:MaxPermSize=192m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
# time to allow before attempting to restart JBoss AS
# org.jboss.testharness.container.shutdownDelay=15000
# maximum number of TCK tests to deploy before restarting JBoss AS
# jboss.deployments.restart = 25
weld-deployer.version=5.2.0-SNAPSHOT
weld.version=1.0.0-SNAPSHOT
jboss-ejb3.version=1.0.0
javassist.version=3.11.0.GA
validation.version=1.0.CR3
|
I tried both weld.version=1.0.0.SP1 as well as SNAPSHOT. Same result.