-
Notifications
You must be signed in to change notification settings - Fork 888
/
pom.xml
executable file
·164 lines (155 loc) · 6.4 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.resteasy.examples</groupId>
<artifactId>examples-oauth-push-messaging-openid-provider</artifactId>
<version>3.0.5.Final</version>
<packaging>war</packaging>
<name>Example: OAuth Push Messaging OpenId Provider</name>
<description/>
<properties>
<webapp.port>9096</webapp.port>
<preassembly.dir>${basedir}/target/discovery</preassembly.dir>
</properties>
<repositories>
<repository>
<id>jboss</id>
<name>jboss repo</name>
<url>http://repository.jboss.org/maven2</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.openid4java</groupId>
<artifactId>openid4java-server</artifactId>
<version>0.9.5</version>
<exclusions>
<exclusion>
<groupId>org.openid4java</groupId>
<artifactId>openid4java-server-JdbcServerAssociationStore</artifactId>
</exclusion>
<exclusion>
<groupId>org.openid4java</groupId>
<artifactId>openid4java-server-SampleServer</artifactId>
</exclusion>
<exclusion>
<groupId>org.openid4java</groupId>
<artifactId>openid4java-consumer-SampleConsumer</artifactId>
</exclusion>
<exclusion>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<!-- this distributionManagement is only here for RESTEasy automated testing of examples build. You can remove if you are copying this
pom.xml as a template -->
<distributionManagement>
<repository>
<id>jboss-releases-repository</id>
<name>JBoss Releases Repository</name>
<url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<build>
<finalName>provider-servlet</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.15</version>
<configuration>
<!-- By default the artifactId is taken, override it with something simple -->
<contextPath>/provider-servlet</contextPath>
<scanIntervalSeconds>2</scanIntervalSeconds>
<webAppSourceDirectory>${basedir}/target/provider-servlet</webAppSourceDirectory>
<connectors>
<connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>${webapp.port}</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
<systemProperties>
<systemProperty>
<name>log4j.configuration</name>
<value>
file:./src/test/resources/log4j.properties
</value>
</systemProperty>
</systemProperties>
<userRealms>
<userRealm implementation="org.mortbay.jetty.security.HashUserRealm">
<name>TrustedRealms</name>
<config>src/test/resources/jetty-realm.properties</config>
</userRealm>
</userRealms>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<!-- copy resources from this folder into the webapp before packaging -->
<directory>${preassembly.dir}</directory>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<configuration>
<tasks>
<copy
file="${basedir}/src/main/resources/discovery/discovery.xml"
todir="${preassembly.dir}/WEB-INF"/>
<replace
summary="true"
file="${preassembly.dir}/WEB-INF/discovery.xml"
token="${webapp.port.replace}" value="${webapp.port}"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>