You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ff...@apache.org on 2013/10/23 07:02:42 UTC

svn commit: r1534911 - in /servicemix/smx4/bundles/trunk/reflections-0.9.8: ./ pom.xml src/ src/main/ src/main/resources/ src/main/resources/OSGI-INF/ src/main/resources/OSGI-INF/bundle.info

Author: ffang
Date: Wed Oct 23 05:02:42 2013
New Revision: 1534911

URL: http://svn.apache.org/r1534911
Log:
[SMX4-1591]add OSGi bundle for reflections

Added:
    servicemix/smx4/bundles/trunk/reflections-0.9.8/
    servicemix/smx4/bundles/trunk/reflections-0.9.8/pom.xml
    servicemix/smx4/bundles/trunk/reflections-0.9.8/src/
    servicemix/smx4/bundles/trunk/reflections-0.9.8/src/main/
    servicemix/smx4/bundles/trunk/reflections-0.9.8/src/main/resources/
    servicemix/smx4/bundles/trunk/reflections-0.9.8/src/main/resources/OSGI-INF/
    servicemix/smx4/bundles/trunk/reflections-0.9.8/src/main/resources/OSGI-INF/bundle.info

Added: servicemix/smx4/bundles/trunk/reflections-0.9.8/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/reflections-0.9.8/pom.xml?rev=1534911&view=auto
==============================================================================
--- servicemix/smx4/bundles/trunk/reflections-0.9.8/pom.xml (added)
+++ servicemix/smx4/bundles/trunk/reflections-0.9.8/pom.xml Wed Oct 23 05:02:42 2013
@@ -0,0 +1,139 @@
+<?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>10</version>
+        <relativePath>../bundles-pom/pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.apache.servicemix.bundles</groupId>
+    <artifactId>org.apache.servicemix.bundles.reflections</artifactId>
+    <version>0.9.8_1-SNAPSHOT</version>
+    <packaging>bundle</packaging>
+    <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
+    <description>This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.</description>
+
+    <properties>
+        <pkgGroupId>org.reflections</pkgGroupId>
+        <pkgArtifactId>reflections</pkgArtifactId>
+        <pkgVersion>0.9.8</pkgVersion>
+        <servicemix.osgi.export.pkg>
+            org.reflections*
+        </servicemix.osgi.export.pkg>
+        <servicemix.osgi.import.pkg>
+            com.google.common.base;resolution:=optional,
+            com.google.common.cache;resolution:=optional,
+	    com.google.common.collect;resolution:=optional,
+	    com.google.common.io;resolution:=optional,
+	    com.google.gson;resolution:=optional,
+	    javassist.bytecode;resolution:=optional,
+	    javassist.bytecode.annotation;resolution:=optional,
+	    javax.annotation;resolution:=optional,
+	    javax.servlet;resolution:=optional,
+	    org.dom4j;resolution:=optional,
+	    org.dom4j.io;resolution:=optional,
+	    org.reflections;resolution:=optional,
+	    org.reflections.adapters;resolution:=optional,
+	    org.reflections.scanners;resolution:=optional,
+	    org.reflections.serializers;resolution:=optional,
+	    org.reflections.util;resolution:=optional,
+	    org.reflections.vfs;resolution:=optional,
+	    org.slf4j;resolution:=optional,
+            com.sun.jdi;resolution:=optional, 
+            com.sun.jdi.connect;resolution:=optional, 
+            com.sun.jdi.event;resolution:=optional, 
+            com.sun.jdi.request;resolution:=optional, 
+            com.sun.msv.datatype;resolution:=optional, 
+            com.sun.msv.datatype.xsd;resolution:=optional, 
+            javax.swing.table;resolution:=optional, 
+            javax.swing.tree;resolution:=optional, 
+            javax.xml.bind;resolution:=optional, 
+            javax.xml.namespace;resolution:=optional, 
+            javax.xml.stream;resolution:=optional, 
+            javax.xml.stream.events;resolution:=optional, 
+            javax.xml.stream.util;resolution:=optional, 
+            org.gjt.xpp;resolution:=optional, 
+            org.jaxen;resolution:=optional, 
+            org.jaxen.dom4j;resolution:=optional, 
+            org.jaxen.pattern;resolution:=optional, 
+            org.jaxen.saxpath;resolution:=optional, 
+            org.relaxng.datatype;resolution:=optional, 
+            org.xmlpull.v1;resolution:=optional, 
+            sun.misc;resolution:=optional
+        </servicemix.osgi.import.pkg>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+            <optional>true</optional>
+        </dependency>
+
+        <!-- sources -->
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+            <classifier>sources</classifier>
+            <optional>true</optional>
+        </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>true</createDependencyReducedPom>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: servicemix/smx4/bundles/trunk/reflections-0.9.8/src/main/resources/OSGI-INF/bundle.info
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/reflections-0.9.8/src/main/resources/OSGI-INF/bundle.info?rev=1534911&view=auto
==============================================================================
--- servicemix/smx4/bundles/trunk/reflections-0.9.8/src/main/resources/OSGI-INF/bundle.info (added)
+++ servicemix/smx4/bundles/trunk/reflections-0.9.8/src/main/resources/OSGI-INF/bundle.info Wed Oct 23 05:02:42 2013
@@ -0,0 +1,17 @@
+\u001B[1mSYNOPSIS\u001B[0m
+    ${project.description}
+
+    Original Maven URL:
+        \u001B[33mmvn:${pkgGroupId}/${pkgArtifactId}/${pkgVersion}\u001B[0m
+
+\u001B[1mDESCRIPTION\u001B[0m
+        Reflections scans your classpath, indexes the metadata, allows you to query it on runtime and may save and collect that information for many modules within your project.
+
+        Using Reflections you can query your metadata such as:
+
+    		get all subtypes of some type
+    		get all types/constructos/methods/fields annotated with some annotation, optionally with annotation parameters matching
+    		get all resources matching matching a regular expression
+    		get all methods with specific signature including parameters, parameter annotations and return type 
+\u001B[1mSEE ALSO\u001B[0m
+    \u001B[36mhttp://wiki.fasterxml.com/JacksonModuleScala\u001B[0m