Friday, 9 July 2010

Maven compiler accepts "wrong layout" of java code.

When you code Java it normal to place the java files in a directory structure matching the package names. Although technically not required I think most IDEs enforce this.

However Maven compiler plugin does not enforce this. This can lead to situations where the build server sees everything working but when the developer imports this in a Eclipse or Netbeans  the build will fail.

Not sure if this is a bug or a feature..
Published with Blogger-droid v1.4.4

No comments:

Post a comment