Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Maven plugin 7.5.1: systemProperties not being honoured?

Hi,

Since this worked in 6.1.25, and documented as such under
http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyPlugin-Logging
( see Logback-Classic as the logging backend for the JSP Engine ) , I
would think that it would work in 7 as well.

If that assumption is wrong, and the feature was explicitly dropped,
what is the alternative configuration? I prefer setting the
configuration in pom.xml rather than MAVEN_OPTS, as it is more
portable.

Robert

On Mon, Sep 12, 2011 at 5:17 PM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
> You can't use slf4j and logback in this way.
> The slf4j configuration will initialize (and consequently logback as well)
> early, at plugin start, hence you can't have that same plugin then start to
> set system properties that then configure the slf4j and logback specifics.
> --
> Joakim Erdfelt
> joakim@xxxxxxxxxxx
> http://webtide.com | http://intalio.com
> (the people behind jetty and cometd)
>
>
> On Mon, Sep 12, 2011 at 4:43 AM, Robert Munteanu <robert.munteanu@xxxxxxxxx>
> wrote:
>>
>> Hi,
>>
>> I've just upgraded my plugin configuration from 6.1.25 to
>> 7.5.1.v20110908 . The single issue I still face is that the
>> systemProperties are not applied. This section used to configure
>> logback has no effect:
>>
>>                                        <systemProperties>
>>                                                <systemProperty>
>>
>>  <name>logback.configurationFile</name>
>>
>>  <value>./src/main/resources/logback.xml</value>
>>                                                </systemProperty>
>>                                        </systemProperties>
>>
>> Instead, Jetty picks up a default logback.xml from the classpath which
>> sets the log level to debug.
>>
>> Including -Dlogback.configurationFile=./src/main/resources/logback.xml
>> in my launch configuration ( I use Eclipse ) fixes this problem, so
>> this looks like a bug. Please let me know if I'm doing something wrong
>> and should open a bug ( and in in which tracker ).
>>
>> Thanks,
>>
>> Robert
>>
>> --
>> Sent from my (old) computer
>> _______________________________________________
>> jetty-users mailing list
>> jetty-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>



-- 
Sent from my (old) computer


Back to the top