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.template=manifest.vm
|
||||
|
||||
maven.deploy.timestamps=true
|
||||
@ -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;
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>.
|
||||
|
||||
@ -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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user