You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "pkernevez (JIRA)" <ji...@codehaus.org> on 2008/02/11 17:02:28 UTC
[jira] Created: (MECLIPSE-389) After running "clean" phase, eclipse
detects some errors due to missing folder.
After running "clean" phase, eclipse detects some errors due to missing folder.
-------------------------------------------------------------------------------
Key: MECLIPSE-389
URL: http://jira.codehaus.org/browse/MECLIPSE-389
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Components: WTP support
Affects Versions: 2.5
Reporter: pkernevez
We are using the configuration point out at the bottom of the page : http://maven.apache.org/plugins/maven-eclipse-plugin/examples/multi-module-projects.html
The presence of the <wtpmanifest>true</wtpmanifest> creates the folder "target\generated-resources\eclipse\META-INF\" (due to the creation of the file target\generated-resources\eclipse\META-INF\MANIFEST.MF) during the "eclipse:eclipse" goal.
First trouble, when we run the phase "clean" this folder is deleted and never recreated, even if we run other phases (like install). When Eclipse refresh its folder tree it indicates an error due to this sources missing folder.
Another trouble, is that the name of this Manifest file is hardcoded in the class EclipseManifestWriter
See http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseManifestWriter.java?revision=618468&view=markup
The plugin manifest is not used, neither the plugin configuration:
<manifest>
${basedir}/src/main/resources/META-INF/MANIFEST.MF
</manifest>
--
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
[jira] Commented: (MECLIPSE-389) After running "clean" phase,
eclipse detects some errors due to missing folder.
Posted by "Andreas Veithen (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=192752#action_192752 ]
Andreas Veithen commented on MECLIPSE-389:
------------------------------------------
A workaround for this issue is to configure the maven-clean-plugin to skip the directory containing the files generated by the eclipse:eclipse goal:
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.3</version>
<configuration>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>${project.build.directory}</directory>
<excludes>
<exclude>generated-resources/eclipse/**</exclude>
</excludes>
</fileset>
</filesets>
</configuration>
</plugin>
> After running "clean" phase, eclipse detects some errors due to missing folder.
> -------------------------------------------------------------------------------
>
> Key: MECLIPSE-389
> URL: http://jira.codehaus.org/browse/MECLIPSE-389
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: WTP support
> Affects Versions: 2.5
> Reporter: pkernevez
>
> We are using the configuration point out at the bottom of the page : http://maven.apache.org/plugins/maven-eclipse-plugin/examples/multi-module-projects.html
> The presence of the <wtpmanifest>true</wtpmanifest> creates the folder "target\generated-resources\eclipse\META-INF\" (due to the creation of the file target\generated-resources\eclipse\META-INF\MANIFEST.MF) during the "eclipse:eclipse" goal.
> First trouble, when we run the phase "clean" this folder is deleted and never recreated, even if we run other phases (like install). When Eclipse refresh its folder tree it indicates an error due to this sources missing folder.
> Another trouble, is that the name of this Manifest file is hardcoded in the class EclipseManifestWriter
> See http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseManifestWriter.java?revision=618468&view=markup
> The plugin manifest is not used, neither the plugin configuration:
> <manifest>
> ${basedir}/src/main/resources/META-INF/MANIFEST.MF
> </manifest>
--
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