servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1429294 - in /servicemix/smx4/bundles/trunk: guice-3.0/ guice-3.0/pom.xml guice-3.0/src/ guice-3.0/src/main/ guice-3.0/src/main/resources/ guice-3.0/src/main/resources/OSGI-INF/ guice-3.0/src/main/resources/OSGI-INF/bundle.info pom.xml
Date Sat, 05 Jan 2013 14:38:54 GMT
Author: ningjiang
Date: Sat Jan  5 14:38:54 2013
New Revision: 1429294

URL: http://svn.apache.org/viewvc?rev=1429294&view=rev
Log:
SMX4-1335 add wrap bundle for guice 3.0

Added:
    servicemix/smx4/bundles/trunk/guice-3.0/
    servicemix/smx4/bundles/trunk/guice-3.0/pom.xml
    servicemix/smx4/bundles/trunk/guice-3.0/src/
    servicemix/smx4/bundles/trunk/guice-3.0/src/main/
    servicemix/smx4/bundles/trunk/guice-3.0/src/main/resources/
    servicemix/smx4/bundles/trunk/guice-3.0/src/main/resources/OSGI-INF/
    servicemix/smx4/bundles/trunk/guice-3.0/src/main/resources/OSGI-INF/bundle.info
Modified:
    servicemix/smx4/bundles/trunk/pom.xml

Added: servicemix/smx4/bundles/trunk/guice-3.0/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/guice-3.0/pom.xml?rev=1429294&view=auto
==============================================================================
--- servicemix/smx4/bundles/trunk/guice-3.0/pom.xml (added)
+++ servicemix/smx4/bundles/trunk/guice-3.0/pom.xml Sat Jan  5 14:38:54 2013
@@ -0,0 +1,104 @@
+<?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>11-SNAPSHOT</version>
+        <relativePath>../bundles-pom/pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.apache.servicemix.bundles</groupId>
+    <artifactId>org.apache.servicemix.bundles.guice</artifactId>
+    <version>3.0_1-SNAPSHOT</version>
+    <packaging>bundle</packaging>
+    <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
+    <description>This OSGi bundle wraps guice ${pkgVersion} jar files.</description>
+
+    <properties>
+        <pkgGroupId>com.google.inject</pkgGroupId>
+        <pkgArtifactId>guice</pkgArtifactId>
+        <pkgVersion>3.0</pkgVersion>
+        <servicemix.osgi.export>
+            com.google.inject*;version=${pkgVersion};-split-package:=merge-first
+        </servicemix.osgi.export>
+        <servicemix.osgi.import.pkg>
+            javax.inject,
+            org.aopalliance*;version="[1.0,2)",
+            com.google.inject.internal.asm.util.*;resolution:=optional,
+        </servicemix.osgi.import.pkg>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>guice</artifactId>
+            <version>${pkgVersion}</version>
+            <optional>true</optional>
+        </dependency>
+
+        <!-- sources -->
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>guice</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}:guice</include>
+                                </includes>
+                            </artifactSet>
+                            <filters>
+                                <filter>
+                                    <artifact>${pkgGroupId}:guice</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/guice-3.0/src/main/resources/OSGI-INF/bundle.info
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/guice-3.0/src/main/resources/OSGI-INF/bundle.info?rev=1429294&view=auto
==============================================================================
--- servicemix/smx4/bundles/trunk/guice-3.0/src/main/resources/OSGI-INF/bundle.info (added)
+++ servicemix/smx4/bundles/trunk/guice-3.0/src/main/resources/OSGI-INF/bundle.info Sat Jan
 5 14:38:54 2013
@@ -0,0 +1,34 @@
+\u001B[1mSYNOPSIS\u001B[0m
+    ${project.description}
+
+    Original Maven URL:
+        \u001B[33mmvn:http://guiceyfruit.googlecode.com/svn/repo/releases:${pkgGroupId}/guiceyfruit-core/${pkgVersion}\u001B[0m
+        \u001B[33mmvn:http://guiceyfruit.googlecode.com/svn/repo/releases:${pkgGroupId}/guice-all/${pkgVersion}\u001B[0m
+
+\u001B[1mDESCRIPTION\u001B[0m
+    Put simply, Guice alleviates the need for factories and the use of new
+    in your Java code. Think of Guice's @Inject as the new new. You will
+    still need to write factories in some cases, but your code will not depend
+    directly on them. Your code will be easier to change, unit test and reuse in
+    other contexts.
+
+    Guice embraces Java's type safe nature, especially when it comes to features
+    introduced in Java 5 such as generics and annotations. You might think of
+    Guice as filling in missing features for core Java. Ideally, the language
+    itself would provide most of the same features, but until such a language
+    comes along, we have Guice.
+
+    Guice helps you design better APIs, and the Guice API itself sets a good
+    example. Guice is not a kitchen sink. We justify each feature with at least
+    three use cases. When in doubt, we leave it out. We build general functionality
+    which enables you to extend Guice rather than adding every feature to the core
+    framework.
+
+    Guice aims to make development and debugging easier and faster, not harder and
+    slower. In that vein, Guice steers clear of surprises and magic. You should be
+    able to understand code with or without tools, though tools can make things even
+    easier. When errors do occur, Guice goes the extra mile to generate helpful
+    messages.
+
+\u001B[1mSEE ALSO\u001B[0m
+    \u001B[36mhttp://code.google.com/p/google-guice/\u001B[0m

Modified: servicemix/smx4/bundles/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/pom.xml?rev=1429294&r1=1429293&r2=1429294&view=diff
==============================================================================
--- servicemix/smx4/bundles/trunk/pom.xml (original)
+++ servicemix/smx4/bundles/trunk/pom.xml Sat Jan  5 14:38:54 2013
@@ -55,6 +55,7 @@
         <module>jedis-2.1.0</module>
         <module>scala-compiler-2.10.0</module>
         <module>scala-library-2.10.0</module>
+        <module>guice-3.0</module>
     </modules>
 
 </project>



Mime
View raw message