Red Hat Bugzilla – Bug 831660
Errai: Examples cannot be build
Last modified: 2012-06-22 03:32:41 EDT
Description of problem:
There are numerous problems which causes examples distributed in -errai-demo.zip to be broken. This affects all examples in Most important are:
1/ Transitive dependency on jboss-parent:*-redhat-1 causes -redhat-1 plugins to be picked up (similar to bug 828180)
2/ Relative paths to the parents in poms
3/ Missing parents from poms
Suggestion: Create a standalone POM to act as a parent for Errai examples.
A quick verification from https://hudson.qa.jboss.com/hudson/view/WFK/view/WFK-2.0-CI/job/errai-2.0-wfk/17/:
Bus examples - can be compiled and imported into JBDS.
See attached log for plugin version warnings, this should be fixed.
Created attachment 592105 [details]
bus examples missing plugin versions
require following change:
Note that Maven plugins are not distributed to our customers.
JBDS fails with:
Description Resource Path Location Type
Cannot parse lifecycle mapping metadata for maven project MavenProject: org.jboss.errai:errai-cdi-demo-mvp:2.0.1.Final-redhat-1 @ /home/kpiwko/devel/wfk/sandbox/wfk-2.0/demo/cdi-examples/errai-cdi-mvp-demo/pom.xml Cause: Unrecognised tag: 'version' (position: START_TAG seen ...</artifactId>\n <version>... @8:18) pom.xml /errai-cdi-demo-mvp line 1 Maven Project Build Lifecycle Mapping Problem
For all projects. I was not able to figure out why.
Builds and imports fine.
General note for *all* examples:
Profile jboss7 should be default. The other container related profiles should ideally be removed altogether.
I agree that profile jboss7 should be default and the other container references MUST be removed from the productized version of these examples. The question is...must this be done in WFK 2.0.0.GA as Errai is only TP?
new build with fix was picked up in WFK aggregator build
Verified, examples can be build in WFK 2.0.0.CR1 with Maven Central and EAP+WFK Maven repositories.