Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7934375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:37:49+00:00 2026-06-03T21:37:49+00:00

I’m new to Maven, and decided to start with it on a project I

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:37:50+00:00Added an answer on June 3, 2026 at 9:37 pm

    For Open Source:

    • Make the source code available, e.g. at sourceforge.net
    • Make sure your POM inherits (directly or indirectly) from:

    :

      <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
      </parent>
    
    • Perform a Maven release to deploy to Maven Central: follow the steps at: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-9.StageaRelease

    For Closed Source:

    • Setup a Maven Repository Manager such as Nexus
      • Make sure the public group is available to the target audience
    • Configure the Maven release plugin: https://maven.apache.org/plugins/maven-release-plugin/

    General recommendations:

    • For the package name start with the reverse domain name, eg.
      • org.myproject.mycomponent (if you have a custom domain for this project)
      • com.mycompany.myproject.mycomponet (if your company owns the domain mycompany.com)
      • net.sourceforge.myproject.mycomponent (if you host your source code at myproject.sourceforge.net and don’t have a custom domain)
    • groupId:
      • Use the start of the package name such as com.mycompany.myproject
      • Usually use the same groupId for all Maven project inside a single VCS repository
    • artifactId: make sure it is unique enough as it will be the start of the file name of the jar, e.g. mycompany-myproject-mycomponent
    • Setup a CI server such as Jenkins
      • Make sure the CI server is run by a dedicated system user
      • Add the necessary credentials to the settings.xml file of the CI user
      • Configure a job for “clean install”
      • Configure a job for releasing the library (Jenkins has a special plugin to support Maven releases)
    • Consider to turn your jar into an OSGi bundle
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
Specifically, suppose I start with the string string =hello \'i am \' me And
I have a small JavaScript validation script that validates inputs based on Regex. I
I want use html5's new tag to play a wav file (currently only supported
I am doing a simple coin flipping experiment for class that involves flipping a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.