UNPKG

generator-jangular

Version:

Quickstart a Maven + CDI + TomEE + Jackson + AngularJS project

114 lines (110 loc) 4.57 kB
<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> <groupId><%= packageName %></groupId> <artifactId><%= _.slugify(baseName) %></artifactId> <version><%= version %></version> <packaging>war</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>org.apache.openejb</groupId> <artifactId>javaee-api</artifactId> <version>6.0-5</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-json</artifactId> <version>1.17.1</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.openejb.maven</groupId> <artifactId>tomee-maven-plugin</artifactId> <version>1.6.0</version> <configuration> <tomeeVersion>1.6.0.1</tomeeVersion> <tomeeClassifier>jaxrs</tomeeClassifier> <tomeeHttpPort>8080</tomeeHttpPort> <debugPort>5005</debugPort> <libs> <lib>org.hsqldb:hsqldb:2.3.1</lib> </libs> <synchronization> <extensions> <extension>.class</extension> <!-- if you want to update each time you build with mvn compile --> </extensions> </synchronization> <reloadOnUpdate>true</reloadOnUpdate> </configuration> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.5</version> <configuration> <filesets> <fileset> <directory>.tmp</directory> </fileset> </filesets> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>build</id> <build> <plugins> <plugin> <groupId>pl.allegro</groupId> <artifactId>grunt-maven-plugin</artifactId> <version>1.2.2</version> <configuration> <gruntExecutable>../node_modules/grunt-cli/bin/grunt</gruntExecutable> <runGruntWithNode>true</runGruntWithNode> <target>build</target> </configuration> <executions> <execution> <phase>prepare-package</phase> <goals> <goal>create-resources</goal> <goal>npm</goal> <!-- or npm-offline if npm failure is not an option --> <goal>bower</goal> <goal>grunt</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-war-plugin</artifactId> <version>2.3</version> <configuration> <webResources> <resource> <directory>target/yeoman-dist</directory> </resource> </webResources> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>