[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [m2e-users] webby: Could not locate	configuration	for	maven-war-plugin | 
Now that I changed my project to use war packaging for the modules that 
contribute both webResources and classes to the application, I've run 
into a strange problem:
When I tried running my application I got the follwing error message: 
"Specified working directory does not exist or is not a directory: 
/home/rafal/workspaces/cyklotron-indigo/cyklotron-webapp/target/m2e-webby" 
which is quite correct, because I've blown away the target directory 
more than a few times while tweaking module packaging. I'd expect to 
Webby to re-create this directory behind the scenes and not bail out 
like this. I created the requested directory by hand and tried again. 
This time Jetty was launched but I got an exception in the console:
2011-07-05 19:05:09.696:WARN::Web application not found 
/home/rafal/workspaces/cyklotron-indigo/cyklotron-webapp/target/m2e-webby/war
2011-07-05 19:05:09.697:WARN::Failed startup of context 
o.e.j.w.WebAppContext{/cyklotron,null},/home/rafal/workspaces/cyklotron-indigo/cyklotron-webapp/target/m2e-webby/war
java.io.FileNotFoundException: 
/home/rafal/workspaces/cyklotron-indigo/cyklotron-webapp/target/m2e-webby/war
    at 
org.eclipse.jetty.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:471)
Which is also correct, because target/m2e-webby/war is missing - it was 
not created & populated by Webby plugin.
Then I've tried to start from scratch - I've deleted the 
'cyklotron-webapp' run configuration. I tried launching again and I got 
the same stacktrace to the console as above.
Then I've restarted eclipse. Same exception.
Then I've tried searching for anything webby related in my workspace 
configuration (cyklotron-webapp/.settings, .metadata/.plugins) but I 
didn't find anything.
Finally I've created a new workspace, imported the web application 
project and tried running it and I got the "Specified working directory 
does not exist..." error message.
Which leaves me very confused, because this morning Webby unpacked my 
application partially into target/m2e-webby/war directory, before 
getting derailed by non-standard overlays...
cheers,
Rafał
Any pointers will be appreciated.
On 07/05/2011 02:25 PM, Benjamin Bentmann wrote:
Rafał Krzewski wrote:
I've just tried running a web application with webby 0.1.0.201106240305
and it failed to start with message "Could not locate configuration for
maven-war-plugin".
Here's POM for the war project I was trying to launch:
http://objectledge.org/fisheye/browse/cyklotron/trunk/cyklotron-webapp/pom.xml?hb=true#to105 
As you can see maven-war-plugin configuration definitely is in there :).
What the error meant to say is that the maven-war-plugin configuration 
was not found for the cyklotron-ui overlay project.
This works with standalone maven build. I haven't checked yet if current
m2e-wtp can handle it. 0.12.x and lower definitely could not. I don't
know if it's supposed to be in webby. Even if not, more informative
error message would be nice.
Yes, the error message isn't helpful right now. Besides, in the future 
Webby should try and fallback to resolve the overlay WAR from the repo 
and use that when the project is not of war packaging.
Benjamin
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users