Tuesday, June 13, 2006

If you are playing with pax-wicket (ops4j) ...

.. and if you bump into maven2 problem with the Java Activation framework, this is what you should do;

1. When you see this error, go download JAF from Sun here.

Downloading: http://repository.ops4j.org/maven2//javax/activation/activation/1.0.2/activation-1.0.2.jar
[WARNING] Unable to get resource from repository ops4j-repository (http://repository.ops4j.org/maven2/)
Downloading: http://repo1.maven.org/maven2/javax/activation/activation/1.0.2/activation-1.0.2.jar

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) 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=activation \
-Dversion=1.0.2 -Dpackaging=jar -Dfile=/path/to/file

Path to dependency:
1) org.ops4j.pax.wicket:service:osgi-bundle:0.2.2-SNAPSHOT
2) javax.activation:activation:jar:1.0.2

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



2. Unjar the jaf file, and extract out the activation.jar.

3. Then only, you import it to your maven repository through this;

mvn install:install-file -DgroupId=javax.activation -DartifactId=activation \
-Dversion=1.0.2 -Dpackaging=jar -Dfile=./activation.jar

4. mvn install.

Yes, I should have know better. :-(
BTW, pax-wicket is picking up of steam lately, with new example and all.

1 comment:

Anonymous said...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!