You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matthieu Leclercq (JIRA)" <ji...@codehaus.org> on 2007/09/03 12:57:12 UTC

[jira] Created: (MDEP-108) Additional plexus UnArchiver specifyed by a separated plugin are not accessible to dependency plugin

Additional plexus UnArchiver specifyed by a separated plugin are not accessible to dependency plugin
----------------------------------------------------------------------------------------------------

                 Key: MDEP-108
                 URL: http://jira.codehaus.org/browse/MDEP-108
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: unpack-dependencies
    Affects Versions: 2.0-alpha-4
            Reporter: Matthieu Leclercq
            Assignee: Brian Fox


I'have developed a Maven plugin that defines a new packaging type. Produced artifacts with this packaging type, have a "car" extension.
Modules, that depends on "car" modules must unpack them to use them. To do so, I configure the maven-dependency-plugin like this (note that "cecilia-lib" is the name of the packaging type I've defined):
<plugin>
  <artifactId>maven-dependency-plugin</artifactId>
  <executions>
    <execution>
      <id>unpack</id>
      <phase>process-resources</phase>
      <goals>
        <goal>unpack-dependencies</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <includeTypes>cecilia-lib</includeTypes>
  </configuration>
</plugin>

Here, I get the error : 
Unknown archiver type
Embedded error: No such archiver: 'car'.

After some investigations, I add the following in the plexus/components.xml of my plugin:
<component>
  <role>org.codehaus.plexus.archiver.UnArchiver</role>
  <role-hint>car</role-hint>
  <!-- there is no implementaion of CarUnArchiver, but ZipUnArchive will do the job -->
  <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
  <instantiation-strategy>per-lookup</instantiation-strategy>
</component>

But I still get the same error.

If I had somewhere in my plugin the following code:
  container.lookup( "org.codehaus.plexus.archiver.Archiver", "car");
  archiverManager.getUnArchiver( "car" )
It works correctly...

So I can't figure out why it doesn't work from the dependency plugin.


-- 
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: (MDEP-108) Additional plexus UnArchiver specifyed by a separated plugin are not accessible to dependency plugin

Posted by "Matthieu Leclercq (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106364 ] 

Matthieu Leclercq commented on MDEP-108:
----------------------------------------

In fact, the extension tag was already present, I just add the dependency section in the plugin configuration. So finally, the plugins configuration looks like this:
<build>
	<plugins>
		<plugin>
			<groupId>org.objectweb.fractal.cecilia</groupId>
			<artifactId>maven-car-plugin</artifactId>
			<version>${project.version}</version>
			<extensions>true</extensions>
		</plugin>
		<plugin>
			<artifactId>maven-dependency-plugin</artifactId>
			<executions>
				<execution>
					<id>unpack</id>
					<phase>process-resources</phase>
					<goals>
						<goal>unpack-dependencies</goal>
					</goals>
				</execution>
			</executions>
			<configuration>
				<includeTypes>cecilia-lib</includeTypes>
			</configuration>
			<dependencies>
				<dependency>
					<groupId>org.objectweb.fractal.cecilia</groupId>
					<artifactId>maven-car-plugin</artifactId>
					<version>${project.version}</version>
				</dependency>
			</dependencies>
		</plugin>
		...


> Additional plexus UnArchiver specifyed by a separated plugin are not accessible to dependency plugin
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MDEP-108
>                 URL: http://jira.codehaus.org/browse/MDEP-108
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: unpack-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: Matthieu Leclercq
>            Assignee: Brian Fox
>
> I'have developed a Maven plugin that defines a new packaging type. Produced artifacts with this packaging type, have a "car" extension.
> Modules, that depends on "car" modules must unpack them to use them. To do so, I configure the maven-dependency-plugin like this (note that "cecilia-lib" is the name of the packaging type I've defined):
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>unpack</id>
>       <phase>process-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <includeTypes>cecilia-lib</includeTypes>
>   </configuration>
> </plugin>
> Here, I get the error : 
> Unknown archiver type
> Embedded error: No such archiver: 'car'.
> After some investigations, I add the following in the plexus/components.xml of my plugin:
> <component>
>   <role>org.codehaus.plexus.archiver.UnArchiver</role>
>   <role-hint>car</role-hint>
>   <!-- there is no implementaion of CarUnArchiver, but ZipUnArchive will do the job -->
>   <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
>   <instantiation-strategy>per-lookup</instantiation-strategy>
> </component>
> But I still get the same error.
> If I had somewhere in my plugin the following code:
>   container.lookup( "org.codehaus.plexus.archiver.Archiver", "car");
>   archiverManager.getUnArchiver( "car" )
> It works correctly...
> So I can't figure out why it doesn't work from the dependency plugin.

-- 
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: (MDEP-108) Additional plexus UnArchiver specifyed by a separated plugin are not accessible to dependency plugin

Posted by "Matthieu Leclercq (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106290 ] 

Matthieu Leclercq commented on MDEP-108:
----------------------------------------

Yes, it works !! 

In fact, I missed something in how maven deals with plugin dependencies. So it means that the plugin is executed with the dependencies it declares and not with the dependencies declared in the project that is being built.

Thank you for this quick answer.

Matthieu

> Additional plexus UnArchiver specifyed by a separated plugin are not accessible to dependency plugin
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MDEP-108
>                 URL: http://jira.codehaus.org/browse/MDEP-108
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: unpack-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: Matthieu Leclercq
>            Assignee: Brian Fox
>
> I'have developed a Maven plugin that defines a new packaging type. Produced artifacts with this packaging type, have a "car" extension.
> Modules, that depends on "car" modules must unpack them to use them. To do so, I configure the maven-dependency-plugin like this (note that "cecilia-lib" is the name of the packaging type I've defined):
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>unpack</id>
>       <phase>process-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <includeTypes>cecilia-lib</includeTypes>
>   </configuration>
> </plugin>
> Here, I get the error : 
> Unknown archiver type
> Embedded error: No such archiver: 'car'.
> After some investigations, I add the following in the plexus/components.xml of my plugin:
> <component>
>   <role>org.codehaus.plexus.archiver.UnArchiver</role>
>   <role-hint>car</role-hint>
>   <!-- there is no implementaion of CarUnArchiver, but ZipUnArchive will do the job -->
>   <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
>   <instantiation-strategy>per-lookup</instantiation-strategy>
> </component>
> But I still get the same error.
> If I had somewhere in my plugin the following code:
>   container.lookup( "org.codehaus.plexus.archiver.Archiver", "car");
>   archiverManager.getUnArchiver( "car" )
> It works correctly...
> So I can't figure out why it doesn't work from the dependency plugin.

-- 
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: (MDEP-108) Additional plexus UnArchiver specifyed by a separated plugin are not accessible to dependency plugin

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106289 ] 

Brian Fox commented on MDEP-108:
--------------------------------

Have you added your component as an extension to the build? If that doesn't work, try adding it as a dependency in the plugin configuration.

> Additional plexus UnArchiver specifyed by a separated plugin are not accessible to dependency plugin
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MDEP-108
>                 URL: http://jira.codehaus.org/browse/MDEP-108
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: unpack-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: Matthieu Leclercq
>            Assignee: Brian Fox
>
> I'have developed a Maven plugin that defines a new packaging type. Produced artifacts with this packaging type, have a "car" extension.
> Modules, that depends on "car" modules must unpack them to use them. To do so, I configure the maven-dependency-plugin like this (note that "cecilia-lib" is the name of the packaging type I've defined):
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>unpack</id>
>       <phase>process-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <includeTypes>cecilia-lib</includeTypes>
>   </configuration>
> </plugin>
> Here, I get the error : 
> Unknown archiver type
> Embedded error: No such archiver: 'car'.
> After some investigations, I add the following in the plexus/components.xml of my plugin:
> <component>
>   <role>org.codehaus.plexus.archiver.UnArchiver</role>
>   <role-hint>car</role-hint>
>   <!-- there is no implementaion of CarUnArchiver, but ZipUnArchive will do the job -->
>   <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
>   <instantiation-strategy>per-lookup</instantiation-strategy>
> </component>
> But I still get the same error.
> If I had somewhere in my plugin the following code:
>   container.lookup( "org.codehaus.plexus.archiver.Archiver", "car");
>   archiverManager.getUnArchiver( "car" )
> It works correctly...
> So I can't figure out why it doesn't work from the dependency plugin.

-- 
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: (MDEP-108) Additional plexus UnArchiver specifyed by a separated plugin are not accessible to dependency plugin

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106295 ] 

Brian Fox commented on MDEP-108:
--------------------------------

So which did you end up doing? an extension or a dependency? 

> Additional plexus UnArchiver specifyed by a separated plugin are not accessible to dependency plugin
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MDEP-108
>                 URL: http://jira.codehaus.org/browse/MDEP-108
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: unpack-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: Matthieu Leclercq
>            Assignee: Brian Fox
>
> I'have developed a Maven plugin that defines a new packaging type. Produced artifacts with this packaging type, have a "car" extension.
> Modules, that depends on "car" modules must unpack them to use them. To do so, I configure the maven-dependency-plugin like this (note that "cecilia-lib" is the name of the packaging type I've defined):
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>unpack</id>
>       <phase>process-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <includeTypes>cecilia-lib</includeTypes>
>   </configuration>
> </plugin>
> Here, I get the error : 
> Unknown archiver type
> Embedded error: No such archiver: 'car'.
> After some investigations, I add the following in the plexus/components.xml of my plugin:
> <component>
>   <role>org.codehaus.plexus.archiver.UnArchiver</role>
>   <role-hint>car</role-hint>
>   <!-- there is no implementaion of CarUnArchiver, but ZipUnArchive will do the job -->
>   <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
>   <instantiation-strategy>per-lookup</instantiation-strategy>
> </component>
> But I still get the same error.
> If I had somewhere in my plugin the following code:
>   container.lookup( "org.codehaus.plexus.archiver.Archiver", "car");
>   archiverManager.getUnArchiver( "car" )
> It works correctly...
> So I can't figure out why it doesn't work from the dependency plugin.

-- 
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: (MDEP-108) update site to show how to inject custom unarchiver

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fox updated MDEP-108:
---------------------------

      Priority: Minor  (was: Major)
    Issue Type: Improvement  (was: Bug)
       Summary: update site to show how to inject custom unarchiver  (was: Additional plexus UnArchiver specifyed by a separated plugin are not accessible to dependency plugin)

will update the site to show how to do this.

> update site to show how to inject custom unarchiver
> ---------------------------------------------------
>
>                 Key: MDEP-108
>                 URL: http://jira.codehaus.org/browse/MDEP-108
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Improvement
>          Components: unpack-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: Matthieu Leclercq
>            Assignee: Brian Fox
>            Priority: Minor
>
> I'have developed a Maven plugin that defines a new packaging type. Produced artifacts with this packaging type, have a "car" extension.
> Modules, that depends on "car" modules must unpack them to use them. To do so, I configure the maven-dependency-plugin like this (note that "cecilia-lib" is the name of the packaging type I've defined):
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>unpack</id>
>       <phase>process-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <includeTypes>cecilia-lib</includeTypes>
>   </configuration>
> </plugin>
> Here, I get the error : 
> Unknown archiver type
> Embedded error: No such archiver: 'car'.
> After some investigations, I add the following in the plexus/components.xml of my plugin:
> <component>
>   <role>org.codehaus.plexus.archiver.UnArchiver</role>
>   <role-hint>car</role-hint>
>   <!-- there is no implementaion of CarUnArchiver, but ZipUnArchive will do the job -->
>   <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
>   <instantiation-strategy>per-lookup</instantiation-strategy>
> </component>
> But I still get the same error.
> If I had somewhere in my plugin the following code:
>   container.lookup( "org.codehaus.plexus.archiver.Archiver", "car");
>   archiverManager.getUnArchiver( "car" )
> It works correctly...
> So I can't figure out why it doesn't work from the dependency plugin.

-- 
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: (MDEP-108) update site to show how to inject custom unarchiver

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214421#action_214421 ] 

Jason van Zyl commented on MDEP-108:
------------------------------------

It's an open source project, we always fix it as soon as possible.

> update site to show how to inject custom unarchiver
> ---------------------------------------------------
>
>                 Key: MDEP-108
>                 URL: http://jira.codehaus.org/browse/MDEP-108
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Improvement
>          Components: unpack-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: Matthieu Leclercq
>            Assignee: Brian Fox
>            Priority: Minor
>
> I'have developed a Maven plugin that defines a new packaging type. Produced artifacts with this packaging type, have a "car" extension.
> Modules, that depends on "car" modules must unpack them to use them. To do so, I configure the maven-dependency-plugin like this (note that "cecilia-lib" is the name of the packaging type I've defined):
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>unpack</id>
>       <phase>process-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <includeTypes>cecilia-lib</includeTypes>
>   </configuration>
> </plugin>
> Here, I get the error : 
> Unknown archiver type
> Embedded error: No such archiver: 'car'.
> After some investigations, I add the following in the plexus/components.xml of my plugin:
> <component>
>   <role>org.codehaus.plexus.archiver.UnArchiver</role>
>   <role-hint>car</role-hint>
>   <!-- there is no implementaion of CarUnArchiver, but ZipUnArchive will do the job -->
>   <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
>   <instantiation-strategy>per-lookup</instantiation-strategy>
> </component>
> But I still get the same error.
> If I had somewhere in my plugin the following code:
>   container.lookup( "org.codehaus.plexus.archiver.Archiver", "car");
>   archiverManager.getUnArchiver( "car" )
> It works correctly...
> So I can't figure out why it doesn't work from the dependency plugin.

-- 
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: (MDEP-108) update site to show how to inject custom unarchiver

Posted by "Nathan Wells (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214416#action_214416 ] 

Nathan Wells commented on MDEP-108:
-----------------------------------

Actually, it turns out my issue is represented by MDEP-187. Please fix this as soon as possible!!! there is a patch for the fix in that issue.

> update site to show how to inject custom unarchiver
> ---------------------------------------------------
>
>                 Key: MDEP-108
>                 URL: http://jira.codehaus.org/browse/MDEP-108
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Improvement
>          Components: unpack-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: Matthieu Leclercq
>            Assignee: Brian Fox
>            Priority: Minor
>
> I'have developed a Maven plugin that defines a new packaging type. Produced artifacts with this packaging type, have a "car" extension.
> Modules, that depends on "car" modules must unpack them to use them. To do so, I configure the maven-dependency-plugin like this (note that "cecilia-lib" is the name of the packaging type I've defined):
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>unpack</id>
>       <phase>process-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <includeTypes>cecilia-lib</includeTypes>
>   </configuration>
> </plugin>
> Here, I get the error : 
> Unknown archiver type
> Embedded error: No such archiver: 'car'.
> After some investigations, I add the following in the plexus/components.xml of my plugin:
> <component>
>   <role>org.codehaus.plexus.archiver.UnArchiver</role>
>   <role-hint>car</role-hint>
>   <!-- there is no implementaion of CarUnArchiver, but ZipUnArchive will do the job -->
>   <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
>   <instantiation-strategy>per-lookup</instantiation-strategy>
> </component>
> But I still get the same error.
> If I had somewhere in my plugin the following code:
>   container.lookup( "org.codehaus.plexus.archiver.Archiver", "car");
>   archiverManager.getUnArchiver( "car" )
> It works correctly...
> So I can't figure out why it doesn't work from the dependency plugin.

-- 
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: (MDEP-108) update site to show how to inject custom unarchiver

Posted by "Nathan Wells (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214413#action_214413 ] 

Nathan Wells commented on MDEP-108:
-----------------------------------

This is probably not the right forum for this, but I frankly don't know what the right forum is. I would like to add an unarchiver of type "directory" (though I don't know if such a thing exists) to the dependency plugin. 

I could go into more detail, but if you could just point me in the direction of where to post questions like this, I would appreciate it. Google seems to be failing me.

Thanks!

> update site to show how to inject custom unarchiver
> ---------------------------------------------------
>
>                 Key: MDEP-108
>                 URL: http://jira.codehaus.org/browse/MDEP-108
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Improvement
>          Components: unpack-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: Matthieu Leclercq
>            Assignee: Brian Fox
>            Priority: Minor
>
> I'have developed a Maven plugin that defines a new packaging type. Produced artifacts with this packaging type, have a "car" extension.
> Modules, that depends on "car" modules must unpack them to use them. To do so, I configure the maven-dependency-plugin like this (note that "cecilia-lib" is the name of the packaging type I've defined):
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>unpack</id>
>       <phase>process-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <includeTypes>cecilia-lib</includeTypes>
>   </configuration>
> </plugin>
> Here, I get the error : 
> Unknown archiver type
> Embedded error: No such archiver: 'car'.
> After some investigations, I add the following in the plexus/components.xml of my plugin:
> <component>
>   <role>org.codehaus.plexus.archiver.UnArchiver</role>
>   <role-hint>car</role-hint>
>   <!-- there is no implementaion of CarUnArchiver, but ZipUnArchive will do the job -->
>   <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
>   <instantiation-strategy>per-lookup</instantiation-strategy>
> </component>
> But I still get the same error.
> If I had somewhere in my plugin the following code:
>   container.lookup( "org.codehaus.plexus.archiver.Archiver", "car");
>   archiverManager.getUnArchiver( "car" )
> It works correctly...
> So I can't figure out why it doesn't work from the dependency plugin.

-- 
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: (MDEP-108) update site to show how to inject custom unarchiver

Posted by "Nathan Wells (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214422#action_214422 ] 

Nathan Wells commented on MDEP-108:
-----------------------------------

Of course. I didn't mean any disrespect. I've been going through the project, and it looks like the following are duplicates:

MDEP-187
MDEP-194
MDEP-98
MDEP-195

I understand there are probably resource constraints on what can be accomplished. Hopefully I can find a workaround for my environment like other people seem to have done.

> update site to show how to inject custom unarchiver
> ---------------------------------------------------
>
>                 Key: MDEP-108
>                 URL: http://jira.codehaus.org/browse/MDEP-108
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Improvement
>          Components: unpack-dependencies
>    Affects Versions: 2.0-alpha-4
>            Reporter: Matthieu Leclercq
>            Assignee: Brian Fox
>            Priority: Minor
>
> I'have developed a Maven plugin that defines a new packaging type. Produced artifacts with this packaging type, have a "car" extension.
> Modules, that depends on "car" modules must unpack them to use them. To do so, I configure the maven-dependency-plugin like this (note that "cecilia-lib" is the name of the packaging type I've defined):
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>unpack</id>
>       <phase>process-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <includeTypes>cecilia-lib</includeTypes>
>   </configuration>
> </plugin>
> Here, I get the error : 
> Unknown archiver type
> Embedded error: No such archiver: 'car'.
> After some investigations, I add the following in the plexus/components.xml of my plugin:
> <component>
>   <role>org.codehaus.plexus.archiver.UnArchiver</role>
>   <role-hint>car</role-hint>
>   <!-- there is no implementaion of CarUnArchiver, but ZipUnArchive will do the job -->
>   <implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
>   <instantiation-strategy>per-lookup</instantiation-strategy>
> </component>
> But I still get the same error.
> If I had somewhere in my plugin the following code:
>   container.lookup( "org.codehaus.plexus.archiver.Archiver", "car");
>   archiverManager.getUnArchiver( "car" )
> It works correctly...
> So I can't figure out why it doesn't work from the dependency plugin.

-- 
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