Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I developed my own maven plugin how can I use it?

 
Marcelo Tataje
Ranch Hand
Posts: 64
Java Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I developed my own maven plugin(jar application), this plugin has been made to attend requirements of a specific application(dynamic web project). I also included this using the plugin tag on my project's pom.xml and I don't have any problems deploying my maven project since the plugin is in my local computer. But my main web application can be downloaded and tested from different parts and different computers so they would need to also to download the plugin project and run mvn install and then after that, execute mvn install with my main project, I don't know if there's a way in which everyone who downloads my application just run the mvn install with the mvn project and download the plugin into the repository. My plugin project which is separated from my main project because it is just a plugin, is located on a subversion, I don't know if there's a way in which I could include the plugin and reference the svn url or something like that, for example my web applicattion pom.xml includes this:



apconfig-plugin is the name of the plugin I developed using the MOJO api. When I execute my web application pom.xml I don't have any problem because I have the application in my repo. But when I go to another computer and execute the pom.xml it throws exceptions because the plugin app is not found.
Any idea on how to solve this? please, I would be very grateful. Thanks in advance.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need a centralized repository manager, such as Nexus or Artifactory. Then you would deploy your plugin to the centralized repository and everyone would get it from there.

The only other option is to have everyone install the plugin manually in their local repository using install:install-file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic