[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[m2e-dev] utility project
- From: LÃszlÃ VÃradi <laszlo.varadi@xxxxxxxxx>
- Date: Thu, 8 Dec 2011 09:47:22 +0100
- Delivered-to: email@example.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=N2vHefvxEQsftc1HlciY2y5diyHHTcwD6PSzP43A7co=; b=Iy8yWGmMPIoDhtZN04tCABpPygIpFQEQcLCuqxFncvP5MPLlbImo786IdPBn0L2kB4 g32LAep7RIKSirc3+IkPEusChNcc3pvfOed3AtGfNc3/24WyVNnk23F2QLiYwoPBwGyt CwC/TryIf4KvDU8LjQsUMsoge5Nf3oCga/kEs=
I have sometimes problems with configuring utility project with m2e-wtp. The .settings/org.eclipse.wst.common.component file contains wrong mapping:
Â Â Â Â <wb-resource deploy-path="/" source-path="/src"/>
instead of this:
Â Â Â Â <wb-resource deploy-path="/" source-path="/src/main/java"/>
Â Â Â Â <wb-resource deploy-path="/" source-path="/src/main/resources"/>
This causes that published jar file on server will contain the source files, not the classes.
If I update project configuration, it won't correct the wb-resources elements. I have to delete the project, delete .settings folder, .project, .classpath, and reimport it.Usually it solves the problem.
Is there anybody experiencing the same behaviour? I don't know how to solve this issue.... and how to detect it (there is no error marker, no nothing... just the application fails to work at some point)
It is maybe because source folders are not set before applying utility facet... maybe on applying utility facet, if it is already set, now a version change action is requested. Maybe before this, a check should be made, and if component configured in a wrong way, the facte should be deleted before and reistalled... just wondering...