You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ks...@apache.org on 2015/10/29 21:35:18 UTC
[13/13] servicemix-maven-plugins git commit: Deprecated plugins
removed
Deprecated plugins removed
Project: http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/repo
Commit: http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/commit/681882ee
Tree: http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/tree/681882ee
Diff: http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/diff/681882ee
Branch: refs/heads/master
Commit: 681882ee806b8ca1b5055352b569ccafbbc3e9b6
Parents: 59c8628
Author: Krzysztof Sobkowiak <kr...@gmail.com>
Authored: Thu Oct 29 21:34:24 2015 +0100
Committer: Krzysztof Sobkowiak <kr...@gmail.com>
Committed: Thu Oct 29 21:34:24 2015 +0100
----------------------------------------------------------------------
.gitignore | 7 +
checksum-maven-plugin/LICENSE | 202 --
checksum-maven-plugin/NOTICE | 5 -
checksum-maven-plugin/pom.xml | 154 -
.../plugin/checksum/ChecksumValidatorMojo.java | 434 ---
checksum-maven-plugin/src/site/apt/index.apt | 61 -
checksum-maven-plugin/src/site/apt/usage.apt | 98 -
checksum-maven-plugin/src/site/site.xml | 30 -
docs-maven-plugin/LICENSE | 203 --
docs-maven-plugin/NOTICE | 9 -
docs-maven-plugin/pom.xml | 82 -
.../docs/ConfluenceToDocbookMojo.java | 114 -
.../org/apache/servicemix/docs/SnippetMojo.java | 69 -
.../docs/confluence/ConfluenceConverter.java | 43 -
.../docs/confluence/ConfluenceLanguage.java | 451 ---
.../docs/confluence/DocBookDocumentBuilder.java | 645 ----
.../servicemix/docs/snippet/SnippetHandler.java | 205 --
.../apache/servicemix/docs/SnippetMojoTest.java | 103 -
.../docs/confluence/ConfluenceDocumentTest.java | 95 -
docs-maven-plugin/src/test/resources/Test.java | 32 -
docs-maven-plugin/src/test/resources/Test.xml | 19 -
.../servicemix/docs/confluence/code-blocks.wiki | 23 -
.../servicemix/docs/confluence/code-blocks.xml | 30 -
.../servicemix/docs/confluence/document1.wiki | 7 -
.../servicemix/docs/confluence/document1.xml | 12 -
.../servicemix/docs/confluence/document2.wiki | 9 -
.../servicemix/docs/confluence/document2.xml | 12 -
.../servicemix/docs/confluence/images.wiki | 6 -
.../servicemix/docs/confluence/images.xml | 14 -
.../servicemix/docs/confluence/links.wiki | 26 -
.../apache/servicemix/docs/confluence/links.xml | 56 -
.../servicemix/docs/confluence/lists.wiki | 20 -
.../apache/servicemix/docs/confluence/lists.xml | 65 -
.../servicemix/docs/confluence/tables.wiki | 7 -
.../servicemix/docs/confluence/tables.xml | 28 -
features-maven-plugin/LICENSE | 203 --
features-maven-plugin/NOTICE | 9 -
features-maven-plugin/pom.xml | 134 -
.../tooling/features/AddFeaturesToRepoMojo.java | 327 ---
.../features/GenerateFeaturesFileMojo.java | 479 ---
.../features/GenerateFeaturesXmlMojo.java | 578 ----
.../features/GraphArtifactCollector.java | 435 ---
.../tooling/features/MojoSupport.java | 299 --
.../servicemix/tooling/features/Node.java | 56 -
.../features/ResolutionListenerImpl.java | 161 -
.../src/main/resources/config.properties | 127 -
.../features/GenerateFeaturesFileMojoTest.java | 105 -
.../features/GenerateFeaturesXmlMojoTest.java | 48 -
jbi-maven-plugin/.gitignore | 5 -
jbi-maven-plugin/LICENSE | 203 --
jbi-maven-plugin/NOTICE | 9 -
jbi-maven-plugin/pom.xml | 269 --
.../plugin/jbi/AbstractDeployableMojo.java | 96 -
.../plugin/jbi/AbstractDescriptorWriter.java | 88 -
.../maven/plugin/jbi/AbstractJbiMojo.java | 376 ---
.../maven/plugin/jbi/DependencyInformation.java | 98 -
.../jbi/GenerateComponentDescriptorMojo.java | 281 --
.../maven/plugin/jbi/GenerateComponentMojo.java | 233 --
.../plugin/jbi/GenerateDependsFileMojo.java | 104 -
.../GenerateServiceAssemblyDescriptorMojo.java | 489 ----
.../plugin/jbi/GenerateServiceAssemblyMojo.java | 153 -
.../jbi/GenerateServiceUnitDescriptorMojo.java | 277 --
.../plugin/jbi/GenerateServiceUnitMojo.java | 208 --
.../GenerateSharedLibraryDescriptorMojo.java | 177 --
.../plugin/jbi/GenerateSharedLibraryMojo.java | 185 --
.../maven/plugin/jbi/IsDeployedTask.java | 76 -
.../jbi/JbiComponentDescriptorWriter.java | 130 -
.../maven/plugin/jbi/JbiPluginException.java | 37 -
.../plugin/jbi/JbiProjectDeployerMojo.java | 414 ---
.../maven/plugin/jbi/JbiResolutionListener.java | 196 --
.../jbi/JbiServiceAssemblyDescriptorWriter.java | 179 --
.../plugin/jbi/JbiServiceFileAnalyzer.java | 118 -
.../jbi/JbiServiceUnitDescriptorWriter.java | 127 -
.../jbi/JbiSharedLibraryDescriptorWriter.java | 99 -
.../plugin/jbi/MakeServiceMixDirsMojo.java | 105 -
.../plugin/jbi/ServiceMixEmbeddedMojo.java | 84 -
.../maven/plugin/jbi/ServiceMixMojo.java | 120 -
.../maven/plugin/jbi/XmlDescriptorHelper.java | 91 -
.../resources/META-INF/plexus/components.xml | 164 --
.../src/main/resources/log4j.properties | 42 -
jbi-maven-plugin/src/main/scripts/jbi.build.xml | 125 -
jbi-maven-plugin/src/main/scripts/jbi.mojos.xml | 1551 ----------
.../plugin/jbi/AbstractDeployableMojoTest.java | 78 -
.../plugin/jbi/DependencyInformationTest.java | 35 -
.../jbi/JbiComponentDescriptorWriterTest.java | 128 -
.../plugin/jbi/JbiServiceFileAnalyzerTest.java | 52 -
.../jbi/JbiServiceUnitDescriptorWriterTest.java | 203 --
.../src/test/resources/jbi-services.xml | 16 -
.../src/test/resources/log4j-tests.properties | 41 -
maven-plugins-pom/target/.plxarc | 1 +
maven-plugins-pom/target/legal.xml | 1345 +++++++++
maven-plugins-pom/target/legal/legal.xml | 1345 +++++++++
.../META-INF/DEPENDENCIES | 11 +
.../META-INF/LICENSE | 202 ++
.../META-INF/NOTICE | 8 +
pom.xml | 7 +-
res-maven-plugin/LICENSE | 203 --
res-maven-plugin/NOTICE | 9 -
res-maven-plugin/pom.xml | 142 -
.../plugin/res/InterpolationFilterReader.java | 204 --
.../servicemix/maven/plugin/res/ResMojo.java | 136 -
servicemix-build/LICENSE | 2754 ------------------
servicemix-build/NOTICE | 198 --
servicemix-build/pom.xml | 101 -
.../maven/plugin/legal/LegalMojo.java | 85 -
.../maven/plugin/xsd/SpringSchemasMojo.java | 182 --
.../src/main/resources/notice-supplements.xml | 282 --
.../main/resources/smx-checkstyle-header.txt | 18 -
.../resources/smx-checkstyle-suppressions.xml | 49 -
.../src/main/resources/smx-checkstyle.xml | 286 --
.../src/main/resources/smx-eclipse-checkstyle | 26 -
.../resources/smx-eclipse-code-conventions.xml | 268 --
.../src/main/resources/smx-eclipse-pmd | 23 -
.../src/main/resources/smx-pmd-ruleset.xml | 190 --
target/.plxarc | 1 +
.../META-INF/DEPENDENCIES | 11 +
.../META-INF/LICENSE | 202 ++
.../META-INF/NOTICE | 8 +
xfire-maven-plugin/LICENSE | 203 --
xfire-maven-plugin/NOTICE | 9 -
xfire-maven-plugin/pom.xml | 188 --
.../maven/plugin/xfire/WsdlgenMojo.java | 305 --
.../maven/plugin/xfire/WsgenMojo.java | 231 --
123 files changed, 3142 insertions(+), 19890 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..756c47f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+*.i??
+.idea
+target
+.project
+.classpath
+.DS_Store
+dependency-reduced-pom.xml
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/checksum-maven-plugin/LICENSE
----------------------------------------------------------------------
diff --git a/checksum-maven-plugin/LICENSE b/checksum-maven-plugin/LICENSE
deleted file mode 100755
index d645695..0000000
--- a/checksum-maven-plugin/LICENSE
+++ /dev/null
@@ -1,202 +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.
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/checksum-maven-plugin/NOTICE
----------------------------------------------------------------------
diff --git a/checksum-maven-plugin/NOTICE b/checksum-maven-plugin/NOTICE
deleted file mode 100644
index 8fea3f4..0000000
--- a/checksum-maven-plugin/NOTICE
+++ /dev/null
@@ -1,5 +0,0 @@
-Apache ServiceMix Copyright 2006-2008 Apache Software Foundation
-
-This product includes software developed by
-The Apache Software Foundation (http://www.apache.org/).
-
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/checksum-maven-plugin/pom.xml
----------------------------------------------------------------------
diff --git a/checksum-maven-plugin/pom.xml b/checksum-maven-plugin/pom.xml
deleted file mode 100644
index 655c88d..0000000
--- a/checksum-maven-plugin/pom.xml
+++ /dev/null
@@ -1,154 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/maven-v4_0_0.xsd">
-<!--
-
- 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.
--->
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>maven-plugins-pom</artifactId>
- <version>3</version>
- <relativePath>../maven-plugins-pom/pom.xml</relativePath>
- </parent>
-
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>checksum-maven-plugin</artifactId>
- <version>1.2-SNAPSHOT</version>
-
- <packaging>maven-plugin</packaging>
- <name>Apache ServiceMix :: Plugins :: Checksum Plugin</name>
-
- <scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/servicemix/maven-plugins/checksum-maven-plugin/trunk</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/servicemix/maven-plugins/checksum-maven-plugin/trunk</developerConnection>
- <url>http://svn.apache.org/viewcvs.cgi/servicemix/maven-plugins/checksum-maven-plugin/trunk</url>
- </scm>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0.9</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-project</artifactId>
- <version>2.0.9</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-archiver</artifactId>
- <version>2.3</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-utils</artifactId>
- <version>1.5.5</version>
- </dependency>
- <dependency>
- <groupId>net.sf.opencsv</groupId>
- <artifactId>opencsv</artifactId>
- <version>1.8</version>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.4</source>
- <target>1.4</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>release</id>
- <build>
- <plugins>
- <!-- We want to deploy the artifact to a staging location for perusal -->
- <plugin>
- <inherited>true</inherited>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>2.3</version>
- <configuration>
- <altDeploymentRepository>${deploy.altRepository}</altDeploymentRepository>
- <updateReleaseInfo>true</updateReleaseInfo>
- </configuration>
- </plugin>
- <!-- We want to sign the artifact, the POM, and all attached artifacts -->
- <plugin>
- <artifactId>maven-gpg-plugin</artifactId>
- <version>1.0-alpha-4</version>
- <configuration>
- <passphrase>${gpg.passphrase}</passphrase>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>sign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>deploy</id>
- <build>
- <defaultGoal>deploy</defaultGoal>
- <plugins>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.2</version>
- <executions>
- <execution>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <source>1.5</source>
- <attach>true</attach>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.0.2</version>
- <executions>
- <execution>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <attach>true</attach>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/checksum-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/checksum/ChecksumValidatorMojo.java
----------------------------------------------------------------------
diff --git a/checksum-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/checksum/ChecksumValidatorMojo.java b/checksum-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/checksum/ChecksumValidatorMojo.java
deleted file mode 100644
index a2589e2..0000000
--- a/checksum-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/checksum/ChecksumValidatorMojo.java
+++ /dev/null
@@ -1,434 +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.
- */
-package org.apache.servicemix.maven.plugin.checksum;
-
-import au.com.bytecode.opencsv.CSVReader;
-import au.com.bytecode.opencsv.CSVWriter;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.OutputStreamWriter;
-import java.security.MessageDigest;
-import java.security.NoSuchAlgorithmException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.factory.ArtifactFactory;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.artifact.resolver.ArtifactResolver;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-
-/**
- * Validates the checksums of the dependencies of the project
- * against the checksums.txt file.
- *
- * This plugin can also be used to add all the checksums of the
- * dependencies of the current build to the checksum.txt file.
- *
- * @requiresDependencyResolution
- * @goal validate
- * @phase validate
- * @author <a href="http://hiramchirino.com">Hiram Chirino</a>
- */
-public class ChecksumValidatorMojo extends AbstractMojo {
-
- static char hexTable[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
-
- /**
- * The maven project.
- *
- * @parameter expression="${project}"
- * @required
- * @readonly
- */
- protected MavenProject project;
-
- /**
- * Remote repositories which will be searched for source attachments.
- *
- * @parameter expression="${project.remoteArtifactRepositories}"
- * @required
- * @readonly
- */
- protected List remoteArtifactRepositories;
-
- /**
- * Local maven repository.
- *
- * @parameter expression="${localRepository}"
- * @required
- * @readonly
- */
- protected ArtifactRepository localRepository;
-
- /**
- * Artifact factory, needed to download source jars for inclusion in classpath.
- *
- * @component role="org.apache.maven.artifact.factory.ArtifactFactory"
- * @required
- * @readonly
- */
- protected ArtifactFactory artifactFactory;
-
- /**
- * Artifact resolver, needed to download source jars for inclusion in classpath.
- *
- * @component role="org.apache.maven.artifact.resolver.ArtifactResolver"
- * @required
- * @readonly
- */
- protected ArtifactResolver artifactResolver;
-
-
- /**
- * The file that holds dependency checksums.
- *
- * @parameter default-value="${basedir}/checksums.txt"
- */
- protected File checksums;
-
- /**
- * The checksum algorithm used to in the checksums.
- *
- * @parameter default-value="SHA-1"
- */
- private String checksumAlgorithm;
-
- /**
- * Should we generate the checksum file instead of validating against it?
- *
- * @parameter default-value="false"
- */
- private boolean generate;
-
- /**
- * Should the dependency artifacts be included in the checksum validation?
- *
- * @parameter default-value="true"
- */
- private boolean includeDependencyArtifacts;
-
- /**
- * Should the plugin artifacts be included in the checksum validation?
- *
- * @parameter default-value="true"
- */
- private boolean includePluginArtifacts;
-
- /**
- * Should the report artifacts be included in the checksum validation?
- *
- * @parameter default-value="true"
- */
- private boolean includeReportArtifacts;
-
- protected String key(Artifact pom) {
- StringBuffer sb = new StringBuffer();
- sb.append(pom.getGroupId());
- sb.append("/");
- sb.append(pom.getArtifactId());
- sb.append("/");
- sb.append(pom.getType());
- sb.append("/");
- sb.append(pom.getVersion());
- return sb.toString();
- }
-
- protected String keyAnyVersion(Artifact pom) {
- StringBuffer sb = new StringBuffer();
- sb.append(pom.getGroupId());
- sb.append("/");
- sb.append(pom.getArtifactId());
- sb.append("/");
- sb.append(pom.getType());
- sb.append("/");
- sb.append("*");
- return sb.toString();
- }
-
- protected Artifact getPomArtifact(Artifact artifact) {
- return artifactFactory.createProjectArtifact(artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion());
- }
-
- protected File resolve(Artifact artifact) throws MojoExecutionException {
- if( !artifact.isResolved() ) {
- try {
- artifactResolver.resolve(artifact, remoteArtifactRepositories, localRepository);
- } catch (Throwable e) {
- throw new MojoExecutionException("Could not resolve the artifact for " + artifact+": "+e.getMessage(), e);
- }
- }
- return artifact.getFile();
- }
-
- protected String checksum(File file) throws MojoExecutionException {
- try {
- MessageDigest md = MessageDigest.getInstance(checksumAlgorithm);
- FileInputStream is=null;
- try {
- is = new FileInputStream(file);
- byte buffer[] = new byte[1024*4];
- int c;
- while( (c=is.read(buffer)) >= 0 ) {
- md.update(buffer,0, c);
- }
- byte[] digest = md.digest();
-
- return toString(digest);
-
- } catch (IOException e) {
- throw new MojoExecutionException("Could read file: "+checksums);
- } finally {
- try {
- is.close();
- } catch (Throwable e) {
- }
- }
-
- } catch (NoSuchAlgorithmException e) {
- throw new MojoExecutionException("Invalid checksum algorithm: "+checksumAlgorithm, e);
- }
- }
-
- static String toString(byte[] digest) {
- StringBuilder rc = new StringBuilder(digest.length*2);
- for (int i = 0; i < digest.length; i++) {
- rc.append( hexTable[ ((digest[i]>>4) & 0x0F) ] ) ;
- rc.append( hexTable[ (digest[i] & 0x0F) ] ) ;
- }
- return rc.toString();
- }
-
- public void execute() throws MojoExecutionException {
- if( generate ) {
- generate();
- } else {
- validate();
- }
- }
-
- private void validate() throws MojoExecutionException {
- LinkedHashMap checksums = loadChecksums();
-
- boolean failed = false;
-
- for ( Iterator it = getArtifacts().iterator(); it.hasNext(); )
- {
- Artifact artifact = (Artifact) it.next();
- Artifact pom = getPomArtifact( artifact );
- failed |= validateArtifact(checksums, pom);
- failed |= validateArtifact(checksums, artifact);
- }
-
- if( failed ) {
- throw new MojoExecutionException("Invalid checksum(s) found.. see previous error messages for more details.");
- }
- }
-
- /**
- *
- * @param checksums
- * @param artifact
- * @return - true if validation failed.
- * @throws MojoExecutionException
- */
- private boolean validateArtifact(LinkedHashMap checksums, Artifact artifact) throws MojoExecutionException {
- File file = resolve(artifact);
- String sum = checksum(file);
- String key = key(artifact);
- List list = (List)checksums.get(key);
- if( list == null ) {
- list = (List)checksums.get(keyAnyVersion(artifact));
- }
- if( list == null ) {
- getLog().error("No checksum specified for "+key+" in "+this.checksums+" ("+sum+")" );
- return true;
- } else if ( !list.contains(sum) && !list.contains("*") ) {
- getLog().error("Checksum mismatch for "+key+" in "+this.checksums+" expected one of "+list+" but was "+sum );
- return true;
- }
- return false;
- }
-
- public void generate() throws MojoExecutionException {
-
- LinkedHashMap checksums = new LinkedHashMap();
-
- boolean modified=true;
- try {
- checksums = loadChecksums();
- modified=false;
- } catch ( MojoExecutionException e) {
- }
-
-
- for ( Iterator it = getArtifacts().iterator(); it.hasNext(); )
- {
- Artifact artifact = (Artifact) it.next();
- Artifact pom = getPomArtifact( artifact );
-
- modified |= generateArtifact(checksums, pom);
- modified |= generateArtifact(checksums, artifact);
-
- }
-
- if( modified ) {
- storeChecksums(checksums);
- }
- }
-
- private Set getArtifacts() {
- HashSet rc = new HashSet();
- if( includeDependencyArtifacts ) {
- rc.addAll(project.getDependencyArtifacts());
- }
- if( includePluginArtifacts ) {
- rc.addAll(project.getPluginArtifacts());
- }
- if( includeReportArtifacts ) {
- rc.addAll(project.getReportArtifacts());
- }
- return rc;
- }
-
- /**
- *
- * @param checksums
- * @param artifact
- * @return true if this method modified the checksums
- * @throws MojoExecutionException
- */
- private boolean generateArtifact(HashMap checksums, Artifact artifact) throws MojoExecutionException {
- File file = resolve(artifact);
- String sum = checksum(file);
- List sums = (List)checksums.get(key(artifact));
- if( sums == null ) {
- sums = (List)checksums.get(keyAnyVersion(artifact));
- }
- if( sums == null ) {
- sums = new ArrayList();
- sums.add(sum);
- checksums.put(key(artifact), sums);
- return true;
- } else {
- if ( !sums.contains(sum) && !sums.contains("*") ) {
- sums.add(sum);
- return true;
- }
- }
- return false;
- }
-
-
- protected LinkedHashMap loadChecksums() throws MojoExecutionException {
- LinkedHashMap rc = new LinkedHashMap();
-
- if( !checksums.canRead() ) {
- throw new MojoExecutionException("Cannot read checksum file: "+checksums);
- }
-
- InputStream is=null;
- try {
- is = new FileInputStream(checksums);
- CSVReader reader = new CSVReader(new InputStreamReader(is, "UTF-8"), '=');
- String [] line;
- while ((line = reader.readNext()) != null) {
- if( line.length > 0 ) {
- String key = line[0].trim();
- List values = new ArrayList(2);
- if( line.length > 1 ) {
- String[] t = line[1].split("\\|");
- for (int j = 0; j < t.length; j++) {
- values.add(t[j].toLowerCase().trim());
- }
- }
- rc.put(key, values);
- }
- }
- reader.close();
- } catch (IOException e) {
- throw new MojoExecutionException("Could not load checksum file: "+checksums);
- } finally {
- try {
- is.close();
- } catch (Throwable e) {
- }
- }
-
- return rc;
- }
-
- private void storeChecksums(LinkedHashMap checksums) throws MojoExecutionException {
- // Store it.
- FileOutputStream os=null;
- try {
- boolean exists = this.checksums.exists();
- os = new FileOutputStream(this.checksums);
- CSVWriter writer = new CSVWriter(new OutputStreamWriter(os, "UTF-8"), '=', CSVWriter.NO_QUOTE_CHARACTER);
-
- if( !exists ) {
- writer.writeNext(new String[]{"# This file uses a 'property file like' syntax"});
- writer.writeNext(new String[]{"# Entries are in the following format: 'artifact","checksum-1|...|checksum-n'"});
- writer.writeNext(new String[]{"# Where artifact follows the following format: 'group/id/type/version'"});
- writer.writeNext(new String[]{"# You can use '*' for the version or checksum"});
- writer.writeNext(new String[]{""});
- }
-
- for (Iterator iterator = checksums.entrySet().iterator(); iterator.hasNext();) {
- Map.Entry i = (Map.Entry)iterator.next();
- StringBuffer b = new StringBuffer();
- for (Iterator iterator2 = ((List)i.getValue()).iterator(); iterator2.hasNext();) {
- String s = (String)iterator2.next();
- if( b.length()!=0 ) {
- b.append("|");
- }
- b.append(s);
- }
- String key = (String)i.getKey();
- String value = b.toString();
- if( value.length()!=0 ) {
- writer.writeNext(new String[]{key,value});
- } else {
- writer.writeNext(new String[]{key});
- }
- }
- writer.close();
- } catch (Throwable e) {
- throw new MojoExecutionException("Could not write: "+this.checksums);
- } finally {
- try {
- os.close();
- } catch (Throwable ignore ) {
- }
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/checksum-maven-plugin/src/site/apt/index.apt
----------------------------------------------------------------------
diff --git a/checksum-maven-plugin/src/site/apt/index.apt b/checksum-maven-plugin/src/site/apt/index.apt
deleted file mode 100644
index ee3462b..0000000
--- a/checksum-maven-plugin/src/site/apt/index.apt
+++ /dev/null
@@ -1,61 +0,0 @@
- ------
- Introduction
- ------
- Hiram Chirino
- ------
-
-~~ 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.
-
-Maven 2 Checksum Plugin
-
- This plugin provides the capability validate and generate checksums
- of the project dependencies against a checksum file that is included
- as part of the project.
-
- By including the dependency checksums as part of your project source,
- you can detect any malicious tampering of artifacts that are downloaded
- from third party repositories.
-
-* Goals Overview
-
- * {{{validate-checksums-mojo.html}checksum-maven-plugin:validate}} is bound to the <<<validate>>> phase and
- is used to validate or generate the Project dependencies against the checksum.txt file.
-
-* Usage
-
- Instructions on how to use the Checksum Plugin can be found in the
- {{{usage.html}usage}} page.
-
-* Checksum File Format
-
- The checksum.txt file is a property file consisting of property keys in
- the '<<<$groupId/$artifactId-$version.$type>>>' format and key values being
- using '<<<|>>>' separated list of checksum values. A wild card, '<<<*>>>', may be
- used for the version or checksum. Wild cards are needed if the project is
- building against a SNAPSHOT dependency who's checksum changes too often.
- The wild card is also needed for dependencies who's version number changes
- as part of the release process.
-
- Example checksum.txt file:
-
-+-----
-log4j/log4j-1.2.15.pom=1483490805e8f86c21240958629905e733d079eb
-log4j/log4j-1.2.15.jar=f0a0d2e29ed910808c33135a3a5a51bba6358f7b|g0b0d3e22ed920806c3f1ffa3a5a5cb4a2398ca2
-org.apache.activemq/activemq-core-*.pom=*
-org.apache.activemq/activemq-core-*.jar=*
-+-----
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/checksum-maven-plugin/src/site/apt/usage.apt
----------------------------------------------------------------------
diff --git a/checksum-maven-plugin/src/site/apt/usage.apt b/checksum-maven-plugin/src/site/apt/usage.apt
deleted file mode 100644
index 7f39ac9..0000000
--- a/checksum-maven-plugin/src/site/apt/usage.apt
+++ /dev/null
@@ -1,98 +0,0 @@
- ------
- Usage
- ------
- Hiram Chirino
- ------
-
-~~ 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.
-
-Usage
-
-* Typical Checksum Plugin Configuration
-
-+-----
-<project>
- ...
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>checksum-maven-plugin</artifactId>
- <version>1.0-SNAPSHOT</version>
- <executions>
- <execution>
- <goals>
- <goal>validate</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- ...
-
- <profiles>
- ...
- <profile>
- <id>generate-checksums</id>
- <build>
- <defaultGoal>validate</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>checksum-maven-plugin</artifactId>
- <version>1.0-SNAPSHOT</version>
- <executions>
- <execution>
- <goals>
- <goal>validate</goal>
- </goals>
- <configuration>
- <generate>true</generate>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- ...
- </profiles>
-
-</project>
-+-----
-
-
-* Initializing/Adding Checksums to the checksum file
-
- If you use the configuration above, you will have a generate-checksums
- profile which will generate/update the checksums.txt file. You will
- typically do this when you first start using this plugin or you change
- dependencies in the project.
-
-+-----
-mvn -P generate-checksums
-+-----
-
-* Validating Checksums
-
- Checksums get validated once the build hits the <<<validate>>> build phase.
-
-+-----
-mvn install
-+-----
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/checksum-maven-plugin/src/site/site.xml
----------------------------------------------------------------------
diff --git a/checksum-maven-plugin/src/site/site.xml b/checksum-maven-plugin/src/site/site.xml
deleted file mode 100644
index b476583..0000000
--- a/checksum-maven-plugin/src/site/site.xml
+++ /dev/null
@@ -1,30 +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 name="Maven Shade Plugin">
- <body>
- <menu name="Overview">
- <item name="Introduction" href="index.html"/>
- <item name="Goals" href="plugin-info.html"/>
- <item name="Usage" href="usage.html"/>
- </menu>
- </body>
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/docs-maven-plugin/LICENSE
----------------------------------------------------------------------
diff --git a/docs-maven-plugin/LICENSE b/docs-maven-plugin/LICENSE
deleted file mode 100644
index 6b0b127..0000000
--- a/docs-maven-plugin/LICENSE
+++ /dev/null
@@ -1,203 +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.
-
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/docs-maven-plugin/NOTICE
----------------------------------------------------------------------
diff --git a/docs-maven-plugin/NOTICE b/docs-maven-plugin/NOTICE
deleted file mode 100644
index b6212c4..0000000
--- a/docs-maven-plugin/NOTICE
+++ /dev/null
@@ -1,9 +0,0 @@
- =========================================================================
- == NOTICE file for use with the Apache License, Version 2.0, ==
- == in this case for the Apache ServiceMix distribution. ==
- =========================================================================
-
- This product contains software developed by
- The Apache Software Foundation (http://www.apache.org/).
-
-
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/docs-maven-plugin/pom.xml
----------------------------------------------------------------------
diff --git a/docs-maven-plugin/pom.xml b/docs-maven-plugin/pom.xml
deleted file mode 100644
index 3b4ed47..0000000
--- a/docs-maven-plugin/pom.xml
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/maven-v4_0_0.xsd">
- <!--
- 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.
- -->
-
-
- <parent>
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>maven-plugins-pom</artifactId>
- <version>3</version>
- <relativePath>../maven-plugins-pom/pom.xml</relativePath>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
-
- <artifactId>docs-maven-plugin</artifactId>
- <version>0.1-SNAPSHOT</version>
- <packaging>maven-plugin</packaging>
-
- <name>Apache ServiceMix :: Plugins :: Maven2 Documentation Helper</name>
-
- <scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/servicemix/maven-plugins/docs-maven-plugin/trunnk</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/servicemix/maven-plugins/docs-maven-plugin/trunk</developerConnection>
- <url>http://svn.apache.org/viewcvs.cgi/servicemix/maven-plugins/docs-maven-plugin/trunk</url>
- </scm>
-
- <properties>
- <commons-io.version>1.4</commons-io.version>
- <junit.version>4.7</junit.version>
- <maven-plugin.version>2.0.9</maven-plugin.version>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>${maven-plugin.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-project</artifactId>
- <version>${maven-plugin.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>${commons-io.version}</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.eclipse.mylyn.wikitext</groupId>
- <artifactId>confluence.core</artifactId>
- <version>1.3.0.v20100608-0100-e3x</version>
- </dependency>
- <dependency>
- <groupId>org.eclipse.mylyn.wikitext</groupId>
- <artifactId>core</artifactId>
- <version>1.3.0.v20100608-0100-e3x</version>
- </dependency>
- </dependencies>
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/ConfluenceToDocbookMojo.java
----------------------------------------------------------------------
diff --git a/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/ConfluenceToDocbookMojo.java b/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/ConfluenceToDocbookMojo.java
deleted file mode 100644
index ec9634e..0000000
--- a/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/ConfluenceToDocbookMojo.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * Copyright 2001-2005 The Apache Software Foundation.
- *
- * 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.
- */
-package org.apache.servicemix.docs;
-
-import java.io.File;
-import java.io.FileFilter;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.Reader;
-import java.io.Writer;
-
-import org.apache.commons.io.FilenameUtils;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.servicemix.docs.confluence.ConfluenceConverter;
-
-/**
- * Convert pages in Confluence wiki markup to Docbook syntax
- *
- * @goal confluence-to-docbook
- * @phase generate-resources
- */
-public class ConfluenceToDocbookMojo extends AbstractMojo {
-
- /**
- * Location of the snippet cache
- * @parameter default-value="${basedir}/src/confluence"
- */
- protected File input;
-
- /**
- * Output directory for the Docbook sources
- * @parameter default-value="${project.build.directory}/docbkx/sources"
- */
- protected File output;
-
- /**
- * Filter to determine which files to convert
- */
- private final FileFilter filter = new DefaultFileFilterImpl();
-
- private final ConfluenceConverter converter = new ConfluenceConverter();
-
- public void execute() throws MojoExecutionException {
- doConvert(input);
- }
-
- private void doConvert(File directory) throws MojoExecutionException {
- if (directory.exists() && directory.isDirectory()) {
- for (File file : directory.listFiles(filter)) {
- if (file.isDirectory()) {
- doConvert(file);
- } else {
- getLog().info("Creating DocBook from " + file.getAbsolutePath());
- Reader reader = null;
- Writer writer = null;
- try {
- String relativePath = FilenameUtils.getPath(file.getAbsolutePath().replace(input.getAbsolutePath(), ""));
-
- File result = new File(output + File.separator + relativePath, file.getName() + ".xml");
- if (!result.getParentFile().exists()) {
- result.getParentFile().mkdirs();
- }
-
- reader = new FileReader(file);
- writer = new FileWriter(result);
-
- converter.convert(reader, writer);
- } catch (IOException e) {
- throw new MojoExecutionException("Unable to convert " + file, e);
- } finally {
- if (reader != null) {
- try {
- reader.close();
- } catch (IOException e) {
- // ignore this
- }
- }
- if (writer != null) {
- try {
- writer.close();
- } catch (IOException e) {
- // ignore this
- }
- }
- }
- }
- }
- }
- }
-
- /*
- * Default FileFilter implementation to filter out hidden files (e.g. .svn)
- */
- private class DefaultFileFilterImpl implements FileFilter {
- public boolean accept(File file) {
- return !file.getName().startsWith(".");
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/SnippetMojo.java
----------------------------------------------------------------------
diff --git a/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/SnippetMojo.java b/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/SnippetMojo.java
deleted file mode 100644
index f52f932..0000000
--- a/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/SnippetMojo.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright 2001-2005 The Apache Software Foundation.
- *
- * 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.
- */
-package org.apache.servicemix.docs;
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.servicemix.docs.snippet.SnippetHandler;
-
-import java.io.File;
-import java.net.URL;
-import java.net.URLStreamHandler;
-import java.net.URLStreamHandlerFactory;
-
-/**
- * Register a URL Handler to allow using snippet:// for pulling in code snippets from
- * the SVN repository
- *
- * @goal snippet
- * @phase initialize
- * @inheritByDefault false
- */
-public class SnippetMojo extends AbstractMojo {
-
- /**
- * Location of the snippet cache
- * @parameter default-value="${project.build.directory}/snippets"
- */
- protected File snippetCache;
-
- /**
- * @parameter @required
- */
- protected URL snippetBase;
-
- private static URLStreamHandlerFactory factory = null;
-
- public void execute() throws MojoExecutionException {
- if (factory == null) {
- getLog().info("Registering additional URL handlers (snippet://)");
-
- factory = new URLStreamHandlerFactory() {
-
- public URLStreamHandler createURLStreamHandler(String protocol) {
- if (protocol.equals("snippet")) {
- return new SnippetHandler(SnippetMojo.this, snippetCache, snippetBase);
- }
- return null;
- }
- };
-
- URL.setURLStreamHandlerFactory(factory);
- } else {
- getLog().warn("Unable to register URL handlers more than once");
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/servicemix-maven-plugins/blob/681882ee/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/confluence/ConfluenceConverter.java
----------------------------------------------------------------------
diff --git a/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/confluence/ConfluenceConverter.java b/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/confluence/ConfluenceConverter.java
deleted file mode 100644
index 3b9342c..0000000
--- a/docs-maven-plugin/src/main/java/org/apache/servicemix/docs/confluence/ConfluenceConverter.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2001-2005 The Apache Software Foundation.
- *
- * 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.
- */
-package org.apache.servicemix.docs.confluence;
-
-import java.io.IOException;
-import java.io.Reader;
-import java.io.Writer;
-
-import org.eclipse.mylyn.wikitext.core.parser.MarkupParser;
-
-/**
- * Represents a document in Confluence wiki markup
- */
-public class ConfluenceConverter {
-
- final ConfluenceLanguage markupLanguage = new ConfluenceLanguage();
-
- public ConfluenceConverter() {
- }
-
- public void convert(Reader reader, Writer writer) throws IOException {
- DocBookDocumentBuilder builder = new DocBookDocumentBuilder(writer);
- MarkupParser parser = new MarkupParser();
- parser.setMarkupLanguage(markupLanguage);
- parser.setBuilder(builder);
- parser.parse(reader);
- writer.flush();
- }
-
-}