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 | 74f122c | 2017-11-12 22:38:57 +0100 | [diff] [blame] | 6 | <version>0.59.9</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 7 | <properties> |
| 8 | <java.version>1.7</java.version> |
| 9 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
margaretha | 514e141 | 2017-10-10 15:54:20 +0200 | [diff] [blame] | 10 | <spring-framework.version>4.3.11.RELEASE</spring-framework.version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 11 | <jersey.version>1.19.4</jersey.version> |
| 12 | </properties> |
| 13 | <build> |
| 14 | <resources> |
| 15 | <resource> |
| 16 | <directory>src/main/resources</directory> |
| 17 | <filtering>true</filtering> |
| 18 | <includes> |
| 19 | <include>**/*.info</include> |
| 20 | <include>**/*.xml</include> |
| 21 | <include>**/*.conf</include> |
| 22 | <include>**/*.kustvakt</include> |
| 23 | <include>**/*.properties</include> |
| 24 | <include>**/*.sql</include> |
| 25 | </includes> |
| 26 | </resource> |
| 27 | </resources> |
| 28 | <testResources> |
| 29 | <testResource> |
| 30 | <directory>src/test/resources</directory> |
| 31 | <filtering>true</filtering> |
| 32 | <includes> |
margaretha | dfecb4b | 2017-12-12 19:32:30 +0100 | [diff] [blame] | 33 | <include>**/*.token</include> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 34 | <include>**/*.xml</include> |
| 35 | <include>**/*.conf</include> |
| 36 | <include>**/*.info</include> |
| 37 | <include>**/*.properties</include> |
| 38 | </includes> |
| 39 | </testResource> |
| 40 | <testResource> |
| 41 | <directory>src/main/resources</directory> |
| 42 | <filtering>true</filtering> |
| 43 | <includes> |
| 44 | <include>**/*.info</include> |
| 45 | <include>**/*.properties</include> |
| 46 | </includes> |
| 47 | </testResource> |
| 48 | </testResources> |
| 49 | <plugins> |
| 50 | <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html --> |
| 51 | <plugin> |
| 52 | <groupId>com.googlecode.maven-java-formatter-plugin</groupId> |
| 53 | <artifactId>maven-java-formatter-plugin</artifactId> |
| 54 | <version>0.4</version> |
| 55 | <configuration> |
| 56 | <configFile>${project.basedir}/Format.xml</configFile> |
| 57 | <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion> |
| 58 | <compilerSource>${java.version}</compilerSource> |
| 59 | <compilerCompliance>${java.version}</compilerCompliance> |
| 60 | <compilerTargetPlatform>${java.version}</compilerTargetPlatform> |
| 61 | </configuration> |
| 62 | <!-- <executions> <execution> <goals> <goal>format</goal> </goals> </execution> |
| 63 | </executions> --> |
| 64 | </plugin> |
| 65 | <plugin> |
| 66 | <groupId>org.apache.maven.plugins</groupId> |
| 67 | <artifactId>maven-compiler-plugin</artifactId> |
margaretha | fc7d777 | 2018-01-16 17:48:17 +0100 | [diff] [blame] | 68 | <version>3.7.0</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 69 | <configuration> |
| 70 | <compilerVersion>${java.version}</compilerVersion> |
| 71 | <source>${java.version}</source> |
| 72 | <target>${java.version}</target> |
margaretha | fc7d777 | 2018-01-16 17:48:17 +0100 | [diff] [blame] | 73 | <verbose>true</verbose> |
| 74 | <fork>true</fork> |
| 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> --> |
| 79 | <!-- <processors> |
| 80 | <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor> |
| 81 | <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor> |
| 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> |
| 109 | <version>2.1</version> |
| 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 | 894a7d7 | 2017-11-08 19:24:20 +0100 | [diff] [blame] | 163 | <version>0.59.9</version> |
| 164 | <type>jar</type> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 165 | </dependency> |
| 166 | <dependency> |
| 167 | <groupId>de.ids_mannheim.korap</groupId> |
| 168 | <artifactId>Kustvakt-core</artifactId> |
margaretha | 894a7d7 | 2017-11-08 19:24:20 +0100 | [diff] [blame] | 169 | <version>0.59.9</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 170 | <type>test-jar</type> |
| 171 | <scope>test</scope> |
| 172 | </dependency> |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 173 | <!-- LDAP --> |
| 174 | <dependency> |
| 175 | <groupId>com.novell.ldap</groupId> |
| 176 | <artifactId>jldap</artifactId> |
| 177 | <version>4.3</version> |
| 178 | </dependency> |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 179 | <dependency> |
| 180 | <groupId>com.unboundid</groupId> |
| 181 | <artifactId>unboundid-ldapsdk</artifactId> |
| 182 | <version>3.2.1</version> |
| 183 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 184 | |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 185 | <!-- Hibernate --> |
| 186 | <dependency> |
| 187 | <groupId>org.hibernate</groupId> |
| 188 | <artifactId>hibernate-entitymanager</artifactId> |
| 189 | <version>5.1.8.Final</version> |
| 190 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 191 | <dependency> |
| 192 | <groupId>org.hibernate</groupId> |
| 193 | <artifactId>hibernate-jpamodelgen</artifactId> |
| 194 | <version>5.2.12.Final</version> |
| 195 | <scope>provided</scope> |
| 196 | </dependency> |
| 197 | |
margaretha | 318fec3 | 2017-10-24 12:11:58 +0200 | [diff] [blame] | 198 | <!-- MySql --> |
| 199 | <dependency> |
| 200 | <groupId>mysql</groupId> |
| 201 | <artifactId>mysql-connector-java</artifactId> |
| 202 | <version>5.1.21</version> |
| 203 | </dependency> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 204 | |
| 205 | <!-- Jersey --> |
| 206 | <dependency> |
| 207 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 208 | <artifactId>jersey-test-framework-core</artifactId> |
| 209 | <version>${jersey.version}</version> |
| 210 | <scope>test</scope> |
| 211 | </dependency> |
| 212 | <dependency> |
| 213 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 214 | <artifactId>jersey-test-framework-grizzly</artifactId> |
| 215 | <version>${jersey.version}</version> |
| 216 | <scope>test</scope> |
| 217 | </dependency> |
| 218 | |
| 219 | <!-- Spring --> |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 220 | <dependency> |
| 221 | <groupId>org.springframework</groupId> |
| 222 | <artifactId>spring-jdbc</artifactId> |
| 223 | <version>${spring-framework.version}</version> |
| 224 | </dependency> |
| 225 | <dependency> |
| 226 | <groupId>org.springframework</groupId> |
| 227 | <artifactId>spring-tx</artifactId> |
| 228 | <version>${spring-framework.version}</version> |
| 229 | </dependency> |
margaretha | 2afb97d | 2017-12-07 19:18:44 +0100 | [diff] [blame] | 230 | <dependency> |
| 231 | <groupId>org.springframework.security</groupId> |
| 232 | <artifactId>spring-security-core</artifactId> |
| 233 | <version>4.2.3.RELEASE</version> |
| 234 | </dependency> |
| 235 | <dependency> |
| 236 | <groupId>org.springframework.security</groupId> |
| 237 | <artifactId>spring-security-web</artifactId> |
| 238 | <version>4.2.3.RELEASE</version> |
| 239 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 240 | |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 241 | <!-- Flyway --> |
| 242 | <dependency> |
| 243 | <groupId>org.flywaydb</groupId> |
| 244 | <artifactId>flyway-core</artifactId> |
| 245 | <version>4.0</version> |
| 246 | </dependency> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 247 | </dependencies> |
| 248 | </project> |