In Maven2, the replacement for the properties file is the "profiles.xml" file.  
If you put it in the same directory as your pom.xml, you can override system 
properties.  

Try putting the following into profiles.xml in the root directory of your 
project:

<profiles>
    <profile>
        <activation> 
            <activeByDefault>true</activeByDefault>
        </activation>
        <id>build</id>
        <properties>
            <maven.compiler.debug>true</maven.compiler.debug>
        </properties>
    </profile>
</profiles>

This has the same effect as specifying -Dmaven.compiler.debug=true on the 
command line.   

You can also take the <profile> section from this file and put it in your 
settings.xml file to enable compiler.debug for all your Maven2 projects.  

K.C.


-----Original Message-----
From: Venkatagopalaraju [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 7:02 AM
To: users@maven.apache.org
Subject: How can I able to use maven-compiler-plugin with
${maven.compiler.debug} 


Dear Maven Users,
     
    Could you please anyone help out from this problem. I am suffering from 
these problems.
    
    1. I am working on maven 2.0.2, I have seen, In this version we are not 
able to use properties file. I am using maven-compiler-plugin, But I need to 
set false for ${maven.compiler.debug}.For this I used to set command line 
properties.But it is ignoring these properties. How I am able to work with 
these properties.

  2. In other case, I am working with maven 2.0.2. I am able to generate jar 
files, after completing successful build with maven.But problem is, I need to 
put compress="false" option through pom.xml or properties(command line 
properties). I have seen in maven1, it is possible through 
properties${maven.jar.compress} file. could you please let me know, how can I 
use with maven2.




Thanks & Regards
  Gopal

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

Reply via email to