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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]