There doesn’t seem to be a Maven repository with the latest JGoodies dependencies. They need to be added manually. It’s a bit of a pain so here are the steps to do it for Forms (1.4.1), Common (1.2.0), Validation (2.3.0) and Binding (2.3.0).
Step 1: Add JGoodies dependencies to pom
<dependency> <groupId>com.jgoodies</groupId> <artifactId>binding</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>com.jgoodies</groupId> <artifactId>common</artifactId> <version>1.2.0</version> </dependency> <dependency> <groupId>com.jgoodies</groupId> <artifactId>forms</artifactId> <version>1.4.1</version> </dependency> <dependency> <groupId>com.jgoodies</groupId> <artifactId>validation</artifactId> <version>2.3.0</version> </dependency> |
Step 2: Download jars
Download the JGoodies Jars
Step 3: Add jars manually to local repository
mvn install:install-file -DgroupId=com.jgoodies -DartifactId=binding -Dversion=2.3.0 -Dpackaging=jar -Dfile=jgoodies-binding-2.3.0.jar mvn install:install-file -DgroupId=com.jgoodies -DartifactId=common -Dversion=1.2.0 -Dpackaging=jar -Dfile=jgoodies-common-1.2.0.jar mvn install:install-file -DgroupId=com.jgoodies -DartifactId=forms -Dversion=1.4.1 -Dpackaging=jar -Dfile=jgoodies-forms-1.4.1.jar mvn install:install-file -DgroupId=com.jgoodies -DartifactId=validation -Dversion=2.3.0 -Dpackaging=jar -Dfile=jgoodies-validation-2.3.0.jar |
That’s it!
An alternative way is just copy jgoodies jar to project directory and set its dependency like this:
jgoodies
forms
1.6.0
system
${basedir}/lib/jgoodies-forms-1.6.0.jar
Will that automatically pick up the fact that “forms” is dependent on “common”, or will I need to add both as dependencies manually?
You have to add both manually as the jars don’t contain any Maven config that describes their dependencies.