mojohaus / license-maven-plugin

Maven plugin to download and collect license files from project dependencies.
https://www.mojohaus.org/license-maven-plugin/
GNU Lesser General Public License v3.0
107 stars 126 forks source link

Cannot ignore 'test' scope when generating NOTICE file #62

Closed goudine closed 7 years ago

goudine commented 7 years ago

When using the 'maven notice plugin' to generate a NOTICE file containing dependencies, it is not possible to only focus on the 'compile' scope.

A (screenshot) of the maven dependency tree is attached. From the image it is visible that both 'junit' and 'hamcrest' are dependencies within the 'test' scope. Both are present within the generate 'NOTICE' file, which is also attached.

Adding command line arguements such as: 'mvn notice:generate -Dlicense.excludedScopes=test mvn notice:generate -Dlicense.includedScopes=compile' did not change the result of the NOTICE file.

Adding the 'compile' tag within the pluginManagement section of the pom file also had no effect.

screen shot 2016-11-22 at 11 52 41 am

NOTICE file, (could not attach, had to paste text here)

Copyright 2010, JA-SIG, Inc.
This project includes software developed by Jasig.
http://www.jasig.org/

Licensed under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.

This project includes:
  AOP alliance under Public Domain
  Apache Commons Collections under Apache License, Version 2.0
  Apache Commons Logging under The Apache Software License, Version 2.0
  API interfaces under Lesser General Public License (LGPL)
  common under Eclipse Public License, Version 1.0
  Commons DBCP under The Apache Software License, Version 2.0
  Commons IO under The Apache Software License, Version 2.0
  Commons JXPath under The Apache Software License, Version 2.0
  Commons Lang under The Apache Software License, Version 2.0
  Commons Pool under The Apache Software License, Version 2.0
  Compress-LZF under Apache License 2.0
  Cucumber-HTML under MIT License
  Cucumber-JVM Repackaged Dependencies under BSD License or The Apache Software License, Version 2.0
  Cucumber-JVM: Core under MIT License
  Cucumber-JVM: Guice under MIT License
  Cucumber-JVM: Java under MIT License
  Cucumber-JVM: JUnit under MIT License
  DataStore Support under Lesser General Public License (LGPL)
  ecore under Eclipse Public License, Version 1.0
  EJML under The Apache Software License, Version 2.0
  EPSG Authority Service using HSQL database under Lesser General Public License (LGPL) or EPSG database distribution license or BSD License for HSQL
  Feature Based Graphs and Networks under Lesser General Public License (LGPL)
  FileUpload under The Apache Software License, Version 2.0
  Filter Encoding Specification Model under Lesser General Public License (LGPL)
  Filter Encoding Specification XML Support under Lesser General Public License (LGPL)
  Filter XML Support under Lesser General Public License (LGPL)
  GeoGig under Eclipse Distribution License
  GeoGig CLI App under Eclipse Distribution License
  GeoGig Command Line Interface under Eclipse Distribution License
  GeoGig Core under Apache License, Version 2.0
  GeoGig Core API under Eclipse Distribution License
  GeoGig Web API under Eclipse Distribution License
  GeoGig Web API Automated Functional Tests under Eclipse Distribution License
  GeoGig WebApp under Eclipse Distribution License
  GeoJSON Support under Lesser General Public License (LGPL)
  GeoPackage Module under Lesser General Public License (LGPL)
  GeoTools DataStore Implementation under Eclipse Distribution License
  GeoTools Extension under Eclipse Distribution License
  Gherkin under MIT License
  GML2 XML Support under Lesser General Public License (LGPL)
  GML3 XML Support under Lesser General Public License (LGPL)
  Google Guice - Core Library under The Apache Software License, Version 2.0
  Google Guice - Extensions - MultiBindings under The Apache Software License, Version 2.0
  Gson under The Apache Software License, Version 2.0
  Guava: Google Core Libraries for Java under The Apache Software License, Version 2.0
  Hamcrest Core under New BSD License
  HikariCP under The Apache Software License, Version 2.0
  HTTP server connector under CDDL license or GPL license
  HyperSQL Database under HSQLDB License, a BSD open source license
  jai_core under Java Distribution License
  jansi under The Apache Software License, Version 2.0
  Java implementation of GeographicLib under The MIT License(MIT)
  javax.inject under The Apache Software License, Version 2.0
  JCommander under The Apache Software License, Version 2.0
  JDBC DataStore Support under Lesser General Public License (LGPL)
  JDT Annotations for Enhanced Null Analysis under Eclipse Public License - v 1.0
  Jetty AJP under Apache License Version 2
  Jetty Server under Apache License Version 2.0
  Jetty SSLEngine under Apache License Version 2
  Jetty Utilities under Apache License Version 2.0
  JSON.simple under The Apache Software License, Version 2.0
  JSR 353 (JSON Processing) Default Provider under Dual license consisting of the CDDL v1.1 and GPL v2
  jsr-275 under BSD License
  JTS Topology Suite under Lesser General Public License (LGPL)
  JUL to SLF4J bridge under MIT License
  JUnit under Eclipse Public License 1.0
  Logback Classic Module under Eclipse Public License - v 1.0 or GNU Lesser General Public License
  Logback Core Module under Eclipse Public License - v 1.0 or GNU Lesser General Public License
  Main module under Lesser General Public License (LGPL)
  Metadata under Lesser General Public License (LGPL)
  Mockito under The MIT License
  Multipart form handler under CDDL license or GPL license
  OGC CQL to Filter parser under Lesser General Public License (LGPL)
  Open GIS Interfaces under OGC copyright or Lesser General Public License (LGPL)
  Open Web Services Model under Lesser General Public License (LGPL)
  Oracle DataStore under Lesser General Public License (LGPL)
  org.xmlunit:xmlunit-core under The Apache Software License, Version 2.0
  org.xmlunit:xmlunit-matchers under The Apache Software License, Version 2.0
  OWS XML Support under Lesser General Public License (LGPL)
  PicoContainer Core under BSD license
  PostGIS DataStore under Lesser General Public License (LGPL)
  PostgreSQL JDBC Driver under The PostgreSQL License
  PostgreSQL Storage Backend under Eclipse Distribution License
  Py4J under The New BSD License
  Reference Implementation under CDDL license or GPL license
  Referencing services under Lesser General Public License (LGPL)
  Restlet API under CDDL license or GPL license
  RocksDB JNI under Apache License 2.0
  RocksDB storage backend under Eclipse Distribution License
  Servlet Specification 2.5 API under CDDL 1.0
  servlet-api under Commons Development and Distribution License, Version 1.0
  Shapefile module under Lesser General Public License (LGPL)
  SLF4J API Module under MIT License
  SLF4J Simple Binding under MIT License
  Spring AOP under The Apache Software License, Version 2.0
  Spring Beans under The Apache Software License, Version 2.0
  Spring Context under The Apache Software License, Version 2.0
  Spring Core under The Apache Software License, Version 2.0
  Spring Expression Language (SpEL) under The Apache Software License, Version 2.0
  Spring Web under The Apache Software License, Version 2.0
  SQLite JDBC under The Apache Software License, Version 2.0
  Storage backends under Eclipse Distribution License
  Web modules under Eclipse Distribution License
  Xlink Model under Lesser General Public License (LGPL)
  XML Parsing under Lesser General Public License (LGPL)
  xsd under Eclipse Public License, Version 1.0

This project also includes code under copywrite of the following entities:
  http://code.google.com/p/maven-license-plugin/
tchemit commented 7 years ago

@goudine I am not sure you are on the correct project. This project does not have a generate-notice goal.