/ Published in: Java
mvn archetype:create -DgroupId=deng -DartifactId=mysimpleapp
mvn eclipse:m2eclipse
mvn eclipse:m2eclipse
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org</groupId> <artifactId>mysimpleapp</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>simpleapp</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.4</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> </project>