On 11/12/07, Mark Hewett <[EMAIL PROTECTED]> wrote:
> I filed http://jira.codehaus.org/browse/MNGECLIPSE-438 for this issue
> - let me know if I can provide more details.
>
> Thanks,
> Mark
>
I took a look at the code, and it appears that this may be by design.
This is from BuildPathManager.java:
// From MNGECLIPSE-105
// If the current project is a WAR project AND it has
// a dynamic web project nature, make sure that any workspace
// projects that it depends on are NOT included in any way
// in the container (neither as projects nor as artifacts).
// The idea is that the inclusion is controlled explicitly
// by a developer via WTP UI.
boolean skipWorkspaceProjectsForWeb =
PACKAGING_WAR.equals(mavenProject.getPackaging())
&& hasDynamicWebProjectNature(currentProject);
Maybe this check should be made optional - I personally would rather
not have to specifically add this dependency again through the WTP UI.
At least it should display a message, since this seems like
unexpected behavior to me (specifically excluding dependencies if the
projects happen to be configured in just the right way). Maybe
something like (further down in the code):
if(skipWorkspaceProjectsForWeb) {
// From MNGECLIPSE-105
// Leave it out so that the user can handle it the WTP way
console.logMessage("Not adding workspace project
dependency: " + artifactProject.getName() + " to WTP project: " +
currentProject.getName());
continue;
}
I'm guessing that I can probably just disable the WTP natures for this
project (although I'm not exactly sure what a nature is doing for me!)
since I don't use WTP to build and deploy the WAR for testing anyway
(at least until I can figure out a way to get my resources filtered so
that WTP sees them - without having eclipse and maven share the same
build directories which seems to cause me no end of problems - which I
would really like to do because not being able to just edit and save
JSPs during testing is a real drag!).
Thanks,
Mark
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email