Thursday, November 24, 2011

Eclipse/IDE build failing - version problems

Here's what the issue was:
Developing on a project having a complex build process:
Spring Roo generating AspectJ sources - GWT - Datanucleus enhancing the outcome etc.

The project was initially built on STS with an older version (lets say V1) with all the required classpath and preferences to compile-build the project using STS. (Later command line build was introduced using maven).
It was checked-in to an SVN repo with all the complex eclipse/STS preferences and classpath.

Downloaded the project from SVN.
Installed a later version of STS-V2.
The project won't build.
Well, actually I won't need the IDE build as the project was building well with maven on command-line, but I guess IDE build would be required for debug to map classes to sources- not sure of that though.

When I looked at the changes in an SVN client, IDE had changed the IDE prefs and classpath to match the STSV2 plugins/mechanisms.

Reverted the changes, project built on IDE with a few errors related to project configurations. No compile errors-that important.

Started debug from command line- connected to the debug from IDE by debugging the app as "External app". All well.
:)

No comments:

Post a Comment