[11] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0"
|
---|
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
---|
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
---|
| 4 | <modelVersion>4.0.0</modelVersion>
|
---|
| 5 | <groupId>geniusweb</groupId>
|
---|
| 6 | <artifactId>pypartiesserver</artifactId>
|
---|
| 7 | <packaging>war</packaging>
|
---|
| 8 | <version>2.1.1</version>
|
---|
| 9 | <name>partiesserver Maven Webapp</name>
|
---|
| 10 | <url>http://maven.apache.org</url>
|
---|
| 11 |
|
---|
| 12 | <properties>
|
---|
| 13 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
---|
| 14 | <maven.compiler.target>1.8</maven.compiler.target>
|
---|
| 15 | <maven.compiler.source>1.8</maven.compiler.source>
|
---|
| 16 | <basedir>.</basedir>
|
---|
| 17 | <passwd>${env.ARTIFACTORY_PASS}</passwd>
|
---|
| 18 | <jackson-2-version>2.12.3</jackson-2-version>
|
---|
| 19 | <!-- <tomcat.version>8.0.53</tomcat.version> -->
|
---|
| 20 | <tomcat.version>8.5.20</tomcat.version>
|
---|
| 21 | <geniusweb.version>${project.version}</geniusweb.version>
|
---|
| 22 | </properties>
|
---|
| 23 |
|
---|
| 24 | <distributionManagement>
|
---|
| 25 | <repository>
|
---|
| 26 | <id>artifactory.ewi.tudelft.nl</id>
|
---|
| 27 | <url>http://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
|
---|
| 28 | </repository>
|
---|
| 29 | </distributionManagement>
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | <repositories>
|
---|
| 33 | <repository>
|
---|
| 34 | <id>artifactory.ewi.tudelft.nl</id>
|
---|
| 35 | <url>http://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
|
---|
| 36 | <snapshots>
|
---|
| 37 | <enabled>false</enabled>
|
---|
| 38 | </snapshots>
|
---|
| 39 | </repository>
|
---|
| 40 | </repositories>
|
---|
| 41 |
|
---|
| 42 | <pluginRepositories>
|
---|
| 43 | <pluginRepository>
|
---|
| 44 | <id>central</id>
|
---|
| 45 | <url>https://repo1.maven.org/maven2</url>
|
---|
| 46 | </pluginRepository>
|
---|
| 47 | </pluginRepositories>
|
---|
| 48 |
|
---|
| 49 |
|
---|
| 50 | <dependencies>
|
---|
| 51 |
|
---|
| 52 | <dependency>
|
---|
| 53 | <groupId>geniusweb</groupId>
|
---|
| 54 | <artifactId>partiesserver</artifactId>
|
---|
| 55 | <version>${geniusweb.version}</version>
|
---|
| 56 | <classifier>classes</classifier>
|
---|
| 57 | </dependency>
|
---|
| 58 |
|
---|
| 59 | <dependency>
|
---|
| 60 | <groupId>geniusweb</groupId>
|
---|
| 61 | <artifactId>partiesserver</artifactId>
|
---|
| 62 | <version>${geniusweb.version}</version>
|
---|
| 63 | <type>war</type>
|
---|
| 64 | </dependency>
|
---|
| 65 |
|
---|
| 66 | <dependency>
|
---|
| 67 | <groupId>geniusweb</groupId>
|
---|
| 68 | <artifactId>javavenv</artifactId>
|
---|
| 69 | <version>${geniusweb.version}</version>
|
---|
| 70 | </dependency>
|
---|
| 71 |
|
---|
| 72 | <dependency>
|
---|
| 73 | <groupId>javax.servlet</groupId>
|
---|
| 74 | <artifactId>javax.servlet-api</artifactId>
|
---|
| 75 | <version>3.1.0</version>
|
---|
| 76 | </dependency>
|
---|
| 77 |
|
---|
| 78 |
|
---|
| 79 | </dependencies>
|
---|
| 80 |
|
---|
| 81 |
|
---|
| 82 | <build>
|
---|
| 83 | <!-- Don't specify finalName as the war number would mismatch the pom version -->
|
---|
| 84 |
|
---|
| 85 | <!-- <resources> <resource> <directory>src/main/webapp/partiesrepo</directory>
|
---|
| 86 | </resource> </resources> -->
|
---|
| 87 | <plugins>
|
---|
| 88 |
|
---|
| 89 | <plugin>
|
---|
| 90 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 91 | <artifactId>maven-war-plugin</artifactId>
|
---|
| 92 | <version>3.3.1</version>
|
---|
| 93 | <configuration>
|
---|
| 94 | <overlays>
|
---|
| 95 | <overlay>
|
---|
| 96 | <!-- The pypartiesserver itself -->
|
---|
| 97 | </overlay>
|
---|
| 98 | <overlay>
|
---|
| 99 | <groupId>geniusweb</groupId>
|
---|
| 100 | <artifactId>partiesserver</artifactId>
|
---|
| 101 | <excludes>partiesrepo/*</excludes>
|
---|
| 102 | </overlay>
|
---|
| 103 | </overlays>
|
---|
| 104 | </configuration>
|
---|
| 105 | </plugin>
|
---|
| 106 |
|
---|
| 107 | <plugin>
|
---|
| 108 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 109 | <artifactId>maven-enforcer-plugin</artifactId>
|
---|
| 110 | <version>3.0.0-M2</version>
|
---|
| 111 | <executions>
|
---|
| 112 | <execution>
|
---|
| 113 | <id>enforce</id>
|
---|
| 114 | <configuration>
|
---|
| 115 | <rules>
|
---|
| 116 | <dependencyConvergence />
|
---|
| 117 | </rules>
|
---|
| 118 | </configuration>
|
---|
| 119 | <goals>
|
---|
| 120 | <goal>enforce</goal>
|
---|
| 121 | </goals>
|
---|
| 122 | </execution>
|
---|
| 123 | </executions>
|
---|
| 124 | </plugin>
|
---|
| 125 |
|
---|
| 126 | <plugin>
|
---|
| 127 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 128 | <artifactId>maven-source-plugin</artifactId>
|
---|
| 129 | <version>3.2.1</version>
|
---|
| 130 | <executions>
|
---|
| 131 | <execution>
|
---|
| 132 | <id>attach-sources</id>
|
---|
| 133 | <goals>
|
---|
| 134 | <goal>jar</goal>
|
---|
| 135 | </goals>
|
---|
| 136 | </execution>
|
---|
| 137 | </executions>
|
---|
| 138 | </plugin>
|
---|
| 139 |
|
---|
| 140 | <plugin>
|
---|
| 141 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 142 | <artifactId>maven-dependency-plugin</artifactId>
|
---|
| 143 | <!-- leave out version to help Eclipse workaround -->
|
---|
| 144 | <executions>
|
---|
| 145 | <execution>
|
---|
| 146 | <id>resource-dependencies</id>
|
---|
| 147 | <phase>process-test-resources</phase>
|
---|
| 148 | <goals>
|
---|
| 149 | <goal>copy-dependencies</goal>
|
---|
| 150 | </goals>
|
---|
| 151 | </execution>
|
---|
| 152 | </executions>
|
---|
| 153 | <configuration>
|
---|
| 154 | <outputDirectory>${project.build.directory}/jars</outputDirectory>
|
---|
| 155 | <overWriteReleases>false</overWriteReleases>
|
---|
| 156 | <overWriteSnapshots>true</overWriteSnapshots>
|
---|
| 157 | </configuration>
|
---|
| 158 | </plugin>
|
---|
| 159 |
|
---|
| 160 | <plugin>
|
---|
| 161 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 162 | <artifactId>maven-compiler-plugin</artifactId>
|
---|
| 163 | <version>3.8.0</version>
|
---|
| 164 | <configuration>
|
---|
| 165 | <source>1.8</source>
|
---|
| 166 | <target>1.8</target>
|
---|
| 167 | </configuration>
|
---|
| 168 | </plugin>
|
---|
| 169 |
|
---|
| 170 | <plugin>
|
---|
| 171 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 172 | <artifactId>maven-javadoc-plugin</artifactId>
|
---|
| 173 | <version>3.2.0</version>
|
---|
| 174 | <executions>
|
---|
| 175 | <execution>
|
---|
| 176 | <id>attach-javadocs</id>
|
---|
| 177 | <goals>
|
---|
| 178 | <goal>jar</goal>
|
---|
| 179 | </goals>
|
---|
| 180 | </execution>
|
---|
| 181 | </executions>
|
---|
| 182 | </plugin>
|
---|
| 183 |
|
---|
| 184 | <plugin>
|
---|
| 185 | <groupId>org.jfrog.buildinfo</groupId>
|
---|
| 186 | <artifactId>artifactory-maven-plugin</artifactId>
|
---|
| 187 | <version>3.2.3</version>
|
---|
| 188 | <executions>
|
---|
| 189 | <execution>
|
---|
| 190 | <id>build-info</id>
|
---|
| 191 | <goals>
|
---|
| 192 | <goal>publish</goal>
|
---|
| 193 | </goals>
|
---|
| 194 | <configuration>
|
---|
| 195 | <publisher>
|
---|
| 196 | <contextUrl>http://artifactory.ewi.tudelft.nl/artifactory</contextUrl>
|
---|
| 197 | <repoKey>libs-release</repoKey>
|
---|
| 198 | <username>wouter</username>
|
---|
| 199 | <password>${passwd}</password>
|
---|
| 200 | </publisher>
|
---|
| 201 | </configuration>
|
---|
| 202 | </execution>
|
---|
| 203 | </executions>
|
---|
| 204 | </plugin>
|
---|
| 205 |
|
---|
| 206 | <plugin>
|
---|
| 207 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 208 | <artifactId>maven-assembly-plugin</artifactId>
|
---|
| 209 | <!-- leave out version to help Eclipse workaround -->
|
---|
| 210 | <configuration>
|
---|
| 211 | <!-- get all project dependencies -->
|
---|
| 212 | <descriptorRefs>
|
---|
| 213 | <descriptorRef>jar-with-dependencies</descriptorRef>
|
---|
| 214 | </descriptorRefs>
|
---|
| 215 | <archive>
|
---|
| 216 | <manifest>
|
---|
| 217 | <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
---|
| 218 | <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
---|
| 219 | </manifest>
|
---|
| 220 | </archive>
|
---|
| 221 | </configuration>
|
---|
| 222 | <executions>
|
---|
| 223 | <execution>
|
---|
| 224 | <id>make-assembly</id>
|
---|
| 225 | <!-- bind to the packaging phase -->
|
---|
| 226 | <phase>package</phase>
|
---|
| 227 | <goals>
|
---|
| 228 | <goal>single</goal>
|
---|
| 229 | </goals>
|
---|
| 230 | </execution>
|
---|
| 231 | </executions>
|
---|
| 232 | </plugin>
|
---|
| 233 |
|
---|
| 234 |
|
---|
| 235 | <!-- Special plugin for the tomcat embedded stuff? -->
|
---|
| 236 | <plugin>
|
---|
| 237 | <groupId>org.codehaus.mojo</groupId>
|
---|
| 238 | <artifactId>appassembler-maven-plugin</artifactId>
|
---|
| 239 | <version>2.0.0</version>
|
---|
| 240 | <configuration>
|
---|
| 241 | <assembleDirectory>target</assembleDirectory>
|
---|
| 242 | <programs>
|
---|
| 243 | <program>
|
---|
| 244 | <mainClass>launch.Main</mainClass>
|
---|
| 245 | <name>webapp</name>
|
---|
| 246 | </program>
|
---|
| 247 | </programs>
|
---|
| 248 | </configuration>
|
---|
| 249 | <executions>
|
---|
| 250 | <execution>
|
---|
| 251 | <phase>package</phase>
|
---|
| 252 | <goals>
|
---|
| 253 | <goal>assemble</goal>
|
---|
| 254 | </goals>
|
---|
| 255 | </execution>
|
---|
| 256 | </executions>
|
---|
| 257 | </plugin>
|
---|
| 258 |
|
---|
| 259 | </plugins>
|
---|
| 260 |
|
---|
| 261 | <pluginManagement>
|
---|
| 262 | <plugins>
|
---|
| 263 | <plugin>
|
---|
| 264 | <groupId>org.eclipse.m2e</groupId>
|
---|
| 265 | <artifactId>lifecycle-mapping</artifactId>
|
---|
| 266 | <version>1.0.0</version>
|
---|
| 267 | <configuration>
|
---|
| 268 | <lifecycleMappingMetadata>
|
---|
| 269 | <pluginExecutions>
|
---|
| 270 | <pluginExecution>
|
---|
| 271 | <pluginExecutionFilter>
|
---|
| 272 | <groupId>org.jfrog.buildinfo</groupId>
|
---|
| 273 | <artifactId>artifactory-maven-plugin</artifactId>
|
---|
| 274 | <versionRange>[1.0.0,)</versionRange>
|
---|
| 275 | <goals>
|
---|
| 276 | <goal>publish</goal>
|
---|
| 277 | </goals>
|
---|
| 278 | </pluginExecutionFilter>
|
---|
| 279 | <action>
|
---|
| 280 | <ignore />
|
---|
| 281 | </action>
|
---|
| 282 | </pluginExecution>
|
---|
| 283 | </pluginExecutions>
|
---|
| 284 | </lifecycleMappingMetadata>
|
---|
| 285 | </configuration>
|
---|
| 286 | </plugin>
|
---|
| 287 | </plugins>
|
---|
| 288 | </pluginManagement>
|
---|
| 289 |
|
---|
| 290 |
|
---|
| 291 | </build>
|
---|
| 292 | </project>
|
---|