You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by jb...@apache.org on 2015/10/13 16:26:04 UTC

servicemix-bundles git commit: [SM-2686] Create OSGi bundle for paranamer 2.8

Repository: servicemix-bundles
Updated Branches:
  refs/heads/master 25981d115 -> e864ac2c2


[SM-2686] Create OSGi bundle for paranamer 2.8


Project: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/repo
Commit: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/commit/e864ac2c
Tree: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/tree/e864ac2c
Diff: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/diff/e864ac2c

Branch: refs/heads/master
Commit: e864ac2c23a2425e2c66153729775f673ce9cfc8
Parents: 25981d1
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Tue Oct 13 16:25:41 2015 +0200
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Tue Oct 13 16:25:41 2015 +0200

----------------------------------------------------------------------
 paranamer-2.8/pom.xml                           | 106 +++++++++++++++++++
 .../src/main/resources/OSGI-INF/bundle.info     |  18 ++++
 pom.xml                                         |   1 +
 3 files changed, 125 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/e864ac2c/paranamer-2.8/pom.xml
----------------------------------------------------------------------
diff --git a/paranamer-2.8/pom.xml b/paranamer-2.8/pom.xml
new file mode 100644
index 0000000..076fe14
--- /dev/null
+++ b/paranamer-2.8/pom.xml
@@ -0,0 +1,106 @@
+<?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/xsd/maven-4.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.bundles</groupId>
+        <artifactId>bundles-pom</artifactId>
+        <version>12</version>
+        <relativePath>../bundles-pom/pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.apache.servicemix.bundles</groupId>
+    <artifactId>org.apache.servicemix.bundles.paranamer</artifactId>
+    <packaging>bundle</packaging>
+    <version>2.8_1-SNAPSHOT</version>
+    <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
+    <description>This OSGi bundle wraps paranamer ${pkgVersion} jar file.</description>
+
+    <scm>
+        <connection>scm:git:https://git-wip-us.apache.org/repos/asf/servicemix-bundles.git</connection>
+        <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/servicemix-bundles.git</developerConnection>
+        <url>https://git-wip-us.apache.org/repos/asf?p=servicemix-bundles.git</url>
+  </scm>
+
+    <properties>
+        <pkgGroupId>com.thoughtworks.paranamer</pkgGroupId>
+        <pkgArtifactId>paranamer</pkgArtifactId>
+        <pkgVersion>2.8</pkgVersion>
+        <servicemix.osgi.export.pkg>
+            com.thoughtworks.paranamer
+        </servicemix.osgi.export.pkg>
+        <servicemix.osgi.import.pkg>
+            javax.inject*;resolution:=optional
+        </servicemix.osgi.import.pkg>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+        </dependency>
+
+        <!-- sources -->
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+            <classifier>sources</classifier>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-shade-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>shade</goal>
+                        </goals>
+                        <configuration>
+                            <artifactSet>
+                                <includes>
+                                    <include>${pkgGroupId}:${pkgArtifactId}</include>
+                                </includes>
+                            </artifactSet>
+                            <filters>
+                                <filter>
+                                    <artifact>${pkgGroupId}:${pkgArtifactId}</artifact>
+                                    <excludes>
+                                        <exclude>**</exclude>
+                                    </excludes>
+                                </filter>
+                            </filters>
+                            <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+                            <createDependencyReducedPom>false</createDependencyReducedPom>
+                            <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/e864ac2c/paranamer-2.8/src/main/resources/OSGI-INF/bundle.info
----------------------------------------------------------------------
diff --git a/paranamer-2.8/src/main/resources/OSGI-INF/bundle.info b/paranamer-2.8/src/main/resources/OSGI-INF/bundle.info
new file mode 100644
index 0000000..617191a
--- /dev/null
+++ b/paranamer-2.8/src/main/resources/OSGI-INF/bundle.info
@@ -0,0 +1,18 @@
+\u001B[1mSYNOPSIS\u001B[0m
+    ${project.description}
+
+    Original Maven URLs:
+        \u001B[33mmvn:${pkgGroupId}/${pkgArtifactId}}/${pkgVersion}\u001B[0m
+
+\u001B[1mDESCRIPTION\u001B[0m
+    ParaNamer allows you to generate and use parameter name info for versions of Java prior to JDK 5.0 and above.
+    Parameter name access was scheduled for JDK 6.0, but was cancelled at a late stage as the spec-lead suggested
+    the development team ran out of time to implement it. It is sadly not shipping in JDK 7.0 either.
+    Sun also had misgivings about the appropriateness of the this change to Java.
+    It was felt that applications could end up depending on parameter names, and that they essentially became part
+    of constructor/method signatures and could never be changed if you wanted to be backwards compatible.
+    The view of the authors of Paranamer is that you should be aware that parameter names may change between releases,
+    and code to not depend on them.
+
+\u001B[1mSEE ALSO\u001B[0m
+    \u001B[36mhttp://paranamer.codehaus.org/\u001B[0m

http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/e864ac2c/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 4330e73..24def11 100644
--- a/pom.xml
+++ b/pom.xml
@@ -85,6 +85,7 @@
         <module>json4s-3.3.0</module>
         <module>json4s_2.11-3.3.0</module>
         <module>aws-java-sdk-1.10.26</module>
+        <module>paranamer-2.8</module>
     </modules>
 
 </project>