Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>artifactId</artifactId>
- <!-- If you want to deploy to a war please -->
- <!-- replace "jar" with "war" and -->
- <!-- comment ninja-standalone dependency and -->
- <!-- uncomment the dependency for ninja-servlet -->
- <packaging>jar</packaging>
- <groupId>groupId</groupId>
- <version>1.0-SNAPSHOT</version>
- <url>http://www.ninjaframework.org</url>
- <properties>
- <ninja.version>5.8.0</ninja.version>
- <jetty.version>9.2.10.v20150310</jetty.version>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.2</version>
- <configuration>
- <source>1.7</source>
- <target>1.7</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>1.3.1</version>
- <executions>
- <execution>
- <id>enforce-banned-dependencies</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <bannedDependencies>
- <excludes>
- <exclude>commons-logging</exclude>
- </excludes>
- </bannedDependencies>
- </rules>
- <fail>true</fail>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.jetty</groupId>
- <artifactId>jetty-maven-plugin</artifactId>
- <version>${jetty.version}</version>
- <configuration>
- <contextPath>/</contextPath>
- <stopKey>stop</stopKey>
- <stopPort>8889</stopPort>
- <scanIntervalSeconds>1</scanIntervalSeconds>
- <reload>automatic</reload>
- <scanTargetPatterns>
- <scanTargetPattern>
- <directory>target/classes</directory>
- <includes>
- <include>**/*</include>
- </includes>
- <excludes>
- <exclude>**/*.ftl.html</exclude>
- <exclude>assets/**</exclude>
- </excludes>
- </scanTargetPattern>
- </scanTargetPatterns>
- <systemProperties>
- <systemProperty>
- <name>ninja.mode</name>
- <value>dev</value>
- </systemProperty>
- </systemProperties>
- </configuration>
- </plugin>
- <!-- Allows you to run Ninja via the SuperDevMode. -->
- <!-- run "mvn ninja:run" on the command line for the best -->
- <!-- development experience. -->
- <plugin>
- <groupId>org.ninjaframework</groupId>
- <artifactId>ninja-maven-plugin</artifactId>
- <version>${ninja.version}</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>2.8.2</version>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>2.2</version>
- <configuration>
- <createDependencyReducedPom>true</createDependencyReducedPom>
- <filters>
- <filter>
- <artifact>*:*</artifact>
- <excludes>
- <exclude>META-INF/*.SF</exclude>
- <exclude>META-INF/*.DSA</exclude>
- <exclude>META-INF/*.RSA</exclude>
- </excludes>
- </filter>
- </filters>
- </configuration>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <transformers>
- <transformer
- implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
- <transformer
- implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
- <mainClass>ninja.standalone.NinjaJetty</mainClass>
- </transformer>
- </transformers>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <resources>
- <resource>
- <directory>src/main/java</directory>
- <includes>
- <include>**/*</include>
- </includes>
- <excludes>
- <exclude>**/*.java</exclude>
- </excludes>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*</include>
- </includes>
- </resource>
- </resources>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.webjars</groupId>
- <artifactId>bootstrap</artifactId>
- <version>3.3.4</version>
- </dependency>
- <dependency>
- <groupId>org.webjars</groupId>
- <artifactId>jquery</artifactId>
- <version>2.1.3</version>
- </dependency>
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <version>1.4.186</version>
- </dependency>
- <!-- If you want to deploy to a war please -->
- <!-- comment ninja-standalone dependency and -->
- <!-- uncomment the dependency for ninja-servlet -->
- <!--
- <dependency>
- <groupId>org.ninjaframework</groupId>
- <artifactId>ninja-servlet</artifactId>
- <version>${ninja.version}</version>
- </dependency>
- -->
- <dependency>
- <groupId>org.ninjaframework</groupId>
- <artifactId>ninja-standalone</artifactId>
- <version>${ninja.version}</version>
- </dependency>
- <dependency>
- <groupId>org.ninjaframework</groupId>
- <artifactId>ninja-test-utilities</artifactId>
- <version>${ninja.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment