You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Peter Berkman <pe...@nextgate.com> on 2013/08/29 18:15:48 UTC

Maven Assembly Plugin - Changing File Name Case Using FileSets

Help please....

I am using the Maven Assembly Plugin to build a distribution zip and am getting some strange behavior with filename cases (which is a problem because we deploy to Unix and Windows - issue on Unix).

POM:
       <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-assembly-plugin</artifactId>
              <configuration>
                     <descriptor>./src/main/assembly/dist.xml</descriptor>
<finalName>NG_v${project.version}_${build.date}_rev${build.number}_en_US</finalName>
                     <appendAssemblyId>false</appendAssemblyId>
              </configuration>
              <executions>
                     <execution>
                            <id>make-assembly</id>
                            <phase>package</phase>
                            <goals>
                                  <goal>single</goal>
                            </goals>
                     </execution>
              </executions>
</plugin>


dist.xml:
        <fileSet>
            <directory>${schemas-dir}/templates/en_US</directory>
            <outputDirectory>templates </outputDirectory>
        </fileSet>

In the source directory, the files are ALL UPPERCASE ex: CFG_APPLICATION.XML

However, in the resulting zip file, the plugin puts them in "proper name case" ex: Cfg_application.xml

I've searched everywhere to see if there is a content check or flag that does this, but nothing...

Has anyone had this issue or can anyone think of options I can try to stop this behavior?

Kind regards,

___________________________________
NextGate
Peter Berkman
m: +1-909-268-0084 ■ Linked-In<http://www.linkedin.com/in/pberkman> ■ nextgate.com<http://www.nextgate.com/>
Index + Link + Share for connected care

IMPORTANT WARNING: This email (and any attachments) is only intended for the use of the person or entity to which it is addressed, and may contain information that is privileged and confidential. You, the recipient, are obligated to maintain it in a safe, secure and confidential manner. Unauthorized re-disclosure or failure to maintain confidentiality may subject you to federal and state penalties. If you are not the intended recipient, please immediately notify us by return email, and delete this message from your computer.


Re: Maven Assembly Plugin - Changing File Name Case Using FileSets

Posted by Wayne Fay <wa...@gmail.com>.
>               <groupId>org.apache.maven.plugins</groupId>
>               <artifactId>maven-assembly-plugin</artifactId>

What version of the plugin (and Maven, and your JDK) is this? And
which OS? Can you create a sample project (zip) and post somewhere
online so it can be downloaded and executed locally to duplicate the
results you're seeing?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org