Maven error: Cannot find parent

October 12th, 2007

I hate Maven! I keep on getting:

Project ID: com.javaforge.tapestry:tapestry-spring:jar:1.0.0

Reason: Cannot find parent: com.javaforge.tapestry:tapestry-javaforge for projec
t: com.javaforge.tapestry:tapestry-spring:jar:1.0.0

…although both tapestry-spring and tapestry-javaforge are inside the repository :-(

With maven -e I saw this weird path:

 Caused by: java.io.FileNotFoundException: \home\me\.m2\repository\com\javaforg
e\tapestry\tapestry-javaforge\1.0.0-SNAPSHOT\maven-metadata-http:\repo1.maven.or
g\maven2\.xml (Die Syntax f³r den Dateinamen, Verzeichnisnamen oder die Datentrõ
gerbezeichnung ist falsch)

org.apache.maven.plugins:maven-idea-plugin:maven-plugin:2.0

October 12th, 2007

Maven is such a pain and a timekiller once in a while. This time, I have downloaded the trials examples from svn and wanted to compile the Roster demo. However, Maven is refusing to download it……and manual installation didn’t help either.

[INFO] Scanning for projects…
[INFO] Searching repository for plugin with prefix: ‘idea’.
Downloading: http://webobjects.mdimension.com/maven2/releases/org/apache/maven/p
lugins/maven-idea-plugin/2.0/maven-idea-plugin-2.0.jar
[WARNING] Unable to get resource from repository tapestry-snapshots (http://peop
le.apache.org/~hlship/tapestry-snapshot-repository/)
Downloading: http://repository.codehaus.org//org/apache/maven/plugins/maven-idea
-plugin/2.0/maven-idea-plugin-2.0.jar
[WARNING] Unable to get resource from repository codehaus (http://repository.cod
ehaus.org/)
Downloading: http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-idea-p
lugin/2.0/maven-idea-plugin-2.0.jar
[INFO] ————————————————————————
[ERROR] BUILD ERROR
[INFO] ————————————————————————
[INFO] Failed to resolve artifact.

Anyway, I have decided to delete the repository and start again!

Extending the Trails default pages using the HibernatePersistenceServiceImpl

October 12th, 2007

Unfortunately Trails is not very well documented yet (even the JavaDocs!). So I have to find my way by searching through posts on the Trails mailing-list or using the buggy JadClipse Plugin.

Anyway, if you want to have a custom page that can display a single entity, have a look at this example:

public abstract class ViewBlogPage extends TrailsPage
implements IExternalPage, PageBeginRenderListener
{

public void activateExternalPage(Object args[], IRequestCycle cycle)
{
String blogURL = (String)args[0];

HibernatePersistenceServiceImpl service = (HibernatePersistenceServiceImpl)this.getPersistenceService();
service.getSessionFactory().getCurrentSession().createCriteria(Blog.class);

Eclipse keeps on crashing :-(

October 12th, 2007

Stackoverflow Error in Eclipse!

Oh no - my Eclipse (not my MyEclipse!) keeps in shutting down every couple of minutes…haven’t found out whether it is my laptop or whether it is something fishy with Eclipse or one of the plugins.

Stackoverflow Error in Eclipse!

The “solution”

!ENTRY org.eclipse.ui 4 0 2007-10-12 15:33:47.828
!MESSAGE java.lang.StackOverflowError
!STACK 0
java.lang.StackOverflowError
at net.sf.jadclipse.JadclipseSourceMapper.findSource(JadclipseSourceMapper.java:93)

… which basically menas that the Jadclipse Plugin sucks….memory.

But I need it and as I am too busy/lazy to look for an update, I think I’ll live with this situation for a while.