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-lite</artifactId> |
margaretha | 2e468fc | 2018-01-17 15:49:50 +0100 | [diff] [blame] | 6 | <version>0.59.9</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> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 11 | <jersey.version>1.19.4</jersey.version> |
| 12 | </properties> |
| 13 | |
| 14 | <build> |
| 15 | <resources> |
| 16 | <resource> |
| 17 | <directory>src/main/resources</directory> |
| 18 | <filtering>true</filtering> |
| 19 | <includes> |
| 20 | <include>**/*.info</include> |
| 21 | <include>**/*.xml</include> |
| 22 | <include>**/*.conf</include> |
| 23 | <include>**/*.kustvakt</include> |
| 24 | <include>**/*.properties</include> |
| 25 | <include>**/*.sql</include> |
| 26 | </includes> |
| 27 | </resource> |
| 28 | </resources> |
| 29 | <testResources> |
| 30 | <testResource> |
| 31 | <directory>src/test/resources</directory> |
| 32 | <filtering>true</filtering> |
| 33 | <includes> |
| 34 | <include>**/*.prop</include> |
| 35 | <include>**/*.xml</include> |
| 36 | <include>**/*.conf</include> |
| 37 | <include>**/*.info</include> |
| 38 | <include>**/*.properties</include> |
| 39 | </includes> |
| 40 | </testResource> |
| 41 | <testResource> |
| 42 | <directory>src/main/resources</directory> |
| 43 | <filtering>true</filtering> |
| 44 | <includes> |
| 45 | <include>**/*.info</include> |
| 46 | <include>**/*.properties</include> |
| 47 | </includes> |
| 48 | </testResource> |
| 49 | </testResources> |
| 50 | <plugins> |
| 51 | <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html --> |
| 52 | <plugin> |
| 53 | <groupId>com.googlecode.maven-java-formatter-plugin</groupId> |
| 54 | <artifactId>maven-java-formatter-plugin</artifactId> |
| 55 | <version>0.4</version> |
| 56 | <configuration> |
| 57 | <configFile>${project.basedir}/Format.xml</configFile> |
| 58 | <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion> |
| 59 | <compilerSource>${java.version}</compilerSource> |
| 60 | <compilerCompliance>${java.version}</compilerCompliance> |
| 61 | <compilerTargetPlatform>${java.version}</compilerTargetPlatform> |
| 62 | </configuration> |
| 63 | <!-- <executions> <execution> <goals> <goal>format</goal> </goals> </execution> |
| 64 | </executions> --> |
| 65 | </plugin> |
| 66 | <plugin> |
| 67 | <groupId>org.apache.maven.plugins</groupId> |
| 68 | <artifactId>maven-compiler-plugin</artifactId> |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame] | 69 | <version>3.7.0</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 70 | <configuration> |
| 71 | <compilerVersion>${java.version}</compilerVersion> |
| 72 | <source>${java.version}</source> |
| 73 | <target>${java.version}</target> |
| 74 | </configuration> |
| 75 | </plugin> |
| 76 | |
| 77 | <plugin> |
| 78 | <groupId>org.apache.maven.plugins</groupId> |
| 79 | <artifactId>maven-surefire-plugin</artifactId> |
| 80 | <version>2.19.1</version> |
| 81 | <configuration> |
| 82 | <reuseForks>false</reuseForks> |
| 83 | <forkCount>2</forkCount> |
| 84 | <threadCount>10</threadCount> |
| 85 | |
| 86 | <excludes> |
| 87 | <exclude>**/*APITest.java</exclude> |
| 88 | <exclude>de/ids_mannheim/korap/suites/*.java</exclude> |
| 89 | <exclude>**/KustvaktServerTest.java</exclude> |
| 90 | <exclude>**/ResourceServiceTest.java</exclude> |
| 91 | <exclude>**/ResourceInfoServiceTest.java</exclude> |
| 92 | <exclude>**/PolicyServiceTest.java</exclude> |
| 93 | </excludes> |
| 94 | <includes> |
| 95 | <include>de/ids_mannheim/korap/**/*.java</include> |
| 96 | </includes> |
| 97 | </configuration> |
| 98 | </plugin> |
| 99 | <plugin> |
| 100 | <artifactId>maven-shade-plugin</artifactId> |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame] | 101 | <version>3.1.0</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 102 | <executions> |
| 103 | <!-- option 1 --> |
| 104 | <execution> |
| 105 | <id>light</id> |
| 106 | <phase>package</phase> |
| 107 | <goals> |
| 108 | <goal>shade</goal> |
| 109 | </goals> |
| 110 | <configuration> |
| 111 | <finalName> |
margaretha | ea68a0a | 2017-09-21 03:09:49 +0200 | [diff] [blame] | 112 | Kustvakt-lite-${project.version} |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 113 | </finalName> |
| 114 | <transformers> |
| 115 | <transformer |
| 116 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 117 | <mainClass> |
| 118 | de.ids_mannheim.korap.server.KustvaktLiteServer |
| 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. --> |
| 133 | <!-- 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 | </plugins> |
| 151 | </build> |
| 152 | |
| 153 | |
| 154 | <dependencies> |
| 155 | <dependency> |
| 156 | <groupId>de.ids_mannheim.korap</groupId> |
| 157 | <artifactId>Kustvakt-core</artifactId> |
margaretha | 4566792 | 2018-01-25 21:23:03 +0100 | [diff] [blame] | 158 | <version>0.59.10</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 159 | </dependency> |
| 160 | |
| 161 | <!-- Spring --> |
| 162 | <dependency> |
| 163 | <groupId>org.springframework</groupId> |
| 164 | <artifactId>spring-test</artifactId> |
| 165 | <version>${spring-framework.version}</version> |
| 166 | <scope>compile</scope> |
| 167 | </dependency> |
| 168 | |
| 169 | <!-- Jersey test framework --> |
| 170 | <dependency> |
| 171 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 172 | <artifactId>jersey-test-framework-core</artifactId> |
| 173 | <version>${jersey.version}</version> |
| 174 | <scope>test</scope> |
| 175 | </dependency> |
| 176 | <dependency> |
| 177 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 178 | <artifactId>jersey-test-framework-grizzly</artifactId> |
| 179 | <version>${jersey.version}</version> |
| 180 | <scope>test</scope> |
| 181 | </dependency> |
| 182 | </dependencies> |
| 183 | </project> |