You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Bazoud (JIRA)" <ji...@codehaus.org> on 2010/01/03 20:26:56 UTC
[jira] Created: (MNG-4515) NoSuchArchiverException: No such
archiver: 'jar'
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
[jira] Commented: (MNG-4515) NoSuchArchiverException: No such
archiver: 'jar'
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Updated: (MNG-4515) NoSuchArchiverException: No such
archiver: 'jar'
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MNG-4515:
-----------------------------------
Attachment: MNG-4515.zip
Working example project.
> 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
> Attachments: MNG-4515.zip
>
>
> 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
[jira] Closed: (MNG-4515) NoSuchArchiverException: No such
archiver: 'jar'
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4515.
----------------------------------
Resolution: Cannot Reproduce
Assignee: Benjamin Bentmann
With the given example project, I can't reproduce this.
> 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
> Assignee: Benjamin Bentmann
> Attachments: MNG-4515.zip
>
>
> 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