margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 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/xsd/maven-4.0.0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | <groupId>de.ids_mannheim.korap</groupId> |
| 5 | <artifactId>Kustvakt-full</artifactId> |
margaretha | 9025d64 | 2018-01-19 17:35:22 +0100 | [diff] [blame] | 6 | <version>0.59.10</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 7 | <properties> |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame^] | 8 | <java.version>1.8</java.version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 9 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame^] | 10 | <spring-framework.version>5.0.3.RELEASE</spring-framework.version> |
| 11 | <spring-security.version>4.2.3.RELEASE</spring-security.version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 12 | <jersey.version>1.19.4</jersey.version> |
margaretha | 9025d64 | 2018-01-19 17:35:22 +0100 | [diff] [blame] | 13 | <hibernate.version>5.1.11.Final</hibernate.version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 14 | </properties> |
| 15 | <build> |
| 16 | <resources> |
| 17 | <resource> |
| 18 | <directory>src/main/resources</directory> |
| 19 | <filtering>true</filtering> |
| 20 | <includes> |
| 21 | <include>**/*.info</include> |
| 22 | <include>**/*.xml</include> |
| 23 | <include>**/*.conf</include> |
| 24 | <include>**/*.kustvakt</include> |
| 25 | <include>**/*.properties</include> |
| 26 | <include>**/*.sql</include> |
| 27 | </includes> |
| 28 | </resource> |
| 29 | </resources> |
| 30 | <testResources> |
| 31 | <testResource> |
| 32 | <directory>src/test/resources</directory> |
| 33 | <filtering>true</filtering> |
| 34 | <includes> |
margaretha | dfecb4b | 2017-12-12 19:32:30 +0100 | [diff] [blame] | 35 | <include>**/*.token</include> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 36 | <include>**/*.xml</include> |
| 37 | <include>**/*.conf</include> |
| 38 | <include>**/*.info</include> |
| 39 | <include>**/*.properties</include> |
| 40 | </includes> |
| 41 | </testResource> |
| 42 | <testResource> |
| 43 | <directory>src/main/resources</directory> |
| 44 | <filtering>true</filtering> |
| 45 | <includes> |
| 46 | <include>**/*.info</include> |
| 47 | <include>**/*.properties</include> |
| 48 | </includes> |
| 49 | </testResource> |
| 50 | </testResources> |
| 51 | <plugins> |
| 52 | <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html --> |
| 53 | <plugin> |
| 54 | <groupId>com.googlecode.maven-java-formatter-plugin</groupId> |
| 55 | <artifactId>maven-java-formatter-plugin</artifactId> |
| 56 | <version>0.4</version> |
| 57 | <configuration> |
| 58 | <configFile>${project.basedir}/Format.xml</configFile> |
| 59 | <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion> |
| 60 | <compilerSource>${java.version}</compilerSource> |
| 61 | <compilerCompliance>${java.version}</compilerCompliance> |
| 62 | <compilerTargetPlatform>${java.version}</compilerTargetPlatform> |
| 63 | </configuration> |
| 64 | <!-- <executions> <execution> <goals> <goal>format</goal> </goals> </execution> |
| 65 | </executions> --> |
| 66 | </plugin> |
| 67 | <plugin> |
| 68 | <groupId>org.apache.maven.plugins</groupId> |
| 69 | <artifactId>maven-compiler-plugin</artifactId> |
margaretha | fc7d777 | 2018-01-16 17:48:17 +0100 | [diff] [blame] | 70 | <version>3.7.0</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 71 | <configuration> |
| 72 | <compilerVersion>${java.version}</compilerVersion> |
| 73 | <source>${java.version}</source> |
| 74 | <target>${java.version}</target> |
margaretha | fc7d777 | 2018-01-16 17:48:17 +0100 | [diff] [blame] | 75 | <!-- <compilerArguments> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 76 | <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor> |
| 77 | <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor> |
margaretha | fc7d777 | 2018-01-16 17:48:17 +0100 | [diff] [blame] | 78 | </compilerArguments> --> |
margaretha | 9025d64 | 2018-01-19 17:35:22 +0100 | [diff] [blame] | 79 | <processors> |
margaretha | fc7d777 | 2018-01-16 17:48:17 +0100 | [diff] [blame] | 80 | <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor> |
| 81 | <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor> |
margaretha | 9025d64 | 2018-01-19 17:35:22 +0100 | [diff] [blame] | 82 | </processors> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 83 | </configuration> |
| 84 | </plugin> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 85 | <plugin> |
| 86 | <groupId>org.apache.maven.plugins</groupId> |
| 87 | <artifactId>maven-surefire-plugin</artifactId> |
| 88 | <version>2.19.1</version> |
| 89 | <configuration> |
| 90 | <reuseForks>false</reuseForks> |
| 91 | <forkCount>2</forkCount> |
| 92 | <threadCount>10</threadCount> |
| 93 | |
| 94 | <excludes> |
margaretha | fc7d777 | 2018-01-16 17:48:17 +0100 | [diff] [blame] | 95 | <!-- <exclude>de/ids_mannheim/korap/suites/*.java</exclude> --> |
| 96 | <!-- <exclude>de/ids_mannheim/korap/dao/*.java</exclude> --> |
margaretha | dfecb4b | 2017-12-12 19:32:30 +0100 | [diff] [blame] | 97 | <exclude>de/ids_mannheim/korap/authentication/*.java</exclude> |
margaretha | fc7d777 | 2018-01-16 17:48:17 +0100 | [diff] [blame] | 98 | <!-- <exclude>**/ResourceServiceTest.java</exclude> --> |
| 99 | <!-- <exclude>**/ResourceInfoServiceTest.java</exclude> --> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 100 | <exclude>**/PolicyServiceTest.java</exclude> |
| 101 | </excludes> |
| 102 | <includes> |
| 103 | <include>de/ids_mannheim/korap/**/*.java</include> |
| 104 | </includes> |
| 105 | </configuration> |
| 106 | </plugin> |
| 107 | <plugin> |
| 108 | <artifactId>maven-shade-plugin</artifactId> |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame^] | 109 | <version>3.1.0</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 110 | <executions> |
| 111 | <!-- option 1 --> |
| 112 | <execution> |
| 113 | <id>full</id> |
| 114 | <phase>package</phase> |
| 115 | <goals> |
| 116 | <goal>shade</goal> |
| 117 | </goals> |
| 118 | <configuration> |
margaretha | ea68a0a | 2017-09-21 03:09:49 +0200 | [diff] [blame] | 119 | <finalName>Kustvakt-full-${project.version}</finalName> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 120 | <transformers> |
| 121 | <transformer |
| 122 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 123 | <mainClass> |
| 124 | de.ids_mannheim.korap.server.KustvaktServer |
| 125 | </mainClass> |
| 126 | </transformer> |
| 127 | <transformer |
| 128 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 129 | <resource>META-INF/spring.handlers |
| 130 | </resource> |
| 131 | </transformer> |
| 132 | <transformer |
| 133 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 134 | <resource>META-INF/spring.schemas |
| 135 | </resource> |
| 136 | </transformer> |
| 137 | </transformers> |
| 138 | <!-- Additional configuration. apparently there is a securityException --> |
| 139 | <filters> |
| 140 | <filter> |
| 141 | <artifact>*:*</artifact> |
| 142 | <excludes> |
| 143 | <exclude>META-INF/*.SF</exclude> |
| 144 | <exclude>META-INF/*.DSA |
| 145 | </exclude> |
| 146 | <exclude>META-INF/*.RSA |
| 147 | </exclude> |
| 148 | </excludes> |
| 149 | </filter> |
| 150 | </filters> |
| 151 | </configuration> |
| 152 | </execution> |
| 153 | </executions> |
| 154 | </plugin> |
| 155 | |
| 156 | </plugins> |
| 157 | </build> |
| 158 | |
| 159 | <dependencies> |
| 160 | <dependency> |
| 161 | <groupId>de.ids_mannheim.korap</groupId> |
| 162 | <artifactId>Kustvakt-core</artifactId> |
margaretha | 4566792 | 2018-01-25 21:23:03 +0100 | [diff] [blame] | 163 | <version>0.59.10</version> |
margaretha | 894a7d7 | 2017-11-08 19:24:20 +0100 | [diff] [blame] | 164 | <type>jar</type> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 165 | </dependency> |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 166 | <!-- LDAP --> |
| 167 | <dependency> |
| 168 | <groupId>com.novell.ldap</groupId> |
| 169 | <artifactId>jldap</artifactId> |
| 170 | <version>4.3</version> |
| 171 | </dependency> |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 172 | <dependency> |
| 173 | <groupId>com.unboundid</groupId> |
| 174 | <artifactId>unboundid-ldapsdk</artifactId> |
| 175 | <version>3.2.1</version> |
| 176 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 177 | |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 178 | <!-- Hibernate --> |
| 179 | <dependency> |
| 180 | <groupId>org.hibernate</groupId> |
| 181 | <artifactId>hibernate-entitymanager</artifactId> |
margaretha | 9025d64 | 2018-01-19 17:35:22 +0100 | [diff] [blame] | 182 | <version>${hibernate.version}</version> |
| 183 | <exclusions> |
| 184 | <exclusion> |
| 185 | <groupId>org.javassist</groupId> |
| 186 | <artifactId>javassist</artifactId> |
| 187 | </exclusion> |
| 188 | </exclusions> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 189 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 190 | <dependency> |
| 191 | <groupId>org.hibernate</groupId> |
| 192 | <artifactId>hibernate-jpamodelgen</artifactId> |
margaretha | 9025d64 | 2018-01-19 17:35:22 +0100 | [diff] [blame] | 193 | <version>${hibernate.version}</version> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 194 | <scope>provided</scope> |
| 195 | </dependency> |
margaretha | 9025d64 | 2018-01-19 17:35:22 +0100 | [diff] [blame] | 196 | <dependency> |
| 197 | <groupId>org.javassist</groupId> |
| 198 | <artifactId>javassist</artifactId> |
| 199 | <version>3.22.0-GA</version> |
| 200 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 201 | |
margaretha | 318fec3 | 2017-10-24 12:11:58 +0200 | [diff] [blame] | 202 | <!-- MySql --> |
| 203 | <dependency> |
| 204 | <groupId>mysql</groupId> |
| 205 | <artifactId>mysql-connector-java</artifactId> |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame^] | 206 | <version>6.0.6</version> |
margaretha | 318fec3 | 2017-10-24 12:11:58 +0200 | [diff] [blame] | 207 | </dependency> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 208 | |
| 209 | <!-- Jersey --> |
| 210 | <dependency> |
| 211 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 212 | <artifactId>jersey-test-framework-core</artifactId> |
| 213 | <version>${jersey.version}</version> |
| 214 | <scope>test</scope> |
| 215 | </dependency> |
| 216 | <dependency> |
| 217 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 218 | <artifactId>jersey-test-framework-grizzly</artifactId> |
| 219 | <version>${jersey.version}</version> |
| 220 | <scope>test</scope> |
| 221 | </dependency> |
| 222 | |
| 223 | <!-- Spring --> |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 224 | <dependency> |
| 225 | <groupId>org.springframework</groupId> |
| 226 | <artifactId>spring-jdbc</artifactId> |
| 227 | <version>${spring-framework.version}</version> |
| 228 | </dependency> |
| 229 | <dependency> |
| 230 | <groupId>org.springframework</groupId> |
| 231 | <artifactId>spring-tx</artifactId> |
| 232 | <version>${spring-framework.version}</version> |
| 233 | </dependency> |
margaretha | 2afb97d | 2017-12-07 19:18:44 +0100 | [diff] [blame] | 234 | <dependency> |
| 235 | <groupId>org.springframework.security</groupId> |
| 236 | <artifactId>spring-security-core</artifactId> |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame^] | 237 | <version>${spring-security.version}</version> |
margaretha | 2afb97d | 2017-12-07 19:18:44 +0100 | [diff] [blame] | 238 | </dependency> |
| 239 | <dependency> |
| 240 | <groupId>org.springframework.security</groupId> |
| 241 | <artifactId>spring-security-web</artifactId> |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame^] | 242 | <version>${spring-security.version}</version> |
margaretha | 2afb97d | 2017-12-07 19:18:44 +0100 | [diff] [blame] | 243 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 244 | |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 245 | <!-- Flyway --> |
| 246 | <dependency> |
| 247 | <groupId>org.flywaydb</groupId> |
| 248 | <artifactId>flyway-core</artifactId> |
| 249 | <version>4.0</version> |
| 250 | </dependency> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 251 | </dependencies> |
| 252 | </project> |