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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to