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 From: Fred Bricon Sent: Wednesday, July 17, 2013 5:09 AM To: Maven Integration for Eclipse users mailing list 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. On Wed, Jul 17, 2013 at 12:53 PM, Fred Bricon <fbri...@gmail.com> wrote: Could you show us the content of your pom.xml? I'd expect WTP to generate a proper jar if your js resources are stored under src/main/resources On Wed, Jul 17, 2013 at 12:48 PM, Chris Ingham <chris.ing...@live.com> wrote: I have an eclipse project / Maven module (I'll call it "jsclient") with jar packaging for my web application's client JavaScript. My "webapp" project/module (war packaging) has "jsclient" as a dependency, such that jsclient-{version}.jar is served from the application server's WEB-INF/lib directory. That is until upgrading to Kepler/m2e 1.4 The jsclient-{version}.jar does appear in the magical fakerepo folder, but has 0 bytes. Being a JavaScript project, I have nothing in src/main/java. I set my <outputDirectory> to ${project.build.directory}/jar and have an empty <resources></resources> -- I populate the jar directory using a combination of maven-dependency-plugin and exec-maven-plugin, which I have configured in <pluginManagement><lifecycleMappingMetadata> This of course works from the mvn command line and worked in the previous version of m2e. I don't know whether these other symptoms are related: - In my project's properties dialog I see the error "The currently displayed page contains invalid values." when navigating to the Deployment Assembly section - The target folder of my jsclient project is often hidden from my Navigator View - this is the first time I've ever seen the Navigator View not show me everything. Thanks in advance for any troubleshooting advice. I'm happy to privately email my full POM. Chris Ingham _______________________________________________ m2e-users mailing list m2e-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/m2e-users -- "Have you tried turning it off and on again" - The IT Crowd -- "Have you tried turning it off and on again" - The IT Crowd -------------------------------------------------------------------------------- _______________________________________________ m2e-users mailing list m2e-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________ m2e-users mailing list m2e-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/m2e-users