]> git.argeo.org Git - gpl/argeo-slc.git/blob - dist/org.argeo.slc.sdk/pom.xml
76b8b8aad73443c928136455c8b51b62dcfe3358
[gpl/argeo-slc.git] / dist / org.argeo.slc.sdk / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4 <parent>
5 <groupId>org.argeo.slc</groupId>
6 <artifactId>dep</artifactId>
7 <version>0.12.1-SNAPSHOT</version>
8 </parent>
9 <groupId>org.argeo.slc.dist</groupId>
10 <artifactId>org.argeo.slc.sdk</artifactId>
11 <packaging>jar</packaging>
12 <name>SLC SDK</name>
13 <properties>
14 <argeo.p2.cmd>/opt/equinox-p2-agent/eclipse</argeo.p2.cmd>
15 <argeo.p2.repository>/var/argeo/projects/SLC/www/sdk-dev</argeo.p2.repository>
16 </properties>
17 <build>
18 <plugins>
19 <plugin>
20 <groupId>org.apache.maven.plugins</groupId>
21 <artifactId>maven-dependency-plugin</artifactId>
22 <executions>
23 <execution>
24 <id>copy-dependencies</id>
25 <phase>process-resources</phase>
26 <goals>
27 <goal>copy-dependencies</goal>
28 </goals>
29 <configuration>
30 <includeTypes>jar</includeTypes>
31 <outputDirectory>${project.build.directory}</outputDirectory>
32 </configuration>
33 </execution>
34 </executions>
35 </plugin>
36 <plugin>
37 <groupId>org.argeo.maven.plugins</groupId>
38 <artifactId>maven-argeo-osgi-plugin</artifactId>
39 <version>${version.maven-argeo-osgi}</version>
40 <executions>
41 <execution>
42 <id>pde-source</id>
43 <phase>process-resources</phase>
44 <goals>
45 <goal>pde-sources</goal>
46 </goals>
47 <configuration>
48 </configuration>
49 </execution>
50 <execution>
51 <id>check-osgi</id>
52 <phase>test</phase>
53 <goals>
54 <goal>equinox</goal>
55 </goals>
56 <configuration>
57 <useDependencies>false</useDependencies>
58 <onlyCheck>true</onlyCheck>
59 <argsToAppend>
60 <arg>-clean</arg>
61 </argsToAppend>
62 <systemProperties>
63 <argeo.osgi.bundles>
64 ${basedir}/target;in=*.jar,
65 </argeo.osgi.bundles>
66 </systemProperties>
67 </configuration>
68 </execution>
69 </executions>
70 </plugin>
71 <plugin>
72 <artifactId>maven-resources-plugin</artifactId>
73 <executions>
74 <execution>
75 <phase>validate</phase>
76 <goals>
77 <goal>copy-resources</goal>
78 </goals>
79 <configuration>
80 <outputDirectory>${basedir}/target/base</outputDirectory>
81 <resources>
82 <resource>
83 <directory>src/main/base</directory>
84 <filtering>true</filtering>
85 </resource>
86 </resources>
87 </configuration>
88 </execution>
89 </executions>
90 </plugin>
91 <plugin>
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-assembly-plugin</artifactId>
94 <configuration>
95 <descriptors>
96 <descriptor>src/assembly/dist.xml</descriptor>
97 </descriptors>
98 </configuration>
99 <executions>
100 <execution>
101 <id>attach-assembly</id>
102 <phase>package</phase>
103 <goals>
104 <goal>single</goal>
105 </goals>
106 </execution>
107 </executions>
108 </plugin>
109 <plugin>
110 <groupId>org.codehaus.mojo</groupId>
111 <artifactId>exec-maven-plugin</artifactId>
112 <version>1.1</version>
113 <executions>
114 <execution>
115 <id>create-repository</id>
116 <phase>deploy</phase>
117 <goals>
118 <goal>exec</goal>
119 </goals>
120 </execution>
121 </executions>
122 <configuration>
123 <executable>${argeo.p2.cmd}</executable>
124 <!-- optional -->
125 <workingDirectory>/tmp</workingDirectory>
126 <arguments>
127 <argument>-noSplash</argument>
128 <argument>-application</argument>
129 <argument>org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher</argument>
130 <argument>-metadataRepository</argument>
131 <argument>file:${argeo.p2.repository}</argument>
132 <argument>-artifactRepository</argument>
133 <argument>file:${argeo.p2.repository}</argument>
134 <argument>-bundles</argument>
135 <argument>${project.build.directory}</argument>
136 <argument>-features</argument>
137 <argument>${project.build.directory}</argument>
138 <argument>-compress</argument>
139 <argument>-publishArtifacts</argument>
140 </arguments>
141 </configuration>
142 </plugin>
143 </plugins>
144 </build>
145 <dependencies>
146 <dependency>
147 <groupId>org.argeo.slc.dep</groupId>
148 <artifactId>org.argeo.slc.dep.server</artifactId>
149 <version>${project.version}</version>
150 </dependency>
151 <dependency>
152 <groupId>org.argeo.slc.dep</groupId>
153 <artifactId>org.argeo.slc.dep.detached</artifactId>
154 <version>${project.version}</version>
155 </dependency>
156 <dependency>
157 <groupId>org.argeo.slc.runtime</groupId>
158 <artifactId>org.argeo.slc.unit</artifactId>
159 <version>${project.version}</version>
160 </dependency>
161 <dependency>
162 <groupId>org.argeo.slc.server</groupId>
163 <artifactId>org.argeo.slc.ria</artifactId>
164 </dependency>
165
166 <!-- Modules -->
167
168 <!-- Launcher -->
169 <dependency>
170 <groupId>org.argeo.slc.runtime</groupId>
171 <artifactId>org.argeo.slc.launcher</artifactId>
172 <version>${project.version}</version>
173 <type>tar.gz</type>
174 <classifier>base</classifier>
175 </dependency>
176
177 </dependencies>
178 <profiles>
179 <profile>
180 <id>sdkWithModules</id>
181 <activation>
182 <activeByDefault>true</activeByDefault>
183 </activation>
184 <dependencies>
185 <dependency>
186 <groupId>org.argeo.slc.modules</groupId>
187 <artifactId>org.argeo.slc.modules.agent.bundles</artifactId>
188 <version>${project.version}</version>
189 <type>pom</type>
190 </dependency>
191 <dependency>
192 <groupId>org.argeo.slc.modules</groupId>
193 <artifactId>org.argeo.slc.modules.server.bundles</artifactId>
194 <version>${project.version}</version>
195 <type>pom</type>
196 </dependency>
197 </dependencies>
198 </profile>
199 <profile>
200 <id>sdkWithoutModules</id>
201 </profile>
202 <profile>
203 <id>release</id>
204 <properties>
205 <argeo.p2.repository>/var/argeo/projects/SLC/www/sdk</argeo.p2.repository>
206 </properties>
207 <dependencies>
208 <dependency>
209 <groupId>org.argeo.slc.modules</groupId>
210 <artifactId>org.argeo.slc.modules.agent.bundles</artifactId>
211 <version>${project.version}</version>
212 <type>pom</type>
213 </dependency>
214 <dependency>
215 <groupId>org.argeo.slc.modules</groupId>
216 <artifactId>org.argeo.slc.modules.server.bundles</artifactId>
217 <version>${project.version}</version>
218 <type>pom</type>
219 </dependency>
220 </dependencies>
221 </profile>
222 </profiles>
223 </project>