Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

[09:05:54 CDT(-0500)] <brandon> hello

[09:08:10 CDT(-0500)] <brandon> why don't the edit links for my portlets show up in the default uportal

[09:59:25 CDT(-0500)] <EricDalquist> good morning

[12:00:39 CDT(-0500)] <brandon> hello

[12:00:49 CDT(-0500)] <EricDalquist> hello

[12:00:52 CDT(-0500)] <brandon> i'm having a problem deploying the weather portlet

[12:01:07 CDT(-0500)] <EricDalquist> ok

[12:01:27 CDT(-0500)] <brandon> i removed the default one and setup the recent one from the trunk: https://source.jasig.org/portlets/WeatherPortlet

[12:02:04 CDT(-0500)] <brandon> then i want to deploy it by adding it to uportal's portlet overlay

[12:02:27 CDT(-0500)] <brandon> it's in there but when i run a ant clean deploy-ear it looks like it is deploying the old one

[12:02:49 CDT(-0500)] <brandon> but if i do a regular ant deployPortletApp, it deploys the (correct) updated one

[12:03:14 CDT(-0500)] <EricDalquist> how exactly did you add it to the portlet overlay?

[12:04:39 CDT(-0500)] <brandon> followed these steps: https://wiki.jasig.org/display/UPM32/Deploying+Portlets+to+uPortal

[12:05:11 CDT(-0500)] <brandon> created a WeatherPortlet folder and put the files from the svn trunk into it

[12:05:20 CDT(-0500)] <brandon> didn't create a pom.xml because it came with one

[12:05:54 CDT(-0500)] <EricDalquist> so an overlay is meant for deploying a portlet that exists as a maven artifact somewhere already

[12:06:02 CDT(-0500)] <EricDalquist> since uPortal already comes with a bookmarks portlet overlay

[12:06:16 CDT(-0500)] <EricDalquist> to use the trunk version you need to check out the weather portlet trunk into its own projecty

[12:06:36 CDT(-0500)] <EricDalquist> run "mvn clean install" to install the portlet artifact into your local maven repo

[12:06:47 CDT(-0500)] <EricDalquist> then update the version number for the bookmarks portlet in the root uPortal pom.xml

[12:06:54 CDT(-0500)] <EricDalquist> NOTE that this will only be effective on one machine

[12:07:13 CDT(-0500)] <brandon> run it from the root of the uportal src folder?

[12:07:45 CDT(-0500)] <EricDalquist> run "mvn clean install" from the root of the WeatherPortlet's code that you checked out into its own project (completely unrelated to uPortal)

[12:07:54 CDT(-0500)] <brandon> ok

[12:07:58 CDT(-0500)] <EricDalquist> if you want to use the trunk version of the weather portlet on other machines you'll either need to do the same svn checkout/mvn clean install

[12:08:05 CDT(-0500)] <EricDalquist> or setup a maven repository such as Nexus

[12:08:15 CDT(-0500)] <EricDalquist> to use for hosting locally built maven artifacts

[12:08:36 CDT(-0500)] <EricDalquist> and then configure your uPortal build to look at that maven repository when resolving artifacts

[12:12:33 CDT(-0500)] <brandon> hmm

[12:12:53 CDT(-0500)] <brandon> so what if i wanted to go back and use 1.0.7 of the weather portlet?

[12:13:06 CDT(-0500)] <EricDalquist> the other solution would be to jump on the portlet-dev list and bug folks there for a new release of the weather portlet

[12:13:14 CDT(-0500)] <EricDalquist> you're using uPortal 3.2.4 right?

[12:13:18 CDT(-0500)] <brandon> yeah

[12:13:31 CDT(-0500)] <brandon> the one i checked out is 1.0.9

[12:13:49 CDT(-0500)] <EricDalquist> so in the uPortal pom: https://source.jasig.org/uPortal/tags/rel-3-2-4/pom.xml

[12:13:52 CDT(-0500)] <brandon> i rather not have to worry about local artifacts

[12:14:00 CDT(-0500)] <EricDalquist> there are a bunch of properties under <!-- WAR Dependency Version Properties -->

[12:14:11 CDT(-0500)] <brandon> change it to 1.0.7?

[12:14:15 CDT(-0500)] <EricDalquist> you can simply change the version number of <WeatherPortlet.version>1.0.6</WeatherPortlet.version> to 1.0.7

[12:14:28 CDT(-0500)] <EricDalquist> yup

[12:14:32 CDT(-0500)] <EricDalquist> that property gets used here: https://source.jasig.org/uPortal/tags/rel-3-2-4/uportal-portlets-overlay/WeatherPortlet/pom.xml

[12:14:43 CDT(-0500)] <brandon> do i need to delete the WeatherPortlet folder I created under uportal-portlets-overlay ?

[12:14:45 CDT(-0500)] <EricDalquist> to determine the WeatherPortlet artifact to include

[12:14:58 CDT(-0500)] <EricDalquist> there should have been one that came with the 3.2.4 release

[12:15:02 CDT(-0500)] <EricDalquist> so just revert it to that

[12:15:26 CDT(-0500)] <brandon> ok, i mainly wanted to change the data source

[12:15:45 CDT(-0500)] <brandon> so if i revert, will i be able to enable Yahoo in the context file?

[12:16:12 CDT(-0500)] <EricDalquist> yes, I believe so, you'll need to have just that one context file in the correct location under /uportal-portlets-overlay/WeatherPortlet/

  • No labels