项目作者: dimMaryanto93

项目描述 :
Example java project, from maven archetype
高级语言: Java
项目地址: git://github.com/dimMaryanto93/java-maven-archetype.git
创建时间: 2018-08-24T16:47:38Z
项目社区:https://github.com/dimMaryanto93/java-maven-archetype

开源协议:

下载


Example template maven

Contoh template maven application.

System requrired

  • Java Oracle JDK8
  • Apache Maven
  • Nexus Sonatype Cube

Configuration

Proxy to nexus

Create file settings.xml into .m2/

  1. <settings>
  2. <mirrors>
  3. <mirror>
  4. <id>nexus</id>
  5. <mirrorOf>*</mirrorOf>
  6. <url>http://localhost:8081/repository/maven-public/</url>
  7. </mirror>
  8. </mirrors>
  9. <profiles>
  10. <profile>
  11. <id>nexus</id>
  12. <repositories>
  13. <repository>
  14. <id>central</id>
  15. <url>http://central</url>
  16. <releases><enabled>true</enabled></releases>
  17. <snapshots><enabled>true</enabled></snapshots>
  18. </repository>
  19. </repositories>
  20. <pluginRepositories>
  21. <pluginRepository>
  22. <id>central</id>
  23. <url>http://central</url>
  24. <releases><enabled>true</enabled></releases>
  25. <snapshots><enabled>true</enabled></snapshots>
  26. </pluginRepository>
  27. </pluginRepositories>
  28. </profile>
  29. </profiles>
  30. <activeProfiles>
  31. <!--make the profile active all the time -->
  32. <activeProfile>nexus</activeProfile>
  33. </activeProfiles>
  34. <servers>
  35. <server>
  36. <id>nexus-snapshots</id>
  37. <username>admin</username>
  38. <password>admin123</password>
  39. </server>
  40. <server>
  41. <id>nexus-releases</id>
  42. <username>admin</username>
  43. <password>admin123</password>
  44. </server>
  45. </servers>
  46. </settings>

Running Nexus Senotype Cube

  • Run nexus on windows 10
  1. path-nexus-extrated\nexus\bin\nexus /run
  1. mvn clean package install deploy