Guest User

Untitled

a guest
Jan 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. <plugin>
  2. <groupId>org.apache.maven.plugins</groupId>
  3. <artifactId>maven-install-plugin</artifactId>
  4. <version>2.4</version>
  5. <executions>
  6. <execution>
  7. <phase>initialize</phase>
  8. <goals>
  9. <goal>install-file</goal>
  10. </goals>
  11. <configuration>
  12. <groupId>myJar1.0</groupId>
  13. <artifactId>myJar1.0</artifactId>
  14. <version>1.0</version>
  15. <packaging>jar</packaging>
  16. <file>myJar1.0.jar</file>
  17. </configuration>
  18. </execution>
  19. </executions>
  20. </plugin>
  21.  
  22. <repositories>
  23. <repository>
  24. <id>project-local-repo</id>
  25. <url>file://${project.basedir}/src/lib/</url>
  26. </repository>
  27. </repositories>
  28.  
  29. <dependency>
  30. <groupId>some-group-name</groupId>
  31. <artifactId>myJar</artifactId>
  32. <version>1.0</version>
  33. </dependency>
  34.  
  35. mvn install:install-file -Dfile=c:myJar{version}.jar
  36. -DgroupId=YOUR_GROUP -DartifactId=myJar -Dversion={version} -Dpackaging=jar
  37.  
  38. <dependency>
  39. <groupId>YOUR_GROUP</groupId>
  40. <artifactId>myJar</artifactId>
  41. <version>{version}</version>
  42. </dependency>
Add Comment
Please, Sign In to add comment