Error in creating Maven project in Intellij (Linux - VM)How can I permanently enable line numbers in IntelliJ?Create ArrayList from arrayHow can I create an executable JAR with dependencies using Maven?Creating a memory leak with JavaCreate a Wicket Quickstart mavenRESOLVE Maven Failed to retrieve plugin descriptor and Build FailurePermission denied creating a Maven Enterprise Application on Netbeans on LinuxCreate a Project from Maven in commandHow to add virtual-host and how to change context root WAS DEV MavenCreating Vaadin 6 maven project

How do I extrude a face to a single vertex

Indicating multiple different modes of speech (fantasy language or telepathy)

Longest common substring in linear time

Why has "pence" been used in this sentence, not "pences"?

How should I respond when I lied about my education and the company finds out through background check?

Why did the EU agree to delay the Brexit deadline?

What linear sensor for a keyboard?

Can I rely on this github repository files?

Can somebody explain Brexit in a few child-proof sentences?

Is it improper etiquette to ask your opponent what his/her rating is before the game?

Could solar power be utilized and substitute coal in the 19th Century

Bob has never been a M before

Have I saved too much for retirement so far?

Why do IPv6 unique local addresses have to have a /48 prefix?

How to align and center standalone amsmath equations?

Is camera lens focus an exact point or a range?

How will losing mobility of one hand affect my career as a programmer?

Do Legal Documents Require Signing In Standard Pen Colors?

Can a significant change in incentives void an employment contract?

Is there a word to describe the feeling of being transfixed out of horror?

Varistor? Purpose and principle

Open a doc from terminal, but not by its name

What is the gram­mat­i­cal term for “‑ed” words like these?

Should I install hardwood flooring or cabinets first?



Error in creating Maven project in Intellij (Linux - VM)


How can I permanently enable line numbers in IntelliJ?Create ArrayList from arrayHow can I create an executable JAR with dependencies using Maven?Creating a memory leak with JavaCreate a Wicket Quickstart mavenRESOLVE Maven Failed to retrieve plugin descriptor and Build FailurePermission denied creating a Maven Enterprise Application on Netbeans on LinuxCreate a Project from Maven in commandHow to add virtual-host and how to change context root WAS DEV MavenCreating Vaadin 6 maven project













0















I was trying to create a Maven project in Intellij in Linux 16. It keeps throwing me an error. Trying the solutions available on the net but nothing worked.



This is the error I am getting:



/usr/lib/jvm/java-7-oracle-cloudera/bin/java 
-Dmaven.multiModuleProjectDirectory=/tmp/archetypetmp
-Dmaven.multiModuleProjectDirectory -Dmaven.home=/usr/share/maven
-Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dfile.encoding=UTF-8
-classpath /usr/share/maven/boot/plexus-classworlds-2.x.jar
org.codehaus.classworlds.Launcher -Didea.version=2018.3.5
-DinteractiveMode=false -DgroupId=com.test.java "-DartifactId=Java Proj"
-Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-quickstart
-DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-
plugin:RELEASE:generate
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins
/maven-archetype-plugin/maven-metadata.xml

