You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by rz...@apache.org on 2025/02/07 07:56:48 UTC
(opennlp-addons) branch OPENNLP-1703-Auto-generate-Addons-NOTICE-file created (now 2ad2e8a)
This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a change to branch OPENNLP-1703-Auto-generate-Addons-NOTICE-file
in repository https://gitbox.apache.org/repos/asf/opennlp-addons.git
at 2ad2e8a OPENNLP-1703 - Auto-generate Addons NOTICE file
This branch includes the following new commits:
new 2ad2e8a OPENNLP-1703 - Auto-generate Addons NOTICE file
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(opennlp-addons) 01/01: OPENNLP-1703 - Auto-generate Addons NOTICE file
Posted by rz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch OPENNLP-1703-Auto-generate-Addons-NOTICE-file
in repository https://gitbox.apache.org/repos/asf/opennlp-addons.git
commit 2ad2e8a04cb869772550fa1a5c3951cebcf62e33
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Fri Feb 7 08:56:39 2025 +0100
OPENNLP-1703 - Auto-generate Addons NOTICE file
---
.github/workflows/license.yml | 70 ++++++++++++++++++++++
NOTICE | 35 ++++++++++-
pom.xml | 118 +++++++++++++++++++++++++++++++++++++
src/license/NOTICE.template | 7 +++
src/license/THIRD-PARTY.properties | 16 +++++
5 files changed, 244 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml
new file mode 100644
index 0000000..6a2dbc1
--- /dev/null
+++ b/.github/workflows/license.yml
@@ -0,0 +1,70 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+
+name: CI Master - Regenerate NOTICE
+
+on:
+ push:
+ branches:
+ - main
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up JDK 17
+ uses: actions/setup-java@v4
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+
+ - name: Cache Maven packages
+ uses: actions/cache@v4
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-master-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-master-m2
+
+ - name: Generate Dependency Licenses
+ run: |
+ mvn license:aggregate-add-third-party@generate-and-check-licenses \
+ -Dlicense.skipAggregateAddThirdParty=false \
+ -B \
+ -Dlicense.thirdPartyFilename=DEPENDENCY-LICENSES \
+ -Dlicense.outputDirectory=target
+
+ - name: Create NOTICE File
+ run: |
+ cat src/license/NOTICE.template target/DEPENDENCY-LICENSES > NOTICE
+
+ - name: Create Pull Request after License Regeneration
+ uses: peter-evans/create-pull-request@v7
+ with:
+ base: main
+ token: ${{ secrets.GITHUB_TOKEN }}
+ commit-message: "Minor: Regenerated NOTICE File for ${{ github.sha }}"
+ committer: GitHub <no...@github.com>
+ author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
+ signoff: true
+ branch: regenerate_license_file_after_dep_upgrade
+ delete-branch: true
+ title: "Regenerated NOTICE file after dependency changes"
+ body: |
+ Found some uncommited changes (from NOTICE regeneration) after running build on OpenNLP sandbox
+ labels: |
+ dependency
\ No newline at end of file
diff --git a/NOTICE b/NOTICE
index a892eb2..a2df39b 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,36 @@
Apache OpenNLP
-Copyright 2010, 2023 The Apache Software Foundation
+Copyright 2021-2025 The Apache Software Foundation
This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
\ No newline at end of file
+The Apache Software Foundation (http://www.apache.org/).
+
+============================================================================
+
+List of third-party dependencies grouped by their license type.
+
+
+ Apache License, Version 2.0
+
+ * ConcurrentLinkedHashMap (com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.3.2 - http://code.google.com/p/concurrentlinkedhashmap)
+ * HPPC Collections (com.carrotsearch:hppc:0.7.2 - http://labs.carrotsearch.com/hppc.html/hppc)
+ * jcommander (com.beust:jcommander:1.78 - https://jcommander.org)
+ * Lucene Common Analyzers (org.apache.lucene:lucene-analyzers-common:6.0.0 - http://lucene.apache.org/lucene-parent/lucene-analyzers-common)
+ * Lucene Core (org.apache.lucene:lucene-core:6.0.0 - http://lucene.apache.org/lucene-parent/lucene-core)
+ * Lucene Queries (org.apache.lucene:lucene-queries:6.0.0 - http://lucene.apache.org/lucene-parent/lucene-queries)
+ * Lucene QueryParsers (org.apache.lucene:lucene-queryparser:6.0.0 - http://lucene.apache.org/lucene-parent/lucene-queryparser)
+ * Lucene Sandbox (org.apache.lucene:lucene-sandbox:6.0.0 - http://lucene.apache.org/lucene-parent/lucene-sandbox)
+ * Spatial4J (com.spatial4j:spatial4j:0.5 - http://nexus.sonatype.org/oss-repository-hosting.html/spatial4j)
+
+ BSD License
+
+ * extJWNL (net.sf.extjwnl:extjwnl:2.0.5 - http://extjwnl.sf.net/extjwnl)
+ * extJWNL WordNet 3.1 Data (net.sf.extjwnl:extjwnl-data-wn31:1.2 - http://extjwnl.sf.net/extjwnl-data-wn31)
+ * liblinear (de.bwaldvogel:liblinear:2.44 - https://github.com/bwaldvogel/liblinear)
+ * Morfologik Command Line Tools (org.carrot2:morfologik-tools:2.1.9 - http://morfologik.blogspot.com/morfologik-tools/)
+ * Morfologik FSA (Builder) (org.carrot2:morfologik-fsa-builders:2.1.9 - http://morfologik.blogspot.com/morfologik-fsa-builders/)
+ * Morfologik FSA (Traversal) (org.carrot2:morfologik-fsa:2.1.9 - http://morfologik.blogspot.com/morfologik-fsa/)
+ * Morfologik Stemming APIs (org.carrot2:morfologik-stemming:2.1.9 - http://morfologik.blogspot.com/morfologik-stemming/)
+
+ MIT License
+
+ * SLF4J API Module (org.slf4j:slf4j-api:2.0.16 - http://www.slf4j.org)
diff --git a/pom.xml b/pom.xml
index 5c46bf7..13398ab 100644
--- a/pom.xml
+++ b/pom.xml
@@ -121,6 +121,8 @@
<coveralls.maven.plugin>4.3.0</coveralls.maven.plugin>
<jacoco.maven.plugin>0.8.12</jacoco.maven.plugin>
<maven.failsafe.plugin>3.5.2</maven.failsafe.plugin>
+
+ <license-maven-plugin.version>2.5.0</license-maven-plugin.version>
</properties>
<dependencyManagement>
@@ -363,6 +365,7 @@
<exclude>.gitattributes</exclude>
<exclude>.github/*</exclude>
<exclude>**/*.md</exclude>
+ <exclude>**/NOTICE.template</exclude>
<!-- We do not ship files from test/resources, so ok to exclude -->
<exclude>**/src/test/resources/**/*.txt</exclude>
<exclude>**/src/test/resources/**/*.csv</exclude>
@@ -462,6 +465,121 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <version>${license-maven-plugin.version}</version>
+ <configuration>
+ <useMissingFile>true</useMissingFile>
+ <failOnMissing>true</failOnMissing>
+ <includeTransitiveDependencies>true</includeTransitiveDependencies>
+ <fileTemplate>/org/codehaus/mojo/license/third-party-file-groupByMultiLicense.ftl
+ </fileTemplate>
+ <excludedScopes>system,test</excludedScopes>
+ <excludedGroups>${project.groupId}</excludedGroups>
+ <licenseMerges>
+ <licenseMerge>
+ Apache License, Version 2.0 |
+ Apache License, version 2.0 |
+ Apache License Version 2 |
+ Apache License Version 2.0 |
+ Apache License version 2.0 |
+ Apache 2 |
+ Apache 2.0 |
+ Apache-2.0 |
+ Apache 2.0 License |
+ Apache License, 2.0 |
+ Apache License 2 |
+ Apache License 2.0 |
+ Apache Public License 2.0 |
+ Apache Software License - Version 2.0 |
+ Apache v2 |
+ ASL, version 2 |
+ The Apache License, Version 2.0 |
+ The Apache Software License, Version 2.0
+ </licenseMerge>
+ <licenseMerge>
+ Apache License |
+ Apache Software Licenses
+ </licenseMerge>
+ <licenseMerge>
+ BSD License |
+ BSD license |
+ BSD licence |
+ BSD |
+ The BSD License
+ </licenseMerge>
+ <licenseMerge>
+ BSD 2-Clause License |
+ BSD 2-Clause license |
+ </licenseMerge>
+ <licenseMerge>
+ BSD 3-Clause License |
+ BSD 3-Clause |
+ BSD 3-clause |
+ BSD-3-Clause |
+ The BSD 3-Clause License |
+ New BSD License |
+ New BSD license
+ </licenseMerge>
+ <licenseMerge>
+ Common Development and Distribution License (CDDL) v1.0 |
+ COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 |
+ CDDL 1.0
+ </licenseMerge>
+ <licenseMerge>
+ Common Development and Distribution License (CDDL) v1.1 |
+ COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.1 |
+ CDDL 1.1 |
+ Common Development and Distribution License (CDDL), Version 1.1
+ </licenseMerge>
+ <licenseMerge>
+ Common Development and Distribution License |
+ <!-- Multilicense, choosing CDDL -->
+ CDDL+GPL |
+ CDDL+GPL License |
+ CDDL + GPLv2 with classpath exception
+ </licenseMerge>
+ <licenseMerge>
+ Eclipse Public License, Version 1.0 |
+ Eclipse Public License 1.0 |
+ Eclipse Public License - v 1.0
+ </licenseMerge>
+ <licenseMerge>
+ Eclipse Public License, Version 2.0 |
+ EPL-2.0 |
+ EPL 2.0
+ </licenseMerge>
+ <licenseMerge>
+ Eclipse Distribution License, Version 1.0 |
+ Eclipse Distribution License - v 1.0 |
+ EDL 1.0
+ </licenseMerge>
+ <licenseMerge>
+ MIT License |
+ The MIT License |
+ MIT license |
+ MIT X11 License |
+ MIT
+ </licenseMerge>
+ <licenseMerge>
+ The GNU General Public License (GPL), Version 2, With Classpath Exception |
+ GPL2 w/ CPE
+ </licenseMerge>
+ <licenseMerge>
+ GNU Lesser General Public License (LGPL), Version 2.1 |
+ LGPL, version 2.1 |
+ GNU Lesser General Public License Version 2.1 |
+ GNU Lesser General Public License, version 2.1
+ </licenseMerge>
+ <licenseMerge>
+ Common Public License Version 1.0 |
+ Common Public License - v 1.0
+ </licenseMerge>
+ </licenseMerges>
+ </configuration>
+ </plugin>
</plugins>
</build>
diff --git a/src/license/NOTICE.template b/src/license/NOTICE.template
new file mode 100644
index 0000000..ec3e1d4
--- /dev/null
+++ b/src/license/NOTICE.template
@@ -0,0 +1,7 @@
+Apache OpenNLP
+Copyright 2021-2025 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+============================================================================
\ No newline at end of file
diff --git a/src/license/THIRD-PARTY.properties b/src/license/THIRD-PARTY.properties
new file mode 100644
index 0000000..910618d
--- /dev/null
+++ b/src/license/THIRD-PARTY.properties
@@ -0,0 +1,16 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+#
\ No newline at end of file