Error trying to release StarTeam plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Error trying to release StarTeam plugin

Ilkka Laukkanen
Hi,

I'm having what is probably a newbie problem trying to release the
StarTeam SCM hudson plugin using maven. The plugin is hosted in Hudson
CVS, and I have the entire tree checked out. I've checked in my
changes, created ~/.java.net with the relevant info and run
release:prepare successfully. However, when I try to run
release:perform, I get this error:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building Hudson StarTeam plugin
[INFO]    task-segment: [release:perform] (aggregator-style)
[INFO] ----------------------------------------------------------------------------
[INFO] [release:perform]
[INFO] Checking out the project to perform the release ...
[INFO] Executing: cvs -z3 -f -d :pserver:[hidden email]:/cvs
-q checkout -r starteam-0_1_3 -d checkout
hudson/hudson/plugins/starteam
[INFO] Working directory:
/home/poutanei/src/hudson/hudson/plugins/starteam/target
[INFO] Executing goals 'deploy hpi:upload hpi:announce'...
[INFO] Executing: mvn deploy hpi:upload hpi:announce
--no-plugin-updates -DperformRelease=true -f pom.xml
[INFO] Scanning for projects...
        Downloading:
http://repo1.maven.org/maven2/org/jvnet/hudson/plugins/plugin/1.156/plugin-1.156.pom
        [INFO] ------------------------------------------------------------------------
        [ERROR] FATAL ERROR
        [INFO] ------------------------------------------------------------------------
        [INFO] Failed to resolve artifact.

    GroupId: org.jvnet.hudson.plugins
        ArtifactId: plugin
        Version: 1.156

    Reason: Unable to download the artifact from any repository

      org.jvnet.hudson.plugins:plugin:pom:1.156

    from the specified remote repositories:
          central (http://repo1.maven.org/maven2)


        [INFO] ------------------------------------------------------------------------
        [INFO] Trace
        org.apache.maven.reactor.MavenExecutionException: Cannot find
parent: org.jvnet.hudson.plugins:plugin for project:
hudson.plugins:starteam:hpi:0.1.3 for project
hudson.plugins:starteam:hpi:0.1.3
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
        Caused by: org.apache.maven.project.ProjectBuildingException:
Cannot find parent: org.jvnet.hudson.plugins:plugin for project:
hudson.plugins:starteam:hpi:0.1.3 for project
hudson.plugins:starteam:hpi:0.1.3
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1261)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:747)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:479)
        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
        ... 11 more
        Caused by: org.apache.maven.project.ProjectBuildingException:
POM 'org.jvnet.hudson.plugins:plugin' not found in repository: Unable
to download the artifact from any repository

      org.jvnet.hudson.plugins:plugin:pom:1.156

    from the specified remote repositories:
          central (http://repo1.maven.org/maven2)
         for project org.jvnet.hudson.plugins:plugin
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:573)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1257)
        ... 17 more
        Caused by:
org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
to download the artifact from any repository

      org.jvnet.hudson.plugins:plugin:pom:1.156

    from the specified remote repositories:
          central (http://repo1.maven.org/maven2)

    at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:197)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73)
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:526)
        ... 18 more
        Caused by:
org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
download the artifact from any repository
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:324)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:185)
        ... 20 more
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time: < 1 second
        [INFO] Finished at: Tue Nov 27 11:56:15 EET 2007
        [INFO] Final Memory: 1M/62M
        [INFO] ------------------------------------------------------------------------
        [INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Maven execution failed, exit code: '1'

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Maven
execution failed, exit code: '1'
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Maven
execution failed, exit code: '1'
        at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:106)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: org.apache.maven.shared.release.ReleaseExecutionException:
Maven execution failed, exit code: '1'
        at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:66)
        at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:67)
        at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:319)
        at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:267)
        at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:260)
        at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:102)
        ... 18 more
Caused by: org.apache.maven.shared.release.exec.MavenExecutorException:
Maven execution failed, exit code: '1'
        at org.apache.maven.shared.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:108)
        at org.apache.maven.shared.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:126)
        at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:59)
        ... 23 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Tue Nov 27 11:56:15 EET 2007
[INFO] Final Memory: 8M/143M
[INFO] ------------------------------------------------------------------------

A similar error was reported a while back[1] but IIRC that had to do
with not having checked out the entire tree, which is not true in my
case. Any help is appreciated.


1. https://hudson.dev.java.net/servlets/ReadMsg?list=dev&msgNo=457

