You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2016/06/02 22:09:10 UTC

[25/50] maven git commit: [MNG-5567] Zip files are not included in classpaths at all

[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/c023e581
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/c023e581
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/c023e581

Branch: refs/heads/slf4j-gossip
Commit: c023e58104b71e27def0caa034d39ab0fa0373b6
Parents: ce580ea
Author: Michael Osipov <mi...@apache.org>
Authored: Mon May 16 21:18:04 2016 +0200
Committer: Michael Osipov <mi...@apache.org>
Committed: Mon May 16 21:18:04 2016 +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/c023e581/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/c023e581/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