Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.7.1
-
None
-
Mac, osX
Description
if you have something like
<properties>
<tomee.additional.args />
<tomee.additional.ldap.args />
</properties>
<profiles>
<profile>
<id>tomee</id>
<properties>
<tomee.additional.ldap.args>-DldapPrinicpal=principal -DldapPassword=pass -DldapUrl=ldap://myurl:389</tomee.additional.ldap.args>
</properties>
</profile>
</profiles>
...
<plugin>
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>${tomee.mavenplugin.version}</version>
<configuration>
<tomeeVersion>${tomee.version}</tomeeVersion>
<tomeeClassifier>${tomee.classifier}</tomeeClassifier>
<args>-Dopenejb.log.factory=log4j ${tomee.additional.args} ${tomee.additional.ldap.args} ${tomee.wps.additional.args}</args>
...
tomEE startup fails with message: can not find main class (my local message: Hauptklasse konnte nicht gefunden werden)
the problem is that the first maven property is empty and will be passed as an emtpy String.
this behavoir only occurs on my mac (and i think this issue will be on linux to). everything works fine on my windows-box.
should work if you keep a " " inside. basicall args should ATM be space delimited and is here for -X properties more than system properties (using them here works more as a side effect than a feature since they were designed to be in systemVariables or src/main/tomee/conf/system.properties)