]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - dist/org.argeo.slc.sdk/pom.xml
Add sources to SDK update site
[gpl/argeo-slc.git] / dist / org.argeo.slc.sdk / pom.xml
index e3b2e55afea45bf8d2b86e96cec53c5b49c24059..ccac1d406d6b20c5c88197fdfccd2b4e710f3ddb 100644 (file)
                                                </goals>
                                        </execution>
                                </executions>
-                       </plugin>
+                       </plugin><!--
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>exec-maven-plugin</artifactId>
                                </executions>
                                <configuration>
                                        <executable>${argeo.p2.cmd}</executable>
-                                       <!-- optional -->
+                                        optional 
                                        <workingDirectory>/tmp</workingDirectory>
                                        <arguments>
                                                <argument>-noSplash</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}">
+                                                                               <include name="lib/*.jar" />
+                                                                               <include name="libsrc/*.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>
                        <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.sources</artifactId>
+                       <version>${project.version}</version>
+               </dependency>
        </dependencies>
        <profiles>
                <profile>