Si vous obtenez l'erreur suivante après avoir joué avec le package. Il peut être amélioré en modifiant pom.xml.
[ERREUR] Le chemin de la classe Bootstrap n'est pas défini avec -source 1.6
pom.xml
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.5.1</version>
    <configuration>
        <source>1.6</source>
        <target>1.6</target>
        <compilerArgument>-Xlint:all</compilerArgument>
        <showWarnings>true</showWarnings>
        <showDeprecation>true</showDeprecation>
    </configuration>
</plugin>
Dans ce qui précède, faites correspondre les deux parties qui sont "1.6" avec la version de la bibliothèque système JRE définie dans le chemin de construction (1.8, etc.).
pom.xml
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.5.1</version>
    <configuration>
        <source>1.8</source>
        <target>1.8</target>
        <compilerArgument>-Xlint:all</compilerArgument>
        <showWarnings>true</showWarnings>
        <showDeprecation>true</showDeprecation>
    </configuration>
</plugin>
        Recommended Posts