Resource targetPath is relative to the project's output directory.
------------------------------------------------------------------

         Key: MPECLIPSE-112
         URL: http://jira.codehaus.org/browse/MPECLIPSE-112
     Project: maven-eclipse-plugin
        Type: Bug

    Reporter: Emanuel Bulic


I am using the following resource:
  <build>
    <resources>
      <resource>
        <targetPath>data/core/beanconfig</targetPath>
        <directory>.</directory>
        <excludes>
           <exclude>*target/**</exclude>
        </excludes>
      </resource>      
    </resources>
  </build>

Also, the eclipse plugin is configured to use a different outputDirectory:
      <plugin>
        <artifactId>maven-eclipse-plugin</artifactId>
        <configuration>
          <outputDirectory>eclipse-target</outputDirectory>           
        </configuration>
      </plugin>

The classpath entry for the resource above should be relative to the project's 
output path:
  <classpathentry kind="src" path="." 
output="eclipse-target/data/core/beanconfig"/>

The pluging generates the wrong entry:
  <classpathentry kind="src" path="." output="data/core/beanconfig"/>

The output classpath entry is correct:
  <classpathentry kind="output" path="eclipse-target"/>



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

Reply via email to