Deploying Single Files with Maven

From Pterodactylus
Revision as of 09:59, 3 August 2012 by Bombe (talk | contribs) (Add commands to install/deploy files with Maven even if they’re not under Maven control.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In order to deploy single files that are not controlled by Maven, you need the deploy:deploy-file goal.

   # mvn deploy:deploy-file -Dfile=file -DgroupId=groupId -DartifactId=artifactId -Dpackaging=pom -Dversion=version -DrepositoryId=repositoryId -Durl=scp://host/path

The repository ID is necessary in case you have authentication information defined for your repository.

To install a file only locally, use:

   # mvn install:install-file -Dfile=file -DgroupId=groupId -DartifactId=artifactId -Dpackaging=pom -Dversion=version