Re: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-22 Thread Romain Manni-Bucau
ould be awesome) instead of relying > on some yaml. > > Cheers, > Dmitry > > From: Shultz, Dmitry > Sent: 22 November 2018 17:03:36 > To: users@tomee.apache.org > Subject: RE: TomEE Maven Plugin: Can conf/system.properties be > externa

Re: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-22 Thread Shultz, Dmitry
: Shultz, Dmitry Sent: 22 November 2018 17:03:36 To: users@tomee.apache.org Subject: RE: TomEE Maven Plugin: Can conf/system.properties be externalized? Thanks Romain, this is pretty cool functionality I can see the potential (for example ). Just for the sake of completeness ('also' follows after

RE: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-22 Thread Shultz, Dmitry
...@gmail.com] Sent: Thursday, November 22, 2018 11:01 AM To: users@tomee.apache.org Subject: Re: TomEE Maven Plugin: Can conf/system.properties be externalized? You also have propertiesproviders and configurers for resources: https://github.com/apache/tomee/blob/8547f730b7c9fc085534a8f5d1f68340154d2cfe

Re: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-22 Thread Romain Manni-Bucau
itry > > > -Original Message- > From: Roberto Cortez [mailto:radcor...@yahoo.com.INVALID] > Sent: Thursday, November 22, 2018 4:01 AM > To: users@tomee.apache.org > Subject: Re: TomEE Maven Plugin: Can conf/system.properties be > externalized? > > I guess you w

RE: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-22 Thread Shultz, Dmitry
Message- From: Roberto Cortez [mailto:radcor...@yahoo.com.INVALID] Sent: Thursday, November 22, 2018 4:01 AM To: users@tomee.apache.org Subject: Re: TomEE Maven Plugin: Can conf/system.properties be externalized? I guess you want to hide user, password, connection, schema etc. You could use

Re: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-22 Thread Romain Manni-Bucau
side note: why tomee:exec and not tomee:build which was intended for that case? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn

Re: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-22 Thread exabrial12
Brilliant! I knew about setting system properties, but I didn't know ${var} would pull from the unix environment! What we're doing now is tomee-exec->deb package->sftp to ubuntu->freight script adds to apt repo->apt installation on linux system. The deb script creates a user/group after the

Re: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-22 Thread Roberto Cortez
I guess you want to hide user, password, connection, schema etc. You could use variable replacement with ${} and pack the file in the jar and then just set the properties to replace like Romain mentioned. I think it should work, Cheers, Roberto > On 22 Nov 2018, at 05:42, Romain Manni-Bucau

Re: TomEE Maven Plugin: Can conf/system.properties be externalized?

2018-11-21 Thread Romain Manni-Bucau
Hello, You can always load system properties in setenv.sh before the server starts. If it is properties settable after tomee.xml is read you can set them in it and it supports Finally you can always plug a tomcat listener before tomee one and set the system properties the way you want