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 Chris Long <ch...@gmail.com> on 2007/10/09 15:27:59 UTC
Jetspeed and Maven question - Modifying the Maven build
Hello,
I'm not sure if this is a question more appropriate for the Maven mailing
list or Jetspeed, but I'm posting here for now.
I'm fairly new to both Maven and Jetspeed, and I'm trying to get a stand
alone application to deploy with Jetspeed when I use mvn -e -P tomcat to
build. Currently the Jetspeed folder structure looks like this:
/{jetspeed_home}
|
--pom.xml
|
--/myapplication
|
--/portal
with the folder myapplication being on the same level as the pom.xml file
under the jetspeed_home director.
And after I compile, I want the folder structure to look like this:
/{tomcat_home}
|
--/webapps
|
--/jetspeed-portal
|
--/myapplication
So that myapplication is deployed separately in the tomcat\webapps folder,
but with only having to do a build within Jetspeed once. I'm hoping to do
this so that it will eliminate that extra step of downloading and installing
myapplication separately.
Does anyone know exactly how I would go about this?
Thanks,
Chris
Re: Jetspeed and Maven question - Modifying the Maven build
Posted by Chris Long <ch...@gmail.com>.
Hello,
Actually, I'm attempting to get Dojo to deploy with it all. I understand
the current version of Jetspeed has Dojo already integrated with it,
however, it's currently not a feasible option for us to upgrade to this
version of Jetspeed. But to make the installation process easier, I would
like to just have all of Dojo within the Jetspeed_home directory, and when I
deploy with mvn -e -P tomcat, for it to deploy in tomcat's webapps folder
and not within the Jetspeed folder.
Thanks,
Chris
On 10/9/07, Mohan K <mo...@bluenog.com> wrote:
>
>
> Chris,
> I am assuming you wish to build a portlet web-app using Maven2, from the
> build and deployment structure that you have laid out.
> We have created our own Jetspeed-portlet web app "archetypes", it is quite
> easy with Maven-2. Before you build the portlet web-app "archetype", I
> would
> recommend creating a working Jetspeed portlet web app and then "clone" it.
> The way to do it would be:
> 1) Create a maven2 WAR project, (use the maven-war-archetype).
> 2) If using pure JSR168 portlet, just add the dependency to portlet-api
> and
> the implementation jars (they are part of Jetspeed portal and are
> installed
> in shareable way, so add the dependency as runtime).
> 3) build the war project and drop it in <j2-portal>/WEB-INF/deploy (I skip
> this test by manually infusing the container servlet in portlet web-apps
> web.xml)
> 4) if everything works well, then clone the project.
>
> Cheers
> Mohan K R
>
>
> Chris Long-3 wrote:
> >
> > Hello,
> >
> > I'm not sure if this is a question more appropriate for the Maven
> mailing
> > list or Jetspeed, but I'm posting here for now.
> >
> > I'm fairly new to both Maven and Jetspeed, and I'm trying to get a stand
> > alone application to deploy with Jetspeed when I use mvn -e -P tomcat to
> > build. Currently the Jetspeed folder structure looks like this:
> >
> >
> > /{jetspeed_home}
> > |
> > --pom.xml
> > |
> > --/myapplication
> > |
> > --/portal
> >
> > with the folder myapplication being on the same level as the pom.xmlfile
> > under the jetspeed_home director.
> >
> > And after I compile, I want the folder structure to look like this:
> >
> >
> > /{tomcat_home}
> > |
> > --/webapps
> > |
> > --/jetspeed-portal
> > |
> > --/myapplication
> >
> >
> > So that myapplication is deployed separately in the tomcat\webapps
> folder,
> > but with only having to do a build within Jetspeed once. I'm hoping to
> do
> > this so that it will eliminate that extra step of downloading and
> > installing
> > myapplication separately.
> >
> > Does anyone know exactly how I would go about this?
> >
> > Thanks,
> >
> > Chris
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Jetspeed-and-Maven-question---Modifying-the-Maven-build-tf4594227.html#a13118292
> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
Re: Jetspeed and Maven question - Modifying the Maven build
Posted by Mohan K <mo...@bluenog.com>.
Chris,
I am assuming you wish to build a portlet web-app using Maven2, from the
build and deployment structure that you have laid out.
We have created our own Jetspeed-portlet web app "archetypes", it is quite
easy with Maven-2. Before you build the portlet web-app "archetype", I would
recommend creating a working Jetspeed portlet web app and then "clone" it.
The way to do it would be:
1) Create a maven2 WAR project, (use the maven-war-archetype).
2) If using pure JSR168 portlet, just add the dependency to portlet-api and
the implementation jars (they are part of Jetspeed portal and are installed
in shareable way, so add the dependency as runtime).
3) build the war project and drop it in <j2-portal>/WEB-INF/deploy (I skip
this test by manually infusing the container servlet in portlet web-apps
web.xml)
4) if everything works well, then clone the project.
Cheers
Mohan K R
Chris Long-3 wrote:
>
> Hello,
>
> I'm not sure if this is a question more appropriate for the Maven mailing
> list or Jetspeed, but I'm posting here for now.
>
> I'm fairly new to both Maven and Jetspeed, and I'm trying to get a stand
> alone application to deploy with Jetspeed when I use mvn -e -P tomcat to
> build. Currently the Jetspeed folder structure looks like this:
>
>
> /{jetspeed_home}
> |
> --pom.xml
> |
> --/myapplication
> |
> --/portal
>
> with the folder myapplication being on the same level as the pom.xml file
> under the jetspeed_home director.
>
> And after I compile, I want the folder structure to look like this:
>
>
> /{tomcat_home}
> |
> --/webapps
> |
> --/jetspeed-portal
> |
> --/myapplication
>
>
> So that myapplication is deployed separately in the tomcat\webapps folder,
> but with only having to do a build within Jetspeed once. I'm hoping to do
> this so that it will eliminate that extra step of downloading and
> installing
> myapplication separately.
>
> Does anyone know exactly how I would go about this?
>
> Thanks,
>
> Chris
>
>
--
View this message in context: http://www.nabble.com/Jetspeed-and-Maven-question---Modifying-the-Maven-build-tf4594227.html#a13118292
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org