You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Olivier Lamy <ol...@accor.com> on 2005/11/30 14:27:31 UTC

RE : shared web components

;-))
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