I am developing an eclipse project and I have created a plug-in for myself in order to handle some protocol operations. I want to add this plug-in as a maven dependency to my my project.
How is this possible?
I assume you mean ".jar" type plug-in data. One of the ways is doing it via cmd prompt.
these code fragments add your .JAR into your local Maven repository
cd <path that includes your .jar file>
mvn install:install-file -Dfile=<jarfile.jar> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<jar>
Then you can add the following in your pom.xml file
<dependency>
<groupId>your.groupID</groupId>
<artifactId>your.artifactId</artifactId>
<version>your.version</version>
</dependency>
In your pom.xml add following:
<build>
<plugins>
<plugin>
<groupId>your.groupId</groupId>
<artifactId>your.artifactId</artifactId>
<version>your.version</version>
</plugin>
</plugins>
</build>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.