--
Ilkka Laukkanen
http://ilkankuvat.blogspot.com
"And unto this, Conan;"

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Error trying to release StarTeam plugin

Kohsuke Kawaguchi
Administrator

This is a known problem that I don't know how to fix.

Basically, the issue is that your Maven is complaining that it can't
find the parent pom module. This is actually available in the java.net
m2 repository, but the reference to the java.net m2 repository is
declared on the pom module itself, so that's the chicken-and-egg problem.

The easy way to fix this it to run "mvn -N install" from hudson/plugins
to make it locally available. Then this should go smoothly.

I suppose tweaking ~/.m2/settings.xml to always include java.net m2
repository might be another. Maybe I should document that in Wiki.


(And I noticed that plugin POM is stoping at 1.156. I need to fix this.)

Ilkka Laukkanen wrote:

> Hi,
>
> I'm having what is probably a newbie problem trying to release the
> StarTeam SCM hudson plugin using maven. The plugin is hosted in Hudson
> CVS, and I have the entire tree checked out. I've checked in my
> changes, created ~/.java.net with the relevant info and run
> release:prepare successfully. However, when I try to run
> release:perform, I get this error:
>
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'release'.
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Hudson StarTeam plugin
> [INFO]    task-segment: [release:perform] (aggregator-style)
> [INFO] ----------------------------------------------------------------------------
> [INFO] [release:perform]
> [INFO] Checking out the project to perform the release ...
> [INFO] Executing: cvs -z3 -f -d :pserver:[hidden email]:/cvs
> -q checkout -r starteam-0_1_3 -d checkout
> hudson/hudson/plugins/starteam
> [INFO] Working directory:
> /home/poutanei/src/hudson/hudson/plugins/starteam/target
> [INFO] Executing goals 'deploy hpi:upload hpi:announce'...
> [INFO] Executing: mvn deploy hpi:upload hpi:announce
> --no-plugin-updates -DperformRelease=true -f pom.xml
> [INFO] Scanning for projects...
>         Downloading:
> http://repo1.maven.org/maven2/org/jvnet/hudson/plugins/plugin/1.156/plugin-1.156.pom
>         [INFO] ------------------------------------------------------------------------
>         [ERROR] FATAL ERROR
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Failed to resolve artifact.
>
>     GroupId: org.jvnet.hudson.plugins
>         ArtifactId: plugin
>         Version: 1.156
>
>     Reason: Unable to download the artifact from any repository
>
>       org.jvnet.hudson.plugins:plugin:pom:1.156
>
>     from the specified remote repositories:
>           central (http://repo1.maven.org/maven2)
>
>
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Trace
>         org.apache.maven.reactor.MavenExecutionException: Cannot find
> parent: org.jvnet.hudson.plugins:plugin for project:
> hudson.plugins:starteam:hpi:0.1.3 for project
> hudson.plugins:starteam:hpi:0.1.3
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>         Caused by: org.apache.maven.project.ProjectBuildingException:
> Cannot find parent: org.jvnet.hudson.plugins:plugin for project:
> hudson.plugins:starteam:hpi:0.1.3 for project
> hudson.plugins:starteam:hpi:0.1.3
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1261)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:747)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:479)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
>         ... 11 more
>         Caused by: org.apache.maven.project.ProjectBuildingException:
> POM 'org.jvnet.hudson.plugins:plugin' not found in repository: Unable
> to download the artifact from any repository
>
>       org.jvnet.hudson.plugins:plugin:pom:1.156
>
>     from the specified remote repositories:
>           central (http://repo1.maven.org/maven2)
>          for project org.jvnet.hudson.plugins:plugin
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:573)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1257)
>         ... 17 more
>         Caused by:
> org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
> to download the artifact from any repository
>
>       org.jvnet.hudson.plugins:plugin:pom:1.156
>
>     from the specified remote repositories:
>           central (http://repo1.maven.org/maven2)
>
>     at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:197)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:526)
>         ... 18 more
>         Caused by:
> org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
> download the artifact from any repository
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:324)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:185)
>         ... 20 more
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Total time: < 1 second
>         [INFO] Finished at: Tue Nov 27 11:56:15 EET 2007
>         [INFO] Final Memory: 1M/62M
>         [INFO] ------------------------------------------------------------------------
>         [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Maven execution failed, exit code: '1'
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Maven
> execution failed, exit code: '1'
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Maven
> execution failed, exit code: '1'
> at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:106)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> ... 16 more
> Caused by: org.apache.maven.shared.release.ReleaseExecutionException:
> Maven execution failed, exit code: '1'
> at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:66)
> at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:67)
> at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:319)
> at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:267)
> at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:260)
> at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:102)
> ... 18 more
> Caused by: org.apache.maven.shared.release.exec.MavenExecutorException:
> Maven execution failed, exit code: '1'
> at org.apache.maven.shared.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:108)
> at org.apache.maven.shared.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:126)
> at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:59)
> ... 23 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 11 seconds
> [INFO] Finished at: Tue Nov 27 11:56:15 EET 2007
> [INFO] Final Memory: 8M/143M
> [INFO] ------------------------------------------------------------------------
>
> A similar error was reported a while back[1] but IIRC that had to do
> with not having checked out the entire tree, which is not true in my
> case. Any help is appreciated.
>
>
> 1. https://hudson.dev.java.net/servlets/ReadMsg?list=dev&msgNo=457
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error trying to release StarTeam plugin

