Repository: maven
Updated Branches:
  refs/heads/MNG-5567 [created] fd5d2d68f


[MNG-5567] Zip files are not included in classpaths at all

By definition of the classpath [1], JAR and Zip files are valid
compressed files. Zips are likely to contain resources shared
around. This totally relieves of unpacking stuff and readding
to the classpath and support what the JVM provided by defeault.
Sharing resources will just work.

[1] 
http://docs.oracle.com/javase/8/docs/technotes/tools/windows/classpath.html#A1100592


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/fd5d2d68
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/fd5d2d68
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/fd5d2d68

Branch: refs/heads/MNG-5567
Commit: fd5d2d68fffed8633cceecd3ff079ee0ea449e07
Parents: f4ede96
Author: Michael Osipov <micha...@apache.org>
Authored: Mon May 16 21:18:04 2016 +0200
Committer: Michael Osipov <micha...@apache.org>
Committed: Thu May 11 18:48:45 2017 +0200

----------------------------------------------------------------------
 .../resources/META-INF/plexus/artifact-handlers.xml    | 13 +++++++++++++
 maven-core/src/site/apt/artifact-handlers.apt          |  2 ++
 2 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/fd5d2d68/maven-core/src/main/resources/META-INF/plexus/artifact-handlers.xml
----------------------------------------------------------------------
diff --git 
a/maven-core/src/main/resources/META-INF/plexus/artifact-handlers.xml 
b/maven-core/src/main/resources/META-INF/plexus/artifact-handlers.xml
index 2f26ce2..92ddaec 100644
--- a/maven-core/src/main/resources/META-INF/plexus/artifact-handlers.xml
+++ b/maven-core/src/main/resources/META-INF/plexus/artifact-handlers.xml
@@ -190,5 +190,18 @@ Artifact handlers are required by the dependency 
resolution mechanism.
       </configuration>
     </component>
 
+    <!--
+     | ZIP
+     |-->
+    <component>
+      <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+      <role-hint>zip</role-hint>
+      
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
+      <configuration>
+        <type>zip</type>
+        <addedToClasspath>true</addedToClasspath>
+      </configuration>
+    </component>
+
   </components>
 </component-set>

http://git-wip-us.apache.org/repos/asf/maven/blob/fd5d2d68/maven-core/src/site/apt/artifact-handlers.apt
----------------------------------------------------------------------
diff --git a/maven-core/src/site/apt/artifact-handlers.apt 
b/maven-core/src/site/apt/artifact-handlers.apt
index 1a4b344..79572ad 100644
--- a/maven-core/src/site/apt/artifact-handlers.apt
+++ b/maven-core/src/site/apt/artifact-handlers.apt
@@ -53,3 +53,5 @@ Default Artifact Handlers Reference
 
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
 | <<<test-jar>>>     | <<<jar>>>  | <<<jar>>>  | <<<tests>>>   | java      | 
<<<true>>>          |                       |
 
*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
+| <<<zip>>>          | <= type>   | <= type>   |               | none      | 
<<<true>>>          |                       |
+*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+
\ No newline at end of file

Reply via email to