bastillion-io / Bastillion-EC2

A web-based SSH console to execute commands and manage multiple EC2 instances simultaneously running on Amazon Web Services (AWS).

Home Page:https://www.bastillion.io/features.html#ec2box

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to execute goal on project ec2box: Could not resolve dependencies for project com.ec2box:ec2box:war:1.00.00

ferdousulhaque opened this issue · comments

While I am building with mvn this error showed up and not running the app. Please help to check on this.


[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:30 min
[INFO] Finished at: 2018-05-22T08:12:44Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ec2box: Could not resolve dependencies for project com.ec2box:ec2box:war:1.00.00: Could not find artifact loophole.mvc:lmvc:jar:1.00.00 in central (https://repo.maven.apache.org/maven2) -> [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/DependencyResolutionException

In the README there is now a prerequisite of

Loophole MVC (Only needed if building from source)

https://github.com/skavanagh/lmvc

You have to build and install that first as it's not published on maven central.

Still having the below error:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.620 s
[INFO] Finished at: 2018-05-22T08:41:37Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project lmvc: Fatal error compiling: invalid target release: 1.9 -> [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/MojoExecutionException

Currently I have Java 1.8 installed. Does it require Java Version 1.9? I have downloaded Java 1.10, will install if required. Let me know if it will fulfill the requirements.

from the README.

Open-JDK / Oracle-JDK - 1.9 or greater

apt-get install openjdk-9-jdk

or

http://www.oracle.com/technetwork/java/javase/downloads/index.html

so you need 1.9 or greater. 1.10 should work fine.

Installed lmvc

[INFO] --- maven-install-plugin:2.4:install (default-install) @ lmvc ---
[INFO] Installing /root/lmvc/target/lmvc-1.00.00.jar to /root/.m2/repository/loophole/mvc/lmvc/1.00.00/lmvc-1.00.00.jar
[INFO] Installing /root/lmvc/pom.xml to /root/.m2/repository/loophole/mvc/lmvc/1.00.00/lmvc-1.00.00.pom
[INFO] Installing /root/lmvc/target/lmvc-1.00.00-javadoc.jar to /root/.m2/repository/loophole/mvc/lmvc/1.00.00/lmvc-1.00.00-javadoc.jar
[INFO] Installing /root/lmvc/target/lmvc-1.00.00-sources.jar to /root/.m2/repository/loophole/mvc/lmvc/1.00.00/lmvc-1.00.00-sources.jar
[INFO] Installing /root/lmvc/target/lmvc-1.00.00-javadoc.jar to /root/.m2/repository/loophole/mvc/lmvc/1.00.00/lmvc-1.00.00-javadoc.jar
[INFO] Installing /root/lmvc/target/lmvc-1.00.00-sources.jar to /root/.m2/repository/loophole/mvc/lmvc/1.00.00/lmvc-1.00.00-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.465 s
[INFO] Finished at: 2018-05-22T09:17:55Z
[INFO] ------------------------------------------------------------------------

Still it is showing error while building:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.191 s
[INFO] Finished at: 2018-05-22T09:19:41Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:3.2.0:war (default-war) on project ec2box: Error assembling WAR: Problem creating war: Execution exception: Java heap space -> [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/MojoExecutionException

Updated the Heap size of maven now OK:

export MAVEN_OPTS="-Xmx1G"