upload:upload-file

Full name:

net.lopht.maven-plugins:upload-maven-plugin:0.6.0:upload-file

Description:

Uploads file to remote repository.

Attributes:

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

Optional Parameters

Name Type Since Description
<file> File 0.0.1 The path to the file to be uploaded.
User property is: upload.file.
<headers> Map 0.2.0 Custom HTTP headers to add to each request.
<ignoreMissingFile> boolean 0.0.1 If true, do not fail build when file is missing.
Default value is: false.
User property is: upload.ignoreMissing.
<preemptiveAuth> boolean 0.3.0 Set to true if the server requires credentials in the initial request.
Default value is: false.
User property is: upload.preemptiveAuth.
<repositoryPath> String 0.0.1 The server path where the file will be uploaded, ie path/to/file.ext. Will be appended to the repositoryUrl parameter.
User property is: upload.repositoryPath.
<repositoryUrl> String 0.0.1 The base URL of the server, ie http://server.example.com/.
User property is: upload.repositoryUrl.
<serverId> String 0.0.1 The server Id in settings.xml with credentials to use.
User property is: upload.serverId.
<session> MavenSession 0.0.1 (no description)
User property is: session.
<skip> boolean 0.4.0 Set to true to skip execution.
Default value is: false.
User property is: upload.skip.
<usePOST> boolean 0.5.0 Use POST instead of PUT
Default value is: false.
User property is: upload.post.

Parameter Details

<file>

The path to the file to be uploaded.
  • Type: java.io.File
  • Since: 0.0.1
  • Required: No
  • User Property: upload.file

<headers>

Custom HTTP headers to add to each request.
  • Type: java.util.Map
  • Since: 0.2.0
  • Required: No

<ignoreMissingFile>

If true, do not fail build when file is missing.
  • Type: boolean
  • Since: 0.0.1
  • Required: No
  • User Property: upload.ignoreMissing
  • Default: false

<preemptiveAuth>

Set to true if the server requires credentials in the initial request.
  • Type: boolean
  • Since: 0.3.0
  • Required: No
  • User Property: upload.preemptiveAuth
  • Default: false

<repositoryPath>

The server path where the file will be uploaded, ie path/to/file.ext. Will be appended to the repositoryUrl parameter.
  • Type: java.lang.String
  • Since: 0.0.1
  • Required: No
  • User Property: upload.repositoryPath

<repositoryUrl>

The base URL of the server, ie http://server.example.com/.
  • Type: java.lang.String
  • Since: 0.0.1
  • Required: No
  • User Property: upload.repositoryUrl

<serverId>

The server Id in settings.xml with credentials to use.
  • Type: java.lang.String
  • Since: 0.0.1
  • Required: No
  • User Property: upload.serverId

<session>

(no description)
  • Type: org.apache.maven.execution.MavenSession
  • Since: 0.0.1
  • Required: No
  • User Property: session

<skip>

Set to true to skip execution.
  • Type: boolean
  • Since: 0.4.0
  • Required: No
  • User Property: upload.skip
  • Default: false

<usePOST>

Use POST instead of PUT
  • Type: boolean
  • Since: 0.5.0
  • Required: No
  • User Property: upload.post
  • Default: false