|
| 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 | + |
| 5 | + <name>RestExpress-Blogging-Example</name> |
| 6 | + <!-- |
| 7 | + To run the project: mvn clean package exec:java |
| 8 | + * mongod must be running. |
| 9 | +
|
| 10 | + To create a project deployable assembly (zip file): |
| 11 | + mvn clean package |
| 12 | + mvn assembly:single |
| 13 | +
|
| 14 | + To run the deployable assembly: |
| 15 | + unzip <zip file made in above step> |
| 16 | + cd <newly unzipped director> |
| 17 | + java -jar <jar file name> |
| 18 | +
|
| 19 | + To run the project via Maven: |
| 20 | + mvn clean package exec:java |
| 21 | + --> |
| 22 | + <description>A Basic, MongoDB-backed Blogging Service Suite</description> |
| 23 | + <url>https://github.com/RestExpress/RestExpress</url> |
| 24 | + <groupId>com.strategicgains.example</groupId> |
| 25 | + <artifactId>restexpress-blogging-example</artifactId> |
| 26 | + <version>0.1-SNAPSHOT</version> |
| 27 | + <packaging>jar</packaging> |
| 28 | + |
| 29 | + <dependencies> |
| 30 | + <dependency> |
| 31 | + <groupId>com.strategicgains</groupId> |
| 32 | + <artifactId>RestExpress</artifactId> |
| 33 | + <version>0.9.0-SNAPSHOT</version> |
| 34 | + </dependency> |
| 35 | + <dependency> |
| 36 | + <groupId>com.strategicgains</groupId> |
| 37 | + <artifactId>HyperExpress</artifactId> |
| 38 | + <version>1.0.1</version> |
| 39 | + </dependency> |
| 40 | + <dependency> |
| 41 | + <groupId>com.strategicgains</groupId> |
| 42 | + <artifactId>PluginExpress</artifactId> |
| 43 | + <version>0.1.1</version> |
| 44 | + </dependency> |
| 45 | + <dependency> |
| 46 | + <groupId>com.strategicgains</groupId> |
| 47 | + <artifactId>Syntaxe</artifactId> |
| 48 | + <version>0.4.4</version> |
| 49 | + </dependency> |
| 50 | + <dependency> |
| 51 | + <groupId>com.strategicgains.repoexpress</groupId> |
| 52 | + <artifactId>repoexpress-mongodb</artifactId> |
| 53 | + <version>0.3.1</version> |
| 54 | + </dependency> |
| 55 | + <dependency> |
| 56 | + <groupId>com.strategicgains.domain-eventing</groupId> |
| 57 | + <artifactId>domain-eventing-core</artifactId> |
| 58 | + <version>0.4.1</version> |
| 59 | + </dependency> |
| 60 | + <dependency> |
| 61 | + <groupId>junit</groupId> |
| 62 | + <artifactId>junit</artifactId> |
| 63 | + <version>4.8.2</version> |
| 64 | + <type>jar</type> |
| 65 | + <scope>test</scope> |
| 66 | + <optional>true</optional> |
| 67 | + </dependency> |
| 68 | + </dependencies> |
| 69 | + |
| 70 | + <build> |
| 71 | + <defaultGoal>compile</defaultGoal> |
| 72 | + <sourceDirectory>src/java</sourceDirectory> |
| 73 | + <testSourceDirectory>test/java</testSourceDirectory> |
| 74 | + |
| 75 | + <plugins> |
| 76 | + <plugin> |
| 77 | + <groupId>org.apache.maven.plugins</groupId> |
| 78 | + <artifactId>maven-compiler-plugin</artifactId> |
| 79 | + <version>3.0</version> |
| 80 | + <configuration> |
| 81 | + <source>1.6</source> |
| 82 | + <target>1.6</target> |
| 83 | + <encoding>UTF-8</encoding> |
| 84 | + </configuration> |
| 85 | + </plugin> |
| 86 | + <plugin> |
| 87 | + <groupId>org.codehaus.mojo</groupId> |
| 88 | + <artifactId>exec-maven-plugin</artifactId> |
| 89 | + <version>1.2.1</version> |
| 90 | + <configuration> |
| 91 | + <mainClass>com.kickstart.Main</mainClass> |
| 92 | + </configuration> |
| 93 | + </plugin> |
| 94 | + <plugin> |
| 95 | + <groupId>org.apache.maven.plugins</groupId> |
| 96 | + <artifactId>maven-jar-plugin</artifactId> |
| 97 | + <version>2.4</version> |
| 98 | + <configuration> |
| 99 | + <archive> |
| 100 | + <addMavenDescriptor>false</addMavenDescriptor> |
| 101 | + <manifest> |
| 102 | + <addClasspath>true</addClasspath> |
| 103 | + <classpathPrefix>./lib/</classpathPrefix> |
| 104 | + <mainClass>com.kickstart.Main</mainClass> |
| 105 | + </manifest> |
| 106 | + </archive> |
| 107 | + </configuration> |
| 108 | + </plugin> |
| 109 | + <plugin> |
| 110 | + <groupId>org.apache.maven.plugins</groupId> |
| 111 | + <artifactId>maven-assembly-plugin</artifactId> |
| 112 | + <version>2.4</version> |
| 113 | + <configuration> |
| 114 | + <descriptors> |
| 115 | + <descriptor>zip-with-dependencies.xml</descriptor> |
| 116 | + </descriptors> |
| 117 | + </configuration> |
| 118 | + </plugin> |
| 119 | + </plugins> |
| 120 | + </build> |
| 121 | +</project> |
0 commit comments