[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-6228) "JBoss Maven Seam Integration" modifies web.xml during project import

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Fri May 7 18:17:05 EDT 2010


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

Snjezana Peco commented on JBIDE-6228:
--------------------------------------

The JBoss Maven Seam Configurator adds the Seam facet if there is a Seam library in the pom.xml.
The Seam facet updates web.xml using the Webtools API (IModelProvider) that removes comments.
We have to use the Webtools API because web.xml can be updated by some other facet (the JSF facet, for instance).
This is a problem with the Webtools API. You can check it in the following way:
- create a Dynamic Web Project 
- open web.xml and add a comment
- create a servlet
web.xml will be updated, but the comment will be removed.
The problem also happens in Eclipse 3.6M7.

> "JBoss Maven Seam Integration" modifies web.xml during project import
> ---------------------------------------------------------------------
>
>                 Key: JBIDE-6228
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-6228
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: maven
>    Affects Versions: 3.1.0.GA
>         Environment: Eclipse 3.5.2, m2eclipse 0.10.0, JBoss Tools 3.1.0, Java 1.6.0-20, Debian GNU/Linux 5.0
>            Reporter: Clemens Fuchslocher
>            Assignee: Snjezana Peco
>             Fix For: 3.1.1, 3.2.next
>
>
> Used software:
> * Eclipse IDE for Java EE Developers (http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/galileosr2)
> * m2eclipse 0.10.0.20100209-0800 (http://m2eclipse.sonatype.org/sites/m2e)
> * JBoss Maven Integration 1.0.0.v201003050540R-H56-GA (http://download.jboss.org/jbosstools/updates/stable/galileo/)
> * JBoss Maven Seam Integration 1.0.0.v201003050540R-H56-GA (http://download.jboss.org/jbosstools/updates/stable/galileo/)
> Steps to reproduce:
> 1. Import the seamIntegration project from http://anonsvn.jboss.org/repos/richfaces/tags/3.3.3.Final/samples/seamIntegration/:
> File
> -> New
> -> Other...
> -> Checkout Maven Projects from SCM
> -> Next
> -> SCM URL: svn, http://anonsvn.jboss.org/repos/richfaces/tags/3.3.3.Final/samples/seamIntegration/
> -> Finish
> 2. Compare the imported web.xml with the original one: http://anonsvn.jboss.org/repos/richfaces/tags/3.3.3.Final/samples/seamIntegration/src/main/webapp/WEB-INF/web.xml.
> 3. Problem: The file is completely rewritten. All comments are lost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list