1

Hi Guys I have these two issues

mvn clean

I get this warning msg

Some problems were encountered while building the effective model for com.souq.marketplace:selling-center-services:war:0.0.1-SNAPSHOT [WARNING] 'dependencies.dependency.systemPath' for com.souq:servicemanager:jar should not point at files within the project directory, ${project.basedir}/src/main/webapp/WEB-INF/lib/servicemanager-1.1.1.1.jar will be unresolvable by dependent projects @ line 138, column 16 [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-deploy-plugin @ line 453, column 12

second is when i do install

mvn install

Unable to locate the Javac Compiler in: [ERROR] /opt/jre1.7.0_71/../lib/tools.jar [ERROR] Please ensure you are using JDK 1.4 or above and [ERROR] not a JRE (the com.sun.tools.javac.Main class is required). [ERROR] In most cases you can change the location of your Java [ERROR] installation by setting the JAVA_HOME environment variable. [ERROR] -> [Help 1]

echo $JAVA_HOME 

/opt/jre1.7.0_71

sisimh
  • 1,287
  • 3
  • 20
  • 37
  • 1
    You have to install JDK and set JAVA_HOME environment variable path to your JDK – Ihor Patsian Jul 13 '15 at 12:20
  • possible duplicate of [maven build failed: Unable to locate the Javac Compiler in: jre or jdk issue](http://stackoverflow.com/questions/2222560/maven-build-failed-unable-to-locate-the-javac-compiler-in-jre-or-jdk-issue) – Arpit Aggarwal Jul 13 '15 at 12:24
  • @IgorPatsyan true that took care of the error :) .. but What about the warning of mvn clean? – sisimh Jul 13 '15 at 13:11

2 Answers2

0

You have the JRE installed but you need the JDK (eg. OpenJDK for Linux). The JRE does not contain the compiler.

EXSolo
  • 90
  • 1
  • 1
  • 7
0

check with your JAVA_HOME variable path. and could you please tell us your JAVA_HOME variable and your jre installation path.

Piyush Mittal
  • 1,860
  • 1
  • 21
  • 39