[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-
archetype-plugin/maven-metadata.xml from/to central
(https://repo.maven.apache.org/maven2): Received fatal alert:
protocol_version
[INFO]

------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.460 s
[INFO] Finished at: 2019-03-08T01:41:55-05:00
[INFO] Final Memory: 7M/146M
[INFO]
------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or
one of its dependencies could not be resolved: Failed to read artifact
descriptor for org.apache.maven.plugins:maven-archetype-
plugin:jar:RELEASE: Failed to resolve version for
org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not
find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-
metadata.xml in local (/home/vishnu/.m2/repository) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN
/PluginResolutionException
[ERROR] Maven execution terminated abnormally (exit code 1)









share|improve this question



















  • 1





    What maven command leads to this error? What does your pom.xml look like?

    – Ruslan
    Mar 8 at 7:27












  • Thanks Ruslan. I have posted the answer below.

    – Rookie Programmer
    Mar 8 at 7:38











  • The Intellij does not choose the jre by default in the runner settings.

    – Rookie Programmer
    Mar 8 at 7:38











  • To use central repository with Java 7 you need to define -Dhttps.protocols=TLSv1.2 cause Central has changed that a longer time ago...

    – khmarbaise
    Mar 8 at 11:47















0















I was trying to create a Maven project in Intellij in Linux 16. It keeps throwing me an error. Trying the solutions available on the net but nothing worked.



This is the error I am getting:



/usr/lib/jvm/java-7-oracle-cloudera/bin/java 
-Dmaven.multiModuleProjectDirectory=/tmp/archetypetmp
-Dmaven.multiModuleProjectDirectory -Dmaven.home=/usr/share/maven
-Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dfile.encoding=UTF-8
-classpath /usr/share/maven/boot/plexus-classworlds-2.x.jar
org.codehaus.classworlds.Launcher -Didea.version=2018.3.5
-DinteractiveMode=false -DgroupId=com.test.java "-DartifactId=Java Proj"
-Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-quickstart
-DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-
plugin:RELEASE:generate
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins
/maven-archetype-plugin/maven-metadata.xml

[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-
archetype-plugin/maven-metadata.xml from/to central
(https://repo.maven.apache.org/maven2): Received fatal alert:
protocol_version
[INFO]

------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.460 s
[INFO] Finished at: 2019-03-08T01:41:55-05:00
[INFO] Final Memory: 7M/146M
[INFO]
------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or
one of its dependencies could not be resolved: Failed to read artifact
descriptor for org.apache.maven.plugins:maven-archetype-
plugin:jar:RELEASE: Failed to resolve version for
org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not
find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-
metadata.xml in local (/home/vishnu/.m2/repository) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN
/PluginResolutionException
[ERROR] Maven execution terminated abnormally (exit code 1)









share|improve this question



















  • 1





    What maven command leads to this error? What does your pom.xml look like?

    – Ruslan
    Mar 8 at 7:27












  • Thanks Ruslan. I have posted the answer below.

    – Rookie Programmer
    Mar 8 at 7:38











  • The Intellij does not choose the jre by default in the runner settings.

    – Rookie Programmer
    Mar 8 at 7:38











  • To use central repository with Java 7 you need to define -Dhttps.protocols=TLSv1.2 cause Central has changed that a longer time ago...

    – khmarbaise
    Mar 8 at 11:47













0












0








0








I was trying to create a Maven project in Intellij in Linux 16. It keeps throwing me an error. Trying the solutions available on the net but nothing worked.



This is the error I am getting:



/usr/lib/jvm/java-7-oracle-cloudera/bin/java 
-Dmaven.multiModuleProjectDirectory=/tmp/archetypetmp
-Dmaven.multiModuleProjectDirectory -Dmaven.home=/usr/share/maven
-Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dfile.encoding=UTF-8
-classpath /usr/share/maven/boot/plexus-classworlds-2.x.jar
org.codehaus.classworlds.Launcher -Didea.version=2018.3.5
-DinteractiveMode=false -DgroupId=com.test.java "-DartifactId=Java Proj"
-Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-quickstart
-DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-
plugin:RELEASE:generate
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins
/maven-archetype-plugin/maven-metadata.xml

[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-
archetype-plugin/maven-metadata.xml from/to central
(https://repo.maven.apache.org/maven2): Received fatal alert:
protocol_version
[INFO]

------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.460 s
[INFO] Finished at: 2019-03-08T01:41:55-05:00
[INFO] Final Memory: 7M/146M
[INFO]
------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or
one of its dependencies could not be resolved: Failed to read artifact
descriptor for org.apache.maven.plugins:maven-archetype-
plugin:jar:RELEASE: Failed to resolve version for
org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not
find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-
metadata.xml in local (/home/vishnu/.m2/repository) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN
/PluginResolutionException
[ERROR] Maven execution terminated abnormally (exit code 1)









share|improve this question
















I was trying to create a Maven project in Intellij in Linux 16. It keeps throwing me an error. Trying the solutions available on the net but nothing worked.



This is the error I am getting:



/usr/lib/jvm/java-7-oracle-cloudera/bin/java 
-Dmaven.multiModuleProjectDirectory=/tmp/archetypetmp
-Dmaven.multiModuleProjectDirectory -Dmaven.home=/usr/share/maven
-Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dfile.encoding=UTF-8
-classpath /usr/share/maven/boot/plexus-classworlds-2.x.jar
org.codehaus.classworlds.Launcher -Didea.version=2018.3.5
-DinteractiveMode=false -DgroupId=com.test.java "-DartifactId=Java Proj"
-Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-quickstart
-DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-
plugin:RELEASE:generate
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins
/maven-archetype-plugin/maven-metadata.xml

[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-
archetype-plugin/maven-metadata.xml from/to central
(https://repo.maven.apache.org/maven2): Received fatal alert:
protocol_version
[INFO]

------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.460 s
[INFO] Finished at: 2019-03-08T01:41:55-05:00
[INFO] Final Memory: 7M/146M
[INFO]
------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or
one of its dependencies could not be resolved: Failed to read artifact
descriptor for org.apache.maven.plugins:maven-archetype-
plugin:jar:RELEASE: Failed to resolve version for
org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not
find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-
metadata.xml in local (/home/vishnu/.m2/repository) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN
/PluginResolutionException
[ERROR] Maven execution terminated abnormally (exit code 1)






java maven intellij-idea






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 17:57









halfer

14.7k759116




14.7k759116










asked Mar 8 at 7:11









Rookie ProgrammerRookie Programmer

162




162







  • 1





    What maven command leads to this error? What does your pom.xml look like?

    – Ruslan
    Mar 8 at 7:27












  • Thanks Ruslan. I have posted the answer below.

    – Rookie Programmer
    Mar 8 at 7:38











  • The Intellij does not choose the jre by default in the runner settings.

    – Rookie Programmer
    Mar 8 at 7:38











  • To use central repository with Java 7 you need to define -Dhttps.protocols=TLSv1.2 cause Central has changed that a longer time ago...

    – khmarbaise
    Mar 8 at 11:47












  • 1





    What maven command leads to this error? What does your pom.xml look like?

    – Ruslan
    Mar 8 at 7:27












  • Thanks Ruslan. I have posted the answer below.

    – Rookie Programmer
    Mar 8 at 7:38











  • The Intellij does not choose the jre by default in the runner settings.

    – Rookie Programmer
    Mar 8 at 7:38











  • To use central repository with Java 7 you need to define -Dhttps.protocols=TLSv1.2 cause Central has changed that a longer time ago...

    – khmarbaise
    Mar 8 at 11:47







1




1





What maven command leads to this error? What does your pom.xml look like?

– Ruslan
Mar 8 at 7:27






What maven command leads to this error? What does your pom.xml look like?

– Ruslan
Mar 8 at 7:27














Thanks Ruslan. I have posted the answer below.

– Rookie Programmer
Mar 8 at 7:38





Thanks Ruslan. I have posted the answer below.

– Rookie Programmer
Mar 8 at 7:38













The Intellij does not choose the jre by default in the runner settings.

– Rookie Programmer
Mar 8 at 7:38





The Intellij does not choose the jre by default in the runner settings.

– Rookie Programmer
Mar 8 at 7:38













To use central repository with Java 7 you need to define -Dhttps.protocols=TLSv1.2 cause Central has changed that a longer time ago...

– khmarbaise
Mar 8 at 11:47





To use central repository with Java 7 you need to define -Dhttps.protocols=TLSv1.2 cause Central has changed that a longer time ago...

– khmarbaise
Mar 8 at 11:47












1 Answer
1






active

oldest

votes


















1














Okay, so I solved it. I did not change the JRE, so just dont forget the JRE. Posting the answer so that it will be useful for somebody in the future. Attaching an image for reference.



Also use this for the VM options.



 -Dmaven.multiModuleProjectDirectory


Snapshot of the solution






share|improve this answer























  • That is not the problem..

    – khmarbaise
    Mar 8 at 11:46











  • But it worked for me.

    – Rookie Programmer
    Mar 8 at 23:37










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55058392%2ferror-in-creating-maven-project-in-intellij-linux-vm%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Okay, so I solved it. I did not change the JRE, so just dont forget the JRE. Posting the answer so that it will be useful for somebody in the future. Attaching an image for reference.



Also use this for the VM options.



 -Dmaven.multiModuleProjectDirectory


Snapshot of the solution






share|improve this answer























  • That is not the problem..

    – khmarbaise
    Mar 8 at 11:46











  • But it worked for me.

    – Rookie Programmer
    Mar 8 at 23:37















1














Okay, so I solved it. I did not change the JRE, so just dont forget the JRE. Posting the answer so that it will be useful for somebody in the future. Attaching an image for reference.



Also use this for the VM options.



 -Dmaven.multiModuleProjectDirectory


Snapshot of the solution






share|improve this answer























  • That is not the problem..

    – khmarbaise
    Mar 8 at 11:46











  • But it worked for me.

    – Rookie Programmer
    Mar 8 at 23:37













1












1








1







Okay, so I solved it. I did not change the JRE, so just dont forget the JRE. Posting the answer so that it will be useful for somebody in the future. Attaching an image for reference.



Also use this for the VM options.



 -Dmaven.multiModuleProjectDirectory


Snapshot of the solution






share|improve this answer













Okay, so I solved it. I did not change the JRE, so just dont forget the JRE. Posting the answer so that it will be useful for somebody in the future. Attaching an image for reference.



Also use this for the VM options.



 -Dmaven.multiModuleProjectDirectory


Snapshot of the solution







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 8 at 7:37









Rookie ProgrammerRookie Programmer

162




162












  • That is not the problem..

    – khmarbaise
    Mar 8 at 11:46











  • But it worked for me.

    – Rookie Programmer
    Mar 8 at 23:37

















  • That is not the problem..

    – khmarbaise
    Mar 8 at 11:46











  • But it worked for me.

    – Rookie Programmer
    Mar 8 at 23:37
















That is not the problem..

– khmarbaise
Mar 8 at 11:46





That is not the problem..

– khmarbaise
Mar 8 at 11:46













But it worked for me.

– Rookie Programmer
Mar 8 at 23:37





But it worked for me.

– Rookie Programmer
Mar 8 at 23:37



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55058392%2ferror-in-creating-maven-project-in-intellij-linux-vm%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived