maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wayne Fay" <wayne...@gmail.com>
Subject Re: [m2] Improper build number after deploying a snapshot of maven-javadoc-plugin
Date Thu, 23 Mar 2006 15:42:31 GMT
Sure looks like a bug to me.

Might want to file this log along with your pom.xml in Jira?

Wayne


On 3/23/06, Thorsten Heit <thorsten.heit@xtramind.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Kenney,
>
> > I remember a bug like this, but it was fixed long ago. Perhaps you're
> > using an old version of Maven 2? Maybe your proxy needs updating..
>
> Both are the newest versions (Maven 2.0.2; maven-proxy-standalone-0.2
> from maven-proxy.codehaus.org).
>
> > What version of maven2 are you using? What version of the deploy plugin is
> > used? (run mvn -X to find out.)
>
> It seems to me to be a bug of the plugin deployment:
>
> $ mvn -X deploy:deploy-file -DrepositoryId=bender -Durl=file://H:/maven-proxy/target/repo-local
-DpomFile=exported-pom.xml -Dfile=maven-javadoc-plugin-2.0-beta-4-SNAPSHOT.jar
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Dokumente und Einstellungen\heit\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\Programme\Apache\maven-2.0.2\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'deploy'.
> [DEBUG] maven-deploy-plugin: resolved to version 2.2 from repository central
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-deploy-plugin:maven-plugin:2.2
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
> [INFO] ----------------------------------------------------------------------------
> [DEBUG] org.apache.maven.plugins:maven-deploy-plugin:maven-plugin:2.2 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-project:jar:2.0.1
> [DEBUG]   org.apache.maven:maven-project:jar:2.0.1 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-model:jar:2.0.1
> [DEBUG]     org.apache.maven:maven-model:jar:2.0.1 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: null:plexus-utils:jar:1.0.5
> [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.5 (selected for runtime)
> [DEBUG]         classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-profile:jar:2.0.1
> [DEBUG]     org.apache.maven:maven-profile:jar:2.0.1 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: null:plexus-container-default:jar:1.0-alpha-9
> [DEBUG] Retrieving parent-POM from the repository for project: org.codehaus.plexus:plexus-containers:pom:1.0.3
> [DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9 (selected
for runtime)
> [DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer found: 1.0.5)
> [DEBUG]         junit:junit:jar:3.8.1 (selected for runtime)
> [DEBUG]     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9 (selected for
runtime)
> [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer found: 1.0.5)
> [DEBUG]       classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
> [DEBUG]       junit:junit:jar:3.8.1 (selected for runtime)
> [DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.5 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact-manager:jar:2.0.1
> [DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0.1 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-repository-metadata:jar:2.0.1
> [DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0.1 (selected for runtime)
> [DEBUG]       org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 (selected for
runtime)
> [DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer found: 1.0.5)
> [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact:jar:2.0.1
> [DEBUG]       org.apache.maven:maven-artifact:jar:2.0.1 (selected for runtime)
> [DEBUG]     org.apache.maven:maven-artifact:jar:2.0.1 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-plugin-api:jar:2.0.1
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact-manager:jar:2.0
> [DEBUG]   org.apache.maven:maven-artifact-manager:jar:2.0.1 (removed - nearer found:
2.0)
> [DEBUG]   org.apache.maven:maven-artifact-manager:jar:2.0 (selected for runtime)
> [DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer found: 1.0.5)
> [DEBUG]     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (removed - nearer
found: 1.0-alpha-9)
> [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact:jar:2.0
> [DEBUG]     org.apache.maven:maven-artifact:jar:2.0 (removed - nearer found: 2.0.1)
> [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-repository-metadata:jar:2.0
> [DEBUG]     org.apache.maven:maven-repository-metadata:jar:2.0 (selected for runtime)
> [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer found: 1.0.5)
> [DEBUG]     org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 (selected for runtime)
> [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer found: 1.0.5)
> [DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1 (removed - nearer found: 2.0)
> [DEBUG]   org.apache.maven:maven-artifact:jar:2.0 (selected for runtime)
> [DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer found: 1.0.5)
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.2:deploy-file'
-->
> [DEBUG]   (f) file = c:\devel\maven\plugins\maven-javadoc-plugin\target\maven-javadoc-plugin-2.0-beta-4-SNAPSHOT.jar
> [DEBUG]   (s) localRepository = [local] -> file://C:\Dokumente und Einstellungen\heit\.m2\repository
> [DEBUG]   (f) pomFile = c:\devel\maven\plugins\maven-javadoc-plugin\target\exported-pom.xml
> [DEBUG]   (f) repositoryId = bender
> [DEBUG]   (f) uniqueVersion = true
> [DEBUG]   (f) url = file://H:/maven-proxy/target/repo-local
> [DEBUG] -- end configuration --
> [INFO] [deploy:deploy-file]
> [INFO] Retrieving previous build number from bender
> [DEBUG] repository metadata for: 'snapshot org.apache.maven.plugins:maven-javadoc-plugin:2.0-beta-4-SNAPSHOT'
could not be found on repository: bender
> [DEBUG] not adding permissions to wagon connection
> Uploading: file://H:/maven-proxy/target/repo-local/org/apache/maven/plugins/maven-javadoc-plugin/2.0-beta-4-SNAPSHOT/maven-javadoc-plugin-2.0-beta-4-20060323.110138-1.jar
> 26K uploaded
> [INFO] Retrieving previous metadata from bender
> [DEBUG] repository metadata for: 'artifact org.apache.maven.plugins:maven-javadoc-plugin'
could not be found on repository: bender
> [INFO] Uploading repository metadata for: 'artifact org.apache.maven.plugins:maven-javadoc-plugin'
> [DEBUG] not adding permissions to wagon connection
> [INFO] Retrieving previous metadata from bender
> [DEBUG] repository metadata for: 'snapshot org.apache.maven.plugins:maven-javadoc-plugin:2.0-beta-4-SNAPSHOT'
could not be found on repository: bender
> [INFO] Uploading repository metadata for: 'snapshot org.apache.maven.plugins:maven-javadoc-plugin:2.0-beta-4-SNAPSHOT'
> [DEBUG] not adding permissions to wagon connection
> [INFO] Retrieving previous build number from bender
> [DEBUG] not adding permissions to wagon connection
> Uploading: file://H:/maven-proxy/target/repo-local/org/apache/maven/plugins/maven-javadoc-plugin/2.0-beta-4-SNAPSHOT/maven-javadoc-plugin-2.0-beta-4-20060323.110138-2.pom
> 10K uploaded
> [INFO] Retrieving previous metadata from bender
> [INFO] Uploading repository metadata for: 'artifact org.apache.maven.plugins:maven-javadoc-plugin'
> [DEBUG] not adding permissions to wagon connection
> [INFO] Retrieving previous metadata from bender
> [INFO] Uploading repository metadata for: 'snapshot org.apache.maven.plugins:maven-javadoc-plugin:2.0-beta-4-SNAPSHOT'
> [DEBUG] not adding permissions to wagon connection
> [INFO] ----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Thu Mar 23 12:01:38 CET 2006
> [INFO] Final Memory: 2M/4M
> [INFO] ----------------------------------------------------------------------------
>
>
> As you can see in the debug output, when Maven uploads the metadata for the plugin,
> the POM file has a different build number than the uploaded Jar. It seems that the
> build number is increased during the Jar and POM file uploads...
>
>
> Is this a normal (correct) behaviour of the deployment plugin? Or is it simply a
> bug/feature? ;-)
>
>
> Regards
>
> Thorsten
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (MingW32)
>
> iD8DBQFEIoIHQvObkgCcDe0RAqH6AJ9GReUYHQozGGDQZkJ23zkyyuMmdgCfQMP7
> gkcSTaOTGampacBqhZbKrdM=
> =dJpk
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Mime
View raw message