]> git.argeo.org Git - gpl/argeo-slc.git/blob - demo/pom.xml
Improve build script
[gpl/argeo-slc.git] / demo / pom.xml
1 <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">
2 <modelVersion>4.0.0</modelVersion>
3 <parent>
4 <groupId>org.argeo.slc</groupId>
5 <artifactId>argeo-slc</artifactId>
6 <version>0.11.4-SNAPSHOT</version>
7 <relativePath>..</relativePath>
8 </parent>
9 <groupId>org.argeo.slc</groupId>
10 <artifactId>demo</artifactId>
11 <packaging>pom</packaging>
12 <name>Argeo SLC Demo Deploy</name>
13 <modules>
14 <module>site</module>
15 </modules>
16 <build>
17 <plugins>
18 <plugin>
19 <groupId>org.argeo.slc.maven</groupId>
20 <artifactId>maven-argeo-osgi-plugin</artifactId>
21 <version>${version.maven-argeo-osgi}</version>
22 <configuration>
23 <argsToAppend>
24 <arg>-clean</arg>
25 <arg>-noExit</arg>
26 </argsToAppend>
27 <systemProperties>
28 <slc.osgi.bundles>${basedir}/site;in=*;ex=**/.svn/**,${basedir}/../server/org.argeo.slc.siteserver/bundles;in=*;ex=**/.svn/**</slc.osgi.bundles>
29 </systemProperties>
30 </configuration>
31 </plugin>
32 <plugin>
33 <groupId>org.apache.maven.plugins</groupId>
34 <artifactId>maven-dependency-plugin</artifactId>
35 <executions>
36 <execution>
37 <id>copy-dependencies</id>
38 <phase>pre-integration-test</phase>
39 <goals>
40 <goal>copy-dependencies</goal>
41 </goals>
42 <configuration>
43 <includeScope>compile</includeScope>
44 <includeTypes>jar</includeTypes>
45 </configuration>
46 </execution>
47 </executions>
48 </plugin>
49 <plugin>
50 <groupId>org.apache.maven.plugins</groupId>
51 <artifactId>maven-surefire-plugin</artifactId>
52 <configuration>
53 <skipTests>true</skipTests>
54 </configuration>
55 <executions>
56 <execution>
57 <id>surefire-it</id>
58 <phase>integration-test</phase>
59 <goals>
60 <goal>test</goal>
61 </goals>
62 <configuration>
63 <skipTests>false</skipTests>
64 </configuration>
65 </execution>
66 </executions>
67 </plugin>
68 </plugins>
69 </build>
70 <dependencies>
71 <dependency>
72 <groupId>org.argeo.slc.runtime</groupId>
73 <artifactId>org.argeo.slc.support.equinox</artifactId>
74 </dependency>
75 <dependency>
76 <groupId>org.argeo.slc.runtime</groupId>
77 <artifactId>org.argeo.slc.osgiboot</artifactId>
78 </dependency>
79 </dependencies>
80
81 <profiles>
82 <profile>
83 <id>server</id>
84 <build>
85 <plugins>
86 <plugin>
87 <groupId>org.argeo.slc.maven</groupId>
88 <artifactId>maven-argeo-osgi-plugin</artifactId>
89 <configuration>
90 <execDir>target/exec/server</execDir>
91 <jvmArgs>
92 <jvmArg>-Xmx256m</jvmArg>
93 </jvmArgs>
94 <debug>0</debug>
95 <systemProperties>
96 <slc.osgi.start>
97 org.argeo.dep.osgi.catalina.start,
98 org.springframework.osgi.extender,
99 org.springframework.osgi.web.extender,
100 org.springframework.osgi.samples.simplewebapp,
101 org.argeo.slc.server.activemq,
102 org.argeo.slc.server.hsqldb,
103 org.argeo.slc.server.hibernate,
104 org.argeo.slc.server.services,
105 org.argeo.slc.server.jms,
106 org.argeo.slc.webapp,
107 org.argeo.slc.ria
108 </slc.osgi.start>
109 <!-- <slc.osgiboot.debug>true</slc.osgiboot.debug>-->
110 </systemProperties>
111 </configuration>
112 </plugin>
113 </plugins>
114 </build>
115 <dependencies>
116 <dependency>
117 <groupId>org.argeo.slc.dep</groupId>
118 <artifactId>org.argeo.slc.dep.server</artifactId>
119 <version>${project.version}</version>
120 </dependency>
121 </dependencies>
122 </profile>
123 <profile>
124 <id>agent</id>
125 <build>
126 <plugins>
127 <plugin>
128 <groupId>org.argeo.slc.maven</groupId>
129 <artifactId>maven-argeo-osgi-plugin</artifactId>
130 <configuration>
131 <execDir>target/exec/agent</execDir>
132 <jvmArgs>
133 <jvmArg>-Xmx128m</jvmArg>
134 <!--
135 <jvmArg>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8001</jvmArg>
136 -->
137 </jvmArgs>
138 <systemProperties>
139 <slc.osgi.start>
140 org.springframework.osgi.extender,
141 org.argeo.slc.support.equinox,
142 org.argeo.slc.agent,
143 org.argeo.slc.demo.basic
144 </slc.osgi.start>
145 </systemProperties>
146 </configuration>
147 </plugin>
148 </plugins>
149 </build>
150 </profile>
151 <profile>
152 <id>server_mysql</id>
153 <build>
154 <plugins>
155 <plugin>
156 <groupId>org.argeo.slc.maven</groupId>
157 <artifactId>maven-argeo-osgi-plugin</artifactId>
158 <configuration>
159 <execDir>target/exec/server</execDir>
160 <jvmArgs>
161 <jvmArg>-Xmx256m</jvmArg>
162 <!--
163 <jvmArg>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8000</jvmArg>
164 -->
165 </jvmArgs>
166 <systemProperties>
167 <slc.osgi.start>
168 org.argeo.dep.osgi.catalina.start,
169 org.springframework.osgi.extender,
170 org.springframework.osgi.web.extender,
171 org.springframework.osgi.samples.simplewebapp,
172 org.argeo.slc.server.activemq,
173 org.argeo.slc.server.mysql,
174 org.argeo.slc.server.hibernate,
175 org.argeo.slc.server.services,
176 org.argeo.slc.server.jms,
177 org.argeo.slc.webapp,
178 org.argeo.slc.ria
179 </slc.osgi.start>
180 </systemProperties>
181 </configuration>
182 </plugin>
183 </plugins>
184 </build>
185 <dependencies>
186 <dependency>
187 <groupId>org.argeo.slc.dep</groupId>
188 <artifactId>org.argeo.slc.dep.server</artifactId>
189 <version>${project.version}</version>
190 </dependency>
191 </dependencies>
192 </profile>
193 </profiles>
194 </project>