Cannot "mvn clean" my project


I have developed a project with the maven archetype ejb.
It was working fine, at some point I get an error
Error injecting persistence unit into CDI managed bean. Can't find a persistence unit named '' in deployment myproject.war for injection point private javax.persistence.EntityManager"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"myproject.war\".WeldStartService"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}

One of the first things I’m trying to solve it is to “clean” the project.
But executing “mvn clean” gives me

Non-resolvable import POM: Failure to find org.camunda.spin:camunda-spin-bom:pom:${version.spin}

Any ideas?


Hi @kontrag,

So did you specify the spin version?

Best regards,

Hi @Yana,

That dependency in the pom.xml file hasn’t been changed so far and it was working.

>  <dependency>
>         <groupId>org.camunda.spin</groupId>
>         <artifactId>camunda-spin-bom</artifactId>
>         <scope>import</scope>
>         <type>pom</type>
>         <version>${version.spin}</version>
>       </dependency>

But I think the error was in the settings of the IDE, the “language_level” of the project was somehow set to a previous version. I reverted it back to what I had before and managed to deploy :wink:

strange, but great that you managed to resolve the problem.