Details
-
Type:
Improvement
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Issues to be reviewed for 3.x
-
Component/s: None
-
Labels:None
-
Environment:not significant
-
Complexity:Intermediate
-
Patch Submitted:Yes
-
Number of attachments :
Description
Hi,
I don't know if the artifact type zip exists (I think not after few test).
But I want to separate the html content and the webapp content (classes, configuration files and so on).
The use case is to separate this different works (html designer and java developpement) and production installation (one is to an http server and the other is on an app server) in two artifacts with separate versionning.
But the <packaging>zip</packaging> is not recognized.
Then I would like to use it as an artifact with maven's features (snapshot, pom, version, goals : install, deploy release and all others).
Add it to the webapp dependencies (needed only for developpment or unit tests).
With this type of dependency the zip content could be unpacked to a directory in the exploded webapp. (certainly need hack on the maven-war-plugin).
I have certainly the workaround to declare this as jar and using the assembly plugin to generate a zip.
But I can't use install release deploy or something else to manage the generated zip which is not an artifact.
Thanks for help or workaround.
- Olivier
Issue Links
- is duplicated by
-
MNG-5410
<packaging>zip</packaging>
-
- is related to
-
MNG-2243
Creation of a maven-zip-plugin
-
-
MASSEMBLY-555
Need a better solution than packaging == pom for distribution modules whose output is an assembly
-
Hi,
{basedir}/src/main/jsp</directory>If you are interested, I can provide a maven-zip-plugin.
For the moment, I provided his own lifecycle defined in his own META-INF/plexus/components.xml.
Then I will provided a patch for maven-war-plugin (http://jira.codehaus.org/browse/MNG-1669).
To add in plugin configuration something as :
<resource>
<directory>$
<targetPath>${basedir}
/webappdir/OTAStats</targetPath>
<filtering>true</filtering>
<excludes>
<exclude>subhtml/**</exclude>
</excludes>
<includes>
<include>**</include>
</includes>
<dependecies>
<dependency>
<groupId>groupId</groupId>
<artifactId>artifact</artifactId>
<version>version</version>
<unpack>true</unpack>
</dependency>
</dependencies>
</resource>
With this all resources contains in the dependency will unpack or not in the targetPath.
Just let me know if it sounds good or not (a private feature or a community shared feature).
And if it include some trouble with the issue http://jira.codehaus.org/browse/MNG-1507
Thanks