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