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 >
