You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nathan Coast <na...@codeczar.com> on 2005/11/30 10:55:47 UTC

shared web components

Hi,

Is there a plugin for M1.1 or M2 which handles artifacts that may be 
used by more than one webapp.

e.g. I may have a project that contains web artifacts: jsps, css, html, 
images, js, etc.  May also contain java classes, tlds etc.  I wish to 
use these components within other webapps.

When including within other webapps, the web artifacts would be copied 
to the target webapp directory and any classes could be included in a 
jar within the WEB-INF/lib directory.

Does such a plugin exist? or is there one in the pipeline?

The functionality is a more generalised version of the 
maven-struts-module-plugin developed to include pre-built struts-modules 
within other struts webapps.

http://www.codeczar.com/products/maven-struts-module-plugin/index.html

cheers
Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE : shared web components

Posted by Olivier Lamy <ol...@accor.com>.
;-))
Look at this http://jira.codehaus.org/browse/MNG-1683
And if you're interested just push a vote.
HTH,
- Olivier

-----Message d'origine-----
De : Christophe DENEUX [mailto:christophe.deneux@capgemini.com] 
Envoyé : mercredi 30 novembre 2005 14:21
À : Maven Users List
Objet : Re: shared web components



Hi Nathan,

I have the same project organization and I am thinking about this
problem.

My first thoughts are:
    - The project containing JSPs, CSS, HTML, images must be packaged as

a zip file:

		<project>
		  ...
		  <groupId>com.mysociety.globalproject</groupId>
		  <artifactId>website.layout.blue</artifactId>
		  <version>1.0</version>
		  <packaging>zip</packaging>
		  ...
		</project>


    - The webapp project contains the previous zip as dependence, and a 
plugin will unzip during the "generate-source" phase, with something
like:

		<project>
		  ...
		  <build>
		    <plugins>
		      <plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId>maven-unzipper-plugin</artifactId>
		        <configuration>
			  <dependencies>
		            <dependency>
	
<groupId>com.mysociety.globalproject</groupId>
	
<artifactId>website.layout.blue</artifactId>
			      <version>1.0</version>
			    </dependency>
			  <dependencies>
		        </configuration>
		        <executions>
		          <execution>
		            <goals>
		              <goal>generate</goal>
		            </goals>
		          </execution>
		        </executions>
		      </plugin>
		    </plugins>
		  </build>
		  ...
		</project>



I think that the "unzipper" plug-in does not exist and must be develop.

What do you think about this solution ?

Cheers,
Christophe DENEUX


 I think that nothing can help us

Nathan Coast wrote:

> Hi,
>
> Is there a plugin for M1.1 or M2 which handles artifacts that may be
> used by more than one webapp.
>
> e.g. I may have a project that contains web artifacts: jsps, css,
> html, images, js, etc.  May also contain java classes, tlds etc.  I 
> wish to use these components within other webapps.
>
> When including within other webapps, the web artifacts would be copied
> to the target webapp directory and any classes could be included in a 
> jar within the WEB-INF/lib directory.
>
> Does such a plugin exist? or is there one in the pipeline?
>
> The functionality is a more generalised version of the
> maven-struts-module-plugin developed to include pre-built 
> struts-modules within other struts webapps.
>
> http://www.codeczar.com/products/maven-struts-module-plugin/index.html
>
> cheers
> Nathan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org




This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,
you are not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies of this message.




This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
********************************************************************** 
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
********************************************************************** 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: shared web components

Posted by Christophe DENEUX <ch...@capgemini.com>.
Hi Nathan,

I have the same project organization and I am thinking about this problem.

My first thoughts are:
    - The project containing JSPs, CSS, HTML, images must be packaged as 
a zip file:

		<project>
		  ...
		  <groupId>com.mysociety.globalproject</groupId>
		  <artifactId>website.layout.blue</artifactId>
		  <version>1.0</version>
		  <packaging>zip</packaging>
		  ...
		</project>


    - The webapp project contains the previous zip as dependence, and a 
plugin will unzip during the "generate-source" phase, with something like:

		<project>
		  ...
		  <build>
		    <plugins>
		      <plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId>maven-unzipper-plugin</artifactId>
		        <configuration>
			  <dependencies>
		            <dependency>
			      <groupId>com.mysociety.globalproject</groupId>
			      <artifactId>website.layout.blue</artifactId>
			      <version>1.0</version>
			    </dependency>
			  <dependencies>
		        </configuration>
		        <executions>
		          <execution>
		            <goals>
		              <goal>generate</goal>
		            </goals>
		          </execution>
		        </executions>
		      </plugin>
		    </plugins>
		  </build>
		  ...
		</project>



I think that the "unzipper" plug-in does not exist and must be develop.

What do you think about this solution ?

Cheers,
Christophe DENEUX


 I think that nothing can help us

Nathan Coast wrote:

> Hi,
>
> Is there a plugin for M1.1 or M2 which handles artifacts that may be 
> used by more than one webapp.
>
> e.g. I may have a project that contains web artifacts: jsps, css, 
> html, images, js, etc.  May also contain java classes, tlds etc.  I 
> wish to use these components within other webapps.
>
> When including within other webapps, the web artifacts would be copied 
> to the target webapp directory and any classes could be included in a 
> jar within the WEB-INF/lib directory.
>
> Does such a plugin exist? or is there one in the pipeline?
>
> The functionality is a more generalised version of the 
> maven-struts-module-plugin developed to include pre-built 
> struts-modules within other struts webapps.
>
> http://www.codeczar.com/products/maven-struts-module-plugin/index.html
>
> cheers
> Nathan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org




This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.


