cancel
Showing results for 
Search instead for 
Did you mean: 

The import can not be resolved

stefanofdenmark
Champ in-the-making
Champ in-the-making
Please bear with med, I'm completely new to Activiti and Maven.

My setup:
Maven 3.3.9
Elipse Mars 2, Activiti plugin (Activiti BPMN 2.0 designer)

I make a new Activiti project, add an Activiti diagram and click Activiti->Generate unit test
The generated unit test then complains about imports that can not be resolved (junit and activiti imports).
The pom.xml was auto generated when I created the project, and it contains activiti-engine and junit.

What did I miss?

Best regards
Stefan
4 REPLIES 4

hari
Star Contributor
Star Contributor
If you are new to Maven, just ensure that all the jar files which come along with Activiti are in your build path and forget about adding them to pom.

stefanofdenmark
Champ in-the-making
Champ in-the-making
That is an option, but Maven seems like a good skill to acquire and besides is Maven the recommended way to go with Activiti.
Strange thing is if I create a new Maven project in Eclipse and add the dependencies for Activiti, it all works. But that negates the idea of creating an Activiti project.
So my question still stands: What are the requirements for making an Activiti project work?

jbarrez
Star Contributor
Star Contributor
What happens when you right click -> Maven -> Update project ?

The Maven option is not available on the Activiti project (it is available on the Maven project)