Ilkka Laukkanen
Thanks, I got a lot further this time after following your advice and
performing install in both the plugins and hudson directories. I still
can't perform a release though: it fails in the deployment stage. When
I run only "mvn deploy" with error tracing turned on, this is what I
get:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Hudson StarTeam plugin
[INFO]    task-segment: [deploy]
[INFO] ----------------------------------------------------------------------------
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.0.7
[INFO] JDK Version: 1.5.0_11 normalized as: 1.5.0-11
[INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.9-55.0.12.elsmp
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://download.java.net/maven/2/com/borland/starteam-sdk/9.3/starteam-sdk-9.3.pom
Downloading: http://repo1.maven.org/maven2/com/borland/starteam-sdk/9.3/starteam-sdk-9.3.pom
Downloading: http://download.java.net/maven/2/com/borland/starteam-extensions/9.3/starteam-extensions-9.3.pom
Downloading: http://repo1.maven.org/maven2/com/borland/starteam-extensions/9.3/starteam-extensions-9.3.pom
Downloading: http://download.java.net/maven/2/com/rsa/jsafe/jsafe/3.5/jsafe-3.5.pom
Downloading: http://repo1.maven.org/maven2/com/rsa/jsafe/jsafe/3.5/jsafe-3.5.pom
[WARNING] POM for 'javanettasks:javanettasks:pom:1.0.12:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM. for project javanettasks:javanettasks at
/work/poutanei/maven/repository/javanettasks/javanettasks/1.0.12/javanettasks-1.0.12.pom
[WARNING] While downloading xerces:xerces:2.2.1
  This artifact has been relocated to xerces:xercesImpl:2.2.1.


[INFO] [hpi:apt-compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [hpi:hpi]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to
/home/poutanei/src/hudson/hudson/plugins/starteam/target/starteam
[INFO] Assembling webapp starteam in
/home/poutanei/src/hudson/hudson/plugins/starteam/target/starteam
[INFO] Generating hpi
/home/poutanei/src/hudson/hudson/plugins/starteam/target/starteam.hpi
[INFO] Building jar:
/home/poutanei/src/hudson/hudson/plugins/starteam/target/starteam.hpi
[INFO] Building jar:
/home/poutanei/src/hudson/hudson/plugins/starteam/target/starteam.jar
[INFO] [install:install]
[INFO] Installing
/home/poutanei/src/hudson/hudson/plugins/starteam/target/starteam.hpi
to /work/poutanei/maven/repository/hudson/plugins/starteam/0.1.5-SNAPSHOT/starteam-0.1.5-SNAPSHOT.hpi
[INFO] Installing
/home/poutanei/src/hudson/hudson/plugins/starteam/target/starteam.jar
to /work/poutanei/maven/repository/hudson/plugins/starteam/0.1.5-SNAPSHOT/starteam-0.1.5-SNAPSHOT.jar
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from java.net-m2-repository
[WARNING] repository metadata for: 'snapshot
hudson.plugins:starteam:0.1.5-SNAPSHOT' could not be retrieved from
repository: java.net-m2-repository due to an error: Connection failed:
Unable to connect to
https://svn.dev.java.net/svn/maven2-repository/trunk/www/repository/
[INFO] Repository 'java.net-m2-repository' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Connection failed: Unable to connect
to https://svn.dev.java.net/svn/maven2-repository/trunk/www/repository/

svn: authentication cancelled
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
deploying artifact: Connection failed: Unable to connect to
https://svn.dev.java.net/svn/maven2-repository/trunk/www/repository/
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
deploying artifact: Connection failed: Unable to connect to
https://svn.dev.java.net/svn/maven2-repository/trunk/www/repository/
        at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:174)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
Error deploying artifact: Connection failed: Unable to connect to
https://svn.dev.java.net/svn/maven2-repository/trunk/www/repository/
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:94)
        at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:162)
        ... 18 more
