kandi background
Explore Kits

license-maven-plugin | Manage license headers in your source files

 by   mycila Java Version: Current License: No License

 by   mycila Java Version: Current License: No License

Download this library from

kandi X-RAY | license-maven-plugin Summary

license-maven-plugin is a Java library. license-maven-plugin has no vulnerabilities, it has build file available and it has high support. However license-maven-plugin has 12511 bugs. You can download it from GitHub.
Lastest releases (note that it may take up to 1-2 days to be in Maven Central repository):.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • license-maven-plugin has a highly active ecosystem.
  • It has 153 star(s) with 68 fork(s). There are 15 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 25 open issues and 92 have been closed. On average issues are closed in 417 days. There are no pull requests.
  • It has a negative sentiment in the developer community.
  • The latest version of license-maven-plugin is current.
license-maven-plugin Support
Best in #Java
Average in #Java
license-maven-plugin Support
Best in #Java
Average in #Java

quality kandi Quality

  • license-maven-plugin has 12511 bugs (1 blocker, 0 critical, 2479 major, 10031 minor) and 8705 code smells.
license-maven-plugin Quality
Best in #Java
Average in #Java
license-maven-plugin Quality
Best in #Java
Average in #Java

securitySecurity

  • license-maven-plugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • license-maven-plugin code analysis shows 0 unresolved vulnerabilities.
  • There are 8 security hotspots that need review.
license-maven-plugin Security
Best in #Java
Average in #Java
license-maven-plugin Security
Best in #Java
Average in #Java

license License

  • license-maven-plugin does not have a standard license declared.
  • Check the repository for any license declaration and review the terms closely.
  • Without a license, all rights are reserved, and you cannot use the library in your applications.
license-maven-plugin License
Best in #Java
Average in #Java
license-maven-plugin License
Best in #Java
Average in #Java

buildReuse

  • license-maven-plugin releases are not available. You will need to build from source code and install.
  • Build file is available. You can build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
  • license-maven-plugin saves you 2898 person hours of effort in developing the same functionality from scratch.
  • It has 118123 lines of code, 559 functions and 966 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
license-maven-plugin Reuse
Best in #Java
Average in #Java
license-maven-plugin Reuse
Best in #Java
Average in #Java
Top functions reviewed by kandi - BETA

kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample Here

Get all kandi verified functions for this library.

Get all kandi verified functions for this library.

license-maven-plugin Key Features

license:check: verify if some files miss license header. This goal is attached to the verify phase if declared in your pom.xml like above.

license:format: add the license header when missing. If a header is existing, it is updated to the new one.

license:remove: remove existing license header

Maven Repository

copy iconCopydownload iconDownload
    <plugin>
        <groupId>com.mycila</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <version>X.Y.ga</version>
        <configuration>
            <licenseSets>
                <licenseSet>
                    <header>com/mycila/maven/plugin/license/templates/APACHE-2.txt</header>
                    <excludes>
                        <exclude>**/README</exclude>
                        <exclude>src/test/resources/**</exclude>
                        <exclude>src/main/resources/**</exclude>
                    </excludes>
                </licenseSet>
            </licenseSets>
            <properties>
                <owner>Mycila</owner>
                <email>mathieu.carbou@gmail.com</email>
            </properties>
        </configuration>
        <executions>
            <execution>
                <goals>
                    <goal>check</goal>
                </goals>
            </execution>
        </executions>
    </plugin>

Properties and placeholders

copy iconCopydownload iconDownload
public interface PropertiesProvider {
    Map<String, String> getAdditionalProperties(AbstractLicenseMojo mojo, Properties currentProperties, Document document);
}

Supported comment types

copy iconCopydownload iconDownload
/**
 * My comment
 */

Changing header style definitions

copy iconCopydownload iconDownload
<?xml version="1.0" encoding="ISO-8859-1"?>
<additionalHeaders>
    <javadoc_style>
        <firstLine>/**</firstLine>
        <beforeEachLine> * </beforeEachLine>
        <endLine> */</endLine>
        <afterEachLine></afterEachLine>
        <!--skipLine></skipLine-->
        <firstLineDetectionPattern>(\s|\t)*/\*.*$</firstLineDetectionPattern>
        <lastLineDetectionPattern>.*\*/(\s|\t)*$</lastLineDetectionPattern>
        <allowBlankLines>false</allowBlankLines>
        <isMultiline>true</isMultiline>
        <padLines>false</padLines>
    </javadoc_style>
</additionalHeaders>

Releasing a version:

copy iconCopydownload iconDownload
mvn release:prepare -DreleaseVersion=4.0.rc1 -Dtag=license-maven-plugin-4.0.rc1 -DdevelopmentVersion=4.0-SNAPSHOT
mvn release:perform -Darguments="-Dgpg.keyname=EDEA921A"

Generate site from any branch or tag:

copy iconCopydownload iconDownload
mvn clean verify site -DperformRelease=true -Dgpg.skip=true

How do i skip the license check when running the maven install?

