mavenizer:filedeploy

Full name:

lu.softec.maven:maven-mavenizer-plugin:1.0:filedeploy

Description:

Deploy the binaries of the project with their generated POM to a remote repository

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: deploy.

Required Parameters

Name Type Since Description
binariesBaseDir File - Base directory where the binaries of the project to be mavenized are stored. If archiveFile and/or archiveURL parameter is provided, these binaries are extracted from the specified archive file during the generate-source phase. If no archive file is provided or this directory is not located in the project build directory, the binaries should be provided locally.
pomBaseDir File - Base directory where the POM of the project to be mavenized are stored. If this directory is not located in the project build directory, the pom file should be provided locally.
repositoryId String - Server Id to map on the <id> under <server> section of settings.xml In most cases, this parameter will be required for authentication.
Default value is: remote-repository.
repositoryLayout String - The type of remote repository layout to deploy to. Try legacy for a Maven 1.x-style repository layout.
Default value is: default.
repositoryUrl String - URL where the artifact will be deployed.
ie ( file://C:\m2-repo or scp://host.com/path/to/repo )

Optional Parameters

Name Type Since Description
archiveBaseDir File - Base directory where the archive of the project to be mavenized should be stored. This directory is only used to compute a name for the archive file when no archiveFile parameter has been provided. It should be located in the build directory, or the archive will be considered to be provided locally.
archiveFile File - File of the archive of the project to be mavenized. If URL is also provided, this file could be updated. If no archiveFile argument has been provided, the archiveFile is initialized based on the archive base directory and the archive url. If the archive file is not located in the build directory, it should be provided locally and will not be downloaded.
archiveURL URL - URL of the archive of the project to be mavenized. If ommitted, the file is directly expanded from the archiveFile parameter. If the archive file or the archive base directory is not located in the build directory, this URL will be only used for POM documentation.
mavenizerConfigFile File - Mavenizer configuration file, results of the analysis and configuration for deployment. If this file is not located in the project build directory, it should be provided locally and it will never be overwritten.
uniqueVersion boolean - Whether to deploy snapshots with a unique version or not.
Default value is: true.
updateReleaseInfo boolean - Whether to update the metadata to make installed artifacts a release version.
Default value is: false.

Parameter Details

archiveBaseDir:

Base directory where the archive of the project to be mavenized should be stored. This directory is only used to compute a name for the archive file when no archiveFile parameter has been provided. It should be located in the build directory, or the archive will be considered to be provided locally.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/archive

archiveFile:

File of the archive of the project to be mavenized. If URL is also provided, this file could be updated. If no archiveFile argument has been provided, the archiveFile is initialized based on the archive base directory and the archive url. If the archive file is not located in the build directory, it should be provided locally and will not be downloaded.
  • Type: java.io.File
  • Required: No

archiveURL:

URL of the archive of the project to be mavenized. If ommitted, the file is directly expanded from the archiveFile parameter. If the archive file or the archive base directory is not located in the build directory, this URL will be only used for POM documentation.
  • Type: java.net.URL
  • Required: No

binariesBaseDir:

Base directory where the binaries of the project to be mavenized are stored. If archiveFile and/or archiveURL parameter is provided, these binaries are extracted from the specified archive file during the generate-source phase. If no archive file is provided or this directory is not located in the project build directory, the binaries should be provided locally.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/bin

mavenizerConfigFile:

Mavenizer configuration file, results of the analysis and configuration for deployment. If this file is not located in the project build directory, it should be provided locally and it will never be overwritten.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/mavenizer.xml

pomBaseDir:

Base directory where the POM of the project to be mavenized are stored. If this directory is not located in the project build directory, the pom file should be provided locally.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/pom

repositoryId:

Server Id to map on the <id> under <server> section of settings.xml In most cases, this parameter will be required for authentication.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${repositoryId}
  • Default: remote-repository

repositoryLayout:

The type of remote repository layout to deploy to. Try legacy for a Maven 1.x-style repository layout.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${repositoryLayout}
  • Default: default

repositoryUrl:

URL where the artifact will be deployed.
ie ( file://C:\m2-repo or scp://host.com/path/to/repo )
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${repositoryUrl}

uniqueVersion:

Whether to deploy snapshots with a unique version or not.
  • Type: boolean
  • Required: No
  • Expression: ${uniqueVersion}
  • Default: true

updateReleaseInfo:

Whether to update the metadata to make installed artifacts a release version.
  • Type: boolean
  • Required: No
  • Expression: ${updateReleaseInfo}
  • Default: false