Revision: 5459592a7289
Author: [email protected] <[email protected]>
Date: Thu Jul 5 08:27:09 2012
Log: depend on sccp test jar only if test is enabled
http://code.google.com/p/jss7/source/detail?r=5459592a7289
Modified:
/map/map-impl/pom.xml
/tcap/tcap-impl/pom.xml
=======================================
--- /map/map-impl/pom.xml Wed Jun 6 06:59:00 2012
+++ /map/map-impl/pom.xml Thu Jul 5 08:27:09 2012
@@ -1,4 +1,5 @@
-<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>
@@ -19,14 +20,7 @@
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </dependency>
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- </dependency>
+
<dependency>
<groupId>concurrent</groupId>
<artifactId>concurrent</artifactId>
@@ -37,23 +31,6 @@
<artifactId>sccp-api</artifactId>
</dependency>
<dependency>
- <groupId>org.mobicents.protocols.ss7.sccp</groupId>
- <artifactId>sccp-impl</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mobicents.protocols.ss7.sccp</groupId>
- <artifactId>sccp-impl</artifactId>
- <type>test-jar</type>
- <version>${pom.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mobicents.protocols.ss7.mtp</groupId>
- <artifactId>mtp-api</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
<groupId>org.mobicents.protocols.asn</groupId>
<artifactId>asn</artifactId>
</dependency>
@@ -99,9 +76,9 @@
<configuration>
<suiteXmlFiles>
- <!-- -->
+ <!-- -->
<suiteXmlFile>testng-methods.xml</suiteXmlFile>
-
+
<suiteXmlFile>testng-classes.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
@@ -122,7 +99,47 @@
</fileset>
</filesets>
</configuration>
- </plugin>
+ </plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>test</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ </dependency>
+ <dependency>
+
<groupId>org.mobicents.protocols.ss7.sccp</groupId>
+ <artifactId>sccp-impl</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+
<groupId>org.mobicents.protocols.ss7.sccp</groupId>
+ <artifactId>sccp-impl</artifactId>
+ <type>test-jar</type>
+ <version>${pom.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+
<groupId>org.mobicents.protocols.ss7.mtp</groupId>
+ <artifactId>mtp-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <activation>
+ <property>
+ <name>maven.test.skip</name>
+ <value>true</value>
+ </property>
+ </activation>
+ </profile>
+ </profiles>
</project>
=======================================
--- /tcap/tcap-impl/pom.xml Wed Jun 6 06:59:00 2012
+++ /tcap/tcap-impl/pom.xml Thu Jul 5 08:27:09 2012
@@ -1,4 +1,5 @@
-<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>
@@ -24,30 +25,11 @@
<groupId>org.mobicents.protocols.ss7.sccp</groupId>
<artifactId>sccp-api</artifactId>
</dependency>
- <dependency>
- <groupId>org.mobicents.protocols.ss7.sccp</groupId>
- <artifactId>sccp-impl</artifactId>
- <!-- classifier>tests</classifier -->
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.mobicents.protocols.ss7.sccp</groupId>
- <artifactId>sccp-impl</artifactId>
- <type>test-jar</type>
- <version>${pom.version}</version>
- <scope>test</scope>
- </dependency>
-
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </dependency>
- <dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
</dependency>
@@ -57,11 +39,6 @@
<version>${pom.version}</version>
</dependency>
<dependency>
- <groupId>org.mobicents.protocols.ss7.mtp</groupId>
- <artifactId>mtp-api</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
<groupId>org.mobicents.protocols.ss7.mtp</groupId>
<artifactId>mtp</artifactId>
</dependency>
@@ -102,4 +79,44 @@
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>test</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ </dependency>
+ <dependency>
+
<groupId>org.mobicents.protocols.ss7.sccp</groupId>
+ <artifactId>sccp-impl</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+
<groupId>org.mobicents.protocols.ss7.sccp</groupId>
+ <artifactId>sccp-impl</artifactId>
+ <type>test-jar</type>
+ <version>${pom.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+
<groupId>org.mobicents.protocols.ss7.mtp</groupId>
+ <artifactId>mtp-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <activation>
+ <property>
+ <name>maven.test.skip</name>
+ <value>true</value>
+ </property>
+ </activation>
+ </profile>
+ </profiles>
</project>