Skip weather test by default as it requires online access to remote service.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/18755411 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/18755411 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/18755411 Branch: refs/heads/master Commit: 187554118aaba4f0e7ed36482fd947155ed106ac Parents: 16f8281 Author: Claus Ibsen <davscl...@apache.org> Authored: Wed Sep 11 13:16:36 2013 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Wed Sep 11 13:16:36 2013 +0200 ---------------------------------------------------------------------- components/camel-weather/pom.xml | 40 ++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/18755411/components/camel-weather/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-weather/pom.xml b/components/camel-weather/pom.xml index 28e7f79..e46cbd6 100644 --- a/components/camel-weather/pom.xml +++ b/components/camel-weather/pom.xml @@ -15,7 +15,8 @@ See the License for the specific language governing permissions and limitations under the License. --> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> @@ -29,12 +30,12 @@ <packaging>bundle</packaging> <name>Camel :: Weather</name> <description>Camel Weather support</description> - + <properties> <camel.osgi.export.pkg>org.apache.camel.component.weather.*</camel.osgi.export.pkg> <camel.osgi.export.service>org.apache.camel.spi.ComponentResolver;component=weather</camel.osgi.export.service> </properties> - + <dependencies> <dependency> <groupId>org.apache.camel</groupId> @@ -45,11 +46,11 @@ <artifactId>jackson-mapper-asl</artifactId> <version>${jackson-version}</version> </dependency> - + <!-- test dependencies --> <dependency> <groupId>org.apache.camel</groupId> - <artifactId>camel-test</artifactId> + <artifactId>camel-test</artifactId> <scope>test</scope> </dependency> <dependency> @@ -59,4 +60,33 @@ </dependency> </dependencies> + <profiles> + <profile> + <id>weather-test</id> + <build> + <plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <skipTests>false</skipTests> + <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> + + <build> + <plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <skipTests>true</skipTests> + </configuration> + </plugin> + </plugins> + </build> + + </project>