deployment - When deploying to maven the upload hangs forever -


i'm deploying library remote maven repository.

when run mvn -u deploy or mvn deploy looks fine apart when uploading artifact. hangs in there forever.

just this:

uploading: http://maven.mycompany.com/server-product/com/mycompany/product/server/common/common/3.0/common-3.0.jar 213/213 kb  

i've read here, here, here , here related downloading, not uploading. can download fine, uploading artifact hangs. links related bug on previous maven versions, i'm using apache maven 3.3.3

the remote server running artifactory 3.6.0 (rev. 30178)

anyone know problem? doing wrong?

here settings.xml file:

<?xml version="1.0" encoding="utf-8"?> <settings xsi:schemalocation="http://maven.apache.org/settings/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/settings/1.1.0"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">   <servers>     <server>       <username>admin</username>       <password>supersecretpassword</password>       <id>central</id>     </server>     <server>       <id>mycompany maven</id>       <username>admin</username>       <password>supersecretpassword</password>     </server>   </servers>   <profiles>     <profile>       <repositories>         <repository>           <snapshots>             <enabled>false</enabled>           </snapshots>           <id>central</id>           <name>libs-release</name>           <url>http://maven.mycompany.com/libs-release</url>         </repository>         <repository>           <snapshots />           <id>snapshots</id>           <name>libs-snapshot</name>           <url>http://maven.mycompany.com/libs-snapshot</url>         </repository>       </repositories>       <pluginrepositories>         <pluginrepository>           <snapshots>             <enabled>false</enabled>           </snapshots>           <id>central</id>           <name>plugins-release</name>           <url>http://maven.mycompany.com/plugins-release</url>         </pluginrepository>       </pluginrepositories>       <id>artifactory</id>     </profile>   </profiles>   <activeprofiles>     <activeprofile>artifactory</activeprofile>   </activeprofiles> </settings> 

here's pom.xml:

<?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">     <modelversion>4.0.0</modelversion>     <groupid>com.mycompany.product.server.common</groupid>     <artifactid>common</artifactid>     <version>3.0</version>     <packaging>jar</packaging>     <properties>         <project.build.sourceencoding>utf-8</project.build.sourceencoding>         <maven.compiler.source>1.7</maven.compiler.source>         <maven.compiler.target>1.7</maven.compiler.target>     </properties>     <dependencies>         (dependencies...)     </dependencies>      <distributionmanagement>         <repository>             <id>mycompany maven</id>             <name>mycompany maven-releases</name>             <url>http://maven.mycompany.com/server-product</url>         </repository>     </distributionmanagement>  </project> 

and here ouput mvn deploy

[info] scanning projects... [info]                                                                          [info] ------------------------------------------------------------------------ [info] building common 3.0 [info] ------------------------------------------------------------------------ [info]  [info] --- maven-resources-plugin:2.6:resources (default-resources) @ common --- [info] using 'utf-8' encoding copy filtered resources. [info] copying 0 resource [info]  [info] --- maven-compiler-plugin:3.1:compile (default-compile) @ common --- [info] nothing compile - classes date [info]  [info] --- maven-resources-plugin:2.6:testresources (default-testresources) @ common --- [info] using 'utf-8' encoding copy filtered resources. [info] skip non existing resourcedirectory /users/dwnz/development/server/code/product/common/src/test/resources [info]  [info] --- maven-compiler-plugin:3.1:testcompile (default-testcompile) @ common --- [info] no sources compile [info]  [info] --- maven-surefire-plugin:2.12.4:test (default-test) @ common --- [info] no tests run. [info]  [info] --- maven-jar-plugin:2.4:jar (default-jar) @ common --- [info]  [info] --- maven-install-plugin:2.4:install (default-install) @ common --- [info] installing /users/dwnz/development/server/code/product/common/target/common-3.0.jar /users/dwnz/.m2/repository/com/mycompany/product/server/common/common/3.0/common-3.0.jar [info] installing /users/dwnz/development/server/code/product/common/pom.xml /users/dwnz/.m2/repository/com/mycompany/product/server/common/common/3.0/common-3.0.pom [info]  [info] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ common --- uploading: http://maven.mycompany.com/server-product/com/mycompany/product/server/common/common/3.0/common-3.0.jar 213/213 kb  ---->> here hangs *forever*! 

i had similar problem, when executing release:perform. got stuck while uploading. solution add plugin, change versions , 1 groupid in build section from:

            <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-deploy-plugin</artifactid>                 <version>2.7</version>                 <dependencies>                     <dependency>                         <groupid>com.google.code.maven-svn-wagon</groupid>                         <artifactid>maven-svn-wagon</artifactid>                         <version>1.4</version>                     </dependency>                 </dependencies>             </plugin> 

to

            <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-release-plugin</artifactid>                 <version>2.5.1</version>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-deploy-plugin</artifactid>                 <version>2.8.2</version>                 <dependencies>                     <dependency>                         <groupid>org.jvnet.wagon-svn</groupid>                         <artifactid>wagon-svn</artifactid>                         <version>1.12</version>                     </dependency>                 </dependencies>             </plugin> 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -