-
Notifications
You must be signed in to change notification settings - Fork 5
Build with Maven
Building PM4J with Maven is quite easy.
1.) Install Maven 3 from http://maven.apache.org
2.) Create settings.xml in youre HOME_DIR/.m2 folder
3.) Youre settings.xml should look like the following example. The JDK_HOME variable should look into the folder where the bin folder of youre JDK is. It should not look into the bin folder.
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>jdk17</id>
<properties>
<JAVA_HOME>/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home</JAVA_HOME>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>jdk17</activeProfile>
</activeProfiles>
</settings>
4.) Go into the root folder, where you can see all projects and start following commands
For installing all jars into youre lokal Repo
mvn install
For installing all jars into youre lokal Repo with ignoring failing tests
mvn install -DskipTests=true
For creating eclipse config files
mvn eclipse:eclipse
For cleanup eclipse config files
mvn eclipse:clean
For cleanup the compiled files only
mvn clean
5.) Import the Projects into Eclipse after generating config files
You dont have to install the maven plugins for youre eclipse, but it can be helpfull.
Documentation with Maven
Generate Javadoc
mvn javadoc:javadoc
Generate Maven Site
mvn site
Generate Test Coverage with Maven
mvn emma:emma
Generate Findbugs with Maven
mvn findbugs:findbugs