[ http://jira.codehaus.org/browse/MNG-4515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204967#action_204967 ]
Benjamin Bentmann commented on MNG-4515: ---------------------------------------- bq. Any idea ? Any test project or POMs? Any debug logs? > NoSuchArchiverException: No such archiver: 'jar' > ------------------------------------------------ > > Key: MNG-4515 > URL: http://jira.codehaus.org/browse/MNG-4515 > Project: Maven 2 & 3 > Issue Type: Bug > Affects Versions: 3.0-alpha-5 > Reporter: Olivier Bazoud > > In my own plugin, i use an ArchiverManager to get an UnArchiver object. > {noformat} > ... > /** > * To look up Archiver/UnArchiver implementations > * > * @parameter > expression="${component.org.codehaus.plexus.archiver.manager.ArchiverManager}" > * @required > */ > private ArchiverManager archiverManager; > ... > private void unpack(File file, File location) throws > MojoExecutionException, NoSuchArchiverException { > try { > // Log > if (getLog().isDebugEnabled()) { > getLog().debug("Unpack component " + file + " to " + > location); > } > UnArchiver unArchiver = archiverManager.getUnArchiver("jar"); > unArchiver.setSourceFile(file); > unArchiver.setDestDirectory(location); > unArchiver.extract(); > } catch (ArchiverException e) { > throw new MojoExecutionException("Error unpacking file: " + file > + " to: " + location, e); > } > } > {noformat} > When i use maven 3.0 alpha 5, i got this exception on a war projet but it > works fine with maven 2.2.1 with the same projet. > {noformat} > org.codehaus.plexus.archiver.manager.NoSuchArchiverException: No such > archiver: 'jar'. > at > org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getUnArchiver(DefaultArchiverManager.java:77) > at com.mycompagny...unpack(...) > ... > {noformat} > Any idea ? -- 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