Have you tried

mvn package -Dmaven.test.skip=true

or defining the property inside your pom:

<build>
<plugins>
<plugin>
                                <artifactId>maven-surefire-plugin</artifactId>
                                <configuration>
                                        <skip>true</skip>
                                </configuration>
                        </plugin>


Thierry

Le 18 août 06 à 08:01, franz see a écrit :




Satish wrote:


How can you do this explicitly, currently by default, package/install
goals call these.

i have the following snippet in my pom.xml and it's giving errors

<build>
    <excludes>
       <exclude>
          **/*Test*.java
      </exclude>
    </excludes>
  </build>



Good day to you, Satish,

You can configure your maven-surefire-plugin to specify which tests to
include/exclude. For example, to exclude all MyFailingTest.java, you can add
the following to your pom:

<project>
  [...]
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>**/MyFailingTest.java</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
  [...]
</project>

Cheers,
Franz
--
View this message in context: http://www.nabble.com/excluding-unit- tests-tf2124320.html#a5860804
Sent from the Maven - Users forum at Nabble.com.


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



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

Reply via email to