[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-dev] utility project

Hi,

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...

Best regards,

-- Vazul