error: cannot find Symbol - Maven install with class Folder

Asked

Viewed 1,677 times

3

I have a Maven eclipse project that uses a Folder class. That folder has the . java and .class. The classes I use in the project are in build path as class Folder, when I do Maven install it gives me 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 tried to change the version of java, but nothing... They can give an idea of what it is ?

Thank you for your attention

  • What is the structure of your source Folder? I’ve had problems for some time because Maven only recognized the default structure via command line src/main/java, other than that additional settings are required on pom.xml

  • How is your pom.xml? Please put it in question.

  • I separated my test code from the project and put it into another project, after which the error disappeared.

1 answer

1


Try changing the 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>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.