Deploying in file system using Maven
|
|
|
Deploying an artifact in the file system using Maven
The first step require to add wagon file as an extension to the build in your pom.
The wagon file extension allows you to :
- Deploy files and directories to local file system
- Get files from file system
Insert the following snippet in your pom.xml :
You can deploy using the deploy plugin to get you artifact deploy using the maven repository layout or simply deploying one file you have choosen.
Deploy using the repository layout
To deploy your file using the maven layout you should define the distribution management location� :
Then you just need to execute the following command to get you artifact copied in your file system location
Deploy in a specific directory
Codehaus provide a plugin called Wagon to view or transfer resources between repositories. The upload goal allows you to upload a set of files to a remote location. In our sample the remote location is located in the file system.
Then you can run
Tags: maven , /groupid , artifactid , /artifactid , system , file , deploying , wagon-file , 1.0-beta-6 , /extensions , /build , /extension , org.apache.maven.wagon