hi folks,
I'm just another new starter launching my canoe onto one of the tributaries of the OpenMRS river. To date, I've read over the several introductory /starter material and watched the OpenMRS university YouTube on building core and building a module. On an earlier attempt something on my PC's set-up created bother with the Standalone app (topic:
OpenMRS 2.1 Standalone).
Following the lead of the Youtube video, I wanted to build the
OpenMRS-core. I took a snapshot from GitHub on the weekend and concentrated on using Maven builds. Anyway I had some trip-hazards simply building the "out of the box" master-zip of the project.
The "
openmrs-tools" sub-project won't build because it is missing <version>-tag for the "
maven-surefire-plugin" (testing):
The surefire version property is actually in the superordinate, main POM file, not the tools POM file.
For the purpose of the exercise, I used the most recent surefire release:
- $ openmrs-core/blob/master/pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<failIfNoTests>false</failIfNoTests>
</configuration>
<version>2.18</version>
</plugin>
Then:
mvn install
Success. I thought it is worth letting people looking at the project tree, because the POM file/project with the '
problem' isn't where the source /solution is to be found. This is a really neat Maven feature really but it has bitten me before, so I went looking.
To save time, I opened the project with Netbeans. It is showing "
Unresolved project problems", after a Maven build-with-dependencies, and some Maven updates and downloads, the bulk of these were resolved. But it's not done yet; so far so good.
I put some added detail in for other new-comers like me, who might strike similarly odd issues.
My main question is how come the Master from GitHub has a basic flaw? Or, more relevantly, is there something else I "should have done" but didn't that would have avoided that surefire version problem?
At least I'm getting some where. Hope to hear back on this topic though. I'm sure I'll have more learning when everything "resolves themselves" :-)
Kind regards,
Will