Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 873210

Summary: Errai quickstart guide documentation: Chapter 4. Errai Kitchen Sink Maven Archetype: mvn package error
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Emil Cervenan <ecervena>
Component: ErraiAssignee: Jonathan Fuerth <jfuerth>
Status: CLOSED CURRENTRELEASE QA Contact: Emil Cervenan <ecervena>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1.0CC: cbrock, csadilek, irooskov, jfuerth, kpiwko, mnovotny, pslegr, rruss
Target Milestone: GA   
Target Release: 2.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-17 15:03:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Generated pom.xml file with -Denterprise=true none

Description Emil Cervenan 2012-11-05 11:10:36 UTC
Description of problem:
Chapter 4. Errai Kitchen Sink Maven Archetype
(http://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/2/html/Errai_Quickstart_Guide/index.html) 
->
Following guide on step "mvn package" errors appear

[WARNING] The POM for org.jboss.errai:errai-bus:jar:2.1.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.jboss.errai:errai-ioc:jar:2.1.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.jboss.errai:errai-tools:jar:2.1.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.jboss.errai:errai-cdi-client:jar:2.1.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.jboss.errai:errai-javax-enterprise:jar:2.1.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.jboss.errai:errai-weld-integration:jar:2.1.0-SNAPSHOT is missing, no dependency information available 
.
.
.
[ERROR] Failed to execute goal on project wfk.errai.quickstart.example: Could not resolve dependencies for project wfk.errai.quickstart:wfk.errai.quickstart.example:war:1.0-SNAPSHOT: The following artifacts could not be resolved: org.jboss.errai:errai-bus:jar:2.1.0-SNAPSHOT, org.jboss.errai:errai-ioc:jar:2.1.0-SNAPSHOT, org.jboss.errai:errai-tools:jar:2.1.0-SNAPSHOT, org.jboss.errai:errai-cdi-client:jar:2.1.0-SNAPSHOT, org.jboss.errai:errai-javax-enterprise:jar:2.1.0-SNAPSHOT, org.jboss.errai:errai-weld-integration:jar:2.1.0-SNAPSHOT: Could not find artifact org.jboss.errai:errai-bus:jar:2.1.0-SNAPSHOT


Version-Release number of selected component (if applicable):


How reproducible:
Allways

Steps to Reproduce:
Follow guide: Chapter 4. Errai Kitchen Sink Maven Archetype
  
Actual results:
maven error


Expected results:
project build

Additional info:

Comment 1 Karel Piwko 2012-11-05 11:49:52 UTC
The documentation should be update to list proper Errai version. Emil, does it work if you provide correct Errai version (2.1.0.Final-redhat-1) ?

Comment 2 Emil Cervenan 2012-11-05 13:19:39 UTC
(In reply to comment #1)
> The documentation should be update to list proper Errai version. Emil, does
> it work if you provide correct Errai version (2.1.0.Final-redhat-1) ?

Yes, build will success with Errai 2.1.0.Final-redhat-1.

Comment 3 Isaac Rooskov 2012-11-18 23:14:10 UTC
The example has now been updated with the correct version

Comment 11 Emil Cervenan 2012-12-03 12:17:05 UTC
Fix:
jboss-errai-kitchensink-archetype contains pom.xml with wrong errai version. Correct version is "2.1.0-Final-redhat-1"

Comment 12 Marek Novotny 2013-01-10 12:53:10 UTC
Please comment this issue if the archetype is fixed and published in Maven Central.

Comment 14 Karel Piwko 2013-01-11 10:25:16 UTC
From my understanding, there are following problems:

1/ Emil is interchanging archetypeVersion and erraiVersion due to wrong documentation

2/ If you generate -Denterprise=true, you still get community errai, that's the referenced problem with the archetype.

So, documentation should list:

wfk-mvn archetype:generate -DarchetypeGroupId=org.jboss.errai.archetypes -DarchetypeArtifactId=jboss-errai-kitchensink-archetype -DarchetypeVersion=2.1.0.Final -DarchetypeRepository=https://repository.jboss.org/nexus/content/groups/public/ -Denterprise=true 

(implementation note: providing a variable like -Dversion.org.jboss.errai=2.1.0-redhat-1 would make easy to bump version without release archetype)

And archetypes should be fixed to have -redhat-X errai version if -Denterprise=true.

Comment 15 Karel Piwko 2013-01-11 10:26:01 UTC
Created attachment 676779 [details]
Generated pom.xml file with -Denterprise=true

Attaching generated pom.xml

Comment 16 Emil Cervenan 2013-04-17 15:03:21 UTC
Was fixed in upstream but I'm not able to track down specific commit. Works well now.