Question

I would like to use functional Java 3.0 in a maven project. I have been googling a little, but I can't find valid information to include the corresponsding 'dependency' in my pom.xml.

Someone mentioned that he would upload the artifacts to the scala-tools maven repository, but it does not seem like he followed-up on his announcement.

It does not even seem that earlier versions of functional Java are available from maven.

Does anyone have valid and recent information about this issue?

Thanks!

P.S.: Yes, I know I can download and manually include the .jar in my project, but this is only a workaround solution...

Was it helpful?

Solution 3

Fact is, I don't like to manually include .jars in repositories, because it is not a distributed solution.

I have copied the functional java code in a maven 'repository' project called 'externals' and it compiles fine. I can generate the artifacts and have no need to upload them manually anymore.

OTHER TIPS

There doesn't seem to be any maven distribution. But here's a small shell script that will install the jar and the sources in your local repo.

Unpack the zip distribution and execute this script from inside the unpacked directory:

#!/bin/bash

# edit these to suit your needs
GROUPID=org.functionaljava
ARTIFACTID=fj
VERSION=3.0

mvn install:install-file -DgroupId=$GROUPID -DartifactId=$ARTIFACTID \
    -Dversion=$VERSION -Dpackaging=jar -Dfile=functionaljava.jar

cd src/main

jar cf src.jar *

mvn install:install-file -DgroupId=$GROUPID -DartifactId=$ARTIFACTID \
    -Dversion=$VERSION -Dpackaging=jar -Dclassifier=sources -Dfile=src.jar

rm src.jar

(Windows version would be very similar, probably just replace $this with %this%, maybe prepend CALL to the maven calls)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top