score:108

Accepted answer

eclipse versions earlier than luna

i'm not certain if this is the best thing to do but i followed the instructions mentioned here with regards to getting rid of the auto generated web resources folder and this seems to also resolve the issue with the missing manifest.mf:

  • on your project only : right-click on the project > properties > maven > wtp : check "enable project specific settings" and uncheck "maven archiver generates files under the build directory"
  • on the whole workspace : window > preferences > maven > wtp : uncheck "maven archiver generates files under the build directory"

we actually generate our manifest entries as part of the maven-war-plugin when we actually want to package/build the project, but i dont think m2e-wtp uses this. in any event, the manifest file is irrelevant for us in the build that m2e-wtp creates for use within eclipse.

eclipse luna and later

for eclipse luna you have to go:

preferences > maven > java ee integration and uncheck "maven archiver generates files under the build directory".

eclipse luna does not have the path at project properties and the wtp section

score:-2

just below the above line, i was getting an additional info saying "out of sync" i only ran project clean "my project" and bingo, it worked for me..

score:-1

m2e-wtp plugin might generating an almost empty manifest.mf in /target/m2e-wtp/web-resources/meta-inf folder, no matter where you place the real manifest.mf have a look at virgo's admin console. just browse the "bundles" category the bundle. you'll see what packages are being imported and exported for real.

so what you can do is copy the manifest.mf to the /$virgo_base/stage/$bundle_webapp/meta-inf directory and hit "redeploy" in eclipse's server view.

score:0

replacing manen to an external installation solved it for me.
window -> preferences -> [search maven in the search box] -> installation add a full external maven installation and select its checkbox. apply and restart.

score:0

cleaning the project didn't do the trick,there were 2 external jars that were added to the build path removing them and moving them inside pom.xml really fixed the issue for me.

score:0

i use eclipse luna and find it useless to enable project specific settings. finally, i found the configure file org.eclipse.m2e.wtp.prefs in project .settings and change the configuration "org.eclipse.m2e.wtp.enablem2ewtp=true". it works after maven build the project. hope this is help to people meets the same case as me. :d

score:0

for marte eclipse:

go to: window > preference > marven > java ee integration

uncheck marven archiver generates files under the build directory.

it's works

score:0

to make sure resources are properly refreshed, as maven cleans up target, you can setup maven build to automatically refresh project + target folder, etc.,.

check the option to automatically refresh resources in your maven build

score:0

in my case (eclipse neon), i enabled maven archiver generates files under build directory

score:2

manifest.mf is getting destroyed when we try to do maven build using mvn clean install. if we don't want to destroy manifest.mf file, just enter the command mvn install in the command prompt.

and if we missed the manifest.mf file, we can generate by uncheck & check the "maven archiver generates files under the build directory" option in maven - java ee integration as you said.

score:2

clean all projects will solve this issue.

score:2

right click on project > properties > maven > update project > select last three options > click ok

done. it worked for me

score:3

in your pom.xml file check the following thing,

<build>
<finalname>write a file name which is your maven buid name</finalname>
</build>

score:3

  1. go to pom.xml
  2. ctrl+a then ctrl+x then ctrl+s then ctrl+v then ctrl+s
  3. right click on project. maven -> update project

this got solved for me.

score:4

right click on your project, go to properties and then to project facets, now go to runtime tab on the right and select the server and click on apply, the error message would be gone.

score:6

try eclipse -> project -> clean

then right click your project --> team --> share project --> svn --> choose your svn and ok

everything should be solved

score:28

try to select your project, and clean it by using the menu :

project>clean

then refresh your pom.xml. that worked for me .

score:34

this solution works for me rightclick on project --> properties --> maven --> java ee integration --> check enable project specific settings and disable maven archiver generates files


Related Query

More Query from same tag