Basic Manev2 pom.xml


/ Published in: Java
Save to your folder(s)

mvn archetype:create -DgroupId=deng -DartifactId=mysimpleapp
mvn eclipse:m2eclipse


Copy this code and paste it in your HTML
  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/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>org</groupId>
  5. <artifactId>mysimpleapp</artifactId>
  6. <packaging>jar</packaging>
  7. <version>1.0-SNAPSHOT</version>
  8. <name>simpleapp</name>
  9. <url>http://maven.apache.org</url>
  10. <dependencies>
  11. <dependency>
  12. <groupId>junit</groupId>
  13. <artifactId>junit</artifactId>
  14. <version>4.4</version>
  15. <scope>test</scope>
  16. </dependency>
  17. </dependencies>
  18. <build>
  19. <plugins>
  20. <plugin>
  21. <groupId>org.apache.maven.plugins</groupId>
  22. <artifactId>maven-compiler-plugin</artifactId>
  23. <configuration>
  24. <source>1.5</source>
  25. <target>1.5</target>
  26. </configuration>
  27. </plugin>
  28. </plugins>
  29. </build>
  30. </project>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.