title: mvn clean install in arch linux produces many errors
body: <p>I am using Arch Linux and jdk version 9 and apache Maven 3.5.2</p>
  
  <p>I followed this link <a href="https://console.bluemix.net/docs/runtimes/liberty/getting-started.html#getting-started-tutorial" rel="nofollow noreferrer">https://console.bluemix.net/docs/runtimes/liberty/getting-started.html#getting-started-tutorial</a> to setup apps.</p>
  
  <p>But when I ran command </p>
  
  <pre><code>mvn clean install
  </code></pre>
  
  <p>The installation process runs and suddenly it gives a bunch of errors as shown
  <a href="https://i.stack.imgur.com/dRBBF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dRBBF.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/hOqWj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hOqWj.png" alt="enter image description here"></a></p>
  
  <p>I searched the link that is provided in the error but it did not help.
  Also I googled things that are similar to my error but things didn't get sorted out. I am very much new to these things.
  Please somebody provide me solution for this.</p>
  
  <p>As suggested I have edited my post by providing <code>-X</code> and     -e </p>
  
  <p>commands in the mvn and those errors are below </p>
  
  <pre><code>mnv -e :
  [shivam@shivam get-started-java]$ mvn -e
  [INFO] Error stacktraces are turned on.
  [INFO] Scanning for projects...
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.191 s
  [INFO] Finished at: 2017-12-15T08:44:39+05:30
  [INFO] Final Memory: 5M/20M
  [INFO] ------------------------------------------------------------------------
  [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format &lt;plugin-prefix&gt;:&lt;goal&gt; or &lt;plugin-group-id&gt;:&lt;plugin-artifact-id&gt;[:&lt;plugin-version&gt;]:&lt;goal&gt;. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -&gt; [Help 1]
  org.apache.maven.lifecycle.NoGoalSpecifiedException: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format &lt;plugin-prefix&gt;:&lt;goal&gt; or &lt;plugin-group-id&gt;:&lt;plugin-artifact-id&gt;[:&lt;plugin-version&gt;]:&lt;goal&gt;. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy.
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:94)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:564)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  [ERROR] 
  [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/NoGoalSpecifiedException
  </code></pre>
  
  <p>And on running <code>mvn-X</code></p>
  
  <pre><code>[shivam@shivam ~]$ mvn -X
  Apache Maven 3.5.2 (NON-CANONICAL_2017-10-25T13:09:52+03:00_root; 2017-10-25T15:39:52+05:30)
  Maven home: /opt/maven
  Java version: 9, vendor: Oracle Corporation
  Java home: /usr/lib/jvm/java-9-openjdk
  Default locale: en_US, platform encoding: UTF-8
  OS name: "linux", version: "4.14.3-1-arch", arch: "amd64", family: "unix"
  [DEBUG] Created new class realm maven.api
  [DEBUG] Importing foreign packages into class realm maven.api
  [DEBUG]   Imported: javax.annotation.* &lt; plexus.core
  [DEBUG]   Imported: javax.enterprise.inject.* &lt; plexus.core
  [DEBUG]   Imported: javax.enterprise.util.* &lt; plexus.core
  [DEBUG]   Imported: javax.inject.* &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.* &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.artifact &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.classrealm &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.cli &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.configuration &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.exception &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.execution &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.execution.scope &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.lifecycle &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.model &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.monitor &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.plugin &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.profiles &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.project &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.reporting &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.repository &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.rtinfo &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.settings &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.toolchain &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.usability &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.* &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.authentication &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.authorization &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.events &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.observers &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.proxy &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.repository &lt; plexus.core
  [DEBUG]   Imported: org.apache.maven.wagon.resource &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.classworlds &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.* &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.classworlds &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.component &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.configuration &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.container &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.context &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.lifecycle &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.logging &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.personality &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException &lt; plexus.core
  [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.* &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.artifact &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.collection &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.deployment &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.graph &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.impl &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.installation &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.internal.impl &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.metadata &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.repository &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.resolution &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.spi &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.transfer &lt; plexus.core
  [DEBUG]   Imported: org.eclipse.aether.version &lt; plexus.core
  [DEBUG]   Imported: org.fusesource.jansi.* &lt; plexus.core
  [DEBUG]   Imported: org.slf4j.* &lt; plexus.core
  [DEBUG]   Imported: org.slf4j.helpers.* &lt; plexus.core
  [DEBUG]   Imported: org.slf4j.spi.* &lt; plexus.core
  [DEBUG] Populating class realm maven.api
  [INFO] Error stacktraces are turned on.
  [DEBUG] Message scheme: color
  [DEBUG] Message styles: debug info warning error success failure strong mojo project
  [DEBUG] Reading global settings from /opt/maven/conf/settings.xml
  [DEBUG] Reading user settings from /home/shivam/.m2/settings.xml
  [DEBUG] Reading global toolchains from /opt/maven/conf/toolchains.xml
  [DEBUG] Reading user toolchains from /home/shivam/.m2/toolchains.xml
  [DEBUG] Using local repository at /home/shivam/.m2/repository
  [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /home/shivam/.m2/repository
  [INFO] Scanning for projects...
  [DEBUG] Extension realms for project org.apache.maven:standalone-pom:pom:1: (none)
  [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.110 s
  [INFO] Finished at: 2017-12-15T08:47:52+05:30
  [INFO] Final Memory: 6M/21M
  [INFO] ------------------------------------------------------------------------
  [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format &lt;plugin-prefix&gt;:&lt;goal&gt; or &lt;plugin-group-id&gt;:&lt;plugin-artifact-id&gt;[:&lt;plugin-version&gt;]:&lt;goal&gt;. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -&gt; [Help 1]
  org.apache.maven.lifecycle.NoGoalSpecifiedException: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format &lt;plugin-prefix&gt;:&lt;goal&gt; or &lt;plugin-group-id&gt;:&lt;plugin-artifact-id&gt;[:&lt;plugin-version&gt;]:&lt;goal&gt;. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy.
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:94)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:564)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  [ERROR] 
  [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/NoGoalSpecifiedException
  </code></pre>
  
  <p>And As stated above I am using jdk version 9 .</p>