Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 9fece62

Browse files
committed
Created NOTICE.txt files that discuss the license, and 3rd party dependencies with licenses as suggested by https://www.eclipse.org/projects/handbook/#legaldoc-notice
Change-Id: I5ea14d12ea91308a8249a6e17a4d846773d2359b
1 parent 85bdd94 commit 9fece62

File tree

10 files changed

+2872
-5
lines changed

10 files changed

+2872
-5
lines changed

NOTICE.txt

Lines changed: 803 additions & 0 deletions
Large diffs are not rendered by default.

bundles/jaxrs-ri/pom.xml

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
55
6-
Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved.
6+
Copyright (c) 2012-2018 Oracle and/or its affiliates. All rights reserved.
77
88
The contents of this file are subject to the terms of either the GNU
99
General Public License Version 2 only ("GPL") or the Common Development
@@ -279,6 +279,7 @@
279279
<includeGroupIds>javax.ws.rs,org.glassfish.jersey.core,org.glassfish.jersey.containers,org.glassfish.jersey.jaxb,org.glassfish.jersey.inject</includeGroupIds>
280280
<includeClassifiers>sources</includeClassifiers>
281281
<outputDirectory>${generated.src.dir}</outputDirectory>
282+
<excludes>**/NOTICE.txt</excludes>
282283
</configuration>
283284
</execution>
284285
</executions>
@@ -321,6 +322,32 @@
321322
<plugin>
322323
<groupId>org.apache.maven.plugins</groupId>
323324
<artifactId>maven-shade-plugin</artifactId>
325+
<version>3.1.0</version>
326+
<executions>
327+
<execution>
328+
<phase>package</phase>
329+
<goals>
330+
<goal>shade</goal>
331+
</goals>
332+
<configuration>
333+
<filters>
334+
<filter>
335+
<artifact>*:*</artifact> <!-- jersey artifacts -->
336+
<excludes>
337+
<exclude>META-INF/NOTICE.txt</exclude>
338+
</excludes>
339+
</filter>
340+
<filter>
341+
<artifact>*:*</artifact> <!-- 3rd party artifacts -->
342+
<excludes>
343+
<exclude>META-INF/DEPENDENCIES.txt</exclude>
344+
<exclude>META-INF/LICENSE.txt</exclude>
345+
</excludes>
346+
</filter>
347+
</filters>
348+
</configuration>
349+
</execution>
350+
</executions>
324351
</plugin>
325352
<!-- producing zipped archives -->
326353
<plugin>
@@ -354,6 +381,29 @@
354381
</execution>
355382
</executions>
356383
</plugin>
384+
<plugin>
385+
<groupId>org.apache.maven.plugins</groupId>
386+
<artifactId>maven-antrun-plugin</artifactId>
387+
<executions>
388+
<execution>
389+
<id>copy</id>
390+
<phase>install</phase>
391+
<configuration>
392+
<tasks>
393+
<jar destfile="${project.build.directory}/${artifactId}.jar" update="true">
394+
<zipfileset dir="../.." includes="NOTICE.txt" prefix="META-INF"/>
395+
</jar>
396+
<jar destfile="${project.build.directory}/${artifactId}-sources.jar" update="true">
397+
<zipfileset dir="../.." includes="NOTICE.txt" prefix="META-INF"/>
398+
</jar>
399+
</tasks>
400+
</configuration>
401+
<goals>
402+
<goal>run</goal>
403+
</goals>
404+
</execution>
405+
</executions>
406+
</plugin>
357407
</plugins>
358408
</build>
359409

bundles/jaxrs-ri/src/main/assembly/assembly-src-licensee.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
55
6-
Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved.
6+
Copyright (c) 2012-2018 Oracle and/or its affiliates. All rights reserved.
77
88
The contents of this file are subject to the terms of either the GNU
99
General Public License Version 2 only ("GPL") or the Common Development
@@ -68,6 +68,7 @@
6868
<unpackOptions>
6969
<excludes>
7070
<exclude>META-INF/MANIFEST.MF</exclude>
71+
<exclude>META-INF/NOTICE.txt</exclude>
7172
</excludes>
7273
</unpackOptions>
7374
<includes>

bundles/jaxrs-ri/src/main/assembly/assembly-src.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
55
6-
Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved.
6+
Copyright (c) 2012-2018 Oracle and/or its affiliates. All rights reserved.
77
88
The contents of this file are subject to the terms of either the GNU
99
General Public License Version 2 only ("GPL") or the Common Development
@@ -68,6 +68,7 @@
6868
<unpackOptions>
6969
<excludes>
7070
<exclude>META-INF/MANIFEST.MF</exclude>
71+
<exclude>META-INF/NOTICE.txt</exclude>
7172
</excludes>
7273
</unpackOptions>
7374
<includes>

bundles/jaxrs-ri/src/main/assembly/common-dependencies.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
55
6-
Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved.
6+
Copyright (c) 2013-2018 Oracle and/or its affiliates. All rights reserved.
77
88
The contents of this file are subject to the terms of either the GNU
99
General Public License Version 2 only ("GPL") or the Common Development
@@ -75,5 +75,9 @@
7575
<source>../../third-party-license-readme.txt</source>
7676
<outputDirectory>jaxrs-ri</outputDirectory>
7777
</file>
78+
<file>
79+
<source>../../NOTICE.txt</source>
80+
<outputDirectory>jaxrs-ri</outputDirectory>
81+
</file>
7882
</files>
7983
</component>

0 commit comments

Comments
 (0)