Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to add copyright information to pom.xml #3756

Closed
zeeneir opened this issue Apr 5, 2024 · 5 comments
Closed

Request to add copyright information to pom.xml #3756

zeeneir opened this issue Apr 5, 2024 · 5 comments

Comments

@zeeneir
Copy link

zeeneir commented Apr 5, 2024

Our organization requires us to record copyright information for all OpenSource library dependencies. The copyright scanner we use can extract all information from pom.xml. Therefore it would be great if you could add the copyright in the pom.xml or even have it as a separate file in your repository.

@sormuras
Copy link
Member

sormuras commented Apr 5, 2024

Can you please configure the copyright scanner to extract the information from a source file of your choice?

/*
 * Copyright 2015-2024 the original author or authors.
 *
 * All rights reserved. This program and the accompanying materials are
 * made available under the terms of the Eclipse Public License v2.0 which
 * accompanies this distribution and is available at
 *
 * https://www.eclipse.org/legal/epl-v20.html
 */

image

Counted 1300+ duplications already.

@zeeneir
Copy link
Author

zeeneir commented Apr 5, 2024

Thanks for the prompt reply. I was looking for this header exactly. We use a 3rd party tool and unfortunately it doesn't have that flexibility. It only looks at the pom file of a given maven dependency. I'm trying to see anything can be done.

@marcphilipp
Copy link
Member

The published POMs already contain the license information:

  <licenses>
    <license>
      <name>Eclipse Public License v2.0</name>
      <url>https://www.eclipse.org/legal/epl-v20.html</url>
    </license>
  </licenses>

What other information are you looking for?

@zeeneir
Copy link
Author

zeeneir commented Apr 11, 2024

I was looking for this line:
/* Copyright 2015-2024 the original author or authors. */

It would be amazing if you could add it. But if it's not feasible, feel free to close the ticket.

@marcphilipp
Copy link
Member

AFAIK the POM schema does not have a "copyright" element. We could customize the generated POM to add a comment but that would be non-standard and provide a questionable benefit. Therefore, I'm closing this issue.

@marcphilipp marcphilipp closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants