Move logging configurations into package-specific resources

Description

Logback complains if configurations appear more than once in the classpath, for example because they are supplied in the same location in more than one JAR.

Note that such a situation is in any case invalid under the rules of the module system: it corresponds to a split package.

To avoid any possibility of this, the CLI module should not define its configuration resources in the default package, but in the net.shibboleth.metadata.cli package where they are guaranteed not to clash with resources from other JARs.

The same comment, of course, applies to the corresponding resources in other projects. In this case, the clash is with the logging resources for the abstract CLI utility class in spring-extensions, and I will raise another ticket there.

Environment

None

Activity

Ian Young 
September 9, 2020 at 3:52 PM

Done, commit aa5a192a71b83e280edb4af7813107c0ebebd6f7.

I was a bit concerned that referencing package-local resources under Windows using "/" might not work, but I have tested it and it seems fine.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Created September 9, 2020 at 1:55 PM
Updated May 16, 2024 at 12:37 PM
Resolved September 9, 2020 at 3:53 PM