Build Mavan project without TestCase

If you want to build a maven project without running the test cases, it can be done in several ways:

  1. If the build is being invoked from terminal, build needs to be done with additional argument:
    • mvn -Dmaven.test.skip=true
  2. If the build is being done from Netbeans IDE, below is the step:
    1. Right click on the maven project and select Custom -> Goals
    2. Type Install in the Goals field
    3. Select the check box ‘Skip Tests’
    4. If you want to build project even in future with testcases, select the check box ‘Remember as’ and give a name
    5. Click Ok

      Netbeans maven build without test cases

      Snapshot for maven build without testcases in Netbeans

If you want to start the Netbeans Profiler without running the testcases, you need to add the following tag in pom.xml within <profiles><profile><profile><profiles> tag:

<properties>
<maven.test.skip>true</maven.test.skip></properties>

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s