-
1. Re: MAVEN: activation-1.0.2.jar not being fetched
adrian.brock Jul 10, 2007 10:40 AM (in response to kabirkhan)The cause is almost certainly that the dependencies have changed recently,
e.g. the new version of the JAXB jar added recently.
But the eclipse files were never updated. e.g.
I have both 1.0.2 and 1.1 in my local maven repository so either is valid for me
and I wouldn't notice this problem.
What do you get when you do mvn eclipse:eclipse? -
2. Re: MAVEN: activation-1.0.2.jar not being fetched
kconner Jul 10, 2007 10:41 AM (in response to kabirkhan)"kabir.khan@jboss.com" wrote:
I've resolved this locally by copying M2_REPO/javax/activation/activation/1.1/activation-1.1.jar to M2_REPO/javax/activation/activation/1.0.2/activation-1.0.2.jar, but the deeper cause needs to be adressed
I still think these should be generated by maven ;). Try this insteadmvn eclipse:clean mvn -Peclipse
This will create your .project/.classpath/.settings files to reflect the current dependencies. -
3. Re: MAVEN: activation-1.0.2.jar not being fetched
pgier Jul 10, 2007 11:49 AM (in response to kabirkhan)So it sounds like the .classpath file was out of date with the dependencies in pom.xml?
So regenerating the .classpath file like Kevin suggested should work. Or you can try using the eclipse ide plugin (http://m2eclipse.codehaus.org/). This will update the classpath within eclipse. -
4. Re: MAVEN: activation-1.0.2.jar not being fetched
alesj Jul 10, 2007 12:15 PM (in response to kabirkhan)Why do we have .classpath files under svn if they can be generated by Maven2 anyway.
I'm using IDEA btw. ;-) -
5. Re: MAVEN: activation-1.0.2.jar not being fetched
kabirkhan Jul 10, 2007 12:16 PM (in response to kabirkhan)Thanks that helped. It now points to
<classpathentry kind="var" path="M2_REPO/sun-jaf/activation/1.0.2/activation-1.0.2.jar"/>
I've commited the changed .classpath and org.eclipse.jdt.core.prefs files -
6. Re: MAVEN: activation-1.0.2.jar not being fetched
adrian.brock Jul 10, 2007 12:24 PM (in response to kabirkhan)
Why do we have .classpath files under svn if they can be generated by Maven2 anyway.
I'm using IDEA btw. ;-)
Because it's already an N step process that people don't understand
e.g.
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=106937
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=106888
even when not using eclipse.
I want it to be as simple as possible, but we are no where near that:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=105621
In fact, the main reason for eclipse files being there is so you can use
eclipse project sets (but that is broken with the current setup).
If I new have to force a "mvn eclipse:eclipse" with every mvn compile
then they would automatically get checked in with every change you make
(if you used eclipse or not). -
7. Re: MAVEN: activation-1.0.2.jar not being fetched
starksm64 Jul 10, 2007 7:20 PM (in response to kabirkhan)"kabir.khan@jboss.com" wrote:
Thanks that helped. It now points to<classpathentry kind="var" path="M2_REPO/sun-jaf/activation/1.0.2/activation-1.0.2.jar"/>
I've commited the changed .classpath and org.eclipse.jdt.core.prefs files
Your checkin included a number of invalid references to C:/Java/jdk/jdk1.5.0_10/lib/tools.jar. Why is this needed? I removed its use so that the eclipse projects would build for me. -
8. Re: MAVEN: activation-1.0.2.jar not being fetched
adrian.brock Jul 11, 2007 12:56 AM (in response to kabirkhan)THIS BUILD IS JUST GETTING STUPID!!!!!
I did an svn update and I get NPEs again when trying to do an incremental compile.
Another clean and rebuild for me. :-(
But then I can't refresh in eclipse because it hasn't downloaded "sun-jaf"
I have "javax/activaition". Exactly the opposite of Kabir's problem.
How are we going to reproduce a build 6 months to 5 years down the line
when two people can't reproduce the same build on the same day?
Let's see if blowing away my whole maven repository(again) is going to fix it?
Cross your fingers and go make some coffee. :-) -
9. Re: MAVEN: activation-1.0.2.jar not being fetched
adrian.brock Jul 11, 2007 1:00 AM (in response to kabirkhan)NPE AGAIN!!!!! :-(
-
10. Re: MAVEN: activation-1.0.2.jar not being fetched
alesj Jul 11, 2007 1:07 AM (in response to kabirkhan)I think you need to start using IDEA.
Since I don't have that kind of problems ... yet. :-) -
11. Re: MAVEN: activation-1.0.2.jar not being fetched
adrian.brock Jul 11, 2007 1:25 AM (in response to kabirkhan)As far as I can tell from the pom, there are no sun-jaf jars
http://repository.jboss.com/maven2/sun-jaf/activation/1.0.2/activation-1.0.2.pom
Although the jars do exist in the repository, nothing I do will download them.
There's only sun-jaf that directly references javax.activation if you update
deployers-vfs-spi to use sun-jaxb instead of javax.xml.bind -
12. Re: MAVEN: activation-1.0.2.jar not being fetched
adrian.brock Jul 11, 2007 1:48 AM (in response to kabirkhan)"scott.stark@jboss.org" wrote:
Your checkin included a number of invalid references to C:/Java/jdk/jdk1.5.0_10/lib/tools.jar. Why is this needed? I removed its use so that the eclipse projects would build for me.
It's coming from a dependency in the javassist pom.
God knows why? Javassist has its compiler. It shouldn't need tools.jar? :-) -
13. Re: MAVEN: activation-1.0.2.jar not being fetched
slaboure Jul 11, 2007 4:54 AM (in response to kabirkhan)guys, I tried yesterday to CO and build the MC and install it in Eclipse: it is a disaster. I am sure I did many things wrong, but the point is that I shouldn't have anything to do :)
Can we get our core engine in an easy-to-build setup? It is really our *core*
Thanks,
sacha -
14. Re: MAVEN: activation-1.0.2.jar not being fetched
pgier Jul 11, 2007 9:32 AM (in response to kabirkhan)"adrian@jboss.org" wrote:
As far as I can tell from the pom, there are no sun-jaf jars
http://repository.jboss.com/maven2/sun-jaf/activation/1.0.2/activation-1.0.2.pom
Although the jars do exist in the repository, nothing I do will download them.
There's only sun-jaf that directly references javax.activation if you update
deployers-vfs-spi to use sun-jaxb instead of javax.xml.bind
I moved the sun-jaf jars to the javax.activation location a while back based on the maven naming conventions.
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
If you try to download from the old location, it should give you a message that you need to point to the new location.