apache / apache/maven

[MNG-1683] type zip for packaging ?

Open
#3,390 31 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Olivier Lamy](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=olamy)** opened **[MNG-1683](https://issues.apache.org/jira/browse/MNG-1683?redirect=false)** and commented

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 \zip\ 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

---

**Attachments:**
- [archive+file-plugins.tar.bz2](https://issues.apache.org/jira/secure/attachment/12712247/archive%2Bfile-plugins.tar.bz2) (_9.67 kB_)
- [maven-war-plugin.tar.gz](https://issues.apache.org/jira/secure/attachment/12711652/maven-war-plugin.tar.gz) (_55.18 kB_)
- [maven-zip-plugin.tar.gz](https://issues.apache.org/jira/secure/attachment/12711797/maven-zip-plugin.tar.gz) (_5.08 kB_)
- [MNG-1683.tar.gz](https://issues.apache.org/jira/secure/attachment/12711932/MNG-1683.tar.gz) (_24.49 kB_)
- [patch1](https://issues.apache.org/jira/secure/attachment/12712099/patch1) (_27.89 kB_)
- [temp-test_version.zip](https://issues.apache.org/jira/secure/attachment/12712419/temp-test_version.zip) (_538 bytes_)

**Issue Links:**
- [MNG-5410](https://issues.apache.org/jira/browse/MNG-5410) \zip\
(_**"is duplicated by"**_)
- [MNG-5567](https://issues.apache.org/jira/browse/MNG-5567) Zip files are not included in classpaths at all

- [MSITE-453](https://issues.apache.org/jira/browse/MSITE-453) Add new lifecycle bindings for "maven-skin" packaging

- [MWAR-12](https://issues.apache.org/jira/browse/MWAR-12) Add resource filtering to war plugin

- [MNG-2243](https://issues.apache.org/jira/browse/MNG-2243) Creation of a maven-zip-plugin

- [MASSEMBLY-555](https://issues.apache.org/jira/browse/MASSEMBLY-555) Need a better solution than packaging == pom for distribution modules whose output is an assembly

- [MWAR-16](https://issues.apache.org/jira/browse/MWAR-16) war:clean goal
(_**"supercedes"**_)
- [MWAR-17](https://issues.apache.org/jira/browse/MWAR-17) [maven-war-plugin] adding war:clean to delete webappDirectory
(_**"supercedes"**_)
- [MWAR-10](https://issues.apache.org/jira/browse/MWAR-10) war-plugin feature
(_**"supercedes"**_)
- [MWAR-406](https://issues.apache.org/jira/browse/MWAR-406) custom artifact types don't get copied to WEB-INF/lib
(_**"is depended upon by"**_)

41 votes, 43 watchers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.