You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stefano Fornari <st...@gmail.com> on 2022/06/19 17:11:27 UTC
How to tell maven to use https instead of http...
I am trying to create a project from an archetype:
mvn archetype:generate \
-DarchetypeGroupId=org.openjfx \
-DarchetypeArtifactId=javafx-archetype-simple \
-DarchetypeVersion=0.0.3 \
-DgroupId=org.openjfx \
-DartifactId=sample \
-Dversion=1.0.0 \
-Djavafx-version=17.0.1
But I am getting the following error:
rg.apache.maven.wagon.TransferFailedException: Failed to transfer file:
http://repo1.maven.org/maven2. Return code is: 501 , ReasonPhrase:HTTPS
Required.
Shouldn't maven central be hardcoded in the apache-maven package? How can I
fix it?
Many thanks in advance.
Ste
Re: How to tell maven to use https instead of http...
Posted by Tomo Suzuki <su...@google.com.INVALID>.
Maven has the debug option “-X”. It may tell you why it choose the HTTP URL.
On Sun, Jun 19, 2022 at 13:11 Stefano Fornari <st...@gmail.com>
wrote:
> I am trying to create a project from an archetype:
>
> mvn archetype:generate \
> -DarchetypeGroupId=org.openjfx \
> -DarchetypeArtifactId=javafx-archetype-simple \
> -DarchetypeVersion=0.0.3 \
> -DgroupId=org.openjfx \
> -DartifactId=sample \
> -Dversion=1.0.0 \
> -Djavafx-version=17.0.1
>
>
> But I am getting the following error:
>
> rg.apache.maven.wagon.TransferFailedException: Failed to transfer file:
> http://repo1.maven.org/maven2. Return code is: 501 , ReasonPhrase:HTTPS
> Required.
>
> Shouldn't maven central be hardcoded in the apache-maven package? How can I
> fix it?
>
> Many thanks in advance.
>
> Ste
>
--
Regards,
Tomo
Re: How to tell maven to use https instead of http...
Posted by Stefano Fornari <st...@gmail.com>.
Hello,
latest maven, and I ddi check settings.xml:
mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /opt/apache-maven-3.8.6
Java version: 11.0.15, vendor: Private Build, runtime:
/usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-120-generic", arch: "amd64", family:
"unix"
cat .m2/settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<profiles>
<profile>
<id>personal</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.keyname>...</gpg.keyname>
<gpg.passphrase>....</gpg.passphrase>
</properties>
</profile>
</profiles>
<pluginGroups>
<pluginGroup>com.jayway.maven.plugins.android.generation2</pluginGroup>
</pluginGroups>
<servers>
<server>
<id>ossrh</id>
<username>...</username>
<password>...</password>
</server>
<server>
<id>gpg.passphrase</id>
<passphrase>...</passphrase>
</server>
</servers>
<activeProfiles>
<activeProfile>personal</activeProfile>
</activeProfiles>
</settings>
Ste
On Mon, Jun 20, 2022 at 6:39 AM Bernd Eckenfels <ec...@zusammenkunft.net>
wrote:
> Besides the already suggested maven version update, did you also check
> your ~/.m2/settings.xml?
>
> Gruss
> Bernd
>
>
> --
> http://bernd.eckenfels.net
> ________________________________
> Von: Stefano Fornari <st...@gmail.com>
> Gesendet: Sunday, June 19, 2022 7:11:27 PM
> An: Maven Users List <us...@maven.apache.org>
> Betreff: How to tell maven to use https instead of http...
>
> I am trying to create a project from an archetype:
>
> mvn archetype:generate \
> -DarchetypeGroupId=org.openjfx \
> -DarchetypeArtifactId=javafx-archetype-simple \
> -DarchetypeVersion=0.0.3 \
> -DgroupId=org.openjfx \
> -DartifactId=sample \
> -Dversion=1.0.0 \
> -Djavafx-version=17.0.1
>
>
> But I am getting the following error:
>
> rg.apache.maven.wagon.TransferFailedException: Failed to transfer file:
> http://repo1.maven.org/maven2. Return code is: 501 , ReasonPhrase:HTTPS
> Required.
>
> Shouldn't maven central be hardcoded in the apache-maven package? How can I
> fix it?
>
> Many thanks in advance.
>
> Ste
>
Re: How to tell maven to use https instead of http...
Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
Besides the already suggested maven version update, did you also check your ~/.m2/settings.xml?
Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
Von: Stefano Fornari <st...@gmail.com>
Gesendet: Sunday, June 19, 2022 7:11:27 PM
An: Maven Users List <us...@maven.apache.org>
Betreff: How to tell maven to use https instead of http...
I am trying to create a project from an archetype:
mvn archetype:generate \
-DarchetypeGroupId=org.openjfx \
-DarchetypeArtifactId=javafx-archetype-simple \
-DarchetypeVersion=0.0.3 \
-DgroupId=org.openjfx \
-DartifactId=sample \
-Dversion=1.0.0 \
-Djavafx-version=17.0.1
But I am getting the following error:
rg.apache.maven.wagon.TransferFailedException: Failed to transfer file:
http://repo1.maven.org/maven2. Return code is: 501 , ReasonPhrase:HTTPS
Required.
Shouldn't maven central be hardcoded in the apache-maven package? How can I
fix it?
Many thanks in advance.
Ste
Re: How to tell maven to use https instead of http...
Posted by Slawomir Jaranowski <s....@gmail.com>.
Hi,
What version of Maven do you use?
Show output of:
mvn -v
Please try with the latest version: https://maven.apache.org/download.cgi
niedz., 19 cze 2022 o 19:12 Stefano Fornari <st...@gmail.com>
napisał(a):
> I am trying to create a project from an archetype:
>
> mvn archetype:generate \
> -DarchetypeGroupId=org.openjfx \
> -DarchetypeArtifactId=javafx-archetype-simple \
> -DarchetypeVersion=0.0.3 \
> -DgroupId=org.openjfx \
> -DartifactId=sample \
> -Dversion=1.0.0 \
> -Djavafx-version=17.0.1
>
>
> But I am getting the following error:
>
> rg.apache.maven.wagon.TransferFailedException: Failed to transfer file:
> http://repo1.maven.org/maven2. Return code is: 501 , ReasonPhrase:HTTPS
> Required.
>
> Shouldn't maven central be hardcoded in the apache-maven package? How can I
> fix it?
>
> Many thanks in advance.
>
> Ste
>
--
Sławomir Jaranowski
Re: How to tell maven to use https instead of http...
Posted by Hervé BOUTEMY <he...@free.fr>.
what version of Maven Archetype Plugin do you get?
And what is the output before the exception?
Regards,
Hervé
Le dimanche 19 juin 2022, 19:11:27 CEST Stefano Fornari a écrit :
> I am trying to create a project from an archetype:
>
> mvn archetype:generate \
> -DarchetypeGroupId=org.openjfx \
> -DarchetypeArtifactId=javafx-archetype-simple \
> -DarchetypeVersion=0.0.3 \
> -DgroupId=org.openjfx \
> -DartifactId=sample \
> -Dversion=1.0.0 \
> -Djavafx-version=17.0.1
>
>
> But I am getting the following error:
>
> rg.apache.maven.wagon.TransferFailedException: Failed to transfer file:
> http://repo1.maven.org/maven2. Return code is: 501 , ReasonPhrase:HTTPS
> Required.
>
> Shouldn't maven central be hardcoded in the apache-maven package? How can I
> fix it?
>
> Many thanks in advance.
>
> Ste
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org