Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-install-plugin</artifactId>
- <version>2.4</version>
- <executions>
- <execution>
- <phase>initialize</phase>
- <goals>
- <goal>install-file</goal>
- </goals>
- <configuration>
- <groupId>myJar1.0</groupId>
- <artifactId>myJar1.0</artifactId>
- <version>1.0</version>
- <packaging>jar</packaging>
- <file>myJar1.0.jar</file>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <repositories>
- <repository>
- <id>project-local-repo</id>
- <url>file://${project.basedir}/src/lib/</url>
- </repository>
- </repositories>
- <dependency>
- <groupId>some-group-name</groupId>
- <artifactId>myJar</artifactId>
- <version>1.0</version>
- </dependency>
- mvn install:install-file -Dfile=c:myJar{version}.jar
- -DgroupId=YOUR_GROUP -DartifactId=myJar -Dversion={version} -Dpackaging=jar
- <dependency>
- <groupId>YOUR_GROUP</groupId>
- <artifactId>myJar</artifactId>
- <version>{version}</version>
- </dependency>
Add Comment
Please, Sign In to add comment