update to latest

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@265612 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-09-01 01:07:21 +00:00
parent 7c0017f9bb
commit c0b0b37e2b
2 changed files with 17 additions and 7 deletions

View File

@ -60,4 +60,14 @@
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>snapshots</id>
<name>Maven Central Development Repository</name>
<url>http://snapshots.maven.codehaus.org/maven2</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
</project>

View File

@ -211,24 +211,24 @@ public class RewritePhase
// SNAPSHOT metadata
ArtifactMetadata snapshot = new SnapshotArtifactMetadata( artifact );
File snapshotSource = new File( sourceBase, sourceRepo.pathOfMetadata( snapshot ) );
File snapshotTarget = new File( targetBase, targetRepo.pathOfMetadata( snapshot ) );
File snapshotSource = new File( sourceBase, sourceRepo.pathOfArtifactMetadata( snapshot ) );
File snapshotTarget = new File( targetBase, targetRepo.pathOfArtifactMetadata( snapshot ) );
freshenSupplementalMetadata( snapshotSource, snapshotTarget, transaction, artifactReporter, reportOnly );
// RELEASE metadata
ArtifactMetadata release = new ReleaseArtifactMetadata( artifact );
File releaseSource = new File( sourceBase, sourceRepo.pathOfMetadata( release ) );
File releaseTarget = new File( targetBase, targetRepo.pathOfMetadata( release ) );
File releaseSource = new File( sourceBase, sourceRepo.pathOfArtifactMetadata( release ) );
File releaseTarget = new File( targetBase, targetRepo.pathOfArtifactMetadata( release ) );
freshenSupplementalMetadata( releaseSource, releaseTarget, transaction, artifactReporter, reportOnly );
// The rest is for POM metadata - translation and bridging of locations in the target repo may be required.
ArtifactMetadata pom = new ProjectMetadata( artifact );
File sourcePom = new File( sourceBase, sourceRepo.pathOfMetadata( pom ) );
File targetPom = new File( targetBase, targetRepo.pathOfMetadata( pom ).replace( '+', '-' ) );
File sourcePom = new File( sourceBase, sourceRepo.pathOfArtifactMetadata( pom ) );
File targetPom = new File( targetBase, targetRepo.pathOfArtifactMetadata( pom ).replace( '+', '-' ) );
String pomContents = null;
@ -267,7 +267,7 @@ public class RewritePhase
transaction.addFile( targetPom );
bridgedTargetPom = new File( targetBase, bridgingLayout.pathOfMetadata( pom ).replace( '+', '-' ) );
bridgedTargetPom = new File( targetBase, bridgingLayout.pathOfArtifactMetadata( pom ).replace( '+', '-' ) );
transaction.addFile( bridgedTargetPom );