[Arakhnę-Dev] [3] Update the pom.xml files in this way:

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 3
Author:   galland
Date:     2008-10-07 18:58:58 +0200 (Tue, 07 Oct 2008)

Log Message:
-----------
Update the pom.xml files in this way:
* be sure that mingw compiler is installed before compiling mingw module
* Maven 2.0 limitation: remove the maven lifecycle integration of 
  the assembly plugin on the arakhneVmutils main module.
  Use 'mvn clean package assembly:assembly' instead.
* arakhneVmutils-java depends on Java 1.6.x.

Modified Paths:
--------------
    trunk/arakhneVmutils/java/pom.xml
    trunk/arakhneVmutils/native/josuuid/mingw/pom.xml
    trunk/arakhneVmutils/pom.xml


Modified: trunk/arakhneVmutils/java/pom.xml
===================================================================
--- trunk/arakhneVmutils/java/pom.xml	2008-10-07 14:36:11 UTC (rev 2)
+++ trunk/arakhneVmutils/java/pom.xml	2008-10-07 16:58:58 UTC (rev 3)
@@ -15,4 +15,28 @@
 	<version>2.0-SNAPSHOT</version>
   </parent>
 
+  <build>
+   <plugins>
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-java</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireJavaVersion>
+                  <version>1.6.0</version>
+                </requireJavaVersion>
+              </rules>    
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>

Modified: trunk/arakhneVmutils/native/josuuid/mingw/pom.xml
===================================================================
--- trunk/arakhneVmutils/native/josuuid/mingw/pom.xml	2008-10-07 14:36:11 UTC (rev 2)
+++ trunk/arakhneVmutils/native/josuuid/mingw/pom.xml	2008-10-07 16:58:58 UTC (rev 3)
@@ -29,6 +29,40 @@
     <finalName>${artifactId}</finalName>
     
     <plugins>
+
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-beanshell</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <evaluateBeanshell>
+                  <condition>
+			String path = System.getenv("PATH");
+			String[] parts = path.split(File.pathSeparator);
+			boolean ok = false;
+			for(int i=0; !ok &amp;&amp; i&lt;parts.length; i++) {
+				ok = new File(parts[i],"i586-mingw32msvc-g++").canExecute();
+			}
+			ok
+		  </condition>
+                </evaluateBeanshell>
+		<requireOS>
+		  <name>linux</name>
+		  <family>unix</family>
+		</requireOS>
+              </rules>  
+              <fail>true</fail>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>native-maven-plugin</artifactId>

Modified: trunk/arakhneVmutils/pom.xml
===================================================================
--- trunk/arakhneVmutils/pom.xml	2008-10-07 14:36:11 UTC (rev 2)
+++ trunk/arakhneVmutils/pom.xml	2008-10-07 16:58:58 UTC (rev 3)
@@ -33,12 +33,13 @@
 		    <descriptor>with-dll.xml</descriptor>
 		  </descriptors>
 		</configuration>
-		<!-- executions>
+		<!-- 'execution' is for maven 2.1 and higher -->
+		<!-- executions> 
 		  <execution>
-		    <id>make-vmutil-assembly</id>
-		    <phase>install</phase>
+		    <id>make-assembly</id>
+		    <phase>package</phase>
 		    <goals>
-		      <goal>assembly</goal>
+		      <goal>single</goal>
 		    </goals>
 		  </execution>
 		</executions -->


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/