I have imported an existing Maven project into Eclipse IDE. I modified some of the code and built the project in Eclipse. There are no build errors.
However, when I ran mvn clean install from the command prompt, it is showing a lot of compilation errors. Why is Eclipse not showing errors and whereas Maven shows compilation errors?
Eclipse doesn’t have the concept of the maven scopes. Whereas maven will have different classpaths depending on the scope–eclipse will only have a single classpath set.
IMHO, I don’t trust m2eclipse for builds–just let it assist with development.