Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-426

faces-config.xml graphic editor not works

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.5.1
    • None
    • WTP support
    • None
    • Windows-XP

    Description

      In a jsf project with structure like this:

      --src/main/java
      --src/main/resources

      I've faces-config.xml in /META-INF directory, placed under src/main/resources. My pom.xml include this configuration:

      <plugin>
      	<groupId>org.apache.maven.plugins</groupId>
      	<artifactId>maven-eclipse-plugin</artifactId>
      	<configuration>
      		<wtpversion>2.0</wtpversion>
      		<additionalProjectFacets>
      			<jst.web>2.5</jst.web>
      			<jst.jsf>1.2</jst.jsf>
      			<jst.ejb>3.0</jst.ejb>
      		</additionalProjectFacets>
      	</configuration>
      </plugin>
      

      After mvn eclipse:eclipse i've under .project directory, the file org.eclipse.wst.common.component:

      <project-modules id="moduleCoreId" project-version="2.0">
        <wb-module deploy-name="eos-components">
          <wb-resource deploy-path="/" source-path="src/main/java"/>
          <wb-resource deploy-path="/" source-path="src/main/resources"/>
        </wb-module>
      </project-modules>
      

      Now, if i open faces-config.xml with graphic editor, i've some error in eclipse log, and i can't use it, neither i can save the file! (in the log: !MESSAGE Resource '/eos-components/src/main/java/eos-components/src/main/resources' does not exist.)

      But if I manually invert the order of wb-resources, all works fine!

      <wb-resource deploy-path="/" source-path="src/main/resources"/>
      <wb-resource deploy-path="/" source-path="src/main/java"/>

      Attachments

        Activity

          People

            Unassigned Unassigned
            cn73 Marco Noto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: