Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Maven assembly issue

Hi Christelle,

that’s related to the maven-assembly-plugin and not to Tycho but anyway, what version of the maven-assembly-plugin are you using?
There are related issues in older versions of maven-assembly-plugins where filename within the ZIP gets garbled:

https://issues.apache.org/jira/browse/MASSEMBLY-543
https://issues.apache.org/jira/browse/MASSEMBLY-748

hth
martin



Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Christelle BURGUERA
Gesendet: Mittwoch, 23. März 2016 08:46
An: Tycho user list
Betreff: [tycho-user] Maven assembly issue

Hello,

I use maven-assembly-plugin to create a zip and a tar.gz.
Here my pom :
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>Maven_Zip</artifactId>
  
  <build>
              <plugins>
                     <plugin>
                           <groupId>org.apache.maven.plugins</groupId>
                           <artifactId>maven-assembly-plugin</artifactId>
                           <executions>
                           <execution>
                               <id>zip</id>
                               <phase>install</phase>
                               <goals>
                                  <goal>single</goal>
                               </goals>
                                  <configuration>
                                         <descriptor>src/assembly/zip.xml</descriptor>
                                         <finalName>SystemWorkbench${prop.os}${prop.arch}</finalName>                                  
                                  </configuration>     
                           </execution>
                           </executions>              
                     </plugin>
              </plugins>    
       </build>
  <groupId>com.st.system.workbench</groupId>
  <version>1.8.0-SNAPSHOT</version>
  <packaging>pom</packaging>
</project>

And here my zip.xml :
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd";>
       <formats>
              <format>zip</format>
              <format>tar.bz2</format>
       </formats>
       <includeBaseDirectory>false</includeBaseDirectory>
       <fileSets>
              <fileSet>
                     <directory>..\Maven_EclipseSite\target\products\bla.mcu.product.package\${prop.os}\${prop.ws}\${prop.arch}</directory>
                     <outputDirectory>/</outputDirectory>
              </fileSet>           
       </fileSets>
</assembly>

Seems to be simple …
I’ve an issue, I’ve a file named “1986ве1т.cfg” and after the zip the name file is 1986??1?.cfg … ☹

Do you have any idea to correct this ???
Thank you

Christelle

Back to the top