From 736cb754f16c119cf79099fc5f7c96e2ab05122d Mon Sep 17 00:00:00 2001 From: Brad Miller Date: Fri, 16 May 2014 13:09:17 -0400 Subject: [PATCH] Updated POM files to allow use of compile phase. Note that the eclipse plugins are no longer included in the build by default. To clean or build the eclipse plugins, use -Dwith-eclipse-plugins. When specifying this property, only phases up to or after package may be run. --- cmake/pom.xml | 2 +- pom.xml | 17 +++- wpilibj/wpilibJava/pom.xml | 26 +++--- wpilibj/wpilibJavaFinal/pom.xml | 147 +++++++++++++++++++++++--------- wpilibj/wpilibJavaJNI/pom.xml | 59 ++++++++++--- 5 files changed, 185 insertions(+), 66 deletions(-) diff --git a/cmake/pom.xml b/cmake/pom.xml index 6931d5747b..c0b480a84e 100644 --- a/cmake/pom.xml +++ b/cmake/pom.xml @@ -127,7 +127,7 @@ zip-cpp-includes - package + compile attach-artifact diff --git a/pom.xml b/pom.xml index bff1e22832..1c682ddbb1 100644 --- a/pom.xml +++ b/pom.xml @@ -10,9 +10,24 @@ maven-utilities networktables wpilibj - eclipse-plugins driver-station + + + + + + + with-eclipse-plugins + + + + + eclipse-plugins + + + + diff --git a/wpilibj/wpilibJava/pom.xml b/wpilibj/wpilibJava/pom.xml index e6f61ae28e..f4f3f0e387 100644 --- a/wpilibj/wpilibJava/pom.xml +++ b/wpilibj/wpilibJava/pom.xml @@ -129,20 +129,20 @@ maven-source-plugin - org.apache.maven.plugins - maven-javadoc-plugin + org.apache.maven.plugins + maven-javadoc-plugin - - edu/wpi/first/wpilibj/image/ - edu/wpi/first/wpilibj/camera/ - edu/wpi/first/wpilibj/visa/ - edu/wpi/first/wpilibj/SerialPort.java - edu/wpi/first/wpilibj/Kinect.java - edu/wpi/first/wpilibj/KinectStick.java - edu/wpi/first/wpilibj/DriverStationEnhancedIO.java - edu/wpi/first/wpilibj/buttons/DigitalIOButton.java - edu/wpi/first/wpilibj/buttons/AnalogIOButton.java - + + edu/wpi/first/wpilibj/image/ + edu/wpi/first/wpilibj/camera/ + edu/wpi/first/wpilibj/visa/ + edu/wpi/first/wpilibj/SerialPort.java + edu/wpi/first/wpilibj/Kinect.java + edu/wpi/first/wpilibj/KinectStick.java + edu/wpi/first/wpilibj/DriverStationEnhancedIO.java + edu/wpi/first/wpilibj/buttons/DigitalIOButton.java + edu/wpi/first/wpilibj/buttons/AnalogIOButton.java + diff --git a/wpilibj/wpilibJavaFinal/pom.xml b/wpilibj/wpilibJavaFinal/pom.xml index e7a728f1e5..eb2af4eb52 100644 --- a/wpilibj/wpilibJavaFinal/pom.xml +++ b/wpilibj/wpilibJavaFinal/pom.xml @@ -43,29 +43,96 @@ - + + org.apache.maven.plugins + maven-antrun-plugin + 1.7 + + + extract-java-jar + + run + + generate-sources + + + + + + + + + + + + + + + + + + + + + + + + + copy-jni-so + + run + + generate-sources + + + + + + + + + + + + ant-contrib + ant-contrib + 1.0b3 + + + ant + ant + + + + + + + + + COMMENT END false true - + --> - org.apache.maven.plugins - maven-install-plugin - 2.5.1 - - - install-jar - install - - install - - - + org.apache.maven.plugins + maven-install-plugin + 2.5.1 + + + install-jar + install + + install + + + diff --git a/wpilibj/wpilibJavaJNI/pom.xml b/wpilibj/wpilibJavaJNI/pom.xml index e6a189a8c8..802cfee3d3 100644 --- a/wpilibj/wpilibJavaJNI/pom.xml +++ b/wpilibj/wpilibJavaJNI/pom.xml @@ -182,13 +182,13 @@ this default location, specify a value for the 'embeddedJDKHome' property at the release - + - + COMMENT ME: Fetch the dependencies needed to build the cpp.zip file. + fetch-cpp-zip-dependencies process-sources @@ -211,12 +211,42 @@ this default location, specify a value for the 'embeddedJDKHome' property at the - + --> org.apache.maven.plugins maven-antrun-plugin 1.7 + + extract-cpp-zip + + run + + process-sources + + + + + + + + + + + + + + + + + + + + + + + set-version-info @@ -233,17 +263,24 @@ this default location, specify a value for the 'embeddedJDKHome' property at the - - - - - - true + + + ant-contrib + ant-contrib + 1.0b3 + + + ant + ant + + + + org.codehaus.mojo @@ -252,7 +289,7 @@ this default location, specify a value for the 'embeddedJDKHome' property at the zip-cpp-includes - package + compile attach-artifact