You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by navjotece19 <na...@gmail.com> on 2013/09/25 16:17:55 UTC
Packing one tar created using maven assembly into another tar using
maven assembly
Hi All,I have created a tar(say project.tar) using maven assembly
descriptor.I need to create one more tar(say final.tar) file which would
contain the previously created tar (project.tar) along with one script
file.To do this 'm trying using two descriptors specified in pom.xml. One
descriptor is for project.tar and second for final.tar .While doing so I'm
facing the following error."[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:2.4:single (default-cli) on
project ede: Failed to create assembly: Error creating assembly archive bin:
A tar file cannot include itself. -> [Help
1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (default-cli)
on project ede: Failed to create assembly: Error creating assembly archive
bin: *A tar file cannot include itself.* " My pom.xml file is...
org.apache.maven.plugins maven-assembly-plugin 2.4 single
assembly/src.xml assembly/final.xml false
...==========================================2. I've also tried changing
pom.xml file content as below.... org.apache.maven.plugins
maven-assembly-plugin 2.4 jar-with-dependencies
package single assembly/src.xml
assembly/final.xml false bin
package single
assembly/final.xml false ede2 -->
...In this way, it's not able to locate the descriptors files.Could anyone
please guide me if 'm doing anything wrong?
--
View this message in context: http://maven.40175.n5.nabble.com/Packing-one-tar-created-using-maven-assembly-into-another-tar-using-maven-assembly-tp5771832.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Re: Packing one tar created using maven assembly into another tar
using maven assembly
Posted by navjotece19 <na...@gmail.com>.
Apologies for inconvinience.
I have pasted my question below.
-------------------------------
Hi All,
I have created a tar(say project.tar) using maven assembly descriptor.
I need to create one more tar(say final.tar) file which would contain the
previously created tar (project.tar) along with one script file.
To do this 'm trying using two descriptors specified in pom.xml. One
descriptor is for project.tar and second for final.tar .
While doing so I'm facing the following error.
"[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:2.4:single (default-cli) on
project ede: Failed to create assembly: Error creating assembly archive bin:
A tar file cannot include itself. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (default-cli)
on project ede: Failed to create assembly: Error creating assembly archive
bin: A tar file cannot include itself. "
My pom.xml file is
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly/src.xml</descriptor>
<descriptor>assembly/final.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugin>
...
==========================================
2. I've also tried using pom.xml file as
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>jar-with-dependencies</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly/src.xml</descriptor>
<descriptor>assembly/final.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
<execution>
<id>bin</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly/final.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
<finalName>ede2</finalName>
</configuration>
</execution>
</executions>-->
</plugin>
In this way, it's not able to locate the descriptors files.
Could anyone please guide me if 'm doing anything wrong?
--
View this message in context: http://maven.40175.n5.nabble.com/Packing-one-tar-created-using-maven-assembly-into-another-tar-using-maven-assembly-tp5771834p5771896.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Packing one tar created using maven assembly into another tar
using maven assembly
Posted by Ron Wheeler <rw...@artifact-software.com>.
It is hard to read the pom stuff that you posted.
It is possible that your assembly instructions might be specifying the
tar that you are creating?
If it is being created in the directory where your first tar is located
and you are using wild cards, you could be asking the snake to eat its
own tail.
Ron
On 25/09/2013 10:17 AM, navjotece19 wrote:
> Hi All,I have created a tar(say project.tar) using maven assembly
> descriptor.I need to create one more tar(say final.tar) file which would
> contain the previously created tar (project.tar) along with one script
> file.To do this 'm trying using two descriptors specified in pom.xml. One
> descriptor is for project.tar and second for final.tar .While doing so I'm
> facing the following error."[ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.4:single (default-cli) on
> project ede: Failed to create assembly: Error creating assembly archive bin:
> A tar file cannot include itself. -> [Help
> 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (default-cli)
> on project ede: Failed to create assembly: Error creating assembly archive
> bin: *A tar file cannot include itself.* " My pom.xml file is...
> org.apache.maven.plugins maven-assembly-plugin 2.4 single
> assembly/src.xml assembly/final.xml false
> ...==========================================2. I've also tried changing
> pom.xml file content as below.... org.apache.maven.plugins
> maven-assembly-plugin 2.4 jar-with-dependencies
> package single assembly/src.xml
> assembly/final.xml false bin
> package single
> assembly/final.xml false ede2 -->
> ...In this way, it's not able to locate the descriptors files.Could anyone
> please guide me if 'm doing anything wrong?
>
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Packing-one-tar-created-using-maven-assembly-into-another-tar-using-maven-assembly-tp5771832.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
--
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Packing one tar created using maven assembly into another tar
using maven assembly
Posted by Anders Hammar <an...@hammar.net>.
You should have two separate Maven projects for this. And then declare a
dependency from 'final' to 'project'.
/Anders (mobile)
Den 25 sep 2013 17:13 skrev "navjotece19" <na...@gmail.com>:
> Hi All,I have created a tar(say project.tar) using maven assembly
> descriptor.I need to create one more tar(say final.tar) file which would
> contain the previously created tar (project.tar) along with one script
> file.To do this 'm trying using two descriptors specified in pom.xml. One
> descriptor is for project.tar and second for final.tar .While doing so I'm
> facing the following error."[ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.4:single (default-cli) on
> project ede: Failed to create assembly: Error creating assembly archive
> bin:
> A tar file cannot include itself. -> [Help
> 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single
> (default-cli)
> on project ede: Failed to create assembly: Error creating assembly archive
> bin: *A tar file cannot include itself.* " My pom.xml file is...
> org.apache.maven.plugins
> maven-assembly-plugin 2.4
> single
> assembly/src.xml
> assembly/final.xml
> false
> ...==========================================2. I've also tried changing
> pom.xml file content as below....
> org.apache.maven.plugins
> maven-assembly-plugin 2.4
>
> jar-with-dependencies
> package
> single
>
>
>
> assembly/src.xml
> assembly/final.xml
> false
>
>
> bin
> package
> single
> assembly/final.xml
> false
> ede2
>
> -->
> ...In this way, it's not able to locate the descriptors files.Could anyone
> please guide me if 'm doing anything wrong?
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Packing-one-tar-created-using-maven-assembly-into-another-tar-using-maven-assembly-tp5771832.html
> Sent from the Maven - Users mailing list archive at Nabble.com.