You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anagnostopoulos Kostis (JIRA)" <ji...@codehaus.org> on 2007/03/26 17:33:34 UTC

[jira] Created: (MJAR-69) When 'index' and 'addClasspath' are both true, plugin fails.

When 'index' and 'addClasspath' are both true, plugin fails.
------------------------------------------------------------

                 Key: MJAR-69
                 URL: http://jira.codehaus.org/browse/MJAR-69
             Project: Maven 2.x Jar Plugin
          Issue Type: Bug
    Affects Versions: 2.1
            Reporter: Anagnostopoulos Kostis


When both the 'index' and 'addClasspath' are true, the plugin fails to create jar with the following msg:

Embedded error: Problem creating jar: **/target/classes (Is a directory)



A typical configuration to produce the error would be:
{code:xml}
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <configuration>
            <archive>
              <index>true</index>
              <manifest>
                <addClasspath>true</addClasspath>
              </manifest>
          </configuration>
        </plugin>
{code}

The issue below (about including dependency files in index) claims that it introduced this bug:
http://jira.codehaus.org/browse/MJAR-40

I'm posting this issue so that to ensure that version 2.2-SNAPSHOT does not suffer from the same problem.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAR-69) When 'index' and 'addClasspath' are both true, plugin fails.

Posted by "Andrea Aime (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAR-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126862 ] 

Andrea Aime commented on MJAR-69:
---------------------------------

I'm trying to add index support to GeoTools build, using maven 2, and I'm facing exactly the same problem.

> When 'index' and 'addClasspath' are both true, plugin fails.
> ------------------------------------------------------------
>
>                 Key: MJAR-69
>                 URL: http://jira.codehaus.org/browse/MJAR-69
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Anagnostopoulos Kostis
>            Assignee: Olivier Lamy
>
> When both the 'index' and 'addClasspath' are true, the plugin fails to create jar with the following msg:
> Embedded error: Problem creating jar: **/target/classes (Is a directory)
> A typical configuration to produce the error would be:
> {code:xml}
>         <plugin>
>           <artifactId>maven-jar-plugin</artifactId>
>           <configuration>
>             <archive>
>               <index>true</index>
>               <manifest>
>                 <addClasspath>true</addClasspath>
>               </manifest>
>           </configuration>
>         </plugin>
> {code}
> The issue below (about including dependency files in index) claims that it introduced this bug:
> http://jira.codehaus.org/browse/MJAR-40
> I'm posting this issue so that to ensure that version 2.2-SNAPSHOT does not suffer from the same problem.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MJAR-69) When 'index' and 'addClasspath' are both true, plugin fails.

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAR-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold closed MJAR-69.
----------------------------------

    Resolution: Fixed

Fixed in r1235030 
                
> When 'index' and 'addClasspath' are both true, plugin fails.
> ------------------------------------------------------------
>
>                 Key: MJAR-69
>                 URL: https://jira.codehaus.org/browse/MJAR-69
>             Project: Maven 2.x JAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Anagnostopoulos Kostis
>            Assignee: Kristian Rosenvold
>             Fix For: 2.4
>
>         Attachments: trace.log
>
>
> When both the 'index' and 'addClasspath' are true, the plugin fails to create jar with the following msg:
> Embedded error: Problem creating jar: **/target/classes (Is a directory)
> A typical configuration to produce the error would be:
> {code:xml}
>         <plugin>
>           <artifactId>maven-jar-plugin</artifactId>
>           <configuration>
>             <archive>
>               <index>true</index>
>               <manifest>
>                 <addClasspath>true</addClasspath>
>               </manifest>
>           </configuration>
>         </plugin>
> {code}
> The issue below (about including dependency files in index) claims that it introduced this bug:
> http://jira.codehaus.org/browse/MJAR-40
> I'm posting this issue so that to ensure that version 2.2-SNAPSHOT does not suffer from the same problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAR-69) When 'index' and 'addClasspath' are both true, plugin fails.

Posted by "Vitaliy Obmanyuk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAR-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104791 ] 

Vitaliy Obmanyuk commented on MJAR-69:
--------------------------------------

Any progress of that?
I have the same error with maven-rar-plugin on Linux (it works fine on Windows platform only).


> When 'index' and 'addClasspath' are both true, plugin fails.
> ------------------------------------------------------------
>
>                 Key: MJAR-69
>                 URL: http://jira.codehaus.org/browse/MJAR-69
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Anagnostopoulos Kostis
>
> When both the 'index' and 'addClasspath' are true, the plugin fails to create jar with the following msg:
> Embedded error: Problem creating jar: **/target/classes (Is a directory)
> A typical configuration to produce the error would be:
> {code:xml}
>         <plugin>
>           <artifactId>maven-jar-plugin</artifactId>
>           <configuration>
>             <archive>
>               <index>true</index>
>               <manifest>
>                 <addClasspath>true</addClasspath>
>               </manifest>
>           </configuration>
>         </plugin>
> {code}
> The issue below (about including dependency files in index) claims that it introduced this bug:
> http://jira.codehaus.org/browse/MJAR-40
> I'm posting this issue so that to ensure that version 2.2-SNAPSHOT does not suffer from the same problem.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MJAR-69) When 'index' and 'addClasspath' are both true, plugin fails.

