You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Elliotte Rusty Harold <el...@ibiblio.org> on 2020/07/16 13:46:20 UTC

401 error on snapshot deploy

I'm attempting to build and deploy a snapshot of
maven-dependency-analyzer 1.11.2 per instructions on
https://infra.apache.org/publishing-maven-artifacts.html

I get as far as maven deploy and then it dies with

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
(default-deploy) on project maven-dependency-analyzer: Failed to
deploy artifacts: Could not transfer artifact
org.apache.maven.shared:maven-dependency-analyzer:jar:1.11.2-20200716.133206-42
from/to apache.snapshots.https
(https://repository.apache.org/content/repositories/snapshots): Failed
to transfer file
https://repository.apache.org/content/repositories/snapshots/org/apache/maven/shared/maven-dependency-analyzer/1.11.2-SNAPSHOT/maven-dependency-analyzer-1.11.2-20200716.133206-42.jar
with status code 401 -> [Help 1]

The web page suggests a couple of possibilities here: one involving
servers in settings.xml and one involving LICENSE and NOTICE files in
the jar. As best i can tell, my settings.xml is configured for like
the web page suggests and the g LICENSE and NOTICE files are in the
jar:

~/maven-dependency-analyzer/target$ jar tvf
maven-dependency-analyzer-1.11.2-SNAPSHOT.jar
   372 Sat Apr 04 09:04:00 EDT 2020 META-INF/MANIFEST.MF
...
 11358 Sat Apr 04 09:04:00 EDT 2020 META-INF/LICENSE
   189 Sat Apr 04 09:04:00 EDT 2020 META-INF/NOTICE

Does anyone have any other ideas? Most critically is this something I
should be able to do with committer privs, or will a PMC member need
to manage this? Thanks.

-- 
Elliotte Rusty Harold
elharo@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: 401 error on snapshot deploy

Posted by Elliotte Rusty Harold <el...@ibiblio.org>.
Thank you. That was it. I had a password in settings.xml but it was
outdated and I hadn't noticed.

On Thu, Jul 16, 2020 at 9:52 AM Romain Manni-Bucau
<rm...@gmail.com> wrote:
>
> Hi Elliotte,
>
> I just did it without issue so it is likely that your settings does not
> contain your current asf username/password under apache.snapshots.https (I
> don't think you are not in the right org since you do a lot).
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <https://www.packtpub.com/application-development/java-ee-8-high-performance>
>
>
> Le jeu. 16 juil. 2020 à 15:47, Elliotte Rusty Harold <el...@ibiblio.org> a
> écrit :
>
> > I'm attempting to build and deploy a snapshot of
> > maven-dependency-analyzer 1.11.2 per instructions on
> > https://infra.apache.org/publishing-maven-artifacts.html
> >
> > I get as far as maven deploy and then it dies with
> >
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
> > (default-deploy) on project maven-dependency-analyzer: Failed to
> > deploy artifacts: Could not transfer artifact
> >
> > org.apache.maven.shared:maven-dependency-analyzer:jar:1.11.2-20200716.133206-42
> > from/to apache.snapshots.https
> > (https://repository.apache.org/content/repositories/snapshots): Failed
> > to transfer file
> >
> > https://repository.apache.org/content/repositories/snapshots/org/apache/maven/shared/maven-dependency-analyzer/1.11.2-SNAPSHOT/maven-dependency-analyzer-1.11.2-20200716.133206-42.jar
> > with status code 401 -> [Help 1]
> >
> > The web page suggests a couple of possibilities here: one involving
> > servers in settings.xml and one involving LICENSE and NOTICE files in
> > the jar. As best i can tell, my settings.xml is configured for like
> > the web page suggests and the g LICENSE and NOTICE files are in the
> > jar:
> >
> > ~/maven-dependency-analyzer/target$ jar tvf
> > maven-dependency-analyzer-1.11.2-SNAPSHOT.jar
> >    372 Sat Apr 04 09:04:00 EDT 2020 META-INF/MANIFEST.MF
> > ...
> >  11358 Sat Apr 04 09:04:00 EDT 2020 META-INF/LICENSE
> >    189 Sat Apr 04 09:04:00 EDT 2020 META-INF/NOTICE
> >
> > Does anyone have any other ideas? Most critically is this something I
> > should be able to do with committer privs, or will a PMC member need
> > to manage this? Thanks.
> >
> > --
> > Elliotte Rusty Harold
> > elharo@ibiblio.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >



-- 
Elliotte Rusty Harold
elharo@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: 401 error on snapshot deploy

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Elliotte,

I just did it without issue so it is likely that your settings does not
contain your current asf username/password under apache.snapshots.https (I
don't think you are not in the right org since you do a lot).

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le jeu. 16 juil. 2020 à 15:47, Elliotte Rusty Harold <el...@ibiblio.org> a
écrit :

> I'm attempting to build and deploy a snapshot of
> maven-dependency-analyzer 1.11.2 per instructions on
> https://infra.apache.org/publishing-maven-artifacts.html
>
> I get as far as maven deploy and then it dies with
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
> (default-deploy) on project maven-dependency-analyzer: Failed to
> deploy artifacts: Could not transfer artifact
>
> org.apache.maven.shared:maven-dependency-analyzer:jar:1.11.2-20200716.133206-42
> from/to apache.snapshots.https
> (https://repository.apache.org/content/repositories/snapshots): Failed
> to transfer file
>
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/shared/maven-dependency-analyzer/1.11.2-SNAPSHOT/maven-dependency-analyzer-1.11.2-20200716.133206-42.jar
> with status code 401 -> [Help 1]
>
> The web page suggests a couple of possibilities here: one involving
> servers in settings.xml and one involving LICENSE and NOTICE files in
> the jar. As best i can tell, my settings.xml is configured for like
> the web page suggests and the g LICENSE and NOTICE files are in the
> jar:
>
> ~/maven-dependency-analyzer/target$ jar tvf
> maven-dependency-analyzer-1.11.2-SNAPSHOT.jar
>    372 Sat Apr 04 09:04:00 EDT 2020 META-INF/MANIFEST.MF
> ...
>  11358 Sat Apr 04 09:04:00 EDT 2020 META-INF/LICENSE
>    189 Sat Apr 04 09:04:00 EDT 2020 META-INF/NOTICE
>
> Does anyone have any other ideas? Most critically is this something I
> should be able to do with committer privs, or will a PMC member need
> to manage this? Thanks.
>
> --
> Elliotte Rusty Harold
> elharo@ibiblio.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>