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

  • SEARCH
  • Home
  • 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 8796975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:44:52+00:00 2026-06-13T23:44:52+00:00

I am currently updating a maven archetype for our project, and would like to

  • 0

I am currently updating a maven archetype for our project, and would like to reduce the quantity of information that users will have to give when using this archetype. The groupId will always be the same, for instance.

So, is it possible to define a default value for groupId in a Maven archetype ?

  • 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-13T23:44:54+00:00Added an answer on June 13, 2026 at 11:44 pm

    If you are working in a fixed organisation where this value will not change on a per project basis: Use a parent POM. Distribute it through your repository (you use some kind of central repository, even if it is only a network drive, do you?).

    Inclusion in project

    <artifactId>greattool</artifactId>
    <packaging>war</packaging>
    <parent>
        <groupId>com.example</groupId>
        <artifactId>master-parent-pom</artifactId>
        <version>0.0.1</version>
    </parent>
    

    Parent POM

    <groupId>com.example</groupId>
    <artifactId>master-parent-pom</artifactId>
    <version>0.0.1</version>
    <packaging>pom</packaging>
    <description>Parent POM for our projects, specific project type POMs derive from this.</description>
    

    So no group id in the project POM, the one from the parent POM will be used. Of course you are replacing the group id with the inclusion of the parent POM but that is helpful as you can further customize Maven to your organisation’s specific needs there.

    If you use a build and test server you can even set the parent’s version to -SNAPSHOT to automatically distribute changes in the parent POM to the project POMs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a much used project that I am working on currently updating. There
I have an old user site that we are currently updating. The site's users
I'm currently updating our software installer and have a few questions about getting the
Currently I have spreadsheets coming in that are formatted incorrectly. Our client sent out
I currently have a table of 3m records that needs updating nightly. The data
I'm currently in progress of updating all sql queries to pdo where I will
Currently, I am writing a MiddleWare application that synchronizes information between and accounting application
Currently, I'm working on a project where I have a server - client relationship
I am currently updating a webpage that has some very simple data displayed in
I'm currently updating a JAX RS application (that uses CXF and Spring) to run

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.