[Oxygen] Webservices with Apache CXF don't build anymore [message #1768681] |
Fri, 21 July 2017 08:40  |
Eclipse User |
|
|
|
Hello,
in Scout Neon, I implemented a webservice. Because I use Tomcat, I decided to bundle Apache CXF to the Scout Application like described in the Technical Guide.
<!-- JAX-WS Apache CXF -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>...</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>...</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>...</version>
</dependency>
Now with Scout 7, building is not possible any more because duplicate-finder finds a problem:
Quote:Found duplicate and different classes in [commons-logging:commons-logging:1.2, org.slf4j:jcl-over-slf4j:1.7.25]
commons-logging is added to the project by spring-web, while Scout adds jcl-over-slf4j.
What is your recommended approach to get the build done? I could suppress the error, but I wanted to ask if there is another solution.
|
|
|
Re: [Oxygen] Webservices with Apache CXF don't build anymore [message #1769098 is a reply to message #1768681] |
Wed, 26 July 2017 10:03  |
Eclipse User |
|
|
|
To get the project built, I added the following lines to the aggregator pom.xml. That suppresses the error, but I am not sure if it is a good solution.
<build>
<pluginManagement>
<plugins>
...
<plugin>
<groupId>org.basepom.maven</groupId>
<artifactId>duplicate-finder-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<ignoredDependencies>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>[1.7.0,1.7.99]</version>
</dependency>
</ignoredDependencies>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
|
|
|
Powered by
FUDForum. Page generated in 0.04845 seconds