The following comment has been added to this issue:
Author: Rafal Krzewski
Created: Tue, 23 Sep 2003 7:35 AM
Body:
<type> does more than just specyfing the artifact file extension.
It determines what kind of processing the artifact should recieve.
For example jar and ejb artifacts are added to the compilation classpath, and war and
ear artifacts are not.
Doing what you ask for would either require adding all artifacts to
the classpath (which does not make sense, generally), or adding zip
type artifacts to the classpath, which also does not make sense for
a range of zip files (source distributions, javadocs etc).
There's another approach to solving your problem besides renaming the
files. Use <type>jar</type> to request correct handling, but override
the name of the file maven is looking for. I believe that you can do
it using <jar>...</jar> element. The downside is that you need to give
a complete name including the version into <jar/>. I don't use this
feature, and I'm not sure of the details.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-835
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-835
Summary: zip files don't go to maven.dependency.classpath
Type: Improvement
Status: Unassigned
Priority: Major
Time Spent: Unknown
Remaining: Unknown
Project: maven
Versions:
1.0-beta-10
Assignee:
Reporter: Alexey Krasnoriadtsev
Created: Fri, 19 Sep 2003 6:15 PM
Updated: Fri, 19 Sep 2003 6:15 PM
Description:
[EMAIL PROTECTED]:test]$ cat project.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<id>test</id>
<dependencies>
<dependency>
<id>ant</id>
<version>1.5.3-1</version>
</dependency>
<dependency>
<groupId>oracle</groupId>
<artifactId>classes12</artifactId>
<type>zip</type>
<version>9.2.0.3-1.2</version>
</dependency>
</dependencies>
</project>
[EMAIL PROTECTED]:test]$ !maven
maven -X
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-beta-10
[DEBUG] Adding reference: maven.dependency.classpath ->
/export/tools/maven-1.0-beta-10/repository/ant/jars/ant-1.5.3-1.jar
[DEBUG] Adding reference: maven-classpath ->
BUILD SUCCESSFUL
Total time: 7 seconds
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]