jenkinsci / license-maven-plugin Goto Github PK
View Code? Open in Web Editor NEWGenerates license information for Jenkins plugins
Home Page: http://jenkinsci.github.io/license-maven-plugin/
Generates license information for Jenkins plugins
Home Page: http://jenkinsci.github.io/license-maven-plugin/
When running on Maven 3.9.1:
10:17:55 [INFO] --- license:1.15:process (default) @ plugin ---
10:17:56 [WARNING] Parameter 'localRepository' is deprecated core expression; Avoid use of ArtifactRepository type. If you need access to local repository, switch to '${repositorySystemSession}' expression and get LRM from it instead.
10:17:57 [INFO] Generated /home/jenkins/agent/workspace/Tools_plugin-pom_master/target/plugin/WEB-INF/licenses.xml
I recommend the following patch:
diff --git a/src/main/java/com/cloudbees/maven/license/ProcessMojo.java b/src/main/java/com/cloudbees/maven/license/ProcessMojo.java
index b5c282b..b657dee 100644
--- a/src/main/java/com/cloudbees/maven/license/ProcessMojo.java
+++ b/src/main/java/com/cloudbees/maven/license/ProcessMojo.java
@@ -21,7 +21,6 @@ import groovy.lang.GroovyShell;
import groovy.lang.Script;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.factory.ArtifactFactory;
-import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
@@ -68,9 +67,6 @@ public class ProcessMojo extends AbstractMojo {
@Component
public ArtifactFactory artifactFactory;
- @Parameter(defaultValue = "${localRepository}")
- public ArtifactRepository localRepository;
-
/**
* Specifies completion/generation/filtering scripts.
*
@@ -176,7 +172,6 @@ public class ProcessMojo extends AbstractMojo {
ProjectBuildingRequest buildingRequest =
new DefaultProjectBuildingRequest(session.getProjectBuildingRequest());
buildingRequest.setRemoteRepositories(project.getRemoteArtifactRepositories());
- buildingRequest.setLocalRepository(localRepository);
buildingRequest.setProcessPlugins(false); // improve performance
models.put(a, projectBuilder.build(pom, buildingRequest).getProject());
} catch (ProjectBuildingException x) {
(Disclaimer: I haven't looked at the specific use cases handled by this plugin here, and the MojoHaus' eponym plugin.)
Have we considered contributing this plugin's features to https://www.mojohaus.org/license-maven-plugin/ and switch to the latter?
Why:
Our Maven build contains the following warning:
Artifact IDs of the format
maven-___-plugin
are reserved for plugins in the group IDorg.apache.maven.plugins
. Please change your artifact ID to the format___-maven-plugin
. In the future this error will break the build.
This notice elaborates further:
Calling it
maven-<yourplugin>-plugin
(note "Maven" is at the beginning of the plugin name) is strongly discouraged since it's a reserved naming pattern for official Apache Maven plugins maintained by the Apache Maven team with group IDorg.apache.maven.plugins
. Using this naming pattern is an infringement of the Apache Maven Trademark.
Renaming this plugin is trivial, but the real work in this task is adapting all consumers to the new name.
Reference: https://maven.apache.org/guides/plugin/guide-java-plugin-development.html
[INFO] --- maven-license-plugin:1.8:process (default) @ database-mysql ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass$3$1 (file:/Users/timja/.m2/repository/org/codehaus/groovy/groovy/1.6.5/groovy-1.6.5.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass$3$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
caused by ancient groovy...
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
src/site/site.xml
org.apache.maven.skins:maven-fluido-skin 1.12.0
Whenever I build Jenkins core sources, I get an java.lang.OutOfMemoryError: PermGen space
in maven-license-plugin:1.7:process
. This might be coincidental, but it might mean that this plugin actually sucks up an unwarranted amount of the permanent generation, e.g. by loading too many classes. Should be profiled.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.