Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2010-2013 Ning, Inc.
  ~
  ~ Ning 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 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">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.ning.billing</groupId>
        <artifactId>killbill-osgi-bundles</artifactId>
        <version>0.8.13</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <artifactId>killbill-osgi-bundles-jruby</artifactId>
    <name>Killbill billing platform: OSGI JRuby bundle</name>
    <packaging>bundle</packaging>
    <dependencies>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
        </dependency>
        <dependency>
            <groupId>com.ning.billing</groupId>
            <artifactId>killbill-api</artifactId>
<!--
            <scope>provided</scope>
            -->
        </dependency>
        <dependency>
            <groupId>com.ning.billing.plugin</groupId>
            <artifactId>killbill-plugin-api-notification</artifactId>
        </dependency>
        <dependency>
            <groupId>com.ning.billing.plugin</groupId>
            <artifactId>killbill-plugin-api-payment</artifactId>
        </dependency>
        <dependency>
            <groupId>com.ning.billing.plugin</groupId>
            <artifactId>killbill-plugin-api-currency</artifactId>
        </dependency>
        <dependency>
            <groupId>com.ning.billing</groupId>
            <artifactId>killbill-osgi-bundles-lib-killbill</artifactId>
        </dependency>
        <dependency>
            <groupId>com.ning.billing.commons</groupId>
            <artifactId>killbill-concurrent</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jruby</groupId>
            <artifactId>jruby-complete</artifactId>
            <version>1.7.10</version>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.compendium</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>osgi-over-slf4j</artifactId>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>jar</goal>
                            <goal>test-jar</goal>
                        </goals>
                        <configuration>
                            <archive>
                                <!-- use the manifest file created by the bundle plugin -->
                                <!--<useDefaultManifestFile>true</useDefaultManifestFile>-->
                                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
                                <!-- bundle plugin already generated the maven descriptor -->
                                <addMavenDescriptor>false</addMavenDescriptor>
                            </archive>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-Activator>com.ning.billing.osgi.bundles.jruby.JRubyActivator</Bundle-Activator>
                        <Export-Package />
                        <Private-Package>com.ning.billing.osgi.bundles.jruby.*</Private-Package>
                        <!-- Optional resolution because exported by the Felix system bundle -->
                        <Import-Package>*;resolution:=optional,
                            com.ning.billing.account.api;
                            com.ning.billing.analytics.api.sanity;
                            com.ning.billing.analytics.api.user;
                            com.ning.billing.beatrix.bus.api;
                            com.ning.billing.catalog.api;
                            com.ning.billing.subscription.api;
                            com.ning.billing.subscription.api.migration;
                            com.ning.billing.subscription.api.timeline;
                            com.ning.billing.subscription.api.transfer;
                            com.ning.billing.subscription.api.user;
                            com.ning.billing.entitlement.api;
                            com.ning.billing.invoice.api;
                            com.ning.billing.junction.api;
                            com.ning.billing;
                            com.ning.billing.osgi.api;
                            com.ning.billing.osgi.api.config;
                            com.ning.billing.overdue;
                            com.ning.billing.payment.api;
                            com.ning.billing.payment.plugin.api;
                            com.ning.billing.currency.plugin.api;
                            com.ning.billing.tenant.api;
                            com.ning.billing.usage.api;
                            com.ning.billing.util.api;
                            com.ning.billing.util.audit;
                            com.ning.billing.util.callcontext;
                            com.ning.billing.util.customfield;
                            com.ning.billing.notification.plugin;
                            com.ning.billing.currency.api;
                            com.ning.billing.util.email;
                            com.ning.billing.util.entity;
                            com.ning.billing.util.tag;
                            com.ning.billing.util.template;
                            com.ning.billing.util.template.translation;resolution:=optional,
                            org.joda.time;org.joda.time.format;resolution:=optional,
                            sun.misc;
                            sun.misc.*;
                            sun.misc.unsafe;
                            sun.misc.unsafe.*;
                            javax.management;
                            javax.management.*;
                            javax.crypto;
                            javax.crypto.*;
                            javax.crypto.spec;
                            javax.crypto.spec.*;
                            javax.net;
                            javax.net.*;
                            javax.net.ssl;
                            javax.net.ssl.*;
                            javax.security;
                            javax.security.*;
                            javax.security.cert;
                            javax.security.cert.*;
                            javax.security.auth;
                            javax.security.auth.*;
                            javax.security.auth.x500;
                            javax.security.auth.x500.*;resolution:=optional</Import-Package>
                    </instructions>
                </configuration>
                <executions>
                    <execution>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>manifest</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <executions>
                    <execution>
                        <id>assemble-killbill-osgi-bundles-jruby</id>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <phase>package</phase>
                        <configuration>
                            <createSourcesJar>true</createSourcesJar>
                            <shadedArtifactAttached>false</shadedArtifactAttached>
                            <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
                            <filters>
                                <filter>
                                    <artifact>${project.groupId}:${project.artifactId}</artifact>
                                </filter>
                            </filters>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
New to GrepCode? Check out our FAQ X