I'm using the Eclipse Java IDE with the Maven plugin and artifactory as
the repository. I have configured the POM to use the
maven-assembly-plugin to create an executable jar (see below).

 

When packaging I get the error 'Unable to obtain unarchiver for
file...'. This only occurs when I have multiple projects open in the
same workspace of Eclipse, with dependencies between each other. I.e. if
I have two project open 'A' and 'B' and B depends on the jar of A, then
if I have both open in the workspace the build of B will fail. However
if I upload the A jar to artifactory, delete the project from the
workspace and build, then maven download the jar correctly and packages
B without any problem.

 

Ideas?

 

 

-----------------------------------------------------------------------

POM Configuration

 

                  <plugin>

                        <artifactId>maven-assembly-plugin</artifactId>

 
<version>${maven.assembly.plugin.version}</version>

                        <executions>

                              <execution>

                                    <id>create-executable-jar</id>

                                    <phase>package</phase>

                                    <goals>

                                          <goal>single</goal>

                                    </goals>

                                    <configuration>

                                          <excludes>

 
<exclude>**/resources/*</exclude>

                                          </excludes>

                                          <descriptorRefs>

                                                <descriptorRef>

 
jar-with-dependencies

                                                       </descriptorRef>

                                          </descriptorRefs>

                                          <archive>

                                                <manifest>

 
<mainClass>org.esa.eeis.filesystemcrawler.Context</mainClass>

                                                </manifest>

                                          </archive>

                                    </configuration>

                              </execution>

                        </executions>

                  </plugin>

 

 

 

------------------------------------------------------------------------
-----

Error message;

 

 

While building project:

Group-Id: org.esa.eeis

Artifact-Id: ArtsWebCrawler

Version: 0.0.1-SNAPSHOT

>From file: C:\Documents and
Settings\KrygervillemosG.GROUPINFRA\EEIS\ArtsWebCrawler\pom.xml

Reason: Unable to obtain unarchiver for file 'C:\Documents and
Settings\KrygervillemosG.GROUPINFRA\EEIS\commons\target\classes'

 

 

 

 

Error stacktrace:

org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
in the plugin manager executing goal
'org.apache.maven.plugins:maven-assembly-plugin:2.1:single': Mojo
execution failed.

      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:505)

      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentFo
rProject(DefaultLifecycleExecutor.java:265)

      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:191)

      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:149)

      at
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)

      at
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.ja
va:304)

      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)

      at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedde
r.java:904)

      at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(Maven
Embedder.java:304)

      at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)

      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)

      at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:585)

      at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launche
r.java:289)

      at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:2
29)

      at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launc
her.java:408)

      at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351
)

      at org.codehaus.classworlds.Launcher.main(Launcher.java:31)

Caused by: org.apache.maven.plugin.PluginExecutionException: Mojo
execution failed.

      at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:601)

      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:498)

      ... 20 more

Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to
obtain unarchiver for file 'C:\Documents and
Settings\KrygervillemosG.GROUPINFRA\EEIS\commons\target\classes'

      at
org.apache.maven.plugin.assembly.AbstractAssemblyMojo.processDependencyS
ets(AbstractAssemblyMojo.java:1036)

      at
org.apache.maven.plugin.assembly.AbstractAssemblyMojo.createArchive(Abst
ractAssemblyMojo.java:322)

      at
org.apache.maven.plugin.assembly.AbstractAssemblyMojo.createAssembly(Abs
tractAssemblyMojo.java:261)

      at
org.apache.maven.plugin.assembly.AbstractAssemblyMojo.execute(AbstractAs
semblyMojo.java:241)

      at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:579)

      ... 21 more

 

 

 

 

 

 

 

 

 

Gert Villemos 
Senior Solutions Architect, Space
_________________________________________ 

Logica - Releasing your potential 

Logica Deutschland
Rheinstrasse 95
64295 Darmstadt
Germany
T:  +49 (0) 6151 36860 147 
E:  [email protected] <mailto:[email protected]> 
www.logica.com <http://www.logica.com/> 

 



Please help Logica to respect the environment by not printing this email  / 
Pour contribuer comme Logica au respect de l'environnement, merci de ne pas 
imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie 
so Logica dabei die Umwelt zu schuetzen  /  Por favor ajude a Logica a 
respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

Reply via email to