PR: MPARTIFACT-59
Make deploying a timestamped SNAPSHOT artifact configurable. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@350085 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f796377f4d
commit
101c548127
@ -21,3 +21,5 @@ maven.artifact.manifest.extensions.add=false
|
|||||||
|
|
||||||
maven.artifact.manifest.basedir=${plugin.dir}/plugin-resources/templates
|
maven.artifact.manifest.basedir=${plugin.dir}/plugin-resources/templates
|
||||||
maven.artifact.manifest.template=manifest.vm
|
maven.artifact.manifest.template=manifest.vm
|
||||||
|
|
||||||
|
maven.deploy.timestamps=true
|
||||||
@ -256,8 +256,13 @@ public class DefaultArtifactDeployer
|
|||||||
srcFiles.add( snapshotVersionFile );
|
srcFiles.add( snapshotVersionFile );
|
||||||
destFiles.add( snapshotVersionsFilename );
|
destFiles.add( snapshotVersionsFilename );
|
||||||
|
|
||||||
srcFiles.add( file );
|
String deployTimestamp =
|
||||||
destFiles.add( handler.constructRepositoryFullPath( type, project, v ) );
|
(String) project.getContext().getVariable( "maven.deploy.timestamps" );
|
||||||
|
if ( deployTimestamp.equals("true") )
|
||||||
|
{
|
||||||
|
srcFiles.add( file );
|
||||||
|
destFiles.add( handler.constructRepositoryFullPath( type, project, v ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// trick add special values to context for default repository;
|
// trick add special values to context for default repository;
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="1.7-SNAPSHOT" date="in SVN">
|
<release version="1.7-SNAPSHOT" date="in SVN">
|
||||||
|
<action dev="ltheussl" type="add" issue="MPARTIFACT-59">Make deploying a timestamped SNAPSHOT artifact configurable.</action>
|
||||||
<action dev="aheritier" type="update" issue="MAVEN-1712">Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated :
|
<action dev="aheritier" type="update" issue="MAVEN-1712">Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated :
|
||||||
<ul>
|
<ul>
|
||||||
<li>commons-collections v3.1 -> v3.0</li>
|
<li>commons-collections v3.1 -> v3.0</li>
|
||||||
|
|||||||
@ -197,6 +197,16 @@
|
|||||||
</subsection>
|
</subsection>
|
||||||
</section>
|
</section>
|
||||||
<section name="Other properties used">
|
<section name="Other properties used">
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td>maven.deploy.timestamps</td>
|
||||||
|
<td>
|
||||||
|
Specifies whether timestamped versions of artifacts should
|
||||||
|
be deployed as well when deploying SNAPSHOT versions.
|
||||||
|
Defaults to 'true'.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
<p>
|
<p>
|
||||||
If you are behind a firewall and need to use a proxy server, check the
|
If you are behind a firewall and need to use a proxy server, check the
|
||||||
<a href="http://maven.apache.org/maven-1.x/reference/properties.html#Proxy_Properties">proxy properties</a>.
|
<a href="http://maven.apache.org/maven-1.x/reference/properties.html#Proxy_Properties">proxy properties</a>.
|
||||||
|
|||||||
@ -138,13 +138,12 @@
|
|||||||
File <i>foo-snapshot-version</i>
|
File <i>foo-snapshot-version</i>
|
||||||
contains the version number (20030620.124616)
|
contains the version number (20030620.124616)
|
||||||
that the snapshot is linked to,
|
that the snapshot is linked to,
|
||||||
so that
|
so that automated tools
|
||||||
<a href="http://maven.apache.org/reference/user-guide.html#Resolving SNAPSHOT Dependencies">'convert-snapshots'</a>
|
can correctly update dependencies in projects that will use this artifact.
|
||||||
can correctly update dependencies in projects that will use this artifact.
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>artifact:deploy-snapshot</b> tag uses the same set of attributes
|
<b>artifact:deploy-snapshot</b> tag uses the same set of attributes
|
||||||
as <a href="artifact:deloy">artifact:deploy</a> tag
|
as <a href="#artifact:deploy">artifact:deploy</a> tag
|
||||||
</p>
|
</p>
|
||||||
</subsection>
|
</subsection>
|
||||||
<subsection name="artifact:install">
|
<subsection name="artifact:install">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user