handle migration
diff --git a/nbm-shared/.asf.yaml b/.asf.yaml
similarity index 90%
rename from nbm-shared/.asf.yaml
rename to .asf.yaml
index ef8f2c7..23d956d 100644
--- a/nbm-shared/.asf.yaml
+++ b/.asf.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
github:
- description: "Apache NetBeans Maven Utils shared lib"
+ description: "This repository have been merged to https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/"
homepage: https://netbeans.apache.org/
labels:
- netbeans
diff --git a/README.md b/README.md
new file mode 100755
index 0000000..b30128f
--- /dev/null
+++ b/README.md
@@ -0,0 +1,27 @@
+<!--
+
+ 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.
+
+-->
+
+# Migration Notice
+
+Content of this repository is archived and migrated to https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/
+
+
+
diff --git a/nbm-shared/.github/dependabot.yml b/nbm-shared/.github/dependabot.yml
deleted file mode 100644
index 06f98d8..0000000
--- a/nbm-shared/.github/dependabot.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-# 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.
-
-version: 2
-updates:
- - package-ecosystem: "maven"
- directory: "/"
- target-branch: "master"
- schedule:
- interval: "daily"
-
diff --git a/nbm-shared/.gitignore b/nbm-shared/.gitignore
deleted file mode 100644
index 6dd1416..0000000
--- a/nbm-shared/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-/target/
-/nbactions.xml
-/nb-configuration.xml
\ No newline at end of file
diff --git a/nbm-shared/Jenkinsfile.groovy b/nbm-shared/Jenkinsfile.groovy
deleted file mode 100644
index 6eb19ef..0000000
--- a/nbm-shared/Jenkinsfile.groovy
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * 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.
- */
-
-asfStandardUtilitiesBuild()
diff --git a/nbm-shared/LICENSE b/nbm-shared/LICENSE
deleted file mode 100644
index de4b130..0000000
--- a/nbm-shared/LICENSE
+++ /dev/null
@@ -1,204 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- 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.
-
-
diff --git a/nbm-shared/NOTICE b/nbm-shared/NOTICE
deleted file mode 100755
index 80bd77e..0000000
--- a/nbm-shared/NOTICE
+++ /dev/null
@@ -1,13 +0,0 @@
-Apache NetBeans Utilities
-Copyright 2018-2022 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
-
-The code is based on Mojohaus Maven Utilities, that has been kindly donated to the Apache
-Software Foundation by Mojohaus Maven Utilities.
-
-Inceptor of the tools was Milos Kleint from the Mojohaus Maven Utilities in 2006
-Import was done from: https://github.com/mojohaus/nbm-maven-plugin/tree/80021ab48705a199513abdf2ad9fc339a8c000e2
-
-
diff --git a/nbm-shared/README.md b/nbm-shared/README.md
deleted file mode 100755
index c94d6e8..0000000
--- a/nbm-shared/README.md
+++ /dev/null
@@ -1,37 +0,0 @@
-<!--
-
- 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.
-
--->
-
-# Apache NetBeans Maven Utilities Shared lib
-
-[![Build Status](https://ci-builds.apache.org/buildStatus/icon?job=Netbeans%2Fnetbeans-maven-TLP%2Fnetbeans-mavenutils-nbm-shared%2Fmaster)](https://ci-builds.apache.org/job/Netbeans/job/netbeans-maven-TLP/job/netbeans-mavenutils-nbm-shared/job/master/)
-
-[Documentation Site](https://bits.netbeans.org/mavenutilities/nbm-shared)
-
-### Get In Touch
-
-[Subscribe](mailto:users-subscribe@netbeans.apache.org) or [mail](mailto:users@netbeans.apache.org) the [users@netbeans.apache.org](mailto:users@netbeans.apache.org) list - Ask questions, find answers, and also help other users.
-
-[Subscribe](mailto:dev-subscribe@netbeans.apache.org) or [mail](mailto:dev@netbeans.apache.org) the [dev@netbeans.apache.org](mailto:dev@netbeans.apache.org) list - Join developement discussions, propose new ideas and connect with contributors.
-
-### Reporting Bugs
-
-Bugs should be reported to https://issues.apache.org/jira/projects/NETBEANS/issues/ using the component **mavenutilities**
-
diff --git a/nbm-shared/pom.xml b/nbm-shared/pom.xml
deleted file mode 100644
index 6472260..0000000
--- a/nbm-shared/pom.xml
+++ /dev/null
@@ -1,253 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-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.
--->
-
-<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">
- <parent>
- <groupId>org.apache.netbeans.utilities</groupId>
- <artifactId>utilities-parent</artifactId>
- <version>2</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
-
- <artifactId>nb-shared</artifactId>
- <version>1.5-SNAPSHOT</version>
- <packaging>jar</packaging>
-
- <name>Apache NetBeans Maven Utilities - NBM Shared lib Plugins Utilities</name>
- <description>Library used by nb-repository-plugin and nbm-maven-plugin to help building Apache NetBeans installation (and other sources).
- </description>
- <inceptionYear>2005</inceptionYear>
- <url>https://bits.netbeans.org/mavenutilities/nbm-shared</url>
- <issueManagement>
- <system>jira</system>
- <url>https://issues.apache.org/jira/browse/NETBEANS</url>
- </issueManagement>
- <licenses>
- <license>
- <name>Apache License 2</name>
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
- <distribution>repo</distribution>
- </license>
- </licenses>
- <scm>
- <connection>scm:git:https://gitbox.apache.org/repos/asf/netbeans-mavenutils-nbm-shared.git</connection>
- <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/netbeans-mavenutils-nbm-shared.git</developerConnection>
- <url>https://github.com/apache/netbeans-mavenutils-nbm-shared</url>
- <tag>HEAD</tag>
- </scm>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>3.1.2</version>
- <dependencies>
- <dependency>
- <groupId>com.puppycrawl.tools</groupId>
- <artifactId>checkstyle</artifactId>
- <!-- last jdk 8 compatible version -->
- <version>9.3</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>animal-sniffer-maven-plugin</artifactId>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>check</goal>
- </goals>
- <configuration>
- <signature>
- <groupId>org.codehaus.mojo.signature</groupId>
- <artifactId>java16</artifactId>
- <version>1.0</version>
- </signature>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- <reporting>
- <plugins>
- <!--<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <reportSets>
- <reportSet>
- <reports>
- <report>plugin-management</report>
- <report>plugins</report>
- <report>project-team</report>
- <report>scm</report>
- <report>summary</report>
-
- </reports>
- </reportSet>
- </reportSets>
- </plugin>-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-changes-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- <!-- <onlyCurrentVersion>true</onlyCurrentVersion>-->
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <quiet>true</quiet>
- <source>8</source>
- <links>
- <!--<link>http://download-llnw.oracle.com/javaee/1.4/api/</link>-->
- <link>https://commons.apache.org/proper/commons-collections/javadocs/api-3.2.2/</link>
- <link>http://commons.apache.org/dbcp/apidocs/</link>
- <link>http://commons.apache.org/fileupload/apidocs/</link>
- <link>http://commons.apache.org/logging/apidocs/</link>
- <link>http://commons.apache.org/pool/apidocs/</link>
- <link>http://junit.sourceforge.net/javadoc/</link>
- <link>http://logging.apache.org/log4j/1.2/apidocs/</link>
- <link>https://velocity.apache.org/engine/1.5/apidocs/</link>
- <link>http://maven.apache.org/ref/${maven.version}/maven-artifact/apidocs/</link>
- <link>http://maven.apache.org/ref/${maven.version}/maven-model/apidocs/</link>
- <link>http://maven.apache.org/ref/${maven.version}/maven-plugin-api/apidocs/</link>
- <link>https://maven.apache.org/shared/maven-reporting-api/apidocs/</link>
- <link>http://maven.apache.org/ref/${maven.version}/maven-settings/apidocs/</link>
- </links>
- <tagletArtifacts>
- <tagletArtifact>
- <groupId>org.apache.maven.plugin-tools</groupId>
- <artifactId>maven-plugin-tools-javadoc</artifactId>
- </tagletArtifact>
- <tagletArtifact>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-component-javadoc</artifactId>
- <version>1.5.5</version>
- </tagletArtifact>
- </tagletArtifacts>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jxr-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-pmd-plugin</artifactId>
- <configuration>
- <targetJdk>1.6</targetJdk>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-linkcheck-plugin</artifactId>
- <configuration>
- <excludedLinks>
- <excludedLink>../../images/codehaus-small.png</excludedLink>
- <excludedLink>../../images/mojo_logo.png</excludedLink>
- <excludedLink>plugin-info.html</excludedLink>
- </excludedLinks>
- <!--<excludedPages>
- <excludedPage>dependencies.html</excludedPage>
- </excludedPages>-->
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>taglist-maven-plugin</artifactId>
- <version>3.0.0</version>
- </plugin>
- <plugin>
- <groupId>org.apache.rat</groupId>
- <artifactId>apache-rat-plugin</artifactId>
- <version>0.13</version>
- </plugin>
- </plugins>
- </reporting>
- <!--profiles>
- <profile>
- <id>tools.jar</id>
- <activation>
- <file>
- <exists>${java.home}/../lib/tools.jar</exists>
- </file>
- </activation>
- <dependencies>
- <dependency>
- <groupId>com.sun</groupId>
- <artifactId>tools</artifactId>
- <version>1.5.0</version>
- <scope>system</scope>
- <systemPath>${java.home}/../lib/tools.jar</systemPath>
- </dependency>
- </dependencies>
- </profile>
- </profiles-->
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>3.8.5</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant</artifactId>
- <version>1.10.12</version>
- <scope>compile</scope>
- <type>jar</type>
- </dependency>
- </dependencies>
- <properties>
- <mojo.java.target>1.6</mojo.java.target>
- <maven.version>3.8.5</maven.version>
- </properties>
-</project>
diff --git a/nbm-shared/src/main/java/org/apache/netbeans/nbm/utils/AbstractNetbeansMojo.java b/nbm-shared/src/main/java/org/apache/netbeans/nbm/utils/AbstractNetbeansMojo.java
deleted file mode 100644
index 36f9fcb..0000000
--- a/nbm-shared/src/main/java/org/apache/netbeans/nbm/utils/AbstractNetbeansMojo.java
+++ /dev/null
@@ -1,139 +0,0 @@
-package org.apache.netbeans.nbm.utils;
-
-/*
- * 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.
- */
-
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.tools.ant.BuildEvent;
-import org.apache.tools.ant.BuildListener;
-import org.apache.tools.ant.Project;
-import org.apache.tools.ant.taskdefs.Taskdef;
-
-/**
- * Abstract goal intended for nbm-maven-plugin and nb-repository.
- */
-public abstract class AbstractNetbeansMojo
- extends AbstractMojo
-{
-
- /**
- * Creates a project initialized with the same logger.
- * @return project
- */
- protected final Project antProject()
- {
- Project antProject = new Project();
- antProject.init();
- antProject.addBuildListener( new BuildListener()
- {
- @Override
- public void buildStarted( BuildEvent be )
- {
- getLog().debug( "Ant build started" );
- }
- @Override
- public void buildFinished( BuildEvent be )
- {
- if ( be.getException() != null )
- {
- getLog().error( be.getMessage(), be.getException() );
- }
- else
- {
- getLog().debug( "Ant build finished" );
- }
- }
- @Override
- public void targetStarted( BuildEvent be )
- {
- getLog().info( be.getTarget().getName() + ":" );
- }
- @Override
- public void targetFinished( BuildEvent be )
- {
- getLog().debug( be.getTarget().getName() + " finished" );
- }
- @Override
- public void taskStarted( BuildEvent be )
- {
- getLog().debug( be.getTask().getTaskName() + " started" );
- }
- @Override
- public void taskFinished( BuildEvent be )
- {
- getLog().debug( be.getTask().getTaskName() + " finished" );
- }
- @Override
- public void messageLogged( BuildEvent be )
- {
- switch ( be.getPriority() )
- {
- case Project.MSG_ERR:
- getLog().error( be.getMessage() );
- break;
- case Project.MSG_WARN:
- getLog().warn( be.getMessage() );
- break;
- case Project.MSG_INFO:
- getLog().info( be.getMessage() );
- break;
- default:
- getLog().debug( be.getMessage() );
- }
- }
- } );
- return antProject;
- }
-
- protected final Project registerNbmAntTasks()
- {
- Project antProject = antProject();
-
- Taskdef taskdef = (Taskdef) antProject.createTask( "taskdef" );
- taskdef.setClassname( "org.netbeans.nbbuild.MakeListOfNBM" );
- taskdef.setName( "genlist" );
- taskdef.execute();
-
- taskdef = (Taskdef) antProject.createTask( "taskdef" );
- taskdef.setClassname( "org.netbeans.nbbuild.MakeNBM" );
- taskdef.setName( "makenbm" );
- taskdef.execute();
-
- taskdef = (Taskdef) antProject.createTask( "taskdef" );
- taskdef.setClassname( "org.netbeans.nbbuild.MakeUpdateDesc" );
- taskdef.setName( "updatedist" );
- taskdef.execute();
-
- taskdef = (Taskdef) antProject.createTask( "taskdef" );
- taskdef.setClassname( "org.netbeans.nbbuild.CreateModuleXML" );
- taskdef.setName( "createmodulexml" );
- taskdef.execute();
-
- taskdef = (Taskdef) antProject.createTask( "taskdef" );
- taskdef.setClassname( "org.netbeans.nbbuild.JHIndexer" );
- taskdef.setName( "jhindexer" );
- taskdef.execute();
-
- return antProject;
- }
-
-
-
-}
diff --git a/nbm-shared/src/main/java/org/apache/netbeans/nbm/utils/ExamineManifest.java b/nbm-shared/src/main/java/org/apache/netbeans/nbm/utils/ExamineManifest.java
deleted file mode 100644
index a993206..0000000
--- a/nbm-shared/src/main/java/org/apache/netbeans/nbm/utils/ExamineManifest.java
+++ /dev/null
@@ -1,516 +0,0 @@
-package org.apache.netbeans.nbm.utils;
-
-/*
- * 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.
- */
-
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import java.util.StringTokenizer;
-import java.util.jar.Attributes;
-import java.util.jar.JarFile;
-import java.util.jar.Manifest;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.logging.Log;
-import org.codehaus.plexus.util.StringUtils;
-
-/**
- * Tag examines the manifest of a jar file and retrieves NetBeans specific information.
- * @author Milos Kleint
- *
- */
-public class ExamineManifest
-{
-
- private final Log logger;
- private File jarFile;
- private File manifestFile;
- private boolean netBeansModule;
- private boolean osgiBundle;
-
- private boolean localized;
- private String specVersion;
- private String implVersion;
- private String module;
- private String locBundle;
- private String classpath;
- private boolean publicPackages;
- private boolean populateDependencies = false;
- private List<String> dependencyTokens = Collections.<String>emptyList();
- private Set<String> osgiImports = Collections.<String>emptySet();
- private Set<String> osgiExports = Collections.<String>emptySet();
-
- private boolean friendPackages = false;
- private List<String> friends = Collections.<String>emptyList();
- private List<String> packages = Collections.<String>emptyList();
-
- private List<String> requires = Collections.<String>emptyList();
-
- private List<String> provides = Collections.<String>emptyList();
- //that's the default behaviour without the special manifest entry
- private boolean bundleAutoload = true;
-
- public ExamineManifest( Log logger )
- {
- this.logger = logger;
- }
-
- public void checkFile()
- throws MojoExecutionException
- {
-
- resetExamination();
-
- Manifest mf = null;
- if ( jarFile != null )
- {
- JarFile jar = null;
- try
- {
- jar = new JarFile( jarFile );
- mf = jar.getManifest();
- }
- catch ( Exception exc )
- {
- throw new MojoExecutionException( "Could not open " + jarFile + ": " + exc.getMessage(), exc );
- }
- finally
- {
- if ( jar != null )
- {
- try
- {
- jar.close();
- }
- catch ( IOException io )
- {
- throw new MojoExecutionException( io.getMessage(), io );
- }
- }
- }
- }
- else if ( manifestFile != null )
- {
- InputStream stream = null;
- try
- {
- stream = new FileInputStream( manifestFile );
- mf = new Manifest( stream );
- }
- catch ( Exception exc )
- {
- throw new MojoExecutionException( exc.getMessage(), exc );
- }
- finally
- {
- if ( stream != null )
- {
- try
- {
- stream.close();
- }
- catch ( IOException io )
- {
- throw new MojoExecutionException( io.getMessage(), io );
- }
- }
- }
- }
- if ( mf != null )
- {
- processManifest( mf );
- }
- else
- {
- //MNBMODULE-22
- File source = manifestFile;
- if ( source == null )
- {
- source = jarFile;
- }
- if ( source == null )
- {
- logger.debug( "No manifest to examine" );
- }
- else
- {
- logger.debug( "Cannot find manifest entries in " + source.getAbsolutePath() );
- }
- }
- }
-
- private void resetExamination()
- {
- setNetBeansModule( false );
- this.localized = false;
- this.specVersion = null;
- this.implVersion = null;
- this.module = null;
- this.locBundle = null;
- this.publicPackages = false;
- classpath = "";
- }
-
- private void processManifest( Manifest mf )
- {
- Attributes attrs = mf.getMainAttributes();
- this.module = attrs.getValue( "OpenIDE-Module" );
- setNetBeansModule( getModule() != null );
- if ( isNetBeansModule() )
- {
- this.locBundle = attrs.getValue( "OpenIDE-Module-Localizing-Bundle" );
- this.localized = locBundle != null;
- this.specVersion = attrs.getValue( "OpenIDE-Module-Specification-Version" );
- this.implVersion = attrs.getValue( "OpenIDE-Module-Implementation-Version" );
- String cp = attrs.getValue( Attributes.Name.CLASS_PATH );
- classpath = cp == null ? "" : cp;
- String value = attrs.getValue( "OpenIDE-Module-Public-Packages" );
- String frList = attrs.getValue( "OpenIDE-Module-Friends" );
- if ( value == null || value.trim().equals( "-" ) )
- {
- this.publicPackages = false;
- }
- else
- {
- if ( frList != null )
- {
- this.publicPackages = false;
- String[] friendList = StringUtils.stripAll( StringUtils.split( frList, "," ) );
- friendPackages = true;
- friends = Arrays.asList( friendList );
- }
- else
- {
- this.publicPackages = true;
- }
- String[] packageList = StringUtils.stripAll( StringUtils.split( value, "," ) );
- packages = Arrays.asList( packageList );
- }
- if ( populateDependencies )
- {
- String deps = attrs.getValue( "OpenIDE-Module-Module-Dependencies" );
- if ( deps != null )
- {
- StringTokenizer tokens = new StringTokenizer( deps, "," );
- List<String> depList = new ArrayList<String>();
- while ( tokens.hasMoreTokens() )
- {
- String tok = tokens.nextToken();
- //we are just interested in specification and loose dependencies.
- int spec = tok.indexOf( '>' );
- int impl = tok.indexOf( '=' );
- if ( spec > 0 )
- {
- tok = tok.substring( 0, spec );
- }
- else if ( impl > 0 )
- {
- tok = tok.substring( 0, impl );
- }
- int slash = tok.indexOf( '/' );
- if ( slash > 0 )
- {
- tok = tok.substring( 0, slash );
- }
- depList.add( tok.trim().intern() );
- }
- this.dependencyTokens = depList;
- }
- String req = attrs.getValue( "OpenIDE-Module-Requires" );
- String prov = attrs.getValue( "OpenIDE-Module-Provides" );
- String needs = attrs.getValue( "OpenIDE-Module-Needs" );
- if ( prov != null )
- {
- provides = Arrays.asList( StringUtils.stripAll( StringUtils.split( prov, "," ) ) );
- }
- if ( req != null || needs != null )
- {
- requires = new ArrayList<String>();
- if ( req != null )
- {
- requires.addAll( Arrays.asList( StringUtils.stripAll( StringUtils.split( req, "," ) ) ) );
- }
- if ( needs != null )
- {
- requires.addAll( Arrays.asList( StringUtils.stripAll( StringUtils.split( needs, "," ) ) ) );
- }
- }
- }
-
- }
- else
- {
-
- //check osgi headers first, let nb stuff override it, making nb default
- String bndName = attrs.getValue( "Bundle-SymbolicName" );
- if ( bndName != null )
- {
- this.osgiBundle = true;
- this.module =
- bndName./* MNBMODULE-125 */replaceFirst( " *;.+", "" )./* MNBMODULE-96 */replace( '-', '_' );
- this.specVersion = attrs.getValue( "Bundle-Version" );
- String exp = attrs.getValue( "Export-Package" );
- String autoload = attrs.getValue( "Nbm-Maven-Plugin-Autoload" );
- if ( autoload != null )
- {
- bundleAutoload = Boolean.parseBoolean( autoload );
- }
- this.publicPackages = exp != null;
- if ( populateDependencies )
- {
- //well, this doesn't appear to cover
- //the major way of declation dependencies in osgi - Import-Package
- String deps = attrs.getValue( "Require-Bundle" );
- if ( deps != null )
- {
- List<String> depList = new ArrayList<String>();
- // https://stackoverflow.com/questions/1757065
- // java-splitting-a-comma-separated-string-but-ignoring-commas-in-quotes
- for ( String piece : deps.split( ",(?=([^\"]*\"[^\"]*\")*[^\"]*$)" ) )
- {
- depList.add( piece.replaceFirst( ";.+", "" ).trim().intern() );
- }
- this.dependencyTokens = depList;
- }
- String imps = attrs.getValue( "Import-Package" );
- if ( imps != null )
- {
- Set<String> depList = new HashSet<String>();
- // https://stackoverflow.com/questions/1757065
- // java-splitting-a-comma-separated-string-but-ignoring-commas-in-quotes
- for ( String piece : imps.split( ",(?=([^\"]*\"[^\"]*\")*[^\"]*$)" ) )
- {
- depList.add( piece.replaceFirst( ";.+", "" ).trim().intern() );
- }
- this.osgiImports = depList;
- }
- String exps = attrs.getValue( "Export-Package" );
- if ( exps != null )
- {
- Set<String> depList = new HashSet<String>();
- // https://stackoverflow.com/questions/1757065
- // java-splitting-a-comma-separated-string-but-ignoring-commas-in-quotes
- for ( String piece : exps.split( ",(?=([^\"]*\"[^\"]*\")*[^\"]*$)" ) )
- {
- depList.add( piece.replaceFirst( ";.+", "" ).trim().intern() );
- }
- this.osgiExports = depList;
- }
-
- }
- }
- else
- {
-
- // for non-netbeans, non-osgi jars.
- this.specVersion = attrs.getValue( "Specification-Version" );
- this.implVersion = attrs.getValue( "Implementation-Version" );
- this.module = attrs.getValue( "Package" );
- this.publicPackages = false;
- classpath = "";
- /* if ( module != null )
- {
- // now we have the package to make it a module definition, add the version there..
- module = module + "/1";
- }
- */
- if ( getModule() == null )
- {
- // do we want to do that?
- this.module = attrs.getValue( "Extension-Name" );
- }
- }
- }
-
- }
-
- /**
- * The jar file to examine. It is exclusive with manifestFile.
- * @param jarFileLoc jar file
- */
- public void setJarFile( File jarFileLoc )
- {
- jarFile = jarFileLoc;
- }
-
- /**
- * Manifest file to be examined. It is exclusive with jarFile.
- * @param manifestFileLoc manifedt file
- */
- public void setManifestFile( File manifestFileLoc )
- {
- manifestFile = manifestFileLoc;
- }
-
- /**
- * Either call {@link #setJarFile} or {@link #setManifestFile} as appropriate.
- * @param artifactFileLoc a JAR or folder
- */
- public void setArtifactFile( File artifactFileLoc )
- {
- if ( artifactFileLoc.isFile() )
- {
- setJarFile( artifactFileLoc );
- }
- else if ( artifactFileLoc.isDirectory() )
- {
- File mani = new File( artifactFileLoc, "META-INF/MANIFEST.MF" );
- if ( mani.isFile() )
- {
- setManifestFile( mani );
- } // else e.g. jarprj/target/classes has no manifest, so nothing to examine
- }
- else
- {
- throw new IllegalArgumentException( artifactFileLoc.getAbsolutePath() );
- }
- }
-
- public String getClasspath()
- {
- return classpath;
- }
-
- public boolean isNetBeansModule()
- {
- return netBeansModule;
- }
-
- public void setNetBeansModule( boolean netBeansModule )
- {
- this.netBeansModule = netBeansModule;
- }
-
- public boolean isLocalized()
- {
- return localized;
- }
-
- public String getSpecVersion()
- {
- return specVersion;
- }
-
- public String getImplVersion()
- {
- return implVersion;
- }
-
- /**
- * Code name base of the module only.
- * Does not include any release version.
- * @return module code name base
- */
- public String getModule()
- {
- return module != null ? module.replaceFirst( "/\\d+$", "" ) : module;
- }
-
- /**
- * Full name of module: code name base, then optionally slash and major release version.
- * @return module full name
- */
- public String getModuleWithRelease()
- {
- return module;
- }
-
- /**
- * returns true if there are defined public packages and there is no friend
- * declaration.
- * @return true if has public package
- */
- public boolean hasPublicPackages()
- {
- return publicPackages;
- }
-
- public void setPopulateDependencies( boolean populateDependencies )
- {
- this.populateDependencies = populateDependencies;
- }
-
- public List<String> getDependencyTokens()
- {
- return dependencyTokens;
- }
-
- /**
- * returns true if both public packages and friend list are declared.
- * @return true if has friend package
- */
- public boolean hasFriendPackages()
- {
- return friendPackages;
- }
-
- public List<String> getFriends()
- {
- return friends;
- }
-
- /**
- * list of package statements from OpenIDE-Module-Public-Packages.
- * All items end with .*
- * @return list of package
- */
- public List<String> getPackages()
- {
- return packages;
- }
-
- public boolean isOsgiBundle()
- {
- return osgiBundle;
- }
-
- public Set<String> getOsgiImports()
- {
- return osgiImports;
- }
-
- public Set<String> getOsgiExports()
- {
- return osgiExports;
- }
-
- public List<String> getNetBeansRequiresTokens()
- {
- return requires;
- }
-
- public List<String> getNetBeansProvidesTokens()
- {
- return provides;
- }
-
- public boolean isBundleAutoload()
- {
- return bundleAutoload;
- }
-
-}
diff --git a/nbm-shared/src/site/site.xml b/nbm-shared/src/site/site.xml
deleted file mode 100644
index d936135..0000000
--- a/nbm-shared/src/site/site.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-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.
--->
-<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
- <skin>
- <groupId>org.apache.netbeans.utilities</groupId>
- <artifactId>maven-netbeans-skin</artifactId>
- <version>1.0-SNAPSHOT</version>
- </skin>
- <body>
- </body>
-</project>
-
diff --git a/nbm-shared/src/test/java/org/apache/netbeans/nbm/utils/ExamineManifestTest.java b/nbm-shared/src/test/java/org/apache/netbeans/nbm/utils/ExamineManifestTest.java
deleted file mode 100644
index 7552856..0000000
--- a/nbm-shared/src/test/java/org/apache/netbeans/nbm/utils/ExamineManifestTest.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.apache.netbeans.nbm.utils;
-
-/*
- * 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.
- */
-
-
-import java.io.File;
-import java.io.PrintWriter;
-import junit.framework.TestCase;
-import org.apache.maven.plugin.logging.SystemStreamLog;
-
-public class ExamineManifestTest extends TestCase
-{
-
- public ExamineManifestTest( String testName )
- {
- super(testName);
- }
-
- public void testDependencyParsing()
- throws Exception
- {
- ExamineManifest em = new ExamineManifest( new SystemStreamLog() );
- File mf = File.createTempFile( "ExamineManifestTes", ".mf" );
- mf.deleteOnExit();
- PrintWriter w = new PrintWriter( mf );
- w.println( "OpenIDE-Module: org.netbeans.modules.nbjunit/1" );
- w.println( "OpenIDE-Module-Module-Dependencies: org.netbeans.insane/1, org.netbeans.libs.junit4 > 1.0" );
- w.flush();
- w.close();
- em.setManifestFile( mf );
- em.setPopulateDependencies( true );
- em.checkFile();
- assertEquals( "[org.netbeans.insane, org.netbeans.libs.junit4]", em.getDependencyTokens().toString() );
- assertEquals( "org.netbeans.modules.nbjunit", em.getModule() );
- assertEquals( "org.netbeans.modules.nbjunit/1", em.getModuleWithRelease() );
- em = new ExamineManifest( new SystemStreamLog() );
- mf.delete();
- w = new PrintWriter( mf );
- w.println( "Manifest-Version: 1.0" );
- w.flush();
- w.close();
- em.setManifestFile( mf );
- em.setPopulateDependencies( true );
- em.checkFile();
- assertEquals( null, em.getModule() );
- assertEquals( null, em.getModuleWithRelease() );
- }
-
- public void testBundles()
- throws Exception
- {
- ExamineManifest em = new ExamineManifest( new SystemStreamLog() );
- File mf = File.createTempFile( "ExamineManifestTest", ".mf" );
- mf.deleteOnExit();
- PrintWriter w = new PrintWriter( mf );
- w.println( "Bundle-SymbolicName: org.eclipse.jdt.core; singleton:=true" );
- w.println( "Bundle-Version: 3.1.0" );
- w.println( "Export-Package: org.eclipse.jdt.core," );
- w.println( " org.eclipse.jdt.internal.formatter.old;x-internal:=true" );
- w.println( "Require-Bundle: org.eclipse.equinox.registry;bundle-version=\"[3.4.0,4." );
- w.println( " 0.0)\",org.eclipse.equinox.common;bundle-version=\"[3.2.0,4.0.0)\"" );
- w.flush();
- w.close();
- em.setManifestFile( mf );
- em.setPopulateDependencies( true );
- em.checkFile();
- assertEquals( "org.eclipse.jdt.core", em.getModule() );
- assertEquals( "3.1.0", em.getSpecVersion() );
- assertTrue( em.hasPublicPackages() );
- assertEquals( "[org.eclipse.equinox.registry, org.eclipse.equinox.common]", em.getDependencyTokens().toString() );
- }
-
-}