copy iconCopydownload iconDownload
$ mvn license:help -Ddetail | fgrep skip
-Dlicense.skipDownloadLicenses
$ mvn license:help -Ddetail | fgrep skip
-Dlicense.skipDownloadLicenses
-Dlicense.skipCheckLicense

Quarkus unable to locate CDIProvider when updating to latest version

copy iconCopydownload iconDownload
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-arc-deployment</artifactId>
    <version>0.20.0</version>
</dependency>
<dependency>
  <groupId>io.quarkus</groupId>
  <artifactId>quarkus-smallrye-rest-client</artifactId>
  <version>${restClient.version}</version>
</dependency>
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-arc-deployment</artifactId>
    <version>0.20.0</version>
</dependency>
<dependency>
  <groupId>io.quarkus</groupId>
  <artifactId>quarkus-smallrye-rest-client</artifactId>
  <version>${restClient.version}</version>
</dependency>

How to add License.txt to Maven project

copy iconCopydownload iconDownload
<organization>
    <name>My Organization</name>
    <url>http://example.com</url>
</organization>

Rinsim, compile executable file failed, with maven dependency

copy iconCopydownload iconDownload
<pluginExecution>
  <pluginExecutionFilter>
    <groupId>com.mycila</groupId>
    <artifactId>
        license-maven-plugin
    </artifactId>
    <versionRange>
        [2.11,)
    </versionRange>
    <goals>
        <goal>check</goal>
    </goals>
  </pluginExecutionFilter>
  <action>
    <ignore></ignore>
  </action>
</pluginExecution>

Maven Plugin Signature Check Error

copy iconCopydownload iconDownload
<project xmlns="http://maven.apache.org/POM/4.0.0" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.apache.jena</groupId>
  <artifactId>jena-examples</artifactId>
    <version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Apache Jena - Code Examples</name>
  <description>A collection of example code illustrating uses of Apache Jena</description>
  <url>http://jena.apache.org/</url>

<properties>
  <ver.jena>[3.1.0,)</ver.jena>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<organization>
  <name>Apache Software Foundation</name>
  <url>http://apache.org</url>
</organization>

<dependencies>
  <dependency>
    <groupId>org.apache.jena</groupId>
    <artifactId>apache-jena-libs</artifactId>
    <version>${ver.jena}</version>
    <type>pom</type>
  </dependency>
  <dependency>
    <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <type>jar</type>
    <scope>compile</scope>
  </dependency>
  <dependency>
    <groupId>commons-cli</groupId>
    <artifactId>commons-cli</artifactId>
    <version>1.2</version>
  </dependency>
</dependencies>

<repositories>
  <repository>
    <id>apache-repo-snapshots</id>
    <url>http://repository.apache.org/content/repositories/snapshots/</url>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </repository>

  <repository>
    <id>apache-repo-releases</id>
    <url>http://repository.apache.org/content/repositories/releases/</url>
    <releases>
     <enabled>true</enabled>
    </releases>
  </repository>
</repositories>

Community Discussions

Trending Discussions on license-maven-plugin
  • How do i skip the license check when running the maven install?
  • Quarkus unable to locate CDIProvider when updating to latest version
  • IntelliJ does not find pom.xml file
  • How to add License.txt to Maven project
  • Rinsim, compile executable file failed, with maven dependency
  • Using declarative services in Karaf 4.1.0
  • Maven Plugin Signature Check Error
Trending Discussions on license-maven-plugin

QUESTION

How do i skip the license check when running the maven install?

Asked 2020-Apr-20 at 22:55

I ran a mvn clean install on a big Java project that I work on, but it kept failing due to some files not having the proper license headers. Well, thats not my concern right now, how do I skip that? the actual error i am seeing is,

Failed to execute goal org.codehaus.mojo:license-maven-plugin:1.14:add-third-party (default) on project test-project: There are some dependencies with no license, please fill the file /Users/test-project/src/license/THIRD-PARTY.properties 

I also tried this maven command, but it didn't work

mvn clean install -Dlicense.skip=true

ANSWER

Answered 2018-Mar-14 at 16:00

Try skipping AddThirdParty mojo with -Dlicense.skipAddThirdParty=true.

Source https://stackoverflow.com/questions/49281794

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install license-maven-plugin

You can download it from GitHub.
You can use license-maven-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the license-maven-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

Support

The detailed Maven Plugin Documentation generated for each build is available here:. NOTE: Between versions 4.0 and 3.0 the configuration syntax has been changed. The plugin now has the concept of License Sets, which allow you to work with one or more license configurations in a single execution of the plugin. In simple terms, a <licenseSet> wraps the previous configuration options for a license. The previous configuration syntax is still supported but deprecated, and may be removed in future. WARNING: there is good chances the latest version is greater than latest documentation, if nothing has changed concerning the plugin configurations.

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases
Explore Kits

Save this library and start creating your kit

Share this Page

share link
Consider Popular Java Libraries
Try Top Libraries by mycila
Compare Java Libraries with Highest Support
Compare Java Libraries with Highest Quality
Compare Java Libraries with Highest Security
Compare Java Libraries with Permissive License
Compare Java Libraries with Highest Reuse
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases
Explore Kits

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.