Posted by "Andrea Aime (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAR-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Aime updated MJAR-69:
----------------------------

    Attachment: trace.log

Don't know if this is of any help, this is the full trace of the problem. The module has no dependencies, besides one on junit marked as "provided", but it's part of a large multimodule build where most of the other modules would enjoy having an index

> When 'index' and 'addClasspath' are both true, plugin fails.
> ------------------------------------------------------------
>
>                 Key: MJAR-69
>                 URL: http://jira.codehaus.org/browse/MJAR-69
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Anagnostopoulos Kostis
>            Assignee: Olivier Lamy
>         Attachments: trace.log
>
>
> When both the 'index' and 'addClasspath' are true, the plugin fails to create jar with the following msg:
> Embedded error: Problem creating jar: **/target/classes (Is a directory)
> A typical configuration to produce the error would be:
> {code:xml}
>         <plugin>
>           <artifactId>maven-jar-plugin</artifactId>
>           <configuration>
>             <archive>
>               <index>true</index>
>               <manifest>
>                 <addClasspath>true</addClasspath>
>               </manifest>
>           </configuration>
>         </plugin>
> {code}
> The issue below (about including dependency files in index) claims that it introduced this bug:
> http://jira.codehaus.org/browse/MJAR-40
> I'm posting this issue so that to ensure that version 2.2-SNAPSHOT does not suffer from the same problem.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAR-69) When 'index' and 'addClasspath' are both true, plugin fails.

Posted by "Rodolfo Rothganger (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAR-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106331 ] 

Rodolfo Rothganger commented on MJAR-69:
----------------------------------------

I have the same problem, but only when a dependency with "provided" scope is informed. 

Example:

	<dependencies>
		<dependency>
			<groupId>javax.resource</groupId>
			<artifactId>connector-api</artifactId>
			<version>1.5</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>



> When 'index' and 'addClasspath' are both true, plugin fails.
> ------------------------------------------------------------
>
>                 Key: MJAR-69
>                 URL: http://jira.codehaus.org/browse/MJAR-69
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Anagnostopoulos Kostis
>
> When both the 'index' and 'addClasspath' are true, the plugin fails to create jar with the following msg:
> Embedded error: Problem creating jar: **/target/classes (Is a directory)
> A typical configuration to produce the error would be:
> {code:xml}
>         <plugin>
>           <artifactId>maven-jar-plugin</artifactId>
>           <configuration>
>             <archive>
>               <index>true</index>
>               <manifest>
>                 <addClasspath>true</addClasspath>
>               </manifest>
>           </configuration>
>         </plugin>
> {code}
> The issue below (about including dependency files in index) claims that it introduced this bug:
> http://jira.codehaus.org/browse/MJAR-40
> I'm posting this issue so that to ensure that version 2.2-SNAPSHOT does not suffer from the same problem.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MJAR-69) When 'index' and 'addClasspath' are both true, plugin fails.

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAR-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold updated MJAR-69:
-----------------------------------

    Fix Version/s: 2.4
         Assignee: Kristian Rosenvold

This issue is fixed by updating plexus components to their latest versions.
                
> When 'index' and 'addClasspath' are both true, plugin fails.
> ------------------------------------------------------------
>
>                 Key: MJAR-69
>                 URL: https://jira.codehaus.org/browse/MJAR-69
>             Project: Maven 2.x JAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Anagnostopoulos Kostis
>            Assignee: Kristian Rosenvold
>             Fix For: 2.4
>
>         Attachments: trace.log
>
>
> When both the 'index' and 'addClasspath' are true, the plugin fails to create jar with the following msg:
> Embedded error: Problem creating jar: **/target/classes (Is a directory)
> A typical configuration to produce the error would be:
> {code:xml}
>         <plugin>
>           <artifactId>maven-jar-plugin</artifactId>
>           <configuration>
>             <archive>
>               <index>true</index>
>               <manifest>
>                 <addClasspath>true</addClasspath>
>               </manifest>
>           </configuration>
>         </plugin>
> {code}
> The issue below (about including dependency files in index) claims that it introduced this bug:
> http://jira.codehaus.org/browse/MJAR-40
> I'm posting this issue so that to ensure that version 2.2-SNAPSHOT does not suffer from the same problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira