"Matt Raible" <[EMAIL PROTECTED]> writes:

> On 8/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> Try the Surefire plugin's how to use page:
>>
>> http://maven.apache.org/plugins/maven-surefire-plugin/howto.html
>
> So I can put the following in my pom.xml:
>
>    <plugin>
>      <groupId>org.apache.maven.plugins</groupId>
>      <artifactId>maven-surefire-plugin</artifactId>
>      <configuration>
>        <skip>true</skip>
>      </configuration>
>    </plugin>
>
> But can I put it in my settings.xml?

You can't. Plugins in profiles are allowed only for those profiles
defined inside a POM.

However, you can do the following (assuming UNiX shell syntax).

$> mvn -Dmaven.test.skip=true install

or  (not sure of this one)

$> export MAVEN_OPTS="-Dmaven.test.skip=true"
$> mvn install

or 

$> cat > $HOME/.mavenrc
"-Dmaven.test.skip=true"
^D
$> mvn install


>>
>> On a related note, is it possible to create a setting that sets up
>> "offline mode" permanently w/o typing -o?

MAVEN_OPTS

regards
-- 
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


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

Reply via email to