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 7952209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:47:30+00:00 2026-06-04T02:47:30+00:00

I would like to extend the Maven POM to include meta information about the

  • 0

I would like to extend the Maven POM to include meta information about the dependencies. I’m doing this to make lawyers happy and stop developers from having to audit the POM once a quarter to see what OSS we added that legal didn’t “approve” yet 😛

So I wanted to add something like this:

    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.8.2</version>
        <license>Common Public License - v 1.0<license>
        <approved>true</approved>
    </dependency>

Then I could write a maven plug in or just a groovy script to audit the entries for my and tell me what is missing.

I can’t find any good way to do this? Is it even possible? If not does anyone have a recommendation on a way to handle this?

  • 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-04T02:47:32+00:00Added an answer on June 4, 2026 at 2:47 am

    The license information is already in the pom of the dependency so adding it there does not make sense. If you need more info like that you should look at Sonatype Insight and the integration of it in Sonatype Nexus as well as the Insight for CI plugin for Hudson or Jenkins. It will show you declared licenses as well as found licenses in the code and lot more other data.

    You might want to check out the webinar about Insight for CI next week in fact as well as the webinar recording available now.

    I general however you can not extend the pom with additional tags like that since it will stop maven from being able to parse it. The best you could do is add them as xml comments.

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

Sidebar

Related Questions

I would like to extend a liferay core jsp by custom-jsp hook. In this
I would like to extend the cakephp logging facility. Using $this->log($msg, $level) you can
I would like to extend Entity\Base classes, how to do this in Doctrine 2.1?
Another question asked about attributes, but I would like to extend the question to
We would like to extend Mono's VM to generate information that can be consumed
I would like to extend a kd-tree (2D) class to be able to remove
I would like to create extend a Java Swing application to have a look
I'm trying to extend my ActiveRecord class with some dynamic methods. I would like
If I extend a component like Form in Vaadin, would be any difference between
Would like to make anapplication in Java that will not automatically parse parameters used

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.