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 | 439ad57 | 2018-10-29 12:15:28 +0100 | [diff] [blame] | 6 | <version>0.61.1</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 | 3da7cd3 | 2018-10-22 17:42:52 +0200 | [diff] [blame] | 10 | <spring-framework.version>5.1.1.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> |
Akron | 6365605 | 2018-11-07 12:20:13 +0100 | [diff] [blame] | 80 | <version>2.22.1</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 81 | <configuration> |
Akron | 6365605 | 2018-11-07 12:20:13 +0100 | [diff] [blame] | 82 | <useSystemClassLoader>false</useSystemClassLoader> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 83 | <reuseForks>false</reuseForks> |
| 84 | <forkCount>2</forkCount> |
margaretha | efc18a4 | 2018-03-01 16:01:42 +0100 | [diff] [blame] | 85 | <threadCount>4</threadCount> |
| 86 | <argLine>-Xmx512m -XX:MaxPermSize=256m</argLine> |
margaretha | c7196d2 | 2018-08-27 14:20:03 +0200 | [diff] [blame] | 87 | <excludes> |
| 88 | <exclude>**/VCReferenceTest.java</exclude>> |
| 89 | </excludes> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 90 | </configuration> |
| 91 | </plugin> |
| 92 | <plugin> |
| 93 | <artifactId>maven-shade-plugin</artifactId> |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame] | 94 | <version>3.1.0</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 95 | <executions> |
| 96 | <!-- option 1 --> |
| 97 | <execution> |
| 98 | <id>light</id> |
| 99 | <phase>package</phase> |
| 100 | <goals> |
| 101 | <goal>shade</goal> |
| 102 | </goals> |
| 103 | <configuration> |
| 104 | <finalName> |
margaretha | ea68a0a | 2017-09-21 03:09:49 +0200 | [diff] [blame] | 105 | Kustvakt-lite-${project.version} |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 106 | </finalName> |
| 107 | <transformers> |
| 108 | <transformer |
| 109 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 110 | <mainClass> |
| 111 | de.ids_mannheim.korap.server.KustvaktLiteServer |
| 112 | </mainClass> |
| 113 | </transformer> |
| 114 | <transformer |
| 115 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 116 | <resource>META-INF/spring.handlers |
| 117 | </resource> |
| 118 | </transformer> |
| 119 | <transformer |
| 120 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 121 | <resource>META-INF/spring.schemas |
| 122 | </resource> |
| 123 | </transformer> |
| 124 | </transformers> |
| 125 | <!-- Additional configuration. --> |
| 126 | <!-- apparently there is a securityexception --> |
| 127 | <filters> |
| 128 | <filter> |
| 129 | <artifact>*:*</artifact> |
| 130 | <excludes> |
| 131 | <exclude>META-INF/*.SF</exclude> |
| 132 | <exclude>META-INF/*.DSA |
| 133 | </exclude> |
| 134 | <exclude>META-INF/*.RSA |
| 135 | </exclude> |
| 136 | </excludes> |
| 137 | </filter> |
| 138 | </filters> |
| 139 | </configuration> |
| 140 | </execution> |
| 141 | </executions> |
| 142 | </plugin> |
| 143 | </plugins> |
| 144 | </build> |
| 145 | |
| 146 | |
| 147 | <dependencies> |
| 148 | <dependency> |
| 149 | <groupId>de.ids_mannheim.korap</groupId> |
| 150 | <artifactId>Kustvakt-core</artifactId> |
margaretha | 3da7cd3 | 2018-10-22 17:42:52 +0200 | [diff] [blame] | 151 | <version>0.61.3</version> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 152 | </dependency> |
| 153 | |
| 154 | <!-- Spring --> |
| 155 | <dependency> |
| 156 | <groupId>org.springframework</groupId> |
| 157 | <artifactId>spring-test</artifactId> |
| 158 | <version>${spring-framework.version}</version> |
| 159 | <scope>compile</scope> |
| 160 | </dependency> |
| 161 | |
| 162 | <!-- Jersey test framework --> |
| 163 | <dependency> |
| 164 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 165 | <artifactId>jersey-test-framework-core</artifactId> |
| 166 | <version>${jersey.version}</version> |
| 167 | <scope>test</scope> |
| 168 | </dependency> |
| 169 | <dependency> |
| 170 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| 171 | <artifactId>jersey-test-framework-grizzly</artifactId> |
| 172 | <version>${jersey.version}</version> |
| 173 | <scope>test</scope> |
| 174 | </dependency> |
| 175 | </dependencies> |
Akron | 76b3175 | 2018-06-29 12:12:32 +0200 | [diff] [blame] | 176 | </project> |