facebook

Could not resolve archetype when creating a Maven Project

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 15 posts - 16 through 30 (of 31 total)
  • Author
    Posts
  • #617617 Reply

    support-swapna
    Moderator

    Ramya,

    Sorry that you are seeing this issue.
    It looks like a problem accessing the Maven Central repository ( https://repo.maven.apache.org/maven2). Maybe there’s some certificate issue on your Java installation or some security rule on you network infrastructure preventing the access.

    Are you behind a firewall or proxy? If yes, then did you configure the proxy information in the IDE here : Window > Preferences > General > Network Connections? In addition to configuring the proxy in the IDE, you should also create a settings.xml file for Maven to access internet behind the proxy. Please see this thread for more details about configuring Maven to work with proxy : https://stackoverflow.com/questions/25911623/problems-using-maven-and-ssl-behind-proxy

    If you are able to access the Maven central repository url from your browser and if the proxy is correctly configured, then it could be a problem with the certificates in your java installation which is used to start the IDE. Please see this thread for more details about how to install the correct certificates to the JDK installation : https://stackoverflow.com/questions/21076179/pkix-path-building-failed-and-unable-to-find-valid-certification-path-to-requ

    If you are still seeing problems, then please share with us the MyEclipse version details from Help > About MyEclipse section along with the JDK version that is used to start the MyEclipse IDE ( see the -vm arg in the myeclipse.ini file located in the MyEclipse installation folder for the information). Also share with us the complete workspace log file which is located at workspace dir/.metadata/.log to help us investigate further. Save the .log as .txt file and attach it here.

    Apologies for inconvenience caused. Please let us know how you get on with it.

    –Swapna
    Genuitec Support

    #618136 Reply

    poojabhargude
    Participant

    Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.
    Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1
    Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out
    Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out

    I am getting this error.

    Eclipse details
    Eclipse Java EE IDE for Web Developers.

    Version: Neon.3 Release (4.6.3)
    Build id: 20170314-1500

    #618137 Reply

    poojabhargude
    Participant

    i am unable to create maven project

    Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.
    Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1
    Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out
    Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out

    I am getting this error.

    Eclipse details
    Eclipse Java EE IDE for Web Developers.

    Version: Neon.3 Release (4.6.3)
    Build id: 20170314-1500

    #618138 Reply

    support-swapna
    Moderator

    Pooja,

    Sorry that you are seeing this issue. I see that you are working with Eclipse.
    Are you working with any of our products?

    I suggest you take a look at my previous responses on this thread and try the suggestions.
    If you are still seeing problems, then please cross post to development related forums like stackoverflow.com or Eclipse forums for better support from dev community.

    Hope this helps. Please let us know if have any further questions.

    –Swapna
    Genuitec Support

    #620504 Reply

    mozhi
    Participant

    Dear Team, Still facing connection timeout issue.

    Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.
    Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1
    Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out
    Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out

    Trried:
    Have added settings.xml
    Tried with deleting the folders in .m2 directory
    Have externally installed maven and mapped the same in Eclipse IDE
    Software details:
    java:
    java 8
    Eclipse:
    Eclipse IDE for Java Developers
    Version: 2019-06 (4.12.0)
    Build id: 20190614-1200

    Please suggest me.

    #620508 Reply

    support-swapna
    Moderator

    mozhi,

    Sorry that you are seeing this issue.
    Did you check if you can reach https://repo.maven.apache.org/maven2 via the Eclipse internal browser?

    It looks like a configuration problem and you should check with your administrator about access to the repository and recheck if the settings.xml has the same proxy configuration as your browser.

    I suggest you cross post to Eclipse or development related forums like stackoverflow for better suggestions from the dev community.

    Hope this helps. Sorry that we couldn’t assist further.

    –Swapna
    Genuitec Support

    #621944 Reply

    pradeep2929
    Participant

    Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.
    Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1
    Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out
    Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out.

    I have updated proxy details as well in settings.xml file but no luck.
    Any suggestions are welcome.

    Regards,
    Pradeep

    #621948 Reply

    support-swapna
    Moderator

    Pradeep,

    Sorry that you are seeing this issue.
    Are you working with MyEclipse IDE or Eclipse IDE? Did you check if you can access the repo : https://repo.maven.apache.org/maven2 from the internal browser?
    As I mentioned in my earlier responses, it looks like a configuration problem, so please check if there is any security rule on your network which might be preventing the access.

    If you are working with MyEclipse, then please share with us the MyEclipse version details from Help > About MyEclipse section along with the workspace log which is located at workspace dir/.metadata/.log (rename the file extension to .txt and attach it) to help us investigate further.

    –Swapna
    Genuitec Support

    #623795 Reply

    shardha
    Participant

    Hi All,

    Please help me in resolving the below issue.

    When i am trying to creating an maven project, i unable to do it.

    Do i need to set proxy or fairwall? if so, how can i do, please help.

    Attachments:
    You must be logged in to view attached files.
    #623800 Reply

    support-swapna
    Moderator

    Shardha,

    Please see this FAQ on how to setup proxy information in the IDE : https://www.genuitec.com/forums/topic/configuring-the-network-proxy-settings/
    In addition to configuring the proxy in the IDE, you should also create a settings.xml file for Maven to access internet behind the proxy. Please see this thread for more details about configuring Maven to work with proxy : https://stackoverflow.com/questions/25911623/problems-using-maven-and-ssl-behind-proxy

    Please also check if you are able to access the Maven central repository url from your browser to rule out network configuration related issues.
    I suggest you take a look at my previous responses on this post and if none of the suggestions help, then please cross post to Eclipse or development related forums like stackoverflow.com for further help with Maven + Eclipse.

    Hope this helps.

    –Swapna
    Genuitec Support

    #634197 Reply

    erchidambaram
    Participant

    I am getting the below error while creating the simple maven web project via eclipse, I am under proxy
    Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories.
    Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0
    Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): Connection reset
    Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): Connection reset

    my eclipse version : MyEclipse Enterprise Workbench
    Version: CI 2019.4.0
    Build id: 16.0.0-20190403

    Apache version
    C:\apache-maven-3.2.3

    Updated settings xml with proxy details
    also updated my eclipse with proxy details and also set the Provider as Manual.

    Attachments:
    You must be logged in to view attached files.
    #642576 Reply

    vemulacva
    Participant

    just remove .m2 folder and perform to recreate maven project.

    .m2 file will be in the folder path example “C:\Users\cva”

    #659213 Reply

    ashwinpillai250898
    Participant

    Ashwin here,

    I tried the above fix of creating a new settings file because there was no settings.xml file in my .m2 folder but after updating the settings and reindexing i applied the settings but nothing was being downloaded.

    Then i tried to create a new maven project but this error showed up.

    Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories.
    Could not write artifact lastUpdated status
    C:\Program Files\eclipse\Users\pilla\.m2\repository\org\apache\maven\archetypes\maven-archetype-quickstart\RELEASE\m2e-lastUpdated.properties (The system cannot find the path specified)

    #659244 Reply

    support-swapna
    Moderator

    Ashwin,

    From the error it looks like a permissions issue when trying to create the lastUpdated.properties file. The path in the error is also not looking right – C:\Program Files\eclipse\Users\pilla\.m2\repository\org\apache\maven\archetypes\maven-archetype-quickstart\RELEASE\m2e-lastUpdated.properties.

    Similar error is discussed here : https://stackoverflow.com/questions/47949424/cannot-create-a-new-maven-project-in-eclipse

    If you are working with Windows 10, then it is better to move the Eclipse installation folder outside of C:\Program Files as the Program Files folder is pretty restrictive in nature.

    For further support, please post to Eclipse/Maven related forums or development related forums like stackoverflow.com.

    –Swapna
    Genuitec Support

    #659547 Reply

    jerin
    Participant

    Hi Am also Facing Same issue,

    On screenshot i have attached maven error message, Eclipse version version,Eclipse prefernce and Environment variables

    Attachments:
    You must be logged in to view attached files.
Viewing 15 posts - 16 through 30 (of 31 total)
Reply To: Could not resolve archetype when creating a Maven Project

You must be logged in to post in the forum log in