Simplify Maven configurations
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 25 Oct 2012 16:18:49 +0000 (16:18 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 25 Oct 2012 16:18:49 +0000 (16:18 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@5655 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

archetypes/org.argeo.slc.executionmodule/pom.xml
archetypes/pom.xml
demo/modules/pom.xml
demo/pom.xml
dep/pom.xml
lib/pom.xml
modules/pom.xml
plugins/pom.xml
runtime/pom.xml

index 71c6891f255dd92b5922c1b0e67932b8cea92e77..338a0e4fd6a8d46f267089dd64b790ddfdf4696e 100644 (file)
@@ -9,12 +9,4 @@
        </parent>
        <artifactId>org.argeo.slc.executionmodule</artifactId>
        <name>SLC Basic Project Archetype</name>
-       <build>
-               <plugins>
-                       <plugin>
-                               <groupId>org.apache.felix</groupId>
-                               <artifactId>maven-bundle-plugin</artifactId>
-                       </plugin>
-               </plugins>
-       </build>
 </project>
\ No newline at end of file
index 0f7afff1ae4bc1b8c27e8fb9c81cf05b6143c76c..5849423c336bcc1963b84317b92eb2a9efaa9027 100644 (file)
        <build>
                <plugins>
                        <plugin>
-                               <artifactId>maven-clean-plugin</artifactId>
-                               <configuration>
-                                       <filesets>
-                                               <fileset>
-                                                       <directory>META-INF</directory>
-                                                       <includes>
-                                                               <include>MANIFEST.MF</include>
-                                                       </includes>
-                                               </fileset>
-                                       </filesets>
-                               </configuration>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
                        </plugin>
                </plugins>
        </build>
index a3a3e541a3ec9be68fb11b9f8292bba7b4689337..ad1e44b896e33680d136fd3e13539c7142261843 100644 (file)
@@ -1,10 +1,11 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <parent>
                <groupId>org.argeo.slc</groupId>
-               <artifactId>demo</artifactId>
+               <!-- Note: parent is SLC Lib -->
+               <artifactId>lib</artifactId>
                <version>1.1.4-SNAPSHOT</version>
-               <relativePath>..</relativePath>
        </parent>
        <groupId>org.argeo.slc.demo</groupId>
        <artifactId>modules</artifactId>
                <module>org.argeo.slc.demo.maven</module>
                <module>org.argeo.slc.demo.minimal</module>
        </modules>
-       <build>
-               <resources>
-                       <resource>
-                               <directory>.</directory>
-                               <includes>
-                                       <include>**</include>
-                               </includes>
-                               <excludes>
-                                       <exclude>.*</exclude>
-                                       <exclude>pom.xml</exclude>
-                                       <exclude>build.properties</exclude>
-                               </excludes>
-                       </resource>
-               </resources>
-               <plugins>
-                       <plugin>
-                               <groupId>org.apache.felix</groupId>
-                               <artifactId>maven-bundle-plugin</artifactId>
-                               <configuration>
-                                       <instructions>
-                                               <SLC-ExecutionModule>default</SLC-ExecutionModule>
-                                               <!-- Minimal imports -->
-                                               <Import-Package>
-                                                       *,
-                                                       net.sf.cglib.core,
-                                                       net.sf.cglib.proxy,
-                                                       net.sf.cglib.reflect,
-                                                       org.aopalliance.aop,
-                                                       org.argeo.slc.core.execution,
-                                                       org.argeo.slc.core.execution.tasks,
-                                                       org.argeo.slc.execution,
-                                                       org.argeo.slc.osgi,
-                                                       org.argeo.slc.test,
-                                                       org.springframework.aop,
-                                                       org.springframework.aop.framework,
-                                                       org.springframework.aop.scope,
-                                                       org.springframework.beans.factory.config,
-                                                       org.springframework.core.io,                                            
-                                               </Import-Package>
-                                       </instructions>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <artifactId>maven-clean-plugin</artifactId>
-                               <configuration>
-                                       <filesets>
-                                               <fileset>
-                                                       <directory>META-INF</directory>
-                                                       <includes>
-                                                               <include>MANIFEST.MF</include>
-                                                       </includes>
-                                               </fileset>
-                                       </filesets>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-jar-plugin</artifactId>
-                       </plugin>
-               </plugins>
-       </build>
 </project>
index c20440b74df6644e7073facb4e3cf28902c241fd..00d8510abe13343d2fe28235e3f69dd8e92899bb 100644 (file)
        <modules>
                <module>modules</module>
        </modules>
-       <build>
-               <plugins>
-                       <plugin>
-                               <groupId>org.argeo.maven.plugins</groupId>
-                               <artifactId>maven-argeo-osgi-plugin</artifactId>
-                               <configuration>
-                                       <argsToAppend>
-                                               <arg>-clean</arg>
-                                       </argsToAppend>
-                               </configuration>
-                       </plugin>
-               </plugins>
-       </build>
-       <profiles>
-               <profile>
-                       <id>server</id>
-                       <build>
-                               <plugins>
-                                       <plugin>
-                                               <groupId>org.argeo.maven.plugins</groupId>
-                                               <artifactId>maven-argeo-osgi-plugin</artifactId>
-                                               <configuration>
-                                                       <execDir>target/exec/server</execDir>
-                                                       <systemPropertiesFile>server.properties</systemPropertiesFile>
-                                                       <systemProperties>
-                                                               <log4j.configuration>file:${basedir}/log4j.properties</log4j.configuration>
-                                                               <argeo.osgi.bundles>
-                                                                       ${basedir}/../modules/server;in=*;ex=pom.xml;ex=target;ex=.*,
-                                                               </argeo.osgi.bundles>
-                                                       </systemProperties>
-                                               </configuration>
-                                       </plugin>
-                               </plugins>
-                       </build>
-                       <dependencies>
-                               <dependency>
-                                       <groupId>org.argeo.slc.dep</groupId>
-                                       <artifactId>org.argeo.slc.dep.server</artifactId>
-                                       <version>${version.slc}</version>
-                               </dependency>
-                               <dependency>
-                                       <groupId>org.argeo.slc.server</groupId>
-                                       <artifactId>org.argeo.slc.ria</artifactId>
-                               </dependency>
-
-                       </dependencies>
-               </profile>
-               <profile>
-                       <id>server_jcr</id>
-                       <build>
-                               <plugins>
-                                       <plugin>
-                                               <groupId>org.argeo.maven.plugins</groupId>
-                                               <artifactId>maven-argeo-osgi-plugin</artifactId>
-                                               <configuration>
-                                                       <execDir>target/exec/server</execDir>
-                                                       <systemPropertiesFile>server_jcr.properties</systemPropertiesFile>
-                                                       <systemProperties>
-                                                               <log4j.configuration>file:${basedir}/log4j.properties</log4j.configuration>
-                                                               <argeo.osgi.bundles>
-                                                                       ${basedir}/../modules/server;in=*;ex=pom.xml;ex=target;ex=.*,
-                                                               </argeo.osgi.bundles>
-                                                       </systemProperties>
-                                               </configuration>
-                                       </plugin>
-                               </plugins>
-                       </build>
-                       <dependencies>
-                               <dependency>
-                                       <groupId>org.argeo.slc.dep</groupId>
-                                       <artifactId>org.argeo.slc.dep.server</artifactId>
-                                       <version>${version.slc}</version>
-                               </dependency>
-                               <dependency>
-                                       <groupId>org.argeo.slc.server</groupId>
-                                       <artifactId>org.argeo.slc.ria</artifactId>
-                               </dependency>
-
-                       </dependencies>
-               </profile>
-               <profile>
-                       <id>agent</id>
-                       <build>
-                               <plugins>
-                                       <plugin>
-                                               <groupId>org.argeo.maven.plugins</groupId>
-                                               <artifactId>maven-argeo-osgi-plugin</artifactId>
-                                               <configuration>
-                                                       <execDir>target/exec/agent</execDir>
-                                                       <systemPropertiesFile>agent.properties</systemPropertiesFile>
-                                                       <systemProperties>
-                                                               <argeo.osgi.bundles>
-                                                                       ${basedir}/site;in=*;ex=pom.xml;ex=target,
-                                                                       ${basedir}/../modules/agent;in=*;ex=pom.xml;ex=target
-                                                               </argeo.osgi.bundles>
-                                                       </systemProperties>
-                                               </configuration>
-                                       </plugin>
-                               </plugins>
-                       </build>
-                       <dependencies>
-                               <dependency>
-                                       <groupId>org.argeo.slc.dep</groupId>
-                                       <artifactId>org.argeo.slc.dep.agent</artifactId>
-                                       <version>${version.slc}</version>
-                               </dependency>
-                               <dependency>
-                                       <groupId>org.argeo.slc.dep</groupId>
-                                       <artifactId>org.argeo.slc.dep.agent.extras</artifactId>
-                                       <version>${version.slc}</version>
-                               </dependency>
-                       </dependencies>
-               </profile>
-               <profile>
-                       <id>slc_gis_position</id>
-                       <build>
-                               <plugins>
-                                       <plugin>
-                                               <groupId>org.argeo.maven.plugins</groupId>
-                                               <artifactId>maven-argeo-osgi-plugin</artifactId>
-                                               <configuration>
-                                                       <execDir>target/exec/agent</execDir>
-                                                       <systemPropertiesFile>slc_gis_position.properties</systemPropertiesFile>
-                                                       <systemProperties>
-                                                               <argeo.osgi.bundles>
-                                                                       ${basedir}/../modules/gis;in=*;ex=pom.xml;ex=target
-                                                               </argeo.osgi.bundles>
-                                                       </systemProperties>
-                                               </configuration>
-                                       </plugin>
-                               </plugins>
-                       </build>
-                       <dependencies>
-                               <dependency>
-                                       <groupId>org.argeo.slc.dep</groupId>
-                                       <artifactId>org.argeo.slc.dep.gis</artifactId>
-                                       <version>${version.slc}</version>
-                               </dependency>
-                       </dependencies>
-               </profile>
-               <profile>
-                       <id>detached</id>
-                       <build>
-                               <plugins>
-                                       <plugin>
-                                               <groupId>org.argeo.maven.plugins</groupId>
-                                               <artifactId>maven-argeo-osgi-plugin</artifactId>
-                                               <configuration>
-                                                       <execDir>target/exec/detached</execDir>
-                                                       <fork>true</fork>
-                                                       <systemProperties>
-                                                               <argeo.osgi.start>
-                                                                       org.springframework.osgi.extender,
-                                                                       org.argeo.slc.detached,
-                                                                       org.argeo.slc.demo.det
-                                                               </argeo.osgi.start>
-                                                               <argeo.osgi.bundles>
-                                                                       ${basedir}/site;in=org.argeo.slc.demo.det;ex=pom.xml;ex=target,
-                                                                       ${basedir}/site;in=org.argeo.slc.demo.log4j;ex=pom.xml;ex=target,
-                                                               </argeo.osgi.bundles>
-                                                               <javax.xml.parsers.DocumentBuilderFactory>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</javax.xml.parsers.DocumentBuilderFactory>
-                                                       </systemProperties>
-                                               </configuration>
-                                       </plugin>
-                               </plugins>
-                       </build>
-                       <dependencies>
-                               <dependency>
-                                       <groupId>org.argeo.slc.dep</groupId>
-                                       <artifactId>org.argeo.slc.dep.detached</artifactId>
-                                       <version>${version.slc}</version>
-                               </dependency>
-                               <dependency>
-                                       <groupId>net.sourceforge.mx4j</groupId>
-                                       <artifactId>com.springsource.mx4j</artifactId>
-                               </dependency>
-                               <dependency>
-                                       <groupId>org.eclipse.osgi</groupId>
-                                       <artifactId>org.eclipse.osgi</artifactId>
-                               </dependency>
-                       </dependencies>
-               </profile>
-               <profile>
-                       <id>server_mysql</id>
-                       <build>
-                               <plugins>
-                                       <plugin>
-                                               <groupId>org.argeo.maven.plugins</groupId>
-                                               <artifactId>maven-argeo-osgi-plugin</artifactId>
-                                               <configuration>
-                                                       <execDir>target/exec/server</execDir>
-                                                       <jvmArgs>
-                                                               <jvmArg>-Xmx256m</jvmArg>
-                                                               <!--
-                                                                       <jvmArg>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8000</jvmArg>
-                                                               -->
-                                                       </jvmArgs>
-                                                       <systemProperties>
-                                                               <argeo.osgi.start>
-                                                                       org.argeo.dep.osgi.catalina.start,
-                                                                       org.springframework.osgi.extender,
-                                                                       org.springframework.osgi.web.extender,
-                                                                       org.springframework.osgi.samples.simplewebapp,
-                                                                       org.argeo.slc.server.activemq,
-                                                                       org.argeo.slc.server.mysql,
-                                                                       org.argeo.slc.server.hibernate,
-                                                                       org.argeo.slc.server.services,
-                                                                       org.argeo.slc.server.jms,
-                                                                       org.argeo.slc.webapp,
-                                                                       org.argeo.slc.ria
-                                                               </argeo.osgi.start>
-                                                       </systemProperties>
-                                               </configuration>
-                                       </plugin>
-                               </plugins>
-                       </build>
-                       <dependencies>
-                               <dependency>
-                                       <groupId>org.argeo.slc.dep</groupId>
-                                       <version>${version.slc}</version>
-                               </dependency>
-                               <dependency>
-                                       <groupId>org.argeo.slc.server</groupId>
-                                       <artifactId>org.argeo.slc.ria</artifactId>
-                               </dependency>
-                       </dependencies>
-               </profile>
-       </profiles>
 </project>
index 6060a63dba0fc79fb9fe5dd031125b79ecb2f957..d8acf8495d9baa6929342dc72793e23dfaa80945 100644 (file)
                <module>org.argeo.slc.dep.rap</module>
        </modules>
        <build>
-               <resources>
-                       <resource>
-                               <directory>.</directory>
-                               <includes>
-                                       <include>*.inf</include>
-                               </includes>
-                       </resource>
-               </resources>
                <plugins>
                        <plugin>
                                <groupId>org.apache.felix</groupId>
index d75a794568796904be9a982ce7bea3dde291a984..b53cc94477a2e9ece5c7ae4b47db3f2856cdbed8 100644 (file)
@@ -10,7 +10,7 @@
        <artifactId>lib</artifactId>
        <packaging>pom</packaging>
        <name>SLC Standard Libs</name>
-       <description>SLC execution modules for generic tasks</description>
+       <description>SLC execution modules for generic tasks, to be used as parent pom</description>
        <properties>
                <additionalImports.slc-lib>
                        com.jcraft.jsch;resolution:=optional,
@@ -26,6 +26,7 @@
                                </includes>
                                <excludes>
                                        <exclude>.*</exclude>
+                                       <exclude>.*/**</exclude>
                                        <exclude>pom.xml</exclude>
                                        <exclude>build.properties</exclude>
                                </excludes>
                                        </instructions>
                                </configuration>
                        </plugin>
-                       <plugin>
-                               <artifactId>maven-clean-plugin</artifactId>
-                               <configuration>
-                                       <filesets>
-                                               <fileset>
-                                                       <directory>META-INF</directory>
-                                                       <includes>
-                                                               <include>MANIFEST.MF</include>
-                                                       </includes>
-                                               </fileset>
-                                       </filesets>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-jar-plugin</artifactId>
-                       </plugin>
                </plugins>
        </build>
        <dependencies>
index e28a6945573b373c462ba6dd43277c6d2f1d887f..14a22555157ebd97a6779e42d413c6b16d63a42c 100644 (file)
@@ -1,4 +1,5 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <parent>
                <groupId>org.argeo.slc</groupId>
                                </includes>
                                <excludes>
                                        <exclude>.*</exclude>
+                                       <exclude>.*/**</exclude>
                                        <exclude>pom.xml</exclude>
                                        <exclude>build.properties</exclude>
                                </excludes>
                        </resource>
                </resources>
-               <plugins>
-                       <plugin>
-                               <artifactId>maven-clean-plugin</artifactId>
-                               <configuration>
-                                       <filesets>
-                                               <fileset>
-                                                       <directory>META-INF</directory>
-                                                       <includes>
-                                                               <include>MANIFEST.MF</include>
-                                                       </includes>
-                                               </fileset>
-                                       </filesets>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-jar-plugin</artifactId>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.felix</groupId>
-                               <artifactId>maven-bundle-plugin</artifactId>
-                       </plugin>
-               </plugins>
        </build>
 </project>
index c6a096baff8a646945decd2efb1a6561e063811b..fa8a8d8be9fe4bb7b848fba2407bf6c9e286cd8e 100644 (file)
                <module>org.argeo.slc.client.rap</module>
        </modules>
        <build>
-               <resources>
-                       <resource>
-                               <directory>.</directory>
-                               <includes>
-                                       <include>plugin.xml</include>
-                                       <include>META-INF/**</include>
-                                       <include>icons/**</include>
-                               </includes>
-                       </resource>
-               </resources>
                <plugins>
-                       <plugin>
-                               <artifactId>maven-clean-plugin</artifactId>
-                               <configuration>
-                                       <filesets>
-                                               <fileset>
-                                                       <directory>META-INF</directory>
-                                                       <includes>
-                                                               <include>MANIFEST.MF</include>
-                                                       </includes>
-                                               </fileset>
-                                       </filesets>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-jar-plugin</artifactId>
-                               <configuration>
-                                       <archive>
-                                               <manifestFile>META-INF/MANIFEST.MF</manifestFile>
-                                       </archive>
-                               </configuration>
-                       </plugin>
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-bundle-plugin</artifactId>
index 88944a8df7b1030f39d6523594b8e8590a5b1b9f..e550f6b09a2dce63e7506c3f639f81ffb3dc23b7 100644 (file)
                <module>org.argeo.slc.lib.detached</module>
                <module>org.argeo.slc.repo</module>
        </modules>
-       <build>
-               <resources>
-                       <resource>
-                               <directory>src/main/resources</directory>
-                       </resource>
-                       <resource>
-                               <directory>.</directory>
-                               <includes>
-                                       <include>META-INF/**</include>
-                                       <include>*.properties</include>
-                               </includes>
-                               <excludes>
-                                       <exclude>build.properties</exclude>
-                               </excludes>
-                       </resource>
-               </resources>
-               <plugins>
-                       <plugin>
-                               <artifactId>maven-clean-plugin</artifactId>
-                               <configuration>
-                                       <filesets>
-                                               <fileset>
-                                                       <directory>META-INF</directory>
-                                                       <includes>
-                                                               <include>MANIFEST.MF</include>
-                                                       </includes>
-                                               </fileset>
-                                       </filesets>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-jar-plugin</artifactId>
-                               <configuration>
-                                       <archive>
-                                               <manifestFile>META-INF/MANIFEST.MF</manifestFile>
-                                       </archive>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-source-plugin</artifactId>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-surefire-plugin</artifactId>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.felix</groupId>
-                               <artifactId>maven-bundle-plugin</artifactId>
-                       </plugin>
-               </plugins>
-       </build>
 </project>