Caused by: org.apache.maven.wagon.TransferFailedException: Connection
failed: Unable to connect to
https://svn.dev.java.net/svn/maven2-repository/trunk/www/repository/
        at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:264)
        at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:153)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80)
        ... 19 more
Caused by: org.apache.maven.wagon.ConnectionException: Unable to
connect to https://svn.dev.java.net/svn/maven2-repository/trunk/www/repository/
        at com.sun.wts.tools.maven.SubversionWagon.openConnection(SubversionWagon.java:138)
        at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
        at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:235)
        ... 21 more
Caused by: org.tmatesoft.svn.core.SVNCancelException: svn:
authentication cancelled
        at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:30)
        at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getNextAuthentication(DefaultSVNAuthenticationManager.java:192)
        at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:452)
        at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:234)
        at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:222)
        at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doMakeActivity(DAVConnection.java:246)
        at org.tmatesoft.svn.core.internal.io.dav.DAVCommitEditor.createActivity(DAVCommitEditor.java:406)
        at org.tmatesoft.svn.core.internal.io.dav.DAVCommitEditor.openRoot(DAVCommitEditor.java:85)
        at com.sun.wts.tools.maven.SubversionWagon.openConnection(SubversionWagon.java:132)
        ... 23 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33 seconds
[INFO] Finished at: Wed Nov 28 10:25:17 EET 2007
[INFO] Final Memory: 20M/164M
[INFO] ------------------------------------------------------------------------

Now the crux is pretty obviously the failure to connect to
svn.dev.java.net over https. Trying the given URL with wget works,
however (once I pass my correct username and password, along with
--no-check-certificate so that it doesn't complain about that).

My unix username on the machine I'm trying to release from differs
from my java.net username. Could this be the cause? Otherwise it'd
have to be the certificate, I guess.

Any ideas?


--
Ilkka Laukkanen
http://ilkankuvat.blogspot.com
"And unto this, Conan;"

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Error trying to release StarTeam plugin

Kohsuke Kawaguchi
Administrator
Ilkka Laukkanen wrote:

> Now the crux is pretty obviously the failure to connect to
> svn.dev.java.net over https. Trying the given URL with wget works,
> however (once I pass my correct username and password, along with
> --no-check-certificate so that it doesn't complain about that).
>
> My unix username on the machine I'm trying to release from differs
> from my java.net username. Could this be the cause? Otherwise it'd
> have to be the certificate, I guess.
>
> Any ideas?
See "Releasing to hudson.dev.java.net" in
http://hudson.gotdns.com/wiki/display/HUDSON/Plugin+tutorial

In particular, set up ~/.java.net by following
https://javanettasks.dev.java.net/nonav/maven/config.html

I should probably update the plugin to check for the existence of this file.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error trying to release StarTeam plugin

Kohsuke Kawaguchi
Administrator
Kohsuke Kawaguchi wrote:
> I should probably update the plugin to check for the existence of this file.

Fixed in wagon-svn 1.7 that I just released.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error trying to release StarTeam plugin

Ilkka Laukkanen
In reply to this post by Kohsuke Kawaguchi
On Nov 29, 2007 3:46 AM, Kohsuke Kawaguchi <[hidden email]> wrote:
> Ilkka Laukkanen wrote:
> > Now the crux is pretty obviously the failure to connect to
> > svn.dev.java.net over https. Trying the given URL with wget works,
>
> See "Releasing to hudson.dev.java.net" in
> http://hudson.gotdns.com/wiki/display/HUDSON/Plugin+tutorial
>
> In particular, set up ~/.java.net by following
> https://javanettasks.dev.java.net/nonav/maven/config.html

Well, I did. And tried giving the same info on the command line too,
for good measure, but to no avail.

I guess I'll just clean up and try again after checking in my latest fixes.


--
Ilkka Laukkanen
http://ilkankuvat.blogspot.com
"And unto this, Conan;"

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]