Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » [Oxygen] Webservices with Apache CXF don't build anymore(Found duplicate and different classes)
[Oxygen] Webservices with Apache CXF don't build anymore [message #1768681] Fri, 21 July 2017 12:40 Go to next message
Benjamin Schulte is currently offline Benjamin SchulteFriend
Messages: 34
Registered: December 2016
Member
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 14:03 Go to previous message
Benjamin Schulte is currently offline Benjamin SchulteFriend
Messages: 34
Registered: December 2016
Member
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>
Previous Topic:Scout 7 and validation of credentials on server
Next Topic:Most abstract GUI component for us to customize?
Goto Forum:
  


Current Time: Sun Sep 23 05:25:18 GMT 2018

Powered by FUDForum. Page generated in 0.01992 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top