[jbosstools-issues] [JBoss JIRA] (JBIDE-15888) Update the Spring Archetype reference

Fred Bricon (JIRA) issues at jboss.org
Fri Dec 13 10:34:33 EST 2013


    [ https://issues.jboss.org/browse/JBIDE-15888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931170#comment-12931170 ] 

Fred Bricon commented on JBIDE-15888:
-------------------------------------

Since the latest spring archetype depends on WFK 2.4 and has no community counterpart, we need to add it to the stacks.yaml, so a warning can be displayed if WFK deps can't be resolved. Both community and product runtimes use the exact same version. 

Here's the procedure for QE to check the archetype works (we can't test the spring wizard from Central directly):
* Remove the redhat maven repo from your settings.xml
* Delete .m2/repository/org/jboss/bom/
* Add -Dorg.jboss.tools.stacks.url_stacks=https://raw.github.com/fbricon/jdf-stack/patch-3/stacks.yaml to your eclipse.ini or jbdevstudio.ini
* Open JBDS/Eclipse preferences and go to JBoss Tools > Project Examples
* check show experimental sites
* Click the Add button and add https://issues.jboss.org/secure/attachment/12379586/springmvc-test.xml
* Open the project examples wizard from JBoss Central
* select Spring MVC project from the "Staging - JBoss Maven Archetype category" and click next
* assert the description contains "Project based on the org.jboss.spring.archetypes:jboss-spring-mvc-archetype:1.0.3.Final Maven archetype"
* assert a warning is displayed (http://screencast.com/t/bJFHTGLmf2l)
* add the required repo and proceed (the warning will still be displayed as per JBIDE-16287)
* The project is created but has an error is :
{quote}
cvc-complex-type.2.4.a: Invalid content was found starting with element 'deployment'. One of '{ear-subdeployments-isolated, deployment, sub-deployment, module}' is expected.
{quote}

That's known as JBIDE-15311. 

In jboss-deployment-structure.xml, replacing 
{quote}
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">{quote} with {quote}<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:2.0">{quote} fixes the issue

[~burrsutter] : are you ok to put that archetype in JBoss Central, given the problems it has (requires WFK repo + bad jboss-deployment-structure.xml)?
                
> Update the Spring Archetype reference
> -------------------------------------
>
>                 Key: JBIDE-15888
>                 URL: https://issues.jboss.org/browse/JBIDE-15888
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: central
>            Reporter: Joshua Wilson
>            Assignee: Fred Bricon
>              Labels: spring
>             Fix For: 4.1.1.Final
>
>         Attachments: springmvc-test.xml
>
>
> I updated the Spring Archetype. The one in JBDS/JBIDE needs to point to the new version. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list