Hi everyone,

I saw that there were several commits to .settings the last time and I
wondered why this folder is required in the repository anymore. Here is a
list of the files in a .settings folder (wicket/.settings)

https://github.com/apache/wicket/blob/master/.settings/org.eclipse.core.resources.prefs
https://github.com/apache/wicket/blob/master/.settings/org.eclipse.m2e.core.prefs
https://github.com/apache/wicket/blob/master/.settings/org.eclipse.pde.core.prefs
https://github.com/apache/wicket/blob/master/.settings/org.eclipse.wst.common.component
https://github.com/apache/wicket/blob/master/.settings/org.eclipse.wst.common.project.facet.core.xml

I think because maven is used to configure the projects we can remove those
files from the repository and configure it all in maven.

Encoding can be configured by (see
http://maven.apache.org/general.html#encoding-warning):

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

Java Compile-Level can be configured with the compiler-plugin:

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.2</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>
      </plugin>
    </plugins>

The project facets are configured by "Maven Integration for Eclipse WTP"
and it receives the information of the web.xml and the packaging configured
in the pom (war/jar). It is preinstalled in Eclipse JEE. (see
http://marketplace.eclipse.org/node/96737)

The only entries to be custom configured are in
org.eclipse.core.resources.prefs containing .deprecations and I wonder if
they are required anymore.

The only thing to be done after importing the project into workspace is to
configure it as maven project. The .settings folder is created through the
m2e plugin based on the pom.xml, web.xml.

Did I overlook something?

What do you think?

kind regards

Tobias

Reply via email to