pom.xml 10.9 KB
Newer Older
1
2
<?xml version="1.0" encoding="UTF-8"?>
<!--
Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
3
Copyright 2015 The CHOReVOLUTION project
4

Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
5
6
7
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
8

9
  http://www.apache.org/licenses/LICENSE-2.0
Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
10
11
12
13
14
15

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
16
17
18
19
20
21
-->
<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/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <parent>
Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
22
    <groupId>eu.chorevolution.idm</groupId>
23
    <artifactId>syncope</artifactId>
24
    <version>1.0.0-SNAPSHOT</version>
25
26
  </parent>

27
  <name>CHOReVOLUTION IdM: Enduser</name>
28
29
30
  <artifactId>enduser</artifactId>
  <packaging>war</packaging>

Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
31
32
33
34
  <properties>
    <rootpom.basedir>${basedir}/..</rootpom.basedir>
  </properties>

35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  <dependencies>

    <dependency> 
      <groupId>javax.servlet</groupId> 
      <artifactId>javax.servlet-api</artifactId> 
    </dependency>
    <dependency>
      <groupId>javax.servlet.jsp</groupId>
      <artifactId>javax.servlet.jsp-api</artifactId>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
    </dependency>

    <dependency>
Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
51
      <groupId>eu.chorevolution.idm</groupId>
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
      <artifactId>common</artifactId>
      <version>${project.version}</version>
    </dependency>  
    
    <dependency>
      <groupId>org.apache.syncope.client</groupId>
      <artifactId>syncope-client-enduser</artifactId>
    </dependency>
    
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
    </dependency>
    <dependency>
      <groupId>com.lmax</groupId>
      <artifactId>disruptor</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-slf4j-impl</artifactId>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jcl-over-slf4j</artifactId>
    </dependency>
  </dependencies>

  <build>
    <finalName>syncope-enduser</finalName>

95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <inherited>true</inherited>
        <configuration>
          <webResources>
            <resource>
              <directory>${rootpom.basedir}</directory>
              <targetPath>META-INF</targetPath>
              <includes>
                <include>LICENSE</include>
                <include>NOTICE</include>
              </includes>
            </resource>
            <resource>
              <directory>${basedir}/src/main/webapp/WEB-INF</directory>
              <filtering>true</filtering>
              <targetPath>WEB-INF</targetPath>
              <includes>
                <include>web.xml</include>
              </includes>
            </resource>
            <resource>
              <directory>${basedir}/src/main/webapp/app</directory>
              <filtering>true</filtering>
              <targetPath>app</targetPath>
              <includes>
                <include>index.html</include>
              </includes>
            </resource>
          </webResources>
        </configuration>
      </plugin>
    </plugins>

131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>

    <testResources>
      <testResource>
        <directory>src/test/resources</directory>
        <filtering>true</filtering>
      </testResource>
    </testResources>
  </build>

  <profiles>
    <profile>
      <id>embedded</id>
      
      <properties>
151
        <tomcat.version>8.0.37</tomcat.version>              
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
        <conf.directory>${project.build.directory}/test-classes</conf.directory>
      </properties>
      
      <dependencies>
        <dependency>
          <groupId>com.h2database</groupId>
          <artifactId>h2</artifactId>
          <scope>test</scope>
        </dependency>
      </dependencies>
      
      <build>
        <defaultGoal>clean verify cargo:run</defaultGoal>  
        
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <inherited>true</inherited>
            <executions>
              <execution>
                <id>setupEmbeddedConf</id>
                <phase>package</phase>
                <configuration>
                  <target>
177
                    <delete dir="../core/target/syncope/WEB-INF/classes/domains" />
178
                    <copy todir="../core/target/syncope/WEB-INF/classes/domains">
179
                      <fileset dir="../core/target/test-classes/domains" />
180
                    </copy>
