MavenでのIntegrationTest

Integration and Functional Testing with Maven 2.0
Targeting maven-surefire-plugin to lifecycle phases (turn off "test" phase execution)
MavenからSeleniumを使ったテストを行う場合には、TomcatSeleniumサーバの起動を事前に行う必要があるので、"test"ではなく"integration-test"フェーズでテストを実行する必要があります。

下のようなpom.xmlの書き方で、"test"フェーズでのテストをスキップして、"integration-test"フェーズでテストを実行できます。

      
        org.apache.maven.plugins
        maven-surefire-plugin
        
          true
        
        
          
            surefire-it
            integration-test
            
              test
            
            
              false
            
          
        
      

Seleniumによるテストケースのコンパイルおよび実行では1.5以上を使う必要があるのですが、私の環境はまだJavaの環境が1.4なのでさらにいろいろPOMでの記述が必要でした。。