I’m new to Maven, and decided to start with it on a project I started to develop recently. The project is a Java library that parses unit conversion queries written in natural language, and performs the unit conversion that was interpreted out of the natural language query.
For this project I needed an inflection library for Java (pluralize/singularize words), and after pondering some options I decided to develop my own. It turns out that there have been some interest from some people in using this inflection functionality alone.
So the question is, what would be the best approach to split off the classes providing inflection functionality (which are in a separate package within my unit conversion project) into a separate new Maven project, publish this inflection library in some sort of public Maven repository, and specify it as a dependency of my unit conversion library. This way, anybody else wanting to use the inflection library would be able to do so by putting it as dependency of their own projects.
Note that my question includes the part of “publishing one’s library in a Maven repo so that it can be a dependency of other projects”. I am totally new to Maven so I really haven’t grasped the whole thing. I merely limit myself to set up the dependencies of my own project, build, run, etc.
For Open Source:
:
For Closed Source:
General recommendations: