Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deploying the content inside the target folder

 
Pradeep Kumar
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi friends,

I have a requirement to upload the artifacts to the internal maven repository. I have used the maven deploy plugin. I am using the maven assembly plugin, to compress some of the files to zip and tar files.
I need to deploy the tar and the zip files to the maven repository. What do i need to upload the files to the maven repository. The packaging of the pom file is set to jar.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the Assembly plugin documentation again, there is a property for assembly:single named attach. What this property does it attach the created file (your zip file) to the project. What this really means is that your zip file is now registered with Maven as an artifact that was built by the build, and the Install and Deploy plugins will then install the zip file (along with the jar file that was built) into the local repository and deploy it to the remote repository.
 
Pradeep Kumar
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could resolve it by temporarily uploading the artifact to the internal repository. The reason I was not able to download the artifact behind the proxy is that I was using the maven-external-dependency plugin to download from n external url and the plugin is not connection the url through the proxy setting. I guess its a bug in the plugin.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic