servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject servicemix-bundles git commit: [SM-2607] Create OSGi bundle for fop 2.0
Date Mon, 06 Jul 2015 09:49:55 GMT
Repository: servicemix-bundles
Updated Branches:
  refs/heads/master 3263baecd -> 56522f0b0


[SM-2607] Create OSGi bundle for fop 2.0


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

Branch: refs/heads/master
Commit: 56522f0b02a0d1af9684e5a0e0bd9495703b6782
Parents: 3263bae
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Mon Jul 6 11:49:27 2015 +0200
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Mon Jul 6 11:49:27 2015 +0200

----------------------------------------------------------------------
 fop-2.0/pom.xml                                 | 152 +++++++++++++++++++
 fop-2.0/src/main/resources/OSGI-INF/bundle.info |  15 ++
 pom.xml                                         |   1 +
 3 files changed, 168 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/56522f0b/fop-2.0/pom.xml
----------------------------------------------------------------------
diff --git a/fop-2.0/pom.xml b/fop-2.0/pom.xml
new file mode 100644
index 0000000..9ce6bd1
--- /dev/null
+++ b/fop-2.0/pom.xml
@@ -0,0 +1,152 @@
+<?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.fop</artifactId>
+    <version>2.0_1-SNAPSHOT</version>
+    <packaging>bundle</packaging>
+    <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
+    <description>This OSGi bundle wraps ${pkgArtifactId} ${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>org.apache.xmlgraphics</pkgGroupId>
+        <pkgArtifactId>fop</pkgArtifactId>
+        <pkgVersion>2.0</pkgVersion>
+        <servicemix.osgi.export.pkg>
+            org.apache.fop
+        </servicemix.osgi.export.pkg>
+        <servicemix.osgi.import.pkg>
+            javax.crypto, 
+            javax.crypto.spec, 
+            javax.imageio;resolution:=optional, 
+            javax.media.jai;resolution:=optional, 
+            javax.servlet;resolution:=optional, 
+            javax.servlet.http;resolution:=optional, 
+            javax.swing*;resolution:=optional, 
+            javax.xml.parsers, 
+            javax.xml.transform, 
+            javax.xml.transform.dom, 
+            javax.xml.transform.sax, 
+            javax.xml.transform.stream, 
+            org.apache.avalon.framework;resolution:=optional, 
+            org.apache.avalon.framework.configuration;resolution:=optional, 
+            org.apache.batik*;resolution:=optional, 
+            org.apache.commons.io, 
+            org.apache.commons.io.filefilter, 
+            org.apache.commons.io.output, 
+            org.apache.commons.logging, 
+            org.apache.commons.logging.impl, 
+            org.apache.fontbox*;resolution:=optional, 
+            org.apache.tools.ant*;resolution:=optional, 
+            org.apache.xmlgraphics*,  
+            org.w3c.dom, 
+            org.w3c.dom.svg, 
+            org.xml.sax, 
+            org.xml.sax.ext, 
+            org.xml.sax.helpers
+        </servicemix.osgi.import.pkg>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.apache.avalon.framework</groupId>
+                    <artifactId>avalon-framework-api</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>org.apache.avalon.framework</groupId>
+                    <artifactId>avalon-framework-impl</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.avalon.framework</groupId>
+            <artifactId>avalon-framework-api</artifactId>
+            <version>4.3.1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.avalon.framework</groupId>
+            <artifactId>avalon-framework-impl</artifactId>
+            <version>4.3.1</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>
+                                    <includes>
+                                        <include>META-INF/services/**</include>
+                                    </includes>
+                                </filter>
+                            </filters>
+                            <createDependencyReducedPom>true</createDependencyReducedPom>
+                            <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/56522f0b/fop-2.0/src/main/resources/OSGI-INF/bundle.info
----------------------------------------------------------------------
diff --git a/fop-2.0/src/main/resources/OSGI-INF/bundle.info b/fop-2.0/src/main/resources/OSGI-INF/bundle.info
new file mode 100644
index 0000000..fb0b637
--- /dev/null
+++ b/fop-2.0/src/main/resources/OSGI-INF/bundle.info
@@ -0,0 +1,15 @@
+\u001B[1mSYNOPSIS\u001B[0m
+    ${project.description}
+
+    Original Maven URL:
+        \u001B[33mmvn:${pkgGroupId}/${pkgArtifactId}/${pkgVersion}\u001B[0m
+
+\u001B[1mDESCRIPTION\u001B[0m
+    Apache FOP (Formatting Objects Processor) is a print formatter driven by XSL formatting
objects (XSL-FO) and an
+    output independent formatter. It is a Java application that reads a formatting object
(FO) tree and renders the
+    resulting pages to a specified output. Output formats currently supported include PDF,
PS, PCL, AFP,
+    XML (area tree representation), Print, AWT and PNG, and to a lesser extent, RTF and TXT.
+    The primary output target is PDF.
+
+\u001B[1mSEE ALSO\u001B[0m
+    \u001B[36mhttp://xmlgraphics.apache.org/fop/\u001B[0m

http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/56522f0b/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 1358cea..27990f1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -108,6 +108,7 @@
         <module>ant-1.9.6</module>
         <module>bcpg-jdk15on-1.52</module>
         <module>jopt-simple-4.9</module>
+        <module>fop-2.0</module>
     </modules>
 
 </project>


Mime
View raw message