tags:

views:

81

answers:

1

Dear All:

I am battling with Ivy (I tried maven but had an event more difficult time setting up the JBoss repository for Hibernate).

Quick question - I am using this wonderful package: http://ooweb.sourceforge.net/index.html

Unfortunately, the JAR is only available through Sourceforge: http://sourceforge.net/projects/ooweb/files/ooweb/0.8.0/ooweb-0.8.0-bin.tar.gz/download

Is there a way to get Ivy to download a specific JAR?

For that matter, is it possible to do with Maven?

Or for that matter, how about Gradle?

Thank you! Misha

+1  A: 

Let's see if I understood you correctly ..

I can't speak for Ivy, but with Maven, you will sometimes have to install JARs manually to a repository, such as your local and possibly the one used when building your software.

Download the jar to your drive, and do something like this on command line:

mvn install:install-file -Dfile=ooweb.jar -DgroupId=ooweb -DartifactId=ooweb -Dversion=0.8.0 -Dpackaging=jar 

Pick a more sophisticated groupId is you want, these are what you'll use in your pom when defining the dependency.

Was there some specific issue you ran into when setting up the JBoss repo? I did it a while ago by just adding this at the end of a pom:

<repositories>
 <repository>
  <id>jboss</id>
  <url>http://repository.jboss.com/maven2&lt;/url&gt;
  <releases>
    <enabled>true</enabled>
  </releases>
  <snapshots>
    <enabled>false</enabled>
  </snapshots>
</repository>
<repository>
  <id>jboss-snapshot</id>
  <url>http://snapshots.jboss.org/maven2&lt;/url&gt;
  <releases>
    <enabled>true</enabled>
  </releases>
  <snapshots>
    <enabled>true</enabled>
  </snapshots>
</repository>

Lauri Lehtinen
Thank you so much. I'm honestly not sure hwat the issue was at the time, but the above post seems very helpful.Right now I am quite enamored with gradlehttp://www.gradle.org/and trying to use that.The main advantage over ivy and maven at the moment is that I have not had to do anything special to pull in hibernate _at all_. This is what I am currently using for build.gradle: (see next comment)Thank you!Misha
Misha Koshelev
apply plugin: 'groovy' repositories { mavenCentral() } dependencies { groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.7.0' groovy group: 'org.hibernate', name: 'hibernate-core', version: '3.3.2.GA' groovy group: 'org.hibernate', name: 'hibernate-annotations', version: '3.4.0.GA' groovy group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.6.0' groovy group: 'net.sourceforge.htmlunit', name: 'htmlunit', version: '2.7' testCompile group: 'junit', name: 'junit', version: '4.7' }
Misha Koshelev