diff --git a/artifact/plugin.properties b/artifact/plugin.properties index 94f85589..e2b44d65 100644 --- a/artifact/plugin.properties +++ b/artifact/plugin.properties @@ -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 \ No newline at end of file diff --git a/artifact/src/main/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java b/artifact/src/main/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java index 743b3241..d2afc97c 100644 --- a/artifact/src/main/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java +++ b/artifact/src/main/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java @@ -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; diff --git a/artifact/xdocs/changes.xml b/artifact/xdocs/changes.xml index cd044674..e812bdba 100644 --- a/artifact/xdocs/changes.xml +++ b/artifact/xdocs/changes.xml @@ -25,6 +25,7 @@ + Make deploying a timestamped SNAPSHOT artifact configurable. Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated :