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

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page