You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/09/12 16:10:15 UTC

tinkerpop git commit: Prevented deployment of java artifacts on mvn deploy -Dpypi CTR

Repository: tinkerpop
Updated Branches:
  refs/heads/master 422263009 -> 0e42dae5c


Prevented deployment of java artifacts on mvn deploy -Dpypi CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/0e42dae5
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/0e42dae5
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/0e42dae5

Branch: refs/heads/master
Commit: 0e42dae5cd36147c6096728ec19efe1733df012c
Parents: 4222630
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Sep 12 12:08:53 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Sep 12 12:10:04 2016 -0400

----------------------------------------------------------------------
 gremlin-python/pom.xml | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/0e42dae5/gremlin-python/pom.xml
----------------------------------------------------------------------
diff --git a/gremlin-python/pom.xml b/gremlin-python/pom.xml
index 45610a7..b1a9453 100644
--- a/gremlin-python/pom.xml
+++ b/gremlin-python/pom.xml
@@ -596,6 +596,19 @@ log.info("Gremlin Server shutdown")
             </activation>
             <build>
                 <plugins>
+                    <!--
+                    pypi doesn't have a staging area like sonatype so the deploy to pypi is done out of the normal
+                    release band. it is performed after successful VOTE in which case, the maven artifacts should
+                    not be deployed again - hence the plugin is disabled. deployment to pypi uses the antrun plugin
+                    below with twine so disabling the plugin has no effect on the pypi deployment.
+                    -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-deploy-plugin</artifactId>
+                        <configuration>
+                            <skip>true</skip>
+                        </configuration>
+                    </plugin>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-antrun-plugin</artifactId>
@@ -613,9 +626,10 @@ log.info("Gremlin Server shutdown")
                                               failonerror="true">
                                             <arg line="install twine"/>
                                         </exec>
+                                        <!-- to use the pypi test environment add: -r pypitest -->
                                         <exec dir="${project.build.directory}/python-packaged" executable="env/bin/twine"
                                               failonerror="true">
-                                            <arg line="upload dist/* -r pypi -s"/>
+                                            <arg line="upload dist/* -r pypi -s "/>
                                         </exec>
                                     </tasks>
                                 </configuration>