[Geoserver-devel] Error in "mvn clean install"

Good afternoon, I'm starting to try to work with the code, everything works fine for me 2.2.x branch, but when I work with branch 2.4.x, when running the command "mvn clean install" gives me the following error. (attached file)
What am I doing wrong?
thanks

(attachments)

Error1.txt (13.5 KB)

On Fri, May 9, 2014 at 1:29 AM, Oscar Cano R <ocr.caro69@anonymised.com> wrote:

Good afternoon, I'm starting to try to work with the code, everything
works fine for me 2.2.x branch, but when I work with branch 2.4.x, when
running the command "mvn clean install" gives me the following error.
(attached file)
What am I doing wrong?

It seems the compiler is not found:
[WARNING] Unable to autodetect 'javac' path, using 'javac' from the
environment.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
"javac" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

Did you setup your JAVA_HOME correctly?

Anyways, in branch 2.4.x I believe all developers already switched to maven
3,
that might be a factor too (and oh, the branch is supposed to be built with
java 6)

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On 09/05/14 14:09, Andrea Aime wrote:

On Fri, May 9, 2014 at 1:29 AM, Oscar Cano R <ocr.caro69@anonymised.com
<mailto:ocr.caro69@anonymised.com>> wrote:

    Good afternoon, I'm starting to try to work with the code,
    everything works fine for me 2.2.x branch, but when I work with
    branch 2.4.x, when running the command "mvn clean install" gives me
    the following error. (attached file)
    What am I doing wrong?

It seems the compiler is not found:
[WARNING] Unable to autodetect 'javac' path, using 'javac' from the
environment.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
"javac" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

Did you setup your JAVA_HOME correctly?

Anyways, in branch 2.4.x I believe all developers already switched to
maven 3,
that might be a factor too (and oh, the branch is supposed to be built
with java 6)

Oscar, please also check that you have a JDK installed, not just a JRE (which lacks the compiler). I do not know why 2.2.x works; did you use the same maven and java?

Try:

mvn -version

to discover the maven and java version used in your current environment.

Kind regards,

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

This is the result
mvn -version

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T11:37:52-06:00)
Maven home: C:\Program Files (x86)\ApacheSF\apache-maven-3.2.1
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jre7
Default locale: es_MX, platform encoding: Cp1252
OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"

El 09/05/2014 01:40 a. m., Ben Caradoc-Davies escribió:

On 09/05/14 14:09, Andrea Aime wrote:

On Fri, May 9, 2014 at 1:29 AM, Oscar Cano R <ocr.caro69@anonymised.com
<mailto:ocr.caro69@anonymised.com>> wrote:

    Good afternoon, I'm starting to try to work with the code,
    everything works fine for me 2.2.x branch, but when I work with
    branch 2.4.x, when running the command "mvn clean install" gives me
    the following error. (attached file)
    What am I doing wrong?

It seems the compiler is not found:
[WARNING] Unable to autodetect 'javac' path, using 'javac' from the
environment.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
"javac" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

Did you setup your JAVA_HOME correctly?

Anyways, in branch 2.4.x I believe all developers already switched to
maven 3,
that might be a factor too (and oh, the branch is supposed to be built
with java 6)

Oscar, please also check that you have a JDK installed, not just a JRE (which lacks the compiler). I do not know why 2.2.x works; did you use the same maven and java?

Try:

mvn -version

to discover the maven and java version used in your current environment.

Kind regards,

It looks like the java version running is the JRE and not the JDK, hence no compiler. ": C:\Program Files\Java\jre7 "

If you have a JDK installed, change the JAVA_HOME environment variable to point at the JDK instead. If not installed, you can install the JDK and update the JAVA_HOME then.

Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.
Direct (719) 452-7257

-----Original Message-----
From: Oscar Cano R [mailto:ocr.caro69@…403…]
Sent: Friday, May 09, 2014 9:32 AM
To: Ben Caradoc-Davies; Andrea Aime
Cc: Geoserver-devel
Subject: Re: [Geoserver-devel] Error in "mvn clean install"

This is the result
mvn -version

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9;
2014-02-14T11:37:52-06:00)
Maven home: C:\Program Files (x86)\ApacheSF\apache-maven-3.2.1 Java version: 1.7.0_51, vendor: Oracle Corporation Java home: C:\Program Files\Java\jre7 Default locale: es_MX, platform encoding: Cp1252 OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"

