Troubleshooting Eclipse Project Scans Built with Maven

Veracode Greenlight

Publication
Veracode Greenlight
Edition date
2023-01-27
Last publication
2023-01-27T02:46:14.597877

If you compiled your files using Maven and then imported these files, ensure the .project file contains the Java and Maven natures.

You can manually add them to the .project file with this command:

<buildSpec>
    <buildCommand>
        <name>org.eclipse.jdt.core.javabuilder</name>
        <arguments></arguments>
    </buildCommand>
    <buildCommand>
        <name>org.eclipse.m2e.core.maven2Builder</name>
        <arguments></arguments>
    </buildCommand>
</buildSpec>
<natures>
    <nature>org.eclipse.jdt.core.javanature</nature>
    <nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>