pom.xml 9.72 KB
Newer Older
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/xsd/maven-4.0.0.xsd">
2 3 4 5
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>com.thalesgroup.authzforce</groupId>
		<artifactId>authzforce-parent</artifactId>
6
		<version>3.0.6-OCW</version>
7 8
	</parent>
	<artifactId>authzforce-core</artifactId>
9
	<version>3.5.7</version>
10
	<name>AuthZForce :: Core :: XACML Core Implementation</name>
11
	<organization>
12
		<name>Thales Services SAS</name>
13
	</organization>
14
	<description>XACML-compliant Authorization PDP Core Engine</description>
15
	<inceptionYear>2011</inceptionYear>
16
	<scm>
17
		<!-- Used by Jenkins - Maven release plugin -->
18 19
		<connection>scm:git:${scm.baseUrl}/core.git</connection>
		<developerConnection>scm:git:${scm.baseUrl}/core.git</developerConnection>
20
		<tag>HEAD</tag>
21 22

		<!-- Publicly browsable repository URL. For example, via Gitlab web UI. -->
23
		<url>${scm.baseUrl}/core</url>
24
	</scm>
25 26
	<dependencies>
		<dependency>
27
			<!-- Used only to do Strings.join() in StandardFactory's init debug messages -->
28 29
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
30
		</dependency>
31
		<dependency>
32 33
			<groupId>org.slf4j</groupId>
			<artifactId>jcl-over-slf4j</artifactId>
34
		</dependency>
35 36 37 38
		<dependency>
			<groupId>org.springframework.ws</groupId>
			<artifactId>spring-xml</artifactId>
		</dependency>
39 40 41 42
		<dependency>
			<groupId>net.sf.ehcache</groupId>
			<artifactId>ehcache</artifactId>
		</dependency>
43 44 45 46 47 48
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-core</artifactId>
		</dependency>
		<!-- Include cxf-rt-core/xercesImpl optional dependency: xml-resolver (do not include xercesImpl because 
			conflicts with JRE) -->
49
		<dependency>
50 51 52
			<groupId>xml-resolver</groupId>
			<artifactId>xml-resolver</artifactId>
			<version>1.2</version>
53
		</dependency>
Romain Ferrari's avatar
Romain Ferrari committed
54 55 56 57 58 59 60
		<dependency>
			<!-- For validation of XACML RFC822Name (email address) -->
			<groupId>com.sun.mail</groupId>
			<artifactId>javax.mail</artifactId>
			<version>1.5.4</version>
		</dependency>
		
61 62 63 64
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
		</dependency>
Romain Ferrari's avatar
Romain Ferrari committed
65 66 67 68 69 70 71 72 73 74 75 76 77
		<dependency>
			<!-- For validating IP addresses (XACML IPAdress datatype), Domain names (XACML DNSName datatype), 
				etc. without any DNS resolution -->
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>18.0</version>
		</dependency>
		<dependency>
			<!-- For XACML AttributeSelector evaluation and XPath-based functions (making reference to [XF]) -->
			<groupId>net.sf.saxon</groupId>
			<artifactId>Saxon-HE</artifactId>
			<version>9.6.0-5</version>
		</dependency>
78
		<dependency>
79
			<!-- Used for DOM parsing / XPath evaluation -->
80 81 82
			<groupId>com.thalesgroup.appsec</groupId>
			<artifactId>thales-appsec-common-utils</artifactId>
		</dependency>
83
		<!-- Authzforce dependencies -->
Romain Ferrari's avatar
Romain Ferrari committed
84 85
		<!-- xml-ns-model and xacml-model dependencies are declared here only to work around maven-jaxb2-plugin bug: cannot resolve 
			episodes from indirect dependencies with useDependenciesAsEpisodes option. -->
86
		<dependency>
87
			<groupId>com.thalesgroup.authzforce</groupId>
Romain Ferrari's avatar
Romain Ferrari committed
88 89
			<artifactId>authzforce-xml-ns-model</artifactId>
			<version>1.0</version>
90
		</dependency>
Romain Ferrari's avatar
Romain Ferrari committed
91 92 93 94 95 96 97 98 99 100
		<dependency>
			<groupId>com.thalesgroup.authzforce</groupId>
			<artifactId>authzforce-xacml-model</artifactId>
			<version>3.0.3</version>
		</dependency>
		<dependency>
			<groupId>com.thalesgroup.authzforce</groupId>
			<artifactId>authzforce-pdp-ext-model</artifactId>
			<version>3.2.7</version>
		</dependency>		
101 102
		<!-- /Authzforce dependencies -->

103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
		<!-- Test dependencies -->
		<dependency>
			<groupId>commons-jxpath</groupId>
			<artifactId>commons-jxpath</artifactId>
			<version>1.3</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
			<scope>test</scope>
		</dependency>
		<!-- /Test dependencies -->
	</dependencies>
	<build>
		<plugins>
Romain Ferrari's avatar
Romain Ferrari committed
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
		<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-pmd-plugin</artifactId>
				<version>3.5</version>
				<configuration>
					<targetJdk>1.7</targetJdk>
					<excludeRoots>
						<excludeRoot>target/generated-sources</excludeRoot>
						<excludeRoot>target/generated-test-sources</excludeRoot>
					</excludeRoots>
				</configuration>
				<executions>
					<execution>
						<phase>verify</phase>
						<goals>
							<goal>check</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>findbugs-maven-plugin</artifactId>
				<version>3.0.1</version>
				<executions>
					<execution>
						<phase>verify</phase>
						<goals>
							<goal>check</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
