Jenkins via Maven deploy to Nexus snapshot repository issue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins via Maven deploy to Nexus snapshot repository issue

bobpat
Hi,
      We have project that use ant script and build ear. I have created pom and setting.xml to deploy at nexus snapshot repository. It's working, but it deploy/copy only META-INF folder to nexus repo. It doesn't deploy/copy war folder. The ear is 18 MB, but in nexus snapshot repo has 2.2 kb. Would you let me know what is the issue here?

Thanks,
Bob

-------------------------------------------------
ClaimServiceEAR:

clean:
   [delete] Deleting directory /var/lib/jenkins/jobs/Zur-18-ClaimswebService-build/workspace/ClaimServiceEAR/build
    [mkdir] Created dir: /var/lib/jenkins/jobs/Zur-18-ClaimswebService-build/workspace/ClaimServiceEAR/build

copy:
     [copy] Copying 1 file to /var/lib/jenkins/jobs/Zur-18-ClaimswebService-build/workspace/ClaimServiceEAR/build

buildEar:
      [jar] Building jar: /var/lib/jenkins/jobs/Zur-18-ClaimswebService-build/workspace/ClaimServiceEAR/build/ClaimsService.ear

BUILD SUCCESSFUL
Total time: 10 seconds
[workspace] $ /bin/sh -xe /tmp/hudson8209605888787588565.sh
+ cd /var/lib/jenkins/jobs/Zur-18-ClaimswebService-build/workspace/ClaimService
+ /maven/apache-maven-3.0.5/bin/mvn -e -s settings.xml deploy
log4j:WARN No appenders could be found for logger (Sisu).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building claimservice 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-ear-plugin:2.6:generate-application-xml (default-generate-application-xml) @ claimservice ---
[INFO] Generating application.xml
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ claimservice ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/Zur-18-ClaimswebService-build/workspace/ClaimService/src/main/resources
[INFO]
[INFO] --- maven-ear-plugin:2.6:ear (default-ear) @ claimservice ---
[INFO] Could not find manifest file: /var/lib/jenkins/jobs/Zur-18-ClaimswebService-build/workspace/ClaimService/target/claimservice-1.0-SNAPSHOT/META-INF/MANIFEST.MF - Generating one
[INFO] Building jar: /var/lib/jenkins/jobs/Zur-18-ClaimswebService-build/workspace/ClaimService/target/claimservice-1.0-SNAPSHOT.ear
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ claimservice ---
[INFO] Installing /var/lib/jenkins/jobs/Zur-18-ClaimswebService-build/workspace/ClaimService/target/claimservice-1.0-SNAPSHOT.ear to /var/lib/jenkins/.m2/repository/com/xxxx/claimservice/1.0-SNAPSHOT/claimservice-1.0-SNAPSHOT.ear
[INFO] Installing /var/lib/jenkins/jobs/Zur-18-ClaimswebService-build/workspace/ClaimService/pom.xml to /var/lib/jenkins/.m2/repository/com/xxxxx/claimservice/1.0-SNAPSHOT/claimservice-1.0-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ claimservice ---
Downloading: http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/1.0-SNAPSHOT/maven-metadata.xml
769/769 B  
           
Downloaded: http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/1.0-SNAPSHOT/maven-metadata.xml (769 B at 5.3 KB/sec)
Uploading:  http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/1.0-SNAPSHOT/claimservice-1.0-20140922.162539-92.ear
2/3 KB      
3/3 KB  
         
Uploaded:  http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/1.0-SNAPSHOT/claimservice-1.0-20140922.162539-92.ear (3 KB at 38.1 KB/sec)
Uploading:  http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/1.0-SNAPSHOT/claimservice-1.0-20140922.162539-92.pom
2/2 KB  
         
Uploaded:  http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/1.0-SNAPSHOT/claimservice-1.0-20140922.162539-92.pom (2 KB at 47.8 KB/sec)
Downloading:  http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/maven-metadata.xml
280/280 B  
           
Downloaded:  http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/maven-metadata.xml (280 B at 14.4 KB/sec)
Uploading:  http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/1.0-SNAPSHOT/maven-metadata.xml
769/769 B  
           
Uploaded:  http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/1.0-SNAPSHOT/maven-metadata.xml (769 B at 25.9 KB/sec)
Uploading:  http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/maven-metadata.xml
280/280 B  
           
Uploaded:  http://xxx.xx.xxx.xxx:8081/content/repositories/snapshots/com/xxxxx/claimservice/maven-metadata.xml (280 B at 10.5 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.760s
[INFO] Finished at: Mon Sep 22 12:25:39 EDT 2014
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins via Maven deploy to Nexus snapshot repository issue

bobpat
Hi Peter,
          The ear package has all the files that apps needed. It's deploying to Nexus, but only META-INF folder. It's not deploying the war folder. I am not sure its related to maven or nexus.

Thanks,
Bob.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins via Maven deploy to Nexus snapshot repository issue

Rich Seddon
Hi Bob,

Nexus does not alter the contents of deployed files.  Whatever is going wrong is happening outside of Nexus.

Rich

On Tue, Sep 23, 2014 at 2:13 PM, bobpat <[hidden email]> wrote:
Hi Peter,
          The ear package has all the files that apps needed. It's deploying
to Nexus, but only META-INF folder. It's not deploying the war folder. I am
not sure its related to maven or nexus.

Thanks,
Bob.



--
View this message in context: http://maven.40175.n5.nabble.com/Jenkins-via-Maven-deploy-to-Nexus-snapshot-repository-issue-tp5806266p5806285.html
Sent from the Nexus Maven Repository Manager Users List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]