dev@glassfish.java.net

Re: Circular build time dependency between jsp project and glassfish project

From: Kin-man Chung <Kin-Man.Chung_at_Sun.COM>
Date: Tue, 08 Jul 2008 10:59:27 -0700

OK. Thanks for pointing this out to me! I'll make the change.

But shouldn't the parent be

     org.glassfish:glassfish-parent:10.0-SNAPSHOT

since that's where hk2.version is defined?

Come to think of it, maybe the packaging for JSP project shouldn;t be
hk2-jar, but just jar. We should then create a JSP module in V3
that imports the jar and repackage it as a hk2-jar. That way, JSP is
not dependent on HK2, and V3 can use a new version of hk2 without
having to rebuild JSP, thus avoiding the recent build issues.

-Kin-man


Sahoo wrote:
> Kin-man,
>
> There is a circular dependency between 1.0-SNAPSHOT of JSP project and
> 10.0-SNAPSHOT of GlassFish as shown below:
>
> jsp/pom.xml:
> ----------------
>
> <parent>
> <groupId>org.glassfish.web</groupId>
> <artifactId>web</artifactId>
> *<version>10.0-SNAPSHOT</version>*
> </parent>
> <artifactId>jspimpl</artifactId>
> <packaging>hk2-jar</packaging>
> <version>1.0-SNAPSHOT</version>
>
> v3/web/webtier/pom.xml:
> --------------------------------
>
> <dependency>
> <groupId>org.glassfish.web</groupId>
> <artifactId>jspimpl</artifactId>
> *<version>${jspimpl.version}</version>*
> </dependency>
>
> where, jspimpl.version=1.0-SNAPSHOT.
>
> It appears to me that jsp project has just been pulled out of v3/web
> without making necessary changes to its pom.xml. Don't set
> org.glassfish.web:web:10.0-SNAPSHOT as its parent, set
> org.glassfish:pom:2 as the parent.
>
> Thanks,
> Sahoo
>