2007-07-21

SimpleTapestry 5 CRUD application - renaming (refactoring) and migration to 5.0.5.

Migration from T5.0.4 to T5.0.5:

Please archive your project before the action!

1. pom.xml, find the line
<tapestry-release-version>5.0.4</tapestry-release-version>
and cnange it to
<tapestry-release-version>5.0.5

2. Right click menu->Maven2->Update Source Folder;
3. After 2. the project in Eclipse was shown as full or errors ->Open project's properties and add all libraries into classpath (Java Build Path). Remember about javax.servlet.jar (Step 06);
4. After 3. - the were still several errors in the project, org.apache.tapestry... were not resolved, I tried "dance with a tambourine" approach: Maven2 Clean/Build commands etc but it didn't work. So, had to build a new T5 quick-start project with help of

mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.5 -DgroupId=org.example -DartifactId=myapp -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT

And that didn't help also... .
So, I just deleted the project from Eclipse and from disk.
5. Restored the project from the archive and imported in in Eclipse again, repeated 1,2,3 and now it even compiles!

I also renamed the project from TSA504 to just TSA.

No comments: