*
The moose likes Ant, Maven and Other Build Tools and the fly likes deploying the content inside the target folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "deploying the content inside the target folder" Watch "deploying the content inside the target folder" New topic
Author

deploying the content inside the target folder

Pradeep Kumar
Ranch Hand

Joined: Sep 08, 2006
Posts: 108


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.


Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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.


JBoss In Action
Pradeep Kumar
Ranch Hand

Joined: Sep 08, 2006
Posts: 108
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.


 
Don't get me started about those stupid light bulbs.
 
subject: deploying the content inside the target folder
 
Similar Threads
Maven 1 to Maven 2 upgrade
building war file on remote server
Linking projects to other source code
Need help to save .tar files in data base
Maven 2 Plugin for WebSphere Application Server 5