Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Eclipse does not enforce this restriction. In Eclipse, uimaj-cpe has a project dependency on uimaj-core, and so everything in uimaj-core is visible to everything in uimaj-cpe. Eclipse doesn't distinguish between code in src/main and code in src/test in the way that Maven does.

Another difference is that Maven does not allow resource (non-java) files under src/test/java (or src/main/java for that matter). They must be under src/test/resources (src/main/resources, respectively). Eclipse does not enforce this restriction.

Because of these differences Because of this difference it is possible to create Unit tests that run in Eclipse but fail when run from the Maven command line. To guard against this, please always run the unit tests in Maven before committing changes. This is done by executing mvn install from the uimaj directory.