Wdym by jar there? system.properties is supported and tomee.xml support syst props and imports Le 2 nov. 2015 06:59, "Alex Soto" <[email protected]> a écrit :
> Ah ok, a bit strange since it is a property inside a property but yeah it > works. I think it would be interesting that if in current jar directory > there is an additionalSystemProperties.properties file then they are read > as well. > > El dl., 2 nov. 2015 a les 15:56, Romain Manni-Bucau (< > [email protected]>) > va escriure: > > > Le 2 nov. 2015 06:47, "Alex Soto" <[email protected]> a écrit : > > > > > > Cool, two questions, in case of uber jar (maven exec) can I use > directly > > > the -D on call java -jar -Dmyport=1234 my.jar or should I export > > > CATALINA_OPTS before? And is it possible to set a default value like > for > > > example tomee resources? > > > > > > > > > > https://github.com/apache/tomee/blob/master/maven/tomee-maven-plugin/src/main/java/org/apache/openejb/maven/plugin/runner/ExecRunner.java#L102 > > is the way to add system props i mentionned. Not directly ln the process > > cause it forks. Defaults work then like in a plain tomee using this > > particular config. > > > > > Alex. > > > > > > El dl., 2 nov. 2015 a les 15:26, Romain Manni-Bucau (< > > [email protected]>) > > > va escriure: > > > > > > > server.xml supports placeholders and exec main supports > > > > -DadditionalSystemProperties=-Dmyport=1234. Together it does the > trick. > > > > Le 2 nov. 2015 03:12, "Alex Soto" <[email protected]> a écrit : > > > > > > > > > Hi, I have a really quick question, when you execute the tomee:exec > > goal, > > > > > the maven plugin will create a runnable file with everything inside > > > > > (TomEE + Application). > > > > > > > > > > My question is if there is a way to set running port from any > > property or > > > > > not. I know that you can create a tomee/config directory inside the > > > > project > > > > > with the configuration you want to embed inside the jar, but in > case > > you > > > > > want to use Mesos, the running port is resolved dynamically at > > running > > > > > time. > > > > > > > > > > Alex > > > > > > > > > > > >
