maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-5567) Zip files are not included in classpaths at all
Date Mon, 16 May 2016 14:28:12 GMT

    [ https://issues.apache.org/jira/browse/MNG-5567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15284643#comment-15284643
] 

Michael Osipov commented on MNG-5567:
-------------------------------------

Yes, I am and I already have a working version on my machine.

You can apply this patch against master and try yourself:

{code:patch}
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>
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
{code}

> Zip files are not included in classpaths at all
> -----------------------------------------------
>
>                 Key: MNG-5567
>                 URL: https://issues.apache.org/jira/browse/MNG-5567
>             Project: Maven
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.3.9
>            Reporter: Pablo La Greca
>            Assignee: Michael Osipov
>            Priority: Critical
>             Fix For: 3.4.0
>
>
> when i added a dependency that was zip file 
> eg
> {code:xml} 		<dependency>
> 			<groupId>hsqldb</groupId>
> 			<artifactId>hsqldb</artifactId>
> 			<version>1.7.3.0</version>
> 			<scope>provided</scope>
> 			<type>zip</type>
> 		</dependency>
> {code}
>  this file was not included in the test classpath and so the test would not pass



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message