You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Liu Yan <yl...@gmail.com> on 2005/12/03 02:49:44 UTC

How to build a custom Portal Server

hi,

I am new to the JetSpeed as well as the Portal Server. Based on the Getting Started page on the J2 web site, I successfully built and deployed the the default Portal Server all from the J2 source. It runs well based on MySql backend. All sample Portlets are cool except the RSS one, however, I didn't look into it more.

My current task is to build a custom Portal Server. After some doc reading and mail list archive search, I found little information on it, Wiki has such title but with empty content. I guess I could miss something in the archive. The following are the steps I took:

Environment: Windows XP Professional, Tomcat 5.5.12, MySql 4.1 NT, JDK1.5.0_05

1) Download Maven 1.0.2 (It seems there is some problem for J2 working with Maven 1.1-beta, is that true?), set MAVEN_HOME, and PATH
2) Delete the ${user.home}/.maven directory, this directory working fine for the default build directly from J2 source as I mentioned above, but I'd like to delete it to have a clean environment.
3) Create a directory, say d:\myportal, copy the build.properties to this directory

maven.repo.remote = http://www.bluesunrise.com/maven/, http://www.ibiblio.org/maven/, \
  http://dist.codehaus.org/, http://cvs.apache.org/repository
org.apache.jetspeed.project.home = d:/myportal

org.apache.jetspeed.portal.home = d:/myportal
org.apache.jetspeed.portal.name=myportal
org.apache.jetspeed.portal.groupId = myportal
org.apache.jetspeed.portal.artifactId = portal
jetspeed.version=2.0-dev
org.apache.jetspeed.portal.currentVersion = 1.0

org.apache.jetspeed.genapp.home= d:/myportal
org.apache.jetspeed.genapp.groupId=myportal
org.apache.jetspeed.genapp.name=Test Portal
org.apache.jetspeed.genapp.currentVersion=1.0

(There are other settings related to Tomcat and DB config, I didn't list them here for brevity)

4) Run: maven -DartifactId=maven-jetspeed2-plugin -DgroupId=jetspeed2 -Dversion=2.0-M4-SNAPSHOT plugin:download

BUILD SUCCESSFULLY

5) Run: maven j2:portal.genapp

BUILD SUCCESSFULLY

6) Run: maven war:install

After download a lot of stuffs, the build failed with the output:
WARNING: Failed to download derby-.jar.
The build cannot continue because of the following unsatisfied dependency:

What did I do wrong? Or do I just simply misunderstand the concept of how to build a custom portal server?

Your reply is appreciated.

Liu Yan



Re: How to build a custom Portal Server

Posted by Philip Mark Donaghy <ph...@gmail.com>.
On 12/2/05, Liu Yan <yl...@gmail.com> wrote:
>
> hi,
>
> I am new to the JetSpeed as well as the Portal Server. Based on the
> Getting Started page on the J2 web site, I successfully built and deployed
> the the default Portal Server all from the J2 source. It runs well based on
> MySql backend. All sample Portlets are cool except the RSS one, however, I
> didn't look into it more.
>
> My current task is to build a custom Portal Server. After some doc reading
> and mail list archive search, I found little information on it, Wiki has
> such title but with empty content. I guess I could miss something in the
> archive. The following are the steps I took:
>
> Environment: Windows XP Professional, Tomcat 5.5.12, MySql 4.1 NT,
> JDK1.5.0_05
>
> 1) Download Maven 1.0.2 (It seems there is some problem for J2 working
> with Maven 1.1-beta, is that true?), set MAVEN_HOME, and PATH
> 2) Delete the ${user.home}/.maven directory, this directory working fine
> for the default build directly from J2 source as I mentioned above, but I'd
> like to delete it to have a clean environment.
> 3) Create a directory, say d:\myportal, copy the build.properties to this
> directory
>
> maven.repo.remote = http://www.bluesunrise.com/maven/,
> http://www.ibiblio.org/maven/, \
>   http://dist.codehaus.org/, http://cvs.apache.org/repository
> org.apache.jetspeed.project.home = d:/myportal
>
> org.apache.jetspeed.portal.home = d:/myportal
> org.apache.jetspeed.portal.name=myportal
> org.apache.jetspeed.portal.groupId = myportal
> org.apache.jetspeed.portal.artifactId = portal
> jetspeed.version=2.0-dev
> org.apache.jetspeed.portal.currentVersion = 1.0
>
> org.apache.jetspeed.genapp.home= d:/myportal
> org.apache.jetspeed.genapp.groupId=myportal
> org.apache.jetspeed.genapp.name=Test Portal
> org.apache.jetspeed.genapp.currentVersion=1.0
>
> (There are other settings related to Tomcat and DB config, I didn't list
> them here for brevity)
>
> 4) Run: maven -DartifactId=maven-jetspeed2-plugin -DgroupId=jetspeed2
> -Dversion=2.0-M4-SNAPSHOT plugin:download
>
> BUILD SUCCESSFULLY
>
> 5) Run: maven j2:portal.genapp
>
> BUILD SUCCESSFULLY
>
> 6) Run: maven war:install
>
> After download a lot of stuffs, the build failed with the output:
> WARNING: Failed to download derby-.jar.


It appears to have lost the derby version number. One of the
project.xmlfiles will have a dependency on derby, the java database.
You can hardcode
the version number 10.1.1.0. It sounds like there is a missing property
somewhere.

derby.version=10.1.1.0

Somebody correct me if I'm wrong but there should be a
project.propertiesfile in your d:/myportal directory.

The build cannot continue because of the following unsatisfied dependency:
>
> What did I do wrong? Or do I just simply misunderstand the concept of how
> to build a custom portal server?
>
> Your reply is appreciated.
>
> Liu Yan
>
>
>


--
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62