Files
maptology/web/webapp/pom.xml
T
handte 2995bc7f32
lbs-gitea/maptology/master This commit looks good
Fun with angular routing.
Added angular router to app.
Added servlet to handle internal redirects required for html5 style
routes produced by the default settings of angular's router.
2017-11-23 08:41:41 +01:00

77 lines
2.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.maptology</groupId>
<artifactId>web</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.maptology.web</groupId>
<artifactId>webapp</artifactId>
<name>Maptology Web Webapp</name>
<description>War of the maptology webapp.</description>
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<!-- unpack angular in generated-sources -->
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<goals>
<goal>unpack</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.maptology.web</groupId>
<artifactId>angular</artifactId>
<outputDirectory>${project.build.directory}/generated-sources/angular</outputDirectory>
<excludes>META-INF/**</excludes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- build a war from generated sources -->
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>src/main/webapp/WEB-INF/web.xml</webXml>
<webResources>
<webResource>
<directory>${project.build.directory}/generated-sources/angular/</directory>
</webResource>
</webResources>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Implementation-Build>${jenkins.build.number}</Implementation-Build>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!-- dependency on j2ee to compile servlets -->
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
</dependency>
<!-- dependency on angular to ensure build order -->
<dependency>
<groupId>com.maptology.web</groupId>
<artifactId>angular</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>