Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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 ${}/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 <fbricon@xxxxxxxxx> 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.ingham@xxxxxxxx> 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 ${}/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

"Have you tried turning it off and on again" - The IT Crowd

"Have you tried turning it off and on again" - The IT Crowd

Back to the top