netbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaurav Gupta (Jira)" <j...@apache.org>
Subject [jira] [Updated] (NETBEANS-3936) Project creation from payara-micro-maven-archetype failed
Date Mon, 02 Mar 2020 19:57:00 GMT

     [ https://issues.apache.org/jira/browse/NETBEANS-3936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gaurav Gupta updated NETBEANS-3936:
-----------------------------------
    Description: 
Earlier maven supports the creation of a project from the latest version archetype by defining
the blank version in archetypeVersion property in command line but now it is mandatory to
defined the archetypeVersion, hence results in the following error:
{code:java}
[WARNING] Error reading archetype catalog http://repo.maven.apache.org/maven2 org.apache.maven.wagon.TransferFailedException:
Failed to transfer file http://repo.maven.apache.org/maven2 with status code 501{code}
The correct command defines -DarchetypeVersion=1.0.4 to generate a project from archetype:
{code:java}
 mvn -DarchetypeGroupId=fish.payara.maven.archetypes -DarchetypeArtifactId=payara-micro-maven-archetype
-DarchetypeVersion=1.0.4 -DarchetypeRepository=https://repo.maven.apache.org/maven2 -DgroupId=com.mycompany
-DartifactId=mavenproject33 -Dversion=1.0-SNAPSHOT -Dpackage=com.mycompany.mavenproject33
-DjavaeeVersion=8.0 -DpayaraMicroVersion=5.194 -DautoBindHttp=true -DcontextRoot=/ -Darchetype.interactive=false
--batch-mode org.apache.maven.plugins:maven-archetype-plugin:2.4:generate{code}
The issue found in all versions of Apache NetBeans IDE (which supports Payara Micro) due to
restriction in maven central.

  was:
Earlier maven supports the creation of a project from the latest version archetype by defining
the blank version in archetypeVersion property but now it is restricted and results in the
following error:
{code:java}
[WARNING] Error reading archetype catalog http://repo.maven.apache.org/maven2 org.apache.maven.wagon.TransferFailedException:
Failed to transfer file http://repo.maven.apache.org/maven2 with status code 501{code}
The correct command to generate a project from archetype:
{code:java}
 mvn -DarchetypeGroupId=fish.payara.maven.archetypes -DarchetypeArtifactId=payara-micro-maven-archetype
-DarchetypeVersion=1.0.4 -DarchetypeRepository=https://repo.maven.apache.org/maven2 -DgroupId=com.mycompany
-DartifactId=mavenproject33 -Dversion=1.0-SNAPSHOT -Dpackage=com.mycompany.mavenproject33
-DjavaeeVersion=8.0 -DpayaraMicroVersion=5.194 -DautoBindHttp=true -DcontextRoot=/ -Darchetype.interactive=false
--batch-mode org.apache.maven.plugins:maven-archetype-plugin:2.4:generate{code}
This caused issue in all versions of Apache NetBeans IDE due to restriction in maven central.


> Project creation from payara-micro-maven-archetype failed
> ---------------------------------------------------------
>
>                 Key: NETBEANS-3936
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3936
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>            Reporter: Gaurav Gupta
>            Assignee: Gaurav Gupta
>            Priority: Major
>              Labels: Payara-Micro
>
> Earlier maven supports the creation of a project from the latest version archetype by
defining the blank version in archetypeVersion property in command line but now it is mandatory
to defined the archetypeVersion, hence results in the following error:
> {code:java}
> [WARNING] Error reading archetype catalog http://repo.maven.apache.org/maven2 org.apache.maven.wagon.TransferFailedException:
Failed to transfer file http://repo.maven.apache.org/maven2 with status code 501{code}
> The correct command defines -DarchetypeVersion=1.0.4 to generate a project from archetype:
> {code:java}
>  mvn -DarchetypeGroupId=fish.payara.maven.archetypes -DarchetypeArtifactId=payara-micro-maven-archetype
-DarchetypeVersion=1.0.4 -DarchetypeRepository=https://repo.maven.apache.org/maven2 -DgroupId=com.mycompany
-DartifactId=mavenproject33 -Dversion=1.0-SNAPSHOT -Dpackage=com.mycompany.mavenproject33
-DjavaeeVersion=8.0 -DpayaraMicroVersion=5.194 -DautoBindHttp=true -DcontextRoot=/ -Darchetype.interactive=false
--batch-mode org.apache.maven.plugins:maven-archetype-plugin:2.4:generate{code}
> The issue found in all versions of Apache NetBeans IDE (which supports Payara Micro)
due to restriction in maven central.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Mime
View raw message