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:
ltheussl 2005-12-01 00:36:12 +00:00
parent f796377f4d
commit 101c548127
5 changed files with 23 additions and 6 deletions

View File

@ -21,3 +21,5 @@ maven.artifact.manifest.extensions.add=false
maven.artifact.manifest.basedir=${plugin.dir}/plugin-resources/templates
maven.artifact.manifest.template=manifest.vm
maven.deploy.timestamps=true

View File

@ -256,8 +256,13 @@ public class DefaultArtifactDeployer
srcFiles.add( snapshotVersionFile );
destFiles.add( snapshotVersionsFilename );
srcFiles.add( file );
destFiles.add( handler.constructRepositoryFullPath( type, project, v ) );
String deployTimestamp =
(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;

View File

@ -25,6 +25,7 @@
</properties>
<body>
<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 :
<ul>
<li>commons-collections v3.1 -> v3.0</li>

View File

@ -197,6 +197,16 @@
</subsection>
</section>
<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>
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>.

View File

@ -138,13 +138,12 @@
File <i>foo-snapshot-version</i>
contains the version number (20030620.124616)
that the snapshot is linked to,
so that
<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.
so that automated tools
can correctly update dependencies in projects that will use this artifact.
</p>
<p>
<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>
</subsection>
<subsection name="artifact:install">