I am using Maven 2.2.1. I have an enterprise java maven project which I am trying to build. When I run mvn clean install the EAR is generated. No compilation errors are found. In the logs I get the message that 1980 source files are compiled to ApplicationWeb\target\classes directory. But I cannot find these class files in the location and they are not present in WAR. How to solve this ?
Edit: When built from Eclipse using Maven plugin, its working fine. It gives issue when run from Windows Command Prompt. Why the difference ?
That sort of thing usually happens when you’re using a different version of Maven. I’m betting your Eclipse is using 3.x which is the in built version.
You have 2 choices:
I’d recommend upgrading Maven to the latest and getting both your command line and Eclipse to use the same installed version.