181
182
183
184
                    <copy file="../core/target/test-classes/connid.properties" todir="../core/target/syncope/WEB-INF/classes" overwrite="true" />
                    <copy file="../core/target/test-classes/db.jsp" todir="../core/target/syncope" overwrite="true" />

                    <copy file="${project.build.directory}/test-classes/enduser.properties" todir="${project.build.directory}/${project.build.finalName}/WEB-INF/classes" overwrite="true" />
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
                  </target>
                </configuration>
                <goals>
                  <goal>run</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
      
          <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <inherited>true</inherited>
            <configuration>
              <container>
                <dependencies>
                  <dependency>
                    <groupId>com.h2database</groupId>
                    <artifactId>h2</artifactId>
                  </dependency>
                </dependencies>
              </container>
              <configuration>
                <type>standalone</type>
                <properties>
                  <cargo.servlet.port>${cargo.servlet.port}</cargo.servlet.port>
                  <cargo.tomcat.ajp.port>${cargo.tomcat.ajp.port}</cargo.tomcat.ajp.port>
                  <cargo.rmi.port>${cargo.rmi.port}</cargo.rmi.port>

214
                  <cargo.jvmargs>-noverify -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC</cargo.jvmargs>
215
                </properties>
216
217
218
219
220
221
222
                <configfiles>
                  <configfile>
                    <file>${basedir}/src/test/resources/context.xml</file>
                    <todir>conf/</todir>
                    <tofile>context.xml</tofile>
                  </configfile>
                </configfiles>
223
224
              </configuration>
              <deployables>
225
226
227
228
229
230
                <deployable>
                  <location>../choremocks/target/choremocks</location>
                  <properties>
                    <context>choremocks</context>
                  </properties>
                </deployable>
231
232
233
234
235
236
                <deployable>
                  <location>../core/target/syncope</location>
                  <properties>
                    <context>syncope</context>
                  </properties>
                </deployable>
237
238
239
240
241
242
                <deployable>
                  <location>../console/target/syncope-console</location>
                  <properties>
                    <context>syncope-console</context>
                  </properties>
                </deployable>
243
244
245
246
247
248
249
250
251
252
253
254
                <deployable>
                  <location>${project.build.directory}/${project.build.finalName}</location>
                  <properties>
                    <context>syncope-enduser</context>
                  </properties>
                </deployable>
              </deployables>
            </configuration>
          </plugin>
        </plugins>  
      </build>
    </profile>
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
    
    <profile>
      <id>jrebel</id>
      
      <properties>
        <tomcat.version>8.0.37</tomcat.version>              
      </properties>

      <build>
        <defaultGoal>clean verify cargo:run</defaultGoal>  

        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <inherited>true</inherited>
            <executions>
              <execution>
                <id>enableJRebel</id>
                <phase>package</phase>
                <configuration>
                  <target>                                               
                    <copy file="${basedir}/../core/target/test-classes/rebel.xml" tofile="${basedir}/../core/target/syncope/WEB-INF/classes/rebel.xml" overwrite="true" />
                    <copy file="${basedir}/../choremocks/target/test-classes/rebel.xml" tofile="${basedir}/../choremocks/target/choremocks/WEB-INF/classes/rebel.xml" overwrite="true" />
                    <copy file="${basedir}/../console/target/test-classes/rebel.xml" tofile="${basedir}/../console/target/syncope-console/WEB-INF/classes/rebel.xml" overwrite="true" />
                  </target>
                </configuration>
                <goals>
                  <goal>run</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          
          <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <inherited>true</inherited>
            <configuration>
              <configuration>
                <properties>
                  <cargo.jvmargs>-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
                    -noverify -javaagent:${env.REBEL_HOME}/jrebel.jar -Drebel.spring_plugin=true
298
                    -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -Xmx1024m -Xms512m</cargo.jvmargs>
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
                </properties>
              </configuration>
            </configuration>
          </plugin>          
        </plugins>
        
        <resources>
          <resource>
            <directory>src/test/resources</directory>
            <filtering>true</filtering>
            <includes>
              <include>rebel.xml</include>
            </includes>
          </resource>
        </resources>        
      </build>
    </profile>
316
317
  </profiles>
</project>