]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - dist/org.argeo.slc.sdk/pom.xml
Fix for Maven 3
[gpl/argeo-slc.git] / dist / org.argeo.slc.sdk / pom.xml
index 3145829b4dded343489d43bbe817a6d83e508065..2981d9c03134eb85644b584a6caaa92049cc0528 100644 (file)
@@ -4,11 +4,11 @@
        <parent>
                <groupId>org.argeo.slc</groupId>
                <artifactId>dist</artifactId>
-               <version>0.12.2-SNAPSHOT</version>
+               <version>0.13.1-SNAPSHOT</version>
        </parent>
        <groupId>org.argeo.slc.dist</groupId>
        <artifactId>org.argeo.slc.sdk</artifactId>
-       <packaging>jar</packaging>
+       <packaging>pom</packaging>
        <name>SLC SDK</name>
        <properties>
                <argeo.p2.cmd>/opt/equinox-p2-agent/eclipse</argeo.p2.cmd>
                                        </execution>
                                </executions>
                        </plugin>
-                       <plugin>
-                               <groupId>org.codehaus.mojo</groupId>
-                               <artifactId>exec-maven-plugin</artifactId>
-                               <version>1.1</version>
-                               <executions>
-                                       <execution>
-                                               <id>create-repository</id>
-                                               <phase>deploy</phase>
-                                               <goals>
-                                                       <goal>exec</goal>
-                                               </goals>
-                                       </execution>
-                               </executions>
-                               <configuration>
-                                       <executable>${argeo.p2.cmd}</executable>
-                                       <!-- optional -->
-                                       <workingDirectory>/tmp</workingDirectory>
-                                       <arguments>
-                                               <argument>-noSplash</argument>
-                                               <argument>-application</argument>
-                                               <argument>org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher</argument>
-                                               <argument>-metadataRepository</argument>
-                                               <argument>file:${argeo.p2.repository}</argument>
-                                               <argument>-artifactRepository</argument>
-                                               <argument>file:${argeo.p2.repository}</argument>
-                                               <argument>-bundles</argument>
-                                               <argument>${project.build.directory}</argument>
-                                               <argument>-features</argument>
-                                               <argument>${project.build.directory}</argument>
-                                               <argument>-compress</argument>
-                                               <argument>-publishArtifacts</argument>
-                                       </arguments>
-                               </configuration>
-                       </plugin>
+                       <!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> 
+                               <version>1.1</version> <executions> <execution> <id>create-repository</id> 
+                               <phase>deploy</phase> <goals> <goal>exec</goal> </goals> </execution> </executions> 
+                               <configuration> <executable>${argeo.p2.cmd}</executable> optional <workingDirectory>/tmp</workingDirectory> 
+                               <arguments> <argument>-noSplash</argument> <argument>-application</argument> 
+                               <argument>org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher</argument> 
+                               <argument>-metadataRepository</argument> <argument>file:${argeo.p2.repository}</argument> 
+                               <argument>-artifactRepository</argument> <argument>file:${argeo.p2.repository}</argument> 
+                               <argument>-bundles</argument> <argument>${project.build.directory}</argument> 
+                               <argument>-features</argument> <argument>${project.build.directory}</argument> 
+                               <argument>-compress</argument> <argument>-publishArtifacts</argument> </arguments> 
+                               </configuration> </plugin> -->
+                       <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> 
+                               <executions> <execution> <id>p2-copyToRepo</id> <phase>deploy</phase> <goals> 
+                               <goal>run</goal> </goals> <configuration> <tasks> <mkdir dir="${project.build.directory}/repobase" 
+                               /> <copy todir="${project.build.directory}/repobase"> <fileset dir="${project.build.directory}/lib"> 
+                               <include name="*.jar" /> </fileset> <fileset dir="${project.build.directory}/libsrc"> 
+                               <include name="*.jar" /> </fileset> </copy> <exec executable="${argeo.p2.cmd}"> 
+                               <arg value="-noSplash" /> <arg value="-application" /> <arg value="org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher" 
+                               /> <arg value="-metadataRepository" /> <arg value="file:${argeo.p2.repository}" 
+                               /> <arg value="-artifactRepository" /> <arg value="file:${argeo.p2.repository}" 
+                               /> <arg value="-bundles" /> <arg value="${project.build.directory}/repobase" 
+                               /> <arg value="-features" /> <arg value="${project.build.directory}/repobase" 
+                               /> <arg value="-compress" /> <arg value="-publishArtifacts" /> </exec> </tasks> 
+                               </configuration> </execution> </executions> </plugin> -->
                </plugins>
        </build>
        <dependencies>
                <dependency>
                        <groupId>org.argeo.slc.dep</groupId>
