Skip to content

Fix maven warnings #222

@kaklakariada

Description

@kaklakariada

Maven generates some warning messages during the build. Fix them.
Also fail compilation on warnings: <arg>-Xlint:all</arg> and <arg>-Werror</arg>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.12.1</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <showWarnings>true</showWarnings>
                    <compilerArgs>
                        <!-- We turn off `processing` because it complains about every annotation -->
                        <arg>-Xlint:all</arg>
                        <arg>-Werror</arg>
                    </compilerArgs>
                </configuration>
            </plugin>

see also https://github.com/exasol/project-keeper/blob/main/maven-project-crawler/pk_generated_parent.pom#L88

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Closed

Relationships

None yet

Development

No branches or pull requests

Issue actions