Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable javascript facet in a m2e project

I'd like to disable the Javascript Facet (and remove the Javascript builder) from a Maven-driven Eclipse project. Is there any way I can configure the maven-eclipse-plugin to do so?

like image 892
dash1e Avatar asked Apr 17 '26 02:04

dash1e


1 Answers

First of all, clean the configuration with mvn eclipse:clean, it will remove all configuration from the .project file.

Then make a new one with mvn eclipse:eclipse, just with the configuration and dependencies on your pom.xml.

EDIT: And configure the project natures that you need:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-eclipse-plugin</artifactId>
    <configuration>
        <projectnatures>
            <projectnature>org.eclipse.jdt.core.javanature</projectnature>
            <projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
        </projectnatures>
        <additionalProjectnatures>
            [... the ones you need or empty...]
            <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
        </additionalProjectnatures>
    </configuration>
</plugin>
like image 166
jordiburgos Avatar answered Apr 18 '26 16:04

jordiburgos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!