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 | bc9caf4 | 2017-09-21 18:52:52 +0200 | [diff] [blame] | 6 | <version>0.59.8</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> |
| 33 | <include>**/*.prop</include> |
| 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 | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 91 | <exclude>**/KustvaktServerTest.java</exclude> |
| 92 | <exclude>**/ResourceServiceTest.java</exclude> |
| 93 | <exclude>**/ResourceInfoServiceTest.java</exclude> |
| 94 | <exclude>**/PolicyServiceTest.java</exclude> |
| 95 | </excludes> |
| 96 | <includes> |
| 97 | <include>de/ids_mannheim/korap/**/*.java</include> |
| 98 | </includes> |
| 99 | </configuration> |
| 100 | </plugin> |
| 101 | <plugin> |
| 102 | <artifactId>maven-shade-plugin</artifactId> |
| 103 | <version>2.1</version> |
| 104 | <executions> |
| 105 | <!-- option 1 --> |
| 106 | <execution> |
| 107 | <id>full</id> |
| 108 | <phase>package</phase> |
| 109 | <goals> |
| 110 | <goal>shade</goal> |
| 111 | </goals> |
| 112 | <configuration> |
margaretha | ea68a0a | 2017-09-21 03:09:49 +0200 | [diff] [blame] | 113 | <finalName>Kustvakt-full-${project.version}</finalName> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 114 | <transformers> |
| 115 | <transformer |
| 116 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 117 | <mainClass> |
| 118 | de.ids_mannheim.korap.server.KustvaktServer |
| 119 | </mainClass> |
| 120 | </transformer> |
| 121 | <transformer |
| 122 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 123 | <resource>META-INF/spring.handlers |
| 124 | </resource> |
| 125 | </transformer> |
| 126 | <transformer |
| 127 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 128 | <resource>META-INF/spring.schemas |
| 129 | </resource> |
| 130 | </transformer> |
| 131 | </transformers> |
| 132 | <!-- Additional configuration. apparently there is a securityException --> |
| 133 | <filters> |
| 134 | <filter> |
| 135 | <artifact>*:*</artifact> |
| 136 | <excludes> |
| 137 | <exclude>META-INF/*.SF</exclude> |
| 138 | <exclude>META-INF/*.DSA |
| 139 | </exclude> |
| 140 | <exclude>META-INF/*.RSA |
| 141 | </exclude> |
| 142 | </excludes> |
| 143 | </filter> |
| 144 | </filters> |
| 145 | </configuration> |
| 146 | </execution> |
| 147 | </executions> |
| 148 | </plugin> |
| 149 | |
| 150 | </plugins> |
| 151 | </build> |
| 152 | |
| 153 | <dependencies> |
| 154 | <dependency> |
| 155 | <groupId>de.ids_mannheim.korap</groupId> |
| 156 | <artifactId>Kustvakt-core</artifactId> |
| 157 | <version>0.59.8</version> |
| 158 | </dependency> |
| 159 | <dependency> |
| 160 | <groupId>de.ids_mannheim.korap</groupId> |
| 161 | <artifactId>Kustvakt-core</artifactId> |
| 162 | <version>0.59.8</version> |
| 163 | <type>test-jar</type> |
| 164 | <scope>test</scope> |
| 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> |
| 182 | <version>5.1.8.Final</version> |
| 183 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 184 | <dependency> |
| 185 | <groupId>org.hibernate</groupId> |
| 186 | <artifactId>hibernate-jpamodelgen</artifactId> |
| 187 | <version>5.2.12.Final</version> |
| 188 | <scope>provided</scope> |
| 189 | </dependency> |
| 190 | |
margaretha | 318fec3 | 2017-10-24 12:11:58 +0200 | [diff] [blame] | 191 | <!-- MySql --> |
| 192 | <dependency> |
| 193 | <groupId>mysql</groupId> |
| 194 | <artifactId>mysql-connector-java</artifactId> |
| 195 | <version>5.1.21</version> |
| 196 | </dependency> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 197 | |
| 198 | <!-- Jersey --> |
| 199 | <dependency> |
| 200 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 201 | <artifactId>jersey-test-framework-core</artifactId> |
| 202 | <version>${jersey.version}</version> |
| 203 | <scope>test</scope> |
| 204 | </dependency> |
| 205 | <dependency> |
| 206 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 207 | <artifactId>jersey-test-framework-grizzly</artifactId> |
| 208 | <version>${jersey.version}</version> |
| 209 | <scope>test</scope> |
| 210 | </dependency> |
| 211 | |
| 212 | <!-- Spring --> |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 213 | <dependency> |
| 214 | <groupId>org.springframework</groupId> |
| 215 | <artifactId>spring-jdbc</artifactId> |
| 216 | <version>${spring-framework.version}</version> |
| 217 | </dependency> |
| 218 | <dependency> |
| 219 | <groupId>org.springframework</groupId> |
| 220 | <artifactId>spring-tx</artifactId> |
| 221 | <version>${spring-framework.version}</version> |
| 222 | </dependency> |
margaretha | d3c0fc9 | 2017-10-25 15:03:32 +0200 | [diff] [blame] | 223 | |
margaretha | 5413490 | 2017-09-27 18:43:11 +0200 | [diff] [blame] | 224 | <!-- Flyway --> |
| 225 | <dependency> |
| 226 | <groupId>org.flywaydb</groupId> |
| 227 | <artifactId>flyway-core</artifactId> |
| 228 | <version>4.0</version> |
| 229 | </dependency> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 230 | </dependencies> |
| 231 | </project> |