LogFactory conflict in gs-main Eclipse project results into unable to compile/run.

Description

When trying to build and run GeoServer from Eclipse as imported modules, there is a conflict preventing its startup.

Running "mvn dependency:tree" on gs-main I see:

....
[INFO] +- net.sf.json-lib:json-lib:jar:jdk15:2.4:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.2rovided
[INFO] | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- commons-lang:commons-lang:jar:2.5:compile
[INFO] | +- commons-logging:commons-logging:jar:1.1.1:compile
...
...
[INFO] +- org.springframework:spring-core:jar:5.1.1.RELEASE:compile
[INFO] | - org.springframework:spring-jcl:jar:5.1.1.RELEASE:compile

Both commons-logging:commons-logging and org.springframework:spring-jcl define
org.apache.commons.logging.LogFactory but the jcl one does not have the
release(ClassLoader) method being used by GeoserverInitStartupListener.

Therefore, depending on which order the jars are loaded, you may be unable to have it work.

I'll be back with a PR containing an exclusion in the gs-main pom.xml

Environment

None

Status

Assignee

Daniele Romagnoli

Reporter

Daniele Romagnoli

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium
Configure