spring-cloud-config: In STS, sleuth causes the compile error: Build path is incomplete. Cannot find class file for org/tmatesoft/svn/core/wc2/SvnOperationFactory

Hi,

I have a config server application and all were fine until I added spring-cloud-starter-sleuth which is causing a compilation error:

Build path is incomplete. Cannot find class file for org/tmatesoft/svn/core/wc2/SvnOperationFactory

the important part of my pom:

      <dependencies>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-config-server</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-security</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-amqp</artifactId>
		</dependency>
   		<dependency>
       		        <groupId>org.springframework.cloud</groupId>
        	        <artifactId>spring-cloud-starter-sleuth</artifactId>
   		 </dependency>
	</dependencies>

      <dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>Camden.SR5</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

My spring boot version is: 1.5.1.RELEASE

Any help?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Here’s a workaround. Right click the project and go to

“Properties >> Spring”

Select the “Enable Project Specific settings” checkbox.

Go to “Project Builders” tab and disable “AOP Reference Model Builder”.

My guess is that the AOP reference model builder is running into references to types that a regular compile would not visit, and these types are not on the project classpath, causing that error.

As a GitHub project or a zip file, not as comments