Sunday, December 10, 2006

maven and sun jars

Wow, long time of inactivity, well its all because of the MBA and my laziness
anyway, I was wondering how can I help the world today lol, well Do you use:

  • Maven
  • Spring
  • Hibernate
  • One of the many many many web frameworks
Have you notice the annoyance of sun jars like JTA, mail , and so on ?
have you ever wonder , can't it be easier
Well, sure it can
lets download all the sun jars and put them all in a directory....
well done, you know where you can get them don't ya ?
yeap you guessed well the summerian maze SUN WEB SITE
anyways, you'll do it only once and then I assume you'll set it into your team maven repo
Take one for the team !!!!
Just put the next script into a .sh or .bat and you're done ...
substitute any -Dfile=${your names or versions} if you got any other
I can't upload them here because I can't but I hope I can upload a tar.gz soon enough
let people know that java programming can be really simple if you're smart enough :P



mvn install:install-file -Dfile=jta-1.0.1B.jar -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar
mvn install:install-file -Dfile=ejb-3.0-public-draft-20060118.jar -DgroupId=javax.persistence -DartifactId=ejb -Dversion=3.0-public-draft-20060118 -Dpackaging=jar
mvn install:install-file -Dfile=activation-1.0.2.jar -DgroupId=javax.activation -DartifactId=activation -Dversion=1.0.2 -Dpackaging=jar
mvn install:install-file -Dfile=mail-1.3.2.jar -DgroupId=javax.mail -DartifactId=mail -Dversion=1.3.2 -Dpackaging=jar
mvn install:install-file -Dfile=connector-1.0.jar -DgroupId=javax.resource -DartifactId=connector -Dversion=1.0 -Dpackaging=jar