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> |
| 68 | <version>3.3</version> |
| 69 | <configuration> |
| 70 | <compilerVersion>${java.version}</compilerVersion> |
| 71 | <source>${java.version}</source> |
| 72 | <target>${java.version}</target> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 73 | <processors> |
| 74 | <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor> |
| 75 | <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor> |
| 76 | </processors> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 77 | </configuration> |
| 78 | </plugin> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 79 | <plugin> |
| 80 | <groupId>org.apache.maven.plugins</groupId> |
| 81 | <artifactId>maven-surefire-plugin</artifactId> |
| 82 | <version>2.19.1</version> |
| 83 | <configuration> |
| 84 | <reuseForks>false</reuseForks> |
| 85 | <forkCount>2</forkCount> |
| 86 | <threadCount>10</threadCount> |
| 87 | |
| 88 | <excludes> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 89 | <exclude>de/ids_mannheim/korap/suites/*.java</exclude> |
margaretha | f6d5a82 | 2017-10-19 19:51:20 +0200 | [diff] [blame] | 90 | <exclude>de/ids_mannheim/korap/dao/*.java</exclude> |
margaretha | dfecb4b | 2017-12-12 19:32:30 +0100 | [diff] [blame^] | 91 | <exclude>de/ids_mannheim/korap/authentication/*.java</exclude> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 92 | <exclude>**/KustvaktServerTest.java</exclude> |
| 93 | <exclude>**/ResourceServiceTest.java</exclude> |
| 94 | <exclude>**/ResourceInfoServiceTest.java</exclude> |
| 95 | <exclude>**/PolicyServiceTest.java</exclude> |
| 96 | </excludes> |
| 97 | <includes> |
| 98 | <include>de/ids_mannheim/korap/**/*.java</include> |
| 99 | </includes> |
| 100 | </configuration> |
| 101 | </plugin> |
| 102 | <plugin> |
| 103 | <artifactId>maven-shade-plugin</artifactId> |
| 104 | <version>2.1</version> |
| 105 | <executions> |
| 106 | <!-- option 1 --> |
| 107 | <execution> |
| 108 | <id>full</id> |
| 109 | <phase>package</phase> |
| 110 | <goals> |
| 111 | <goal>shade</goal> |
| 112 | </goals> |
| 113 | <configuration> |
margaretha | ea68a0a | 2017-09-21 03:09:49 +0200 | [diff] [blame] | 114 | <finalName>Kustvakt-full-${project.version}</finalName> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 115 | <transformers> |
| 116 | <transformer |
| 117 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 118 | <mainClass> |
| 119 | de.ids_mannheim.korap.server.KustvaktServer |
| 120 | </mainClass> |
| 121 | </transformer> |
| 122 | <transformer |
| 123 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 124 | <resource>META-INF/spring.handlers |
| 125 | </resource> |
| 126 | </transformer> |
| 127 | <transformer |
| 128 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 129 | <resource>META-INF/spring.schemas |
| 130 | </resource> |
| 131 | </transformer> |
| 132 | </transformers> |
| 133 | <!-- Additional configuration. apparently there is a securityException --> |
| 134 | <filters> |
| 135 | <filter> |
| 136 | <artifact>*:*</artifact> |
| 137 | <excludes> |
| 138 | <exclude>META-INF/*.SF</exclude> |
| 139 | <exclude>META-INF/*.DSA |
| 140 | </exclude> |
| 141 | <exclude>META-INF/*.RSA |
| 142 | </exclude> |
| 143 | </excludes> |
| 144 | </filter> |
| 145 | </filters> |
| 146 | </configuration> |
| 147 | </execution> |
| 148 | </executions> |
| 149 | </plugin> |
| 150 | |
| 151 | </plugins> |
| 152 | </build> |
| 153 | |
| 154 | <dependencies> |
| 155 | <dependency> |
| 156 | <groupId>de.ids_mannheim.korap</groupId> |
| 157 | <artifactId>Kustvakt-core</artifactId> |
margaretha | 894a7d7 | 2017-11-08 19:24:20 +0100 | [diff] [blame] | 158 | <version>0.59.9</version> |
| 159 | <type>jar</type> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 160 | </dependency> |
| 161 | <dependency> |
| 162 | <groupId>de.ids_mannheim.korap</groupId> |
| 163 | <artifactId>Kustvakt-core</artifactId> |
margaretha | 894a7d7 | 2017-11-08 19:24:20 +0100 | [diff] [blame] | 164 | <version>0.59.9</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 165 | <type>test-jar</type> |
| 166 | <scope>test</scope> |
| 167 | </dependency> |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 168 | <!-- LDAP --> |
| 169 | <dependency> |
| 170 | <groupId>com.novell.ldap</groupId> |
| 171 | <artifactId>jldap</artifactId> |
| 172 | <version>4.3</version> |
| 173 | </dependency> |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 174 | <dependency> |
| 175 | <groupId>com.unboundid</groupId> |
| 176 | <artifactId>unboundid-ldapsdk</artifactId> |
| 177 | <version>3.2.1</version> |
| 178 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 179 | |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 180 | <!-- Hibernate --> |
| 181 | <dependency> |
| 182 | <groupId>org.hibernate</groupId> |
| 183 | <artifactId>hibernate-entitymanager</artifactId> |
| 184 | <version>5.1.8.Final</version> |
| 185 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 186 | <dependency> |
| 187 | <groupId>org.hibernate</groupId> |
| 188 | <artifactId>hibernate-jpamodelgen</artifactId> |
| 189 | <version>5.2.12.Final</version> |
| 190 | <scope>provided</scope> |
| 191 | </dependency> |
| 192 | |
margaretha | 318fec3 | 2017-10-24 12:11:58 +0200 | [diff] [blame] | 193 | <!-- MySql --> |
| 194 | <dependency> |
| 195 | <groupId>mysql</groupId> |
| 196 | <artifactId>mysql-connector-java</artifactId> |
| 197 | <version>5.1.21</version> |
| 198 | </dependency> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 199 | |
| 200 | <!-- Jersey --> |
| 201 | <dependency> |
| 202 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 203 | <artifactId>jersey-test-framework-core</artifactId> |
| 204 | <version>${jersey.version}</version> |
| 205 | <scope>test</scope> |
| 206 | </dependency> |
| 207 | <dependency> |
| 208 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 209 | <artifactId>jersey-test-framework-grizzly</artifactId> |
| 210 | <version>${jersey.version}</version> |
| 211 | <scope>test</scope> |
| 212 | </dependency> |
| 213 | |
| 214 | <!-- Spring --> |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 215 | <dependency> |
| 216 | <groupId>org.springframework</groupId> |
| 217 | <artifactId>spring-jdbc</artifactId> |
| 218 | <version>${spring-framework.version}</version> |
| 219 | </dependency> |
| 220 | <dependency> |
| 221 | <groupId>org.springframework</groupId> |
| 222 | <artifactId>spring-tx</artifactId> |
| 223 | <version>${spring-framework.version}</version> |
| 224 | </dependency> |
margaretha | 2afb97d | 2017-12-07 19:18:44 +0100 | [diff] [blame] | 225 | <dependency> |
| 226 | <groupId>org.springframework.security</groupId> |
| 227 | <artifactId>spring-security-core</artifactId> |
| 228 | <version>4.2.3.RELEASE</version> |
| 229 | </dependency> |
| 230 | <dependency> |
| 231 | <groupId>org.springframework.security</groupId> |
| 232 | <artifactId>spring-security-web</artifactId> |
| 233 | <version>4.2.3.RELEASE</version> |
| 234 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 235 | |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 236 | <!-- Flyway --> |
| 237 | <dependency> |
| 238 | <groupId>org.flywaydb</groupId> |
| 239 | <artifactId>flyway-core</artifactId> |
| 240 | <version>4.0</version> |
| 241 | </dependency> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 242 | </dependencies> |
| 243 | </project> |