[ 
https://issues.apache.org/jira/browse/THRIFT-363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765640#action_12765640
 ] 

Rob Slifka commented on THRIFT-363:
-----------------------------------

For those who are waiting for this, you might never have installed a custom 
library into your Maven repository.

(1) Install your custom-compiled libthrift.jar into the repository.

mvn -e install:install-file -DgroupId=com.yourcompany.group 
-DartifactId=yourcompany-libthrift -Dversion=1.0-SNAPSHOT -Dfile=libthrift.jar 
-Dpackaging=jar

(2) Find the location where the package was installed.

~\.m2\repository\com\ yourcompany\group\yourcompany-libthrift\1.0-SNAPSHOT

(3) Drop this POM into that directory.
{code:xml}
<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/maven-v4_0_0.xsd";>

    <modelVersion>4.0.0</modelVersion>

    <groupId>com.yourcompany.group</groupId>
    <version>1.0-SNAPSHOT</version>
    <artifactId>yourcompany-libthrift</artifactId>
    <packaging>jar</packaging>
    <name>FOO</name>

    <dependencies>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.14</version>
        </dependency>
    </dependencies>

</project>
{code}

> Maven Deploy
> ------------
>
>                 Key: THRIFT-363
>                 URL: https://issues.apache.org/jira/browse/THRIFT-363
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Library (Java)
>            Reporter: Gary Rudolph
>             Fix For: 0.2
>
>
> Please, deploy libthrift into a public maven repository. Preferably, to Maven 
> central, but if not at least the Apache.
> Maven Central: 
> http://maven.apache.org/guides/mini/guide-central-repository-upload.html
> Apache Incubator Repository: 
> http://people.apache.org/repo/m2-incubating-repository/
> The following is a sample pom.xml:
> <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/maven-v4_0_0.xsd";>
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>org.facebook.thrift</groupId>
>     <artifactId>libthrift</artifactId>
>     <version>0.1-20090310</version>
>     <packaging>jar</packaging>
>     <name>Apache Thrift Library</name>
>       <url>http://incubator.apache.org/thrift/</url>
>       <description>Thrift is a software framework for scalable cross-language 
> services development. It combines a software stack with a code generation 
> engine to build services that work efficiently and seamlessly between C++, 
> Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, and 
> OCaml</description>
>       <licenses>
>               <license>
>                       <name>The Apache Software License, Version 2.0</name>
>                       
> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
>                       <distribution>repo</distribution>
>               </license>
>       </licenses>
>       <scm>
>               
> <url>http://svn.apache.org/repos/asf/incubator/thrift/trunk</url>
>       </scm>
> </project>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to