153 154 155 156 157 158
			<plugin>
				<!-- Apache license Headers -->
				<groupId>com.mycila</groupId>
				<artifactId>license-maven-plugin</artifactId>
				<executions>
					<execution>
159
						<id>add-gplv3-license</id>
160 161 162
						<phase>process-sources</phase>
						<configuration>
							<!-- Template location -->
163
							<header>license/thales-gpl.txt</header>
164 165 166 167 168
							<properties>
								<!-- Values to be substituted in template -->
								<inceptionYear>${project.inceptionYear}</inceptionYear>
								<currentYear>${currentYear}</currentYear>
								<copyrightOwner>${project.organization.name}</copyrightOwner>
169
								<projectName>AuthZForce</projectName>
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
							</properties>
							<strictCheck>true</strictCheck>
							<excludes>
								<exclude>**/*.html</exclude>
								<exclude>**/*.xml</exclude>
								<exclude>**/*.txt</exclude>
								<exclude>**/*.ec</exclude>
								<exclude>**/*.log</exclude>
								<exclude>**/*.css</exclude>
								<exclude>**/*.js</exclude>
								<exclude>**/*.jsp</exclude>
								<exclude>**/*.md</exclude>
								<exclude>**/*.properties</exclude>
								<exclude>**/*.gitignore</exclude>
							</excludes>
							<includes>
186
								<include>src/main/java/com/thalesgroup/authzforce/core/**</include>
187 188
								<!-- Include test files also -->
								<include>src/test/java/**</include>
189 190
								<!-- Include aspectj files also -->
								<include>src/main/aspect/**</include>
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
							</includes>
						</configuration>
						<goals>
							<goal>format</goal>
						</goals>
					</execution>
					<execution>
						<id>add-gpl-license</id>
						<phase>process-sources</phase>
						<configuration>
							<!-- Template location -->
							<header>license/thales-gpl.txt</header>
							<properties>
								<!-- Values to be substituted in template -->
								<inceptionYear>${project.inceptionYear}</inceptionYear>
								<currentYear>${currentYear}</currentYear>
								<copyrightOwner>${project.organization.name}</copyrightOwner>
								<projectName>AuthZForce</projectName>
							</properties>
							<strictCheck>true</strictCheck>
							<includes>
								<include>src/main/java/com/thalesgroup/authzforce/core/**</include>
							</includes>
						</configuration>
						<goals>
							<goal>format</goal>
						</goals>
					</execution>
219 220 221 222 223 224 225
					<execution>
						<id>check-license</id>
						<goals>
							<!-- attached to verify phase -->
							<goal>check</goal>
						</goals>
					</execution>
226 227
				</executions>
			</plugin>
228 229 230 231 232 233 234 235
			<plugin>
				<groupId>org.jvnet.jaxb2.maven2</groupId>
				<artifactId>maven-jaxb2-plugin</artifactId>
				<configuration>
					<!-- debug=true will generate JAXBDebug class. More info: https://github.com/highsource/maven-jaxb2-plugin/wiki/Miscellaneous -->
					<debug>false</debug>
					<verbose>true</verbose>
					<extension>true</extension>
236
					<useDependenciesAsEpisodes>true</useDependenciesAsEpisodes>
237
					<strict>false</strict>
238
					<catalog>src/main/jaxb/catalog.xml</catalog>
239
					<removeOldOutput>true</removeOldOutput>
240 241 242 243
					<bindingDirectory>src/main/jaxb</bindingDirectory>
					<bindingIncludes>
						<include>bindings.xjb</include>
					</bindingIncludes>
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270
				</configuration>
				<executions>
					<execution>
						<id>jaxb-generate-compile-sources</id>
						<goals>
							<goal>generate</goal>
						</goals>
						<configuration>
							<schemaDirectory>src/main/resources</schemaDirectory>
							<generateDirectory>${project.build.directory}/generated-sources/xjc</generateDirectory>
							<addCompileSourceRoot>true</addCompileSourceRoot>
							<addTestCompileSourceRoot>false</addTestCompileSourceRoot>
						</configuration>
					</execution>
					<execution>
						<id>jaxb-generate-test-sources</id>
						<goals>
							<goal>generate</goal>
						</goals>
						<configuration>
							<schemaDirectory>src/test/resources</schemaDirectory>
							<generateDirectory>${project.build.directory}/generated-test-sources/xjc</generateDirectory>
							<addCompileSourceRoot>false</addCompileSourceRoot>
							<addTestCompileSourceRoot>true</addTestCompileSourceRoot>
						</configuration>
					</execution>
				</executions>
Romain Ferrari's avatar
Romain Ferrari committed
271
			</plugin>			
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
			<!-- Test configuration -->
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.16</version>
				<executions>
					<execution>
						<id>default-test</id>
						<phase>test</phase>
						<goals>
							<goal>test</goal>
						</goals>
						<configuration>
							<failIfNoTests>false</failIfNoTests>
							<skipTests>false</skipTests>
							<includes>
								<include>**/MainTest.java</include>
							</includes>
						</configuration>
					</execution>
				</executions>
			</plugin>
293 294 295 296 297 298 299 300 301 302 303 304 305
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<id>attach-sources</id>
						<phase>verify</phase>
						<goals>
							<goal>jar-no-fork</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
306 307
		</plugins>
	</build>
Romain Ferrari's avatar
added  
Romain Ferrari committed
308
</project>