java – error: cannot find symbol – maven install com class folder

Question:

I have a maven project in eclipse that uses a class folder. This folder has the .java and the .class. The classes I use in the project are in the build path as a class folder, when I do maven install I get an error:

[ERROR] location: class PushJobProcessor
[ERROR] xxx\java\com\xxx\Processor.java:[152,11] error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I've tried and changed the java version, but nothing… Can you give an idea of ​​what it is?

Thanks for listening

Answer:

Try to change Maven plugin version to 3.1

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.1</version>
    <configuration>
        <source>1.7</source>
        <target>1.7</target>
    </configuration>
</plugin>
Scroll to Top