You need to pass a configuration for the archiver in your pom.xml like so:

<project>
 ...
 <build>
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-jar-plugin</artifactId>
       <configuration>
         <archive>
           <index>false</index>
           <compress>true</compress>
         </archive>
       </configuration>
     </plugin>
   </plugins>
 </build>
 ...
</project>


I don't think its available in CLI, but I maybe wrong.



^_^


Venkatagopalaraju wrote:
Dear Maven users,
      I am using Maven2.0.2. According to my requirement, I need to use 
maven.jar.compress option with maven2. I tried with command line properties as 
like -Dmaven.jar.compress=false. But it is not working. How I am able to use 
this property with maven 2. Could anyone help me out from this problem.


Thanks & Regards
       Gopal


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to