Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.7.4
-
$ mvn -version
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00)
Maven home: D:\tools\apache-maven-3.2.3
Java version: 1.8.0_111, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_111\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
$ mvn -version Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00) Maven home: D:\tools\apache-maven-3.2.3 Java version: 1.8.0_111, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.8.0_111\jre Default locale: fr_FR, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
Description
Given this simple project : https://github.com/grimly/TomEE-simple/tree/TOMEE-2041
The following happen :
$ mvn clean install tomee:exec
.... expect build success
$ cd target/
$ java -jar rest-1.0.0-SNAPSHOT-exec.jar
Extracting tomee to D:\projects\rest\target\.distribution
The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Exited Successfully!
$ export CATALINA_HOME="`pwd`/.distribution/apache-tomee"; java -jar rest-1.0.0-SNAPSHOT-exec.jar
Using CATALINA_BASE: "D:/projects/rest/target/.distribution/apache-tomee"
Using CATALINA_HOME: "D:/projects/rest/target/.distribution/apache-tomee"
Using CATALINA_TMPDIR: "D:/projects/rest/target/.distribution/apache-tomee\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_111"
Using CLASSPATH: "D:/projects/rest/target/.distribution/apache-tomee\bin\bootstrap.jar;D:/projects/rest/target/.distribution/apache-tomee\bin\tomcat-juli.jar"
.... The server starts as expected
Either this is a bug or a missing documentation but as a user I expected to produce a complete standalone self executing jar.
But it requires me to specify a CATALINA_HOME variable with the path the jar will extract to.
Using catalina or startup scripts in .distributed/tomee-apache/bin still works without the CATALINA_HOME environment variable.