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 Drazen Kozic <dr...@asw.eu> on 2014/12/02 09:18:18 UTC

j2-admin customization by using maven

Hi,

is there a way to customize j2-admin application by using Maven? What I 
want to do is following:
- add additional translation for ForgottenPasswordPortlet, LoginPortlet, 
ChgPwdPortlet
- add additional country flag images

I have already done this using custom Ant scripts. What I want now is to 
customize j2-admin using Maven. Is that possible?
We are successfully using maven and jetspeed maven plugins to build 
portal and portlat applications. Now we want to customize j2-admin in 
the same way.

Thanks

-- 
*Draz(en Kozic'*
Razvoj softverskih proizvoda
Rukovodilac tima
--------------------------------------

*ASW Inz(enjering d.o.o.*
Takovska 45a
11000 Beograd, Srbija
Tel: +381 11 2071 400
Fax: +381 11 2071 409
E-mail: drazen.kozic@asw.eu
www.asw.eu <http://www.asw.eu/>
---------------------------------------

Re: j2-admin customization by using maven

Posted by David S Taylor <da...@bluesunrise.com>.
> is there a way to customize j2-admin application by using Maven? What I
want to do is following:

There is not a formal way to extend the j2-admin war. Probably the best way
to extend it is to use the maven war plugin and overlay your changes on top
of the j2-admin war.  See pom.xml below. (I just generated a war type
project with mvn archetype:generate to auto-generate the correct overlay
directory structure)

> - add additional translation for ForgottenPasswordPortlet, LoginPortlet,
ChgPwdPortlet
> - add additional country flag images

If you want to send the translations and images, I will check them into the
code base and they will get included into next release

<*project **xmlns=**"http://maven.apache.org/POM/4.0.0
<http://maven.apache.org/POM/4.0.0>"
**xmlns:xsi=**"http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance>"
*  *xsi:schemaLocation=**"http://maven.apache.org/POM/4.0.0
<http://maven.apache.org/POM/4.0.0>
http://maven.apache.org/maven-v4_0_0.xsd
<http://maven.apache.org/maven-v4_0_0.xsd>"*>
<*modelVersion*>4.0.0</*modelVersion*>
<*groupId*>com.bluesunrise</*groupId*>
<*artifactId*>overlay-j2-admin</*artifactId*>
<*packaging*>war</*packaging*>  <*version*>1.0</*version*>
<*name*>overlay-j2-admin Maven Webapp</*name*>
<*url*>http://maven.apache.org</*url*>  <*dependencies*>
<*dependency*>
<*groupId*>org.apache.portals.jetspeed-2</*groupId*>
<*artifactId*>j2-admin</*artifactId*>
<*version*>2.2.2</*version*>          <*type*>war</*type*>
</*dependency*>    <*dependency*>      <*groupId*>junit</*groupId*>
  <*artifactId*>junit</*artifactId*>      <*version*>4.8.1</*version*>
     <*scope*>test</*scope*>    </*dependency*>  </*dependencies*>
<*build*>    <*finalName*>overlay-j2-admin</*finalName*>
<*plugins*>        <*plugin*>
<*groupId*>org.apache.maven.plugins</*groupId*>
<*artifactId*>maven-war-plugin</*artifactId*>
<*version*>2.4</*version*>            <*configuration*>
<*workDirectory*>${project.build.directory}/overlay</*workDirectory*>
              <*overlays*>                    <*overlay*>
          <*groupId*>org.apache.portals.jetspeed-2</*groupId*>
               <*artifactId*>j2-admin</*artifactId*>
 </*overlay*>                </*overlays*>
</*configuration*>        </*plugin*>    </*plugins*>
</*build*></*project*>


On Tue, Dec 2, 2014 at 12:18 AM, Drazen Kozic <dr...@asw.eu> wrote:

>  Hi,
>
> is there a way to customize j2-admin application by using Maven? What I
> want to do is following:
> - add additional translation for ForgottenPasswordPortlet, LoginPortlet,
> ChgPwdPortlet
> - add additional country flag images
>
> I have already done this using custom Ant scripts. What I want now is to
> customize j2-admin using Maven. Is that possible?
> We are successfully using maven and jetspeed maven plugins to build portal
> and portlat applications. Now we want to customize j2-admin in the same way.
>
> Thanks
>
> --
> *Dražen Kozić*
> Razvoj softverskih proizvoda
> Rukovodilac tima
> --------------------------------------
>
> *ASW Inženjering d.o.o.*
> Takovska 45a
> 11000 Beograd, Srbija
> Tel: +381 11 2071 400
> Fax: +381 11 2071 409
> E-mail: drazen.kozic@asw.eu
> www.asw.eu
> ---------------------------------------
>