[
https://issues.apache.org/jira/browse/THRIFT-2269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14599390#comment-14599390
]
Jake Farrell commented on THRIFT-2269:
--------------------------------------
Should be able to address this issue with changing the packaging to jar. Threw
this patch together but have not had a chance to test it yet
{code}
--- a/lib/java/build.xml
+++ b/lib/java/build.xml
@@ -391,7 +391,7 @@
<attribute name="pom" default=""/>
<sequential>
<artifact:mvn fork="true">
- <arg
value="org.apache.maven.plugins:maven-gpg-plugin:1.1:sign-and-deploy-file"/>
+ <arg
value="org.apache.maven.plugins:maven-gpg-plugin:1.6:sign-and-deploy-file"/>
<arg value="-DrepositoryId=${maven-repository-id}"/>
<arg value="-Durl=${maven-repository-url}"/>
<arg value="-DpomFile=@{pom}"/>
@@ -407,8 +407,8 @@
<!-- Compile, package, test and then send release to apache maven repo -->
<!-- run with: ant -Drelease=true publish-->
<signAndDeploy file="${pom.xml}" packaging="pom" classifier=""
pom="${pom.xml}"/>
- <signAndDeploy file="${jar.file}" packaging="jar" classifier=""
pom="${pom.xml}"/>
- <signAndDeploy file="${javadoc.jar.file}" packaging="jar"
classifier="javadoc" pom="${pom.xml}"/>
- <signAndDeploy file="${source.jar.file}" packaging="src"
classifier="sources" pom="${pom.xml}"/>
+ <signAndDeploy file="${jar.file}" classifier="" pom="${pom.xml}"/>
+ <signAndDeploy file="${javadoc.jar.file}" classifier="javadoc"
pom="${pom.xml}"/>
+ <signAndDeploy file="${source.jar.file}" classifier="sources"
pom="${pom.xml}"/>
</target>
</project>
{code}
> Can deploy libthrift-source.jar to maven center repository
> ----------------------------------------------------------
>
> Key: THRIFT-2269
> URL: https://issues.apache.org/jira/browse/THRIFT-2269
> Project: Thrift
> Issue Type: Improvement
> Components: Build Process
> Affects Versions: 0.9.1
> Reporter: vongosling
> Assignee: Jake Farrell
> Fix For: 0.9.3
>
>
> Now,I can only find libthrift-0.9.1-tar.gz.src in mvn repository,but it can
> not find by mainly IDE,such as eclipse,intellij idea,Netbean,can you improve
> this problem,thanks~
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)