Unable to get Ruling tests to build

java
tests

(KC Baltz) #1

I’m having trouble getting the its/ruling tests to build and complete. I keep getting the following error:

Caused by: org.sonar.api.utils.MessageException: Validation of project reactor failed:
  o "Apache Commons BeanUtils" is not a valid project or module key. Allowed characters in issues mode are alphanumeric, '-', '_', '.', '/' and ':', with at least one non-digit.

I’m using JDK 1.8.0_201 (Oracle), Maven 3.6.0, building on OS X and I’m building branch “branch-5.10”. I’ve also had the same issue on my fork of “master”, but I tried branch-5.10 which I’m guessing is recent but doesn’t have my changes.

I created an orchestrator.properties file, pointed to it with ORCHESTRATOR_CONFIG_URL. It has version 6.7.

Any suggestions?


(KC Baltz) #2

As it always happens, I finally figured this out, but only after I posted to the forum.

I had a setting my maven settings.xml like the following:

<sonar.projectKey>${project.name}</sonar.projectKey>              
<sonar.projectName>${project.name}</sonar.projectName>

We use that to avoid having to set it explicitly in all our pom files. We should probably use using artifactId instead of name, but commenting it out caused the error above to go away.