You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Mark Hobson <ma...@gmail.com> on 2010/09/16 19:44:39 UTC
Plugin deployment problems
Hi there,
I've been updating my environment to release the Checkstyle plugin and
am having problems even deploying a snapshot. I've configured
settings.xml as specified [1] but still get:
[INFO] Error deploying artifact: Authorization failed: Access denied
to: https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100916.173741-5.jar
I've used the same credentials that are in my settings.xml for
apache.snapshots.https to successfully log into Apache's Nexus. Is
there anything I'm missing?
Cheers,
Mark
[1] http://www.apache.org/dev/publishing-maven-artifacts.html#settings
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Plugin deployment problems
Posted by Mark Hobson <ma...@gmail.com>.
On 20 September 2010 13:01, Martin Gainty <mg...@hotmail.com> wrote:
> did you add repository.apache.org/content/repositories/snapshots repository to your list of proxied repositories in your ./.m2/settings.xml
> http://maven.apache.org/ref/2.2.1/maven-settings/settings.html
I haven't got any proxy elements in my settings.xml, just server ones
as detailed in:
http://maven.apache.org/developers/committer-settings.html
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: Plugin deployment problems
Posted by Martin Gainty <mg...@hotmail.com>.
Hi Mark
did you add repository.apache.org/content/repositories/snapshots repository to your list of proxied repositories in your ./.m2/settings.xml
http://maven.apache.org/ref/2.2.1/maven-settings/settings.html
?
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> Date: Mon, 20 Sep 2010 11:15:09 +0100
> Subject: Re: Plugin deployment problems
> From: markhobson@gmail.com
> To: dev@maven.apache.org
>
> On 17 September 2010 21:38, Anders Hammar <an...@hammar.net> wrote:
> > That's what I would do. Start with a simple setup and when that works add
> > the encryption.
>
> I still get a 403 when using no password encryption. I've also tried
> using the httpclient wagon provider but to no avail:
>
> [INFO] [deploy:deploy {execution: default-deploy}]
> [INFO] Retrieving previous build number from apache.snapshots.https
> [DEBUG] Using Wagon implementation httpclient from default mapping for
> protocol https
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> [DEBUG] Connecting to repository: 'apache.snapshots.https' with url:
> 'https://repository.apache.org/content/repositories/snapshots'.
> [DEBUG] Using Wagon implementation httpclient from default mapping for
> protocol https
> [DEBUG] Using Wagon implementation httpclient from default mapping for
> protocol https
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> [DEBUG] not adding permissions to wagon connection
> Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> [DEBUG] https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> - Status code: 403
> [DEBUG] Using Wagon implementation httpclient from default mapping for
> protocol https
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error deploying artifact: Authorization failed: Access denied
> to: https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
>
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error
> deploying artifact: Authorization failed: Access denied to:
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 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:592)
> 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: Authorization failed: Access denied to:
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
> Error deploying artifact: Authorization failed: Access denied to:
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121)
> at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:156)
> ... 19 more
> Caused by: org.apache.maven.wagon.TransferFailedException:
> Authorization failed: Access denied to:
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:352)
> at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227)
> at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107)
> ... 20 more
> Caused by: org.apache.maven.wagon.authorization.AuthorizationException:
> Access denied to:
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:360)
> at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:280)
> at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317)
> ... 22 more
>
> Any other ideas? Again, I can log into the Nexus UI fine with the
> same password. My settings.xml has the same credentials under server
> 'apache.snapshots.https'. My username is 'markh' if that helps.
>
> Cheers,
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
Re: Plugin deployment problems
Posted by Mark Hobson <ma...@gmail.com>.
On 21 September 2010 04:45, Brian Fox <br...@infinity.nu> wrote:
> I'm at JavaOne this week so I didn't see this until know. You're back
> in the group now.
Great, thanks Brian, all working now.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Plugin deployment problems
Posted by Brian Fox <br...@infinity.nu>.
I'm at JavaOne this week so I didn't see this until know. You're back
in the group now.
On Mon, Sep 20, 2010 at 12:07 PM, Mark Hobson <ma...@gmail.com> wrote:
> On 20 September 2010 16:43, Wendy Smoak <ws...@gmail.com> wrote:
>> (If Brian hasn't seen this thread and done it already,) send an email
>> to the PMC list private@ and ask to be reinstated.
>
> Sent, thanks.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Plugin deployment problems
Posted by Mark Hobson <ma...@gmail.com>.
On 20 September 2010 16:43, Wendy Smoak <ws...@gmail.com> wrote:
> (If Brian hasn't seen this thread and done it already,) send an email
> to the PMC list private@ and ask to be reinstated.
Sent, thanks.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Plugin deployment problems
Posted by Wendy Smoak <ws...@gmail.com>.
On Mon, Sep 20, 2010 at 10:23 AM, Mark Hobson <ma...@gmail.com> wrote:
> Oh no! You're right, Brian demoted me back in July; that'll teach me
> for getting caught up with work. Do I have to do anything special to
> get reinstated?
(If Brian hasn't seen this thread and done it already,) send an email
to the PMC list private@ and ask to be reinstated.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Plugin deployment problems
Posted by Mark Hobson <ma...@gmail.com>.
On 20 September 2010 15:12, Benjamin Bentmann <be...@udo.edu> wrote:
> I don't see your user id among [0] and the Maven Parent POM says your role
> is emeritus, that explains it I guess.
>
> Two months back, there was some cleanup of the groups. Maybe you fall
> through and didn't get a mail when your status was changed.
Oh no! You're right, Brian demoted me back in July; that'll teach me
for getting caught up with work. Do I have to do anything special to
get reinstated?
Just curious: the glossary [1] states, "Emeritus status indicates
interest but not activity", so does that mean lack of activity doesn't
necessarily imply emeritus status?
Mark
[1] http://www.apache.org/foundation/glossary.html
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Plugin deployment problems
Posted by Benjamin Bentmann <be...@udo.edu>.
Mark Hobson wrote:
> svn: Commit failed (details follow):
> svn: Server sent unexpected return value (403 Forbidden)
I don't see your user id among [0] and the Maven Parent POM says your
role is emeritus, that explains it I guess.
Two months back, there was some cleanup of the groups. Maybe you fall
through and didn't get a mail when your status was changed.
Benjamin
[0] http://people.apache.org/committers-by-project.html#maven
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Plugin deployment problems
Posted by Mark Hobson <ma...@gmail.com>.
On 20 September 2010 14:20, Anders Hammar <an...@hammar.net> wrote:
> I'm kind of thinking that Jason was right when he said that the switch to
> ldap could have caused this...
Not sure if it's related, but I couldn't add my new PGP key to KEYS [1] either:
svn: Commit failed (details follow):
svn: Server sent unexpected return value (403 Forbidden) in response
to CHECKOUT request for
'/repos/asf/!svn/ver/941720/maven/project/KEYS'
Mark
[1] https://svn.apache.org/repos/asf/maven/project/KEYS
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Plugin deployment problems
Posted by Anders Hammar <an...@hammar.net>.
I'm kind of thinking that Jason was right when he said that the switch to
ldap could have caused this...
/Anders
On Mon, Sep 20, 2010 at 14:37, Mark Hobson <ma...@gmail.com> wrote:
> On 20 September 2010 13:00, Anders Hammar <an...@hammar.net> wrote:
> > I'd say you don't have permission to deploy (snapshots) to
> m-checkstyle-p.
> > You need to get someone to verify this for you.
>
> Strange, I successfully released 2.4 about a year ago, but the
> infrastructure has changed somewhat since then.
>
> Can anyone be so kind to check my permissions please? I do hope I'm
> not missing something obvious here.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
Re: Plugin deployment problems
Posted by Mark Hobson <ma...@gmail.com>.
On 20 September 2010 13:00, Anders Hammar <an...@hammar.net> wrote:
> I'd say you don't have permission to deploy (snapshots) to m-checkstyle-p.
> You need to get someone to verify this for you.
Strange, I successfully released 2.4 about a year ago, but the
infrastructure has changed somewhat since then.
Can anyone be so kind to check my permissions please? I do hope I'm
not missing something obvious here.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Plugin deployment problems
Posted by Anders Hammar <an...@hammar.net>.
I'd say you don't have permission to deploy (snapshots) to m-checkstyle-p.
You need to get someone to verify this for you.
/Anders
On Mon, Sep 20, 2010 at 12:15, Mark Hobson <ma...@gmail.com> wrote:
> On 17 September 2010 21:38, Anders Hammar <an...@hammar.net> wrote:
> > That's what I would do. Start with a simple setup and when that works add
> > the encryption.
>
> I still get a 403 when using no password encryption. I've also tried
> using the httpclient wagon provider but to no avail:
>
> [INFO] [deploy:deploy {execution: default-deploy}]
> [INFO] Retrieving previous build number from apache.snapshots.https
> [DEBUG] Using Wagon implementation httpclient from default mapping for
> protocol https
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> [DEBUG] Connecting to repository: 'apache.snapshots.https' with url:
> 'https://repository.apache.org/content/repositories/snapshots'.
> [DEBUG] Using Wagon implementation httpclient from default mapping for
> protocol https
> [DEBUG] Using Wagon implementation httpclient from default mapping for
> protocol https
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> [DEBUG] not adding permissions to wagon connection
> Uploading:
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> [DEBUG]
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> - Status code: 403
> [DEBUG] Using Wagon implementation httpclient from default mapping for
> protocol https
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error deploying artifact: Authorization failed: Access denied
> to:
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
>
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error
> deploying artifact: Authorization failed: Access denied to:
>
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 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:592)
> 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: Authorization failed: Access denied to:
>
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> at
> org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
> Error deploying artifact: Authorization failed: Access denied to:
>
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121)
> at
> org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:156)
> ... 19 more
> Caused by: org.apache.maven.wagon.TransferFailedException:
> Authorization failed: Access denied to:
>
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> at
> org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:352)
> at
> org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227)
> at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107)
> ... 20 more
> Caused by: org.apache.maven.wagon.authorization.AuthorizationException:
> Access denied to:
>
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
> at
> org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:360)
> at
> org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:280)
> at
> org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317)
> ... 22 more
>
> Any other ideas? Again, I can log into the Nexus UI fine with the
> same password. My settings.xml has the same credentials under server
> 'apache.snapshots.https'. My username is 'markh' if that helps.
>
> Cheers,
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
Re: Plugin deployment problems
Posted by Mark Hobson <ma...@gmail.com>.
On 17 September 2010 21:38, Anders Hammar <an...@hammar.net> wrote:
> That's what I would do. Start with a simple setup and when that works add
> the encryption.
I still get a 403 when using no password encryption. I've also tried
using the httpclient wagon provider but to no avail:
[INFO] [deploy:deploy {execution: default-deploy}]
[INFO] Retrieving previous build number from apache.snapshots.https
[DEBUG] Using Wagon implementation httpclient from default mapping for
protocol https
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'apache.snapshots.https' with url:
'https://repository.apache.org/content/repositories/snapshots'.
[DEBUG] Using Wagon implementation httpclient from default mapping for
protocol https
[DEBUG] Using Wagon implementation httpclient from default mapping for
protocol https
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] not adding permissions to wagon connection
Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
[DEBUG] https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
- Status code: 403
[DEBUG] Using Wagon implementation httpclient from default mapping for
protocol https
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Authorization failed: Access denied
to: https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
deploying artifact: Authorization failed: Access denied to:
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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:592)
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: Authorization failed: Access denied to:
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
Error deploying artifact: Authorization failed: Access denied to:
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121)
at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:156)
... 19 more
Caused by: org.apache.maven.wagon.TransferFailedException:
Authorization failed: Access denied to:
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:352)
at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107)
... 20 more
Caused by: org.apache.maven.wagon.authorization.AuthorizationException:
Access denied to:
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100920.100436-5.jar
at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:360)
at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:280)
at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317)
... 22 more
Any other ideas? Again, I can log into the Nexus UI fine with the
same password. My settings.xml has the same credentials under server
'apache.snapshots.https'. My username is 'markh' if that helps.
Cheers,
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Plugin deployment problems
Posted by Anders Hammar <an...@hammar.net>.
That's what I would do. Start with a simple setup and when that works add
the encryption.
/Anders
On Fri, Sep 17, 2010 at 22:35, Mark Hobson <ma...@gmail.com> wrote:
> On 17 September 2010 19:41, Anders Hammar <an...@hammar.net> wrote:
> > But he could log into the Apache Nexus instance through the UI, so that
> > can't be the case.
> > Mark, are you sure the server id in settings.xml match the id of the repo
> > (e.i. "apache.snapshots.https")? Is the password encrypted?
>
> As sure as I can be as it is encrypted. I can try without encryption
> just to make sure that isn't causing problems.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
Re: Plugin deployment problems
Posted by Mark Hobson <ma...@gmail.com>.
On 17 September 2010 19:41, Anders Hammar <an...@hammar.net> wrote:
> But he could log into the Apache Nexus instance through the UI, so that
> can't be the case.
> Mark, are you sure the server id in settings.xml match the id of the repo
> (e.i. "apache.snapshots.https")? Is the password encrypted?
As sure as I can be as it is encrypted. I can try without encryption
just to make sure that isn't causing problems.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Plugin deployment problems
Posted by Anders Hammar <an...@hammar.net>.
But he could log into the Apache Nexus instance through the UI, so that
can't be the case.
Mark, are you sure the server id in settings.xml match the id of the repo
(e.i. "apache.snapshots.https")? Is the password encrypted?
/Anders
On Fri, Sep 17, 2010 at 19:21, Jason van Zyl <ja...@sonatype.com> wrote:
> We switched over to using LDAP a while back so I don't when you last
> deployed. You might have to reset your LDAP password.
>
> On Sep 17, 2010, at 1:17 PM, Mark Hobson wrote:
>
> > Any ideas on this one? It's blocking me from releasing the
> > maven-checkstyle-plugin which I'd like to do ASAP.
> >
> > Mark
> >
> > On 16 September 2010 18:44, Mark Hobson <ma...@gmail.com> wrote:
> >> Hi there,
> >>
> >> I've been updating my environment to release the Checkstyle plugin and
> >> am having problems even deploying a snapshot. I've configured
> >> settings.xml as specified [1] but still get:
> >>
> >> [INFO] Error deploying artifact: Authorization failed: Access denied
> >> to:
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100916.173741-5.jar
> >>
> >> I've used the same credentials that are in my settings.xml for
> >> apache.snapshots.https to successfully log into Apache's Nexus. Is
> >> there anything I'm missing?
> >>
> >> Cheers,
> >>
> >> Mark
> >>
> >> [1] http://www.apache.org/dev/publishing-maven-artifacts.html#settings
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder, Apache Maven
> http://twitter.com/jvanzyl
> ---------------------------------------------------------
>
> Three people can keep a secret provided two of them are dead.
>
> -- Unknown
>
>
>
>
Re: Plugin deployment problems
Posted by Jason van Zyl <ja...@sonatype.com>.
We switched over to using LDAP a while back so I don't when you last deployed. You might have to reset your LDAP password.
On Sep 17, 2010, at 1:17 PM, Mark Hobson wrote:
> Any ideas on this one? It's blocking me from releasing the
> maven-checkstyle-plugin which I'd like to do ASAP.
>
> Mark
>
> On 16 September 2010 18:44, Mark Hobson <ma...@gmail.com> wrote:
>> Hi there,
>>
>> I've been updating my environment to release the Checkstyle plugin and
>> am having problems even deploying a snapshot. I've configured
>> settings.xml as specified [1] but still get:
>>
>> [INFO] Error deploying artifact: Authorization failed: Access denied
>> to: https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100916.173741-5.jar
>>
>> I've used the same credentials that are in my settings.xml for
>> apache.snapshots.https to successfully log into Apache's Nexus. Is
>> there anything I'm missing?
>>
>> Cheers,
>>
>> Mark
>>
>> [1] http://www.apache.org/dev/publishing-maven-artifacts.html#settings
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------
Three people can keep a secret provided two of them are dead.
-- Unknown
Re: Plugin deployment problems
Posted by Mark Hobson <ma...@gmail.com>.
Any ideas on this one? It's blocking me from releasing the
maven-checkstyle-plugin which I'd like to do ASAP.
Mark
On 16 September 2010 18:44, Mark Hobson <ma...@gmail.com> wrote:
> Hi there,
>
> I've been updating my environment to release the Checkstyle plugin and
> am having problems even deploying a snapshot. I've configured
> settings.xml as specified [1] but still get:
>
> [INFO] Error deploying artifact: Authorization failed: Access denied
> to: https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.6-SNAPSHOT/maven-checkstyle-plugin-2.6-20100916.173741-5.jar
>
> I've used the same credentials that are in my settings.xml for
> apache.snapshots.https to successfully log into Apache's Nexus. Is
> there anything I'm missing?
>
> Cheers,
>
> Mark
>
> [1] http://www.apache.org/dev/publishing-maven-artifacts.html#settings
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org