You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Nikko Gaerlan <ni...@gmail.com> on 2006/09/26 12:24:07 UTC
Jetspeed 2.1-dev Maven2 Custom Portal Generation
hi lists..
does Jetspeed 2.1-dev Maven2 Custom Portal Generation work?
after executing this line..
*mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2
-DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1-dev
-DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0*
it seems fine and no problems..
when I deploy it using mvn -P tomcat..
error..
i need more detailed instructions..
does the two additional archetypes optional or required?
i'm completely lost here..
sorry for being such a noob..
or you may suggest me to use maven1 build instead?..
thanks in advance..
Re: Jetspeed 2.1-dev Maven2 Custom Portal Generation
Posted by Nikko Gaerlan <ni...@gmail.com>.
hi
i have tried to build jetspeed2 from source using maven 2..
here is my build.prop
================build.properties==================
#Required Portal Configuration Properties
org.apache.jetspeed.portal.home = c:/myportal ***
even if i changed this to C:\jetspeed2
org.apache.jetspeed.portal.groupId = myprojects
org.apache.jetspeed.portal.artifactId = myportal
org.apache.jetspeed.portal.name = My Test Portal
org.apache.jetspeed.portal.currentVersion = 1.0
#Required Application Server Properties
org.apache.jetspeed.server.home = C:/Program
Files/Apache Software Foundation/Tomcat 5.5
org.apache.jetspeed.server.shared = ${
org.apache.jetspeed.server.home}/shared/lib/
org.apache.jetspeed.deploy.war.dir = ${
org.apache.jetspeed.server.home}/webapps/
org.apache.jetspeed.services.autodeployment.user = admin
org.apache.jetspeed.services.autodeployment.password =
org.apache.jetspeed.catalina.version.major = 5.5
#Optional Database Server Properties
org.apache.jetspeed.production.database.default.name = mysql
org.apache.jetspeed.production.database.url =
jdbc:mysql://localhost:3306/portal
org.apache.jetspeed.production.database.user = root
org.apache.jetspeed.production.database.password =
org.apache.jetspeed.production.database.driver =
com.mysql.jdbc.Driver
org.apache.jetspeed.production.jdbc.drivers.path =
C:/java_tools/mysql-connector-java-3.1.12/Smysql-
connector-java-3.1.12-bin.jar
# required Jetspeed 2 portal configuration property for building from the
source
org.apache.jetspeed.project.home = C:\jetspeed2
#repository properties
maven.repo.remote =
http://www.bluesunrise.com/maven/,http://www.ibiblio.org/maven/,http://dist.codehaus.org/,http://people.apache.org/repository
===================end=========================
maven initMavenPlugin
BUILD SUCCESS...
maven allClean allBuild
BUILD FAILED
File...... C:\jetspeed2\maven.xml
Element... maven:reactor
Line...... 164
Column.... 108
Unable to obtain goal [java:compile] -- C:\Documents and
Settings\Gaerlan\.maven
\cache\maven-java-plugin-1.5\plugin.jelly:63:48: <ant:javac> Compile failed;
see
the compiler error output for details.
Total time: 15 minutes 3 seconds
Finished at: Wed Sep 27 09:35:34 CST 2006
what could be wrong?
thanks in advance...
Re: Jetspeed 2.1-dev Maven2 Custom Portal Generation
Posted by Nikko Gaerlan <ni...@gmail.com>.
thanks Philip..
i only changed line 116..
mvn -P tomcat
BUILD SUCCESS,...
portal is deploye(both)
but is it correct if the old/uncustomized jetspeed is also deployed in
tomcat?
when i start my tomcat 2 jetspeed initializations which i think causes the
error...
what to do next?
is Two additional Maven2 archetypes are optional?
thanks..
--nikko..
On 9/27/06, Philip Mark Donaghy <ph...@gmail.com> wrote:
>
> Hi Nikko,
>
> Thanks for giving me the opportunity to try this. I'm getting this error,
>
> I built j2 using m2 using the command 'mvn -P tomcat'
>
> I used the same command as you to build the custom portal,
>
> mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2
> -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1-dev
> -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>
> Then I tried to build it using 'mvn -o'
>
> It is failing in appservers/tomcat-build.xml on the ant task deploy
> and the error is,
>
> /tmp/etc/conf/tomcat not found
>
> I changed line 116 to,
>
> <fileset dir="${basedir}/myportal/etc/conf/tomcat">
>
> I'm not sure why basedir not set to app-servers.
>
> Check out this guide,
> http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport
>
> You don't need a properties file. You need to copy the
> settings.xml.sample from the j2 source to ~/.m2 (your home directory
> contains a .m2 directory).
>
> Then modify it to reflect your tomcat installation.
>
> After the above modification I was able to build the custom portal
> using the command 'mvn -o' This deployed it to tomcat.
>
> Philip
>
> On 9/26/06, Nikko Gaerlan <ni...@gmail.com> wrote:
> > hi lists..
> >
> > does Jetspeed 2.1-dev Maven2 Custom Portal Generation work?
> >
> >
> > after executing this line..
> >
> > *mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2
> > -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1-dev
> > -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0*
> > it seems fine and no problems..
> >
> > when I deploy it using mvn -P tomcat..
> >
> > error..
> >
> > i need more detailed instructions..
> >
> > does the two additional archetypes optional or required?
> >
> > i'm completely lost here..
> >
> > sorry for being such a noob..
> >
> > or you may suggest me to use maven1 build instead?..
> >
> > thanks in advance..
> >
> >
>
>
> --
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
Re: Jetspeed 2.1-dev Maven2 Custom Portal Generation
Posted by Philip Mark Donaghy <ph...@gmail.com>.
Hi Nikko,
Thanks for giving me the opportunity to try this. I'm getting this error,
I built j2 using m2 using the command 'mvn -P tomcat'
I used the same command as you to build the custom portal,
mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2
-DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1-dev
-DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
Then I tried to build it using 'mvn -o'
It is failing in appservers/tomcat-build.xml on the ant task deploy
and the error is,
/tmp/etc/conf/tomcat not found
I changed line 116 to,
<fileset dir="${basedir}/myportal/etc/conf/tomcat">
I'm not sure why basedir not set to app-servers.
Check out this guide,
http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport
You don't need a properties file. You need to copy the
settings.xml.sample from the j2 source to ~/.m2 (your home directory
contains a .m2 directory).
Then modify it to reflect your tomcat installation.
After the above modification I was able to build the custom portal
using the command 'mvn -o' This deployed it to tomcat.
Philip
On 9/26/06, Nikko Gaerlan <ni...@gmail.com> wrote:
> hi lists..
>
> does Jetspeed 2.1-dev Maven2 Custom Portal Generation work?
>
>
> after executing this line..
>
> *mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2
> -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1-dev
> -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0*
> it seems fine and no problems..
>
> when I deploy it using mvn -P tomcat..
>
> error..
>
> i need more detailed instructions..
>
> does the two additional archetypes optional or required?
>
> i'm completely lost here..
>
> sorry for being such a noob..
>
> or you may suggest me to use maven1 build instead?..
>
> thanks in advance..
>
>
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org