Never touched .settings/org.eclipse.wst.common.component, but its contents
are
<?xml version="1.0" encoding="UTF-8"?><project-modules
id="moduleCoreId"/>
We have developers on Linux/OSX/Windows, and we all create our .projects
via Import... Existing Maven Projects with no modification.
Up until now it has been enough to specify
<outputDirectory>${project.build.directory}/jar</outputDirectory>
and populate that folder via maven-dependency-plugin (unpack-dependencies),
exec-maven-plugin (to minify/combine JS and convert LESS to CSS) and
maven-resources-plugin (copy-resources to
${project.build.outputDirectory}). Our webapp project (<package>war)
would then consume/deploy the JAR within eclipse.
I tried deleting my projects, closing eclipse, nuking all the .project,
.classpath and .settings folders, re-starting eclipse and re-importing the
Existing Maven Projects.
Looked at the newly-generated
jsclient/.settings/org.eclipse.wst.common.component and its contents are
now
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="jsclient">
<wb-resource deploy-path="/" source-path="/src/main/java"/>
</wb-module>
</project-modules>
STILL no love in auto-deploying jsclient-{version}.jar to webapp’s
WEB-INF/lib folder.
I went back to a fresh Juno/m2e 1.3.1 install and went through the same
process. jsclient/.settings/org.eclipse.wst.common.component looks the
same as above (with the wb-module entry) and my jar is getting deployed!
At this point I’m sticking with Juno/m2e 1.3.1 so I can get some work done,
but I’d sure like to figure this out someday.
Thanks for your help, and for any additional advice...
Chris Ingham
Sent: Wednesday, July 17, 2013 5:09 AM
Subject: Re: [m2e-users] My <packaging>jar</packaging>
project won't generate a jar under Kepler/m2e 1.4
If you want WTP
to deploy the content of your ${project.build.directory}/jar
directory, it needs to be added to your .settings/org.eclipse.wst.common.component.
m2e-wtp doesn't configure that file to deploy anything
other than the build output and web source directories. You must have set it
manually before. Given the "invalid values" error you have, it looks like that
file is borked for some reason.
_______________________________________________
m2e-users mailing
list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users