junit-team / junit5

✅ The 5th major version of the programmer-friendly testing framework for Java and the JVM

Home Page:https://junit.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request to add copyright information to pom.xml

zeeneir opened this issue · comments

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.

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.

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.

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?

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.

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.