-                       <artifactId>org.argeo.slc.dep.server</artifactId>
+                       <artifactId>org.argeo.slc.dep.sdk</artifactId>
                        <version>${project.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.argeo.slc.dep</groupId>
-                       <artifactId>org.argeo.slc.dep.sdk</artifactId>
+                       <artifactId>org.argeo.slc.dep.sdk.sources</artifactId>
                        <version>${project.version}</version>
                </dependency>
        </dependencies>
        <profiles>
                <profile>
-                       <id>rpmbuild</id><!--
+                       <id>rpmbuild</id>
+
                        <activation>
                                <os>
                                        <name>Linux</name>
                                        <exists>/usr/bin/rpmbuild</exists>
                                </file>
                        </activation>
-                       --><properties>
+
+                       <properties>
                                <package.version>${project.version}</package.version>
                                <distribution.label>argeo</distribution.label>
-                               <distribution.root>/net/cash/srv/yumrepos/argeo-el/5/argeo-testing/</distribution.root>
+                               <distribution.root>/var/argeo/linux/argeo-el/5/argeo-testing</distribution.root>
                        </properties>
                        <build>
                                <plugins>
                                        <plugin>
                                                <groupId>org.codehaus.mojo</groupId>
                                                <artifactId>rpm-maven-plugin</artifactId>
+                                               <version>2.1-alpha-1</version>
                                                <extensions>true</extensions>
                                                <configuration>
                                                        <version>${package.version}</version>
                                                <executions>
                                                        <execution>
                                                                <id>rpm-sdk</id>
-                                                               <phase>package</phase>
+                                                               <phase>deploy</phase>
                                                                <goals>
                                                                        <goal>rpm</goal>
                                                                </goals>
                                                        </execution>
                                                        <execution>
                                                                <id>rpm-devel</id>
-                                                               <phase>package</phase>
+                                                               <phase>deploy</phase>
                                                                <goals>
                                                                        <goal>rpm</goal>
                                                                </goals>
                                                                                        </sources>
                                                                                </mapping>
                                                                        </mappings>
+                                                                       <requires>
+                                                                               <require>org.argeo.slc.sdk</require>
+                                                                       </requires>
                                                                </configuration>
                                                        </execution>
                                                        <execution>
                                                                <id>rpm-demo</id>
-                                                               <phase>package</phase>
+                                                               <phase>deploy</phase>
                                                                <goals>
                                                                        <goal>rpm</goal>
                                                                </goals>
                                                                                        <groupname>root</groupname>
                                                                                        <filemode>644</filemode>
                                                                                        <directoryIncluded>false</directoryIncluded>
-                                                                                       <configuration>true</configuration>
                                                                                        <sources>
                                                                                                <source>
                                                                                                        <location>../../demo/site</location>
                                                                                                        <includes>
-                                                                                                               <include>**</include>
+                                                                                                               <include>org.argeo.*/**</include>
                                                                                                        </includes>
                                                                                                        <excludes>
-                                                                                                               <exclude>*.pom.xml</exclude>
+                                                                                                               <exclude>pom.xml</exclude>
+                                                                                                               <exclude>target</exclude>
                                                                                                                <exclude>.svn</exclude>
                                                                                                                <exclude>**/.svn/**</exclude>
                                                                                                        </excludes>
                                                                                        </sources>
                                                                                </mapping>
                                                                        </mappings>
+                                                                       <requires>
+                                                                               <require>org.argeo.slc.sdk</require>
+                                                                       </requires>
                                                                </configuration>
                                                        </execution>
                                                </executions>
                                        </plugin>
-                                       <plugin>
-                                               <groupId>org.apache.maven.plugins</groupId>
-                                               <artifactId>maven-antrun-plugin</artifactId>
-                                               <executions>
-                                                       <execution>
-                                                               <id>rpm-copyToRepo</id>
-                                                               <phase>install</phase>
-                                                               <goals>
-                                                                       <goal>run</goal>
-                                                               </goals>
-                                                               <configuration>
-                                                                       <tasks>
-                                                                               <delete verbose="true">
-                                                                                       <fileset dir="${distribution.root}" includes="*/org.argeo.slc.sdk-*.rpm" />
-                                                                               </delete>
-                                                                               <copy todir="${distribution.root}/x86_64" verbose="true">
-                                                                                       <fileset dir="target">
-                                                                                               <include name="rpm/*/RPMS/*/*.rpm" />
-                                                                                       </fileset>
-                                                                                       <flattenmapper />
-                                                                               </copy>
-                                                                               <exec executable="/usr/bin/createrepo">
-                                                                                       <arg value="${distribution.root}/x86_64" />
-                                                                               </exec>
-                                                                               <copy todir="${distribution.root}/i386" verbose="true">
-                                                                                       <fileset dir="target">
-                                                                                               <include name="rpm/*/RPMS/*/*.rpm" />
-                                                                                       </fileset>
-                                                                                       <flattenmapper />
-                                                                               </copy>
-                                                                               <exec executable="/usr/bin/createrepo">
-                                                                                       <arg value="${distribution.root}/i386" />
-                                                                               </exec>
-                                                                       </tasks>
-                                                               </configuration>
-                                                       </execution>
-                                               </executions>
-                                       </plugin>
+                                       <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> 
+                                               <executions> <execution> <id>rpm-copyToRepo</id> <phase>deploy</phase> <goals> 
+                                               <goal>run</goal> </goals> <configuration> <tasks> <mkdir dir="${distribution.root}/i386" 
+                                               /> <mkdir dir="${distribution.root}/x86_64" /> <delete verbose="true"> <fileset 
+                                               dir="${distribution.root}" includes="*/org.argeo.slc.sdk-*.rpm" /> </delete> 
+                                               <copy todir="${distribution.root}/x86_64" verbose="true"> <fileset dir="target"> 
+                                               <include name="rpm/*/RPMS/*/*.rpm" /> </fileset> <flattenmapper /> </copy> 
+                                               <exec executable="/usr/bin/createrepo"> <arg value="${distribution.root}/x86_64" 
+                                               /> </exec> <copy todir="${distribution.root}/i386" verbose="true"> <fileset 
+                                               dir="target"> <include name="rpm/*/RPMS/*/*.rpm" /> </fileset> <flattenmapper 
+                                               /> </copy> <exec executable="/usr/bin/createrepo"> <arg value="${distribution.root}/i386" 
+                                               /> </exec> </tasks> </configuration> </execution> </executions> </plugin> -->
                                </plugins>
                        </build>