maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micha...@apache.org
Subject maven git commit: [MNG-5567] Zip files are not included in classpaths at all
Date Mon, 16 May 2016 19:21:13 GMT
Repository: maven
Updated Branches:
  refs/heads/master ce580ea2f -> c023e5810


[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/master
Commit: c023e58104b71e27def0caa034d39ab0fa0373b6
Parents: ce580ea
Author: Michael Osipov <michaelo@apache.org>
Authored: Mon May 16 21:18:04 2016 +0200
Committer: Michael Osipov <michaelo@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


Mime
View raw message