adequate
adequate
adequate
adequate
 

JPPF
 Home   About   Download   Documentation   Forums 
May 23, 2012, 02:51:07 AM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]

Author Topic: JPPF in a maven repository  (Read 1291 times)

javamic

  • JPPF Padawan
  • *
  • Posts: 6
JPPF in a maven repository
« on: April 08, 2011, 07:45:09 AM »

Hi

I intend to use JPPF in a project which is built by maven. Is JPPF available in a maven repository? If yes, where can I find it. If no, are there any plans to make JPPF available in maven and when can I expect it there?

Thanks & regards
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 1149
    • JPPF Web site
Re: JPPF in a maven repository
« Reply #1 on: April 10, 2011, 03:06:20 AM »

Hello,

We currently have no plan to include JPPF in a public Maven repository. However, you should feel free to do that yourself if that's what it takes to move forward on your project.

Sincerely,
-Laurent
Logged

fommil

  • JPPF Grand Master
  • ****
  • Posts: 77
Re: JPPF in a maven repository
« Reply #2 on: November 02, 2011, 05:47:40 AM »

Laurent, I'm also an OSS developer and somebody asked me the same thing. I must admit I couldn't be bothered with the hassle at first. However, although it took half a day to make the switch, Maven is far superior to ant and much much cleaner to work with. It's now saving the time that it cost to switch in the first place.

I would strongly recommend that you consider changing build system to Maven. The best thing to do would be to join the IRC channel and ask people to help you make the move.
Logged

fommil

  • JPPF Grand Master
  • ****
  • Posts: 77
Re: JPPF in a maven repository
« Reply #3 on: January 30, 2012, 10:47:25 AM »

Until JPPF use Maven for build management ;-) here is all that is needed to reference a local JPPF from a maven project. Unfortunately this quick hack means you have to manually manage the JPPF dependencies in your own project. First download AND EXTRACT the "Full distribution with source code and required libraries" and "API documentation".

Code: [Select]
VERSION=2.5.5

# repackage the javadocs
jar cf JPPF-$VERSION-api.jar -C JPPF-$VERSION-api .

mvn install:install-file -Dpackaging=jar -Dfile=JPPF-$VERSION-full-src/JPPF/build/jppf-common.jar \
  -Dsources=JPPF-$VERSION-full-src/JPPF/build/jppf-common-src.jar \
-Djavadoc=JPPF-$VERSION-api.jar \
-DgroupId=org.jppf -DartifactId=common -Dversion=$VERSION
mvn install:install-file -Dpackaging=jar -Dfile=JPPF-$VERSION-full-src/JPPF/build/jppf-common-node.jar \
  -Dsources=JPPF-$VERSION-full-src/JPPF/build/jppf-common-node-src.jar \
-Djavadoc=JPPF-$VERSION-api.jar \
-DgroupId=org.jppf -DartifactId=common-node -Dversion=$VERSION
mvn install:install-file -Dpackaging=jar -Dfile=JPPF-$VERSION-full-src/JPPF/build/jppf-server.jar \
  -Dsources=JPPF-$VERSION-full-src/JPPF/build/jppf-server-src.jar \
-Djavadoc=JPPF-$VERSION-api.jar \
-DgroupId=org.jppf -DartifactId=server -Dversion=$VERSION
mvn install:install-file -Dpackaging=jar -Dfile=JPPF-$VERSION-full-src/JPPF/build/jppf-client.jar \
  -Dsources=JPPF-$VERSION-full-src/JPPF/build/jppf-client-src.jar \
-Djavadoc=JPPF-$VERSION-api.jar \
-DgroupId=org.jppf -DartifactId=client -Dversion=$VERSION

and then in your own pom.xml

Code: [Select]
<dependency>
<groupId>org.jppf</groupId>
<artifactId>common</artifactId>
<version>2.5.5</version>
</dependency>
<dependency>
<groupId>org.jppf</groupId>
<artifactId>common-node</artifactId>
<version>2.5.5</version>
</dependency>
<dependency>
<groupId>org.jppf</groupId>
<artifactId>server</artifactId>
<version>2.5.5</version>
</dependency>
<dependency>
<groupId>org.jppf</groupId>
<artifactId>client</artifactId>
<version>2.5.5</version>
</dependency>
<dependency>
<!-- a dependency of JPPF, which is locally managed -->
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.6.4</version>
<scope>runtime</scope>
</dependency>
<!-- ... I PROBABLY MISSED A FEW MORE DEPENDENCIES -->

Laurent, I recently worked out how to update an ant build script (and create Maven POM files) to make ant projects completely compatible with Maven. If you're interested, I would be happy to share the learning with you. Then perhaps somebody could help to upload JPPF releases to the maven repository central.
« Last Edit: January 30, 2012, 11:12:15 AM by fommil »
Logged
Pages: [1]
 
Support This Project Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Powered by Parallel Matters Get Java Parallel Processing Framework at SourceForge.net. Fast, secure and Free Open Source software downloads