[
https://issues.apache.org/jira/browse/TOMEE-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16017938#comment-16017938
]
TURPIN Michel commented on TOMEE-2041:
--------------------------------------
I do not know how to get this 7.0.3 version.
The [maven metadata of the apache-tomee
artifact|http://central.maven.org/maven2/org/apache/openejb/apache-tomee/maven-metadata.xml]
holds only versions up to 1.7.4 for the servers, and the same may be observed
for the [tomee-maven-plugin
artifact|http://central.maven.org/maven2/org/apache/openejb/maven/tomee-maven-plugin/maven-metadata.xml].
You may provide a branch and edit the pom to include alternative repositories
(which I don't know) so we can test it with some newer versions.
The TomEE project looks really promising but it lacks publicity (I only heard
of it like 2 weeks ago) and documentation for most options.
> tomee:exec - Missing CATALINA_HOME environment variable
> -------------------------------------------------------
>
> Key: TOMEE-2041
> URL: https://issues.apache.org/jira/browse/TOMEE-2041
> Project: TomEE
> Issue Type: Bug
> Components: TomEE Maven Plugin
> Affects Versions: 1.7.4
> Environment: $ 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"
> Reporter: TURPIN Michel
> Priority: Minor
> Labels: maven
>
> Given this simple project : https://github.com/grimly/TomEE-simple
> 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
> {color:red}The CATALINA_HOME environment variable is not defined correctly
> This environment variable is needed to run this program
> Exited Successfully!
> {color}
> *$ 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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)