Re: shared web components

Posted by "ir. ing. Jan Dockx" <ja...@mac.com>.
Wow! I didn't know such a thing could be possible with webapps (leaving 
maven out of the equation for a while). How would this work?


On 30 Nov 2005, at 10:55, Nathan Coast wrote:

> Hi,
>
> Is there a plugin for M1.1 or M2 which handles artifacts that may be 
> used by more than one webapp.
>
> e.g. I may have a project that contains web artifacts: jsps, css, 
> html, images, js, etc.  May also contain java classes, tlds etc.  I 
> wish to use these components within other webapps.
>
> When including within other webapps, the web artifacts would be copied 
> to the target webapp directory and any classes could be included in a 
> jar within the WEB-INF/lib directory.
>
> Does such a plugin exist? or is there one in the pipeline?
>
> The functionality is a more generalised version of the 
> maven-struts-module-plugin developed to include pre-built 
> struts-modules within other struts webapps.
>
> http://www.codeczar.com/products/maven-struts-module-plugin/index.html
>
> cheers
> Nathan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Met vriendelijke groeten,

Jan Dockx

PeopleWare NV - Head Office
Cdt.Weynsstraat 85
B-2660 Hoboken
Tel: +32 3 448.33.38
Fax: +32 3 448.32.66

PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25

http://www.peopleware.be/
http://www.mobileware.be/

Re: shared web components

Posted by Doug Douglass <dd...@denverdata.com>.
Nathan,

For m1.x, we wrote a plugin to provide this functionality for our PHP 
webapps, though it needn't be exclusive to that purpose. It works very 
much the same as the maven-war-plugin, in that you specify properties on 
each dependency to be bundled into the resulting build directory structure.

One of the properties is to "expand" the dependency, which is assumed to 
be a compressed tar file (poor mans version of a jar), into the build 
directory.

We also push a lot of "other" artifacts in and out of our corporate 
repository. Things like individual and bundled (tar'd) javascript, css, 
images, PHP components/frameworks and the like.

We may pull the bundling capabilities into a more generic webapp tools 
plugin.

If you're interested in the plugin send an email to projects AT 
denverdata DOT com.

Cheers

Nathan Coast wrote:
> Hi,
> 
> Is there a plugin for M1.1 or M2 which handles artifacts that may be 
> used by more than one webapp.
> 
> e.g. I may have a project that contains web artifacts: jsps, css, html, 
> images, js, etc.  May also contain java classes, tlds etc.  I wish to 
> use these components within other webapps.
> 
> When including within other webapps, the web artifacts would be copied 
> to the target webapp directory and any classes could be included in a 
> jar within the WEB-INF/lib directory.
> 
> Does such a plugin exist? or is there one in the pipeline?
> 
> The functionality is a more generalised version of the 
> maven-struts-module-plugin developed to include pre-built struts-modules 
> within other struts webapps.
> 
> http://www.codeczar.com/products/maven-struts-module-plugin/index.html
> 
> cheers
> Nathan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: shared web components

Posted by Jeff Jensen <je...@upstairstechnology.com>.
Make a "project" per component - jars, wars, ears.  Then use the standard
dependency mechanism on the jars and wars needed by the ear projects.
 

-----Original Message-----
From: Nathan Coast [mailto:nathan@codeczar.com] 
Sent: Wednesday, November 30, 2005 3:56 AM
To: Maven Users List
Subject: shared web components

Hi,

Is there a plugin for M1.1 or M2 which handles artifacts that may be used by
more than one webapp.

e.g. I may have a project that contains web artifacts: jsps, css, html,
images, js, etc.  May also contain java classes, tlds etc.  I wish to use
these components within other webapps.

When including within other webapps, the web artifacts would be copied to
the target webapp directory and any classes could be included in a jar
within the WEB-INF/lib directory.

Does such a plugin exist? or is there one in the pipeline?

The functionality is a more generalised version of the
maven-struts-module-plugin developed to include pre-built struts-modules
within other struts webapps.

http://www.codeczar.com/products/maven-struts-module-plugin/index.html

cheers
Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: shared web components

Posted by dh...@famhq.com.
Actually the latest development version of the maven-war-plugin should
support this. MNG-1507 added the ability to merge war dependencies into the
target war artifact.

http://jira.codehaus.org/browse/MNG-1507

Files are never overwritten and includes/excludes are supported with the
following syntax:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-war-plugin</artifactId>
  <version>2.0-beta-3-SNAPSHOT</version>
  <configuration>
    <!-- This is the default for dependentWarIncludes
    <dependentWarIncludes>**</dependentWarIncludes>
    -->
    <dependentWarExcludes>**/*.properties</dependentWarExcludes>
  </configuration>
</plugin>

Just create a dependency of <type>war</type>.

-David

-----Original Message-----
From: Nathan Coast [mailto:nathan@codeczar.com] 
Sent: Wednesday, November 30, 2005 3:56 AM
To: Maven Users List
Subject: shared web components

Hi,

Is there a plugin for M1.1 or M2 which handles artifacts that may be 
used by more than one webapp.

e.g. I may have a project that contains web artifacts: jsps, css, html, 
images, js, etc.  May also contain java classes, tlds etc.  I wish to 
use these components within other webapps.

When including within other webapps, the web artifacts would be copied 
to the target webapp directory and any classes could be included in a 
jar within the WEB-INF/lib directory.

Does such a plugin exist? or is there one in the pipeline?

The functionality is a more generalised version of the 
maven-struts-module-plugin developed to include pre-built struts-modules 
within other struts webapps.

http://www.codeczar.com/products/maven-struts-module-plugin/index.html

cheers
Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org