El 09/05/2014 01:40 a. m., Ben Caradoc-Davies escribió:

On 09/05/14 14:09, Andrea Aime wrote:

On Fri, May 9, 2014 at 1:29 AM, Oscar Cano R <ocr.caro69@...403...
<mailto:ocr.caro69@…403…>> wrote:

    Good afternoon, I'm starting to try to work with the code,
    everything works fine for me 2.2.x branch, but when I work with
    branch 2.4.x, when running the command "mvn clean install" gives me
    the following error. (attached file)
    What am I doing wrong?

It seems the compiler is not found:
[WARNING] Unable to autodetect 'javac' path, using 'javac' from the
environment.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
"javac" no se reconoce como un comando interno o externo, programa o
archivo por lotes ejecutable.

Did you setup your JAVA_HOME correctly?

Anyways, in branch 2.4.x I believe all developers already switched to
maven 3, that might be a factor too (and oh, the branch is supposed
to be built with java 6)

Oscar, please also check that you have a JDK installed, not just a JRE
(which lacks the compiler). I do not know why 2.2.x works; did you use
the same maven and java?

Try:

mvn -version

to discover the maven and java version used in your current environment.

Kind regards,

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity &#149; Requirements for releasing software faster &#149; Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Sorry, to go trying to change the JAVA_HOME path, but the path of the sdk, I do not work.
For the 2.2.x branch, if I work, but for the 2.4.x branch, I do not work, any ideas?
I send the results of the error of "mvn clean install" and the result of "mvn -version"

Thank you.

El 09/05/2014 11:05 a. m., Chris Snider escribió:

It looks like the java version running is the JRE and not the JDK, hence no compiler. ": C:\Program Files\Java\jre7 "

If you have a JDK installed, change the JAVA_HOME environment variable to point at the JDK instead. If not installed, you can install the JDK and update the JAVA_HOME then.

Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.
Direct (719) 452-7257

-----Original Message-----
From: Oscar Cano R [mailto:ocr.caro69@anonymised.com]
Sent: Friday, May 09, 2014 9:32 AM
To: Ben Caradoc-Davies; Andrea Aime
Cc: Geoserver-devel
Subject: Re: [Geoserver-devel] Error in "mvn clean install"

This is the result
mvn -version

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9;
2014-02-14T11:37:52-06:00)
Maven home: C:\Program Files (x86)\ApacheSF\apache-maven-3.2.1 Java version: 1.7.0_51, vendor: Oracle Corporation Java home: C:\Program Files\Java\jre7 Default locale: es_MX, platform encoding: Cp1252 OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"

El 09/05/2014 01:40 a. m., Ben Caradoc-Davies escribió:

On 09/05/14 14:09, Andrea Aime wrote:

On Fri, May 9, 2014 at 1:29 AM, Oscar Cano R <ocr.caro69@anonymised.com
<mailto:ocr.caro69@anonymised.com>> wrote:

     Good afternoon, I'm starting to try to work with the code,
     everything works fine for me 2.2.x branch, but when I work with
     branch 2.4.x, when running the command "mvn clean install" gives me
     the following error. (attached file)
     What am I doing wrong?

It seems the compiler is not found:
[WARNING] Unable to autodetect 'javac' path, using 'javac' from the
environment.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
"javac" no se reconoce como un comando interno o externo, programa o
archivo por lotes ejecutable.

Did you setup your JAVA_HOME correctly?

Anyways, in branch 2.4.x I believe all developers already switched to
maven 3, that might be a factor too (and oh, the branch is supposed
to be built with java 6)

Oscar, please also check that you have a JDK installed, not just a JRE
(which lacks the compiler). I do not know why 2.2.x works; did you use
the same maven and java?

Try:

mvn -version

to discover the maven and java version used in your current environment.

Kind regards,

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity &#149; Requirements for releasing software faster &#149; Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

(attachments)

Error24x.txt (79.6 KB)
MVN-Version.txt (381 Bytes)

Run the following statement I found in:
http://docs.geoserver.org/stable/en/developer/maven-guide/index.html#maven-guide

mvn -DskipTests clean install

Do not know if that will affect me in something, but the eclipse if the application works and looks good.
thanks