Hi All,
I am trying to disable execution of unit tests for a project as follows

<project .....>
   <dependencies>
     ......
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skipTests>true</skipTests>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

When I do 
> mvn install 
The JUnit tests still get executed.
Only if I do 
> mvn install -Dmaven.test.skip=true

This project is part of a profile (other projects within this profile need 
JUnit execution to be enabled 
as a result I can't set it as a property at the profile level).

What am I doing wrong?
Any help appreciated!
Thanks
Neeraj

Apache Imperius - http://incubator.apache.org/imperius
 
Neeraj Joshi
Autonomic Computing Policy Development
Tivoli, IBM

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to