Revision: c800b6253f41 Author: baranowb <[email protected]> Date: Sat Feb 2 04:29:25 2013Log: add deploy profile to deploy services, remove some jboss specific profile, add readme
http://code.google.com/p/commscale/source/detail?r=c800b6253f41&repo=snmp-adaptor Added: /READM.txt Modified: /adaptor-service/pom.xml /deployer-service/pom.xml ======================================= --- /dev/null +++ /READM.txt Sat Feb 2 04:29:25 2013 @@ -0,0 +1,1 @@ +To deploy services(adaptor and deployer) use -Pdeploy ======================================= --- /adaptor-service/pom.xml Fri Feb 1 08:39:47 2013 +++ /adaptor-service/pom.xml Sat Feb 2 04:29:25 2013 @@ -2,22 +2,22 @@ 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>
- <groupId>org.mobicents.tools.snmp</groupId>
- <artifactId>snmp-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
+ <groupId>org.mobicents.tools.snmp</groupId>
+ <artifactId>snmp-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
- <name>Mobicents :: SNMP :: Adaptor :: Service</name>
+ <name>Mobicents :: SNMP :: Adaptor :: Service</name>
- <groupId>org.mobicents.tools.snmp.adaptor</groupId>
+ <groupId>org.mobicents.tools.snmp.adaptor</groupId>
<artifactId>service</artifactId>
<packaging>jar</packaging>
-
-
+
+
<description>SNMP Adaptor Service</description>
<properties>
@@ -42,7 +42,7 @@
<manifestEntries>
<Implementation-Title>
${manifest.implementation.title}
- </Implementation-Title>
+ </Implementation-Title>
<Implementation-Version>
${manifest.implementation.version}
</Implementation-Version>
@@ -96,60 +96,94 @@
</execution>
</executions>
</plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <id>deploy</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+
<groupId>org.apache.maven.plugins</groupId>
+
<artifactId>maven-antrun-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+
<phase>package</phase>
+ <configuration>
+ <tasks>
+
<condition
+
property="jboss.dir"
+
value="${jboss.home}"
+
else="${env.JBOSS_HOME}">
+
<isset property="jboss.home" />
+
</condition>
- <!-- should this be maven dep plugin? -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.1</version>
- <executions>
- <execution>
- <phase>package</phase>
- <configuration>
- <tasks>
- <condition
-
property="jboss.dir"
-
value="${jboss.home}"
-
else="${env.JBOSS_HOME}">
- <isset
-
property="jboss.home" />
- </condition>
+
<unjar
+
src="${project.build.directory}/${artifactId}-${project.version}-sar.jar"
+
dest="${jboss.dir}/server/${node}/deploy/snmp-adaptor.sar" />
- <unjar
-
src="${project.build.directory}/${artifactId}-${project.version}-sar.jar"
-
dest="${jboss.dir}/server/${node}/deploy/snmp-adaptor.sar" />
+ </tasks>
+ </configuration>
+ <goals>
+
<goal>run</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>clean</id>
+
<phase>clean</phase>
+ <configuration>
+ <tasks>
+
<condition
+
property="jboss.dir"
+
value="${jboss.home}"
+
else="${env.JBOSS_HOME}">
+
<isset property="jboss.home" />
+
</condition>
+ <delete
dir="${jboss.dir}/server/${node}/deploy/snmp-adaptor.sar" />
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- <execution>
- <id>clean</id>
- <phase>clean</phase>
+ </tasks>
+ </configuration>
+ <goals>
+
<goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>jdk6</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+
<groupId>org.apache.maven.plugins</groupId>
+
<artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
<configuration>
- <tasks>
- <condition
-
property="jboss.dir"
-
value="${jboss.home}"
-
else="${env.JBOSS_HOME}">
- <isset
-
property="jboss.home" />
- </condition>
- <delete
-
dir="${jboss.dir}/server/${node}/deploy/snmp-adaptor.sar" />
-
- </tasks>
+ <compilerArguments>
+ <g />
+ </compilerArguments>
+ <source>1.5</source>
+ <target>1.5</target>
+ <excludes>
+
<exclude>org/jboss/varia/stats/*JDK5.java</exclude>
+
<exclude>org/jboss/tm/plugins/tyrex/*.java</exclude>
+
<exclude>org/jboss/jdo/castor/*.java</exclude>
+ </excludes>
</configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
<dependencies>
<dependency>
<groupId>${pom.groupId}</groupId>
@@ -200,33 +234,4 @@
</dependency>
</dependencies>
- <profiles>
- <profile>
- <id>jdk6</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <build>
- <plugins>
- <plugin>
-
<groupId>org.apache.maven.plugins</groupId>
-
<artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
- <configuration>
- <compilerArguments>
- <g />
- </compilerArguments>
- <source>1.5</source>
- <target>1.5</target>
- <excludes>
-
<exclude>org/jboss/varia/stats/*JDK5.java</exclude>
-
<exclude>org/jboss/tm/plugins/tyrex/*.java</exclude>
-
<exclude>org/jboss/jdo/castor/*.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
=======================================
--- /deployer-service/pom.xml Fri Feb 1 08:39:47 2013
+++ /deployer-service/pom.xml Sat Feb 2 04:29:25 2013
@@ -110,9 +110,9 @@
</build>
<profiles>
<profile>
- <id>jboss</id>
+ <id>deploy</id>
<activation>
- <activeByDefault>true</activeByDefault>
+ <activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
@@ -177,91 +177,6 @@
failonerror="false"
file="${basedir}/target/metadata-deployer-jboss-beans_bck.xml"
tofile="${env.JBOSS_HOME}/server/${node}/deployers//metadata-deployer-jboss-beans.xml"
/>
- - - <delete - verbose="true"- dir="${jboss.dir}/server/${node}/deployers/snmp-adaptor-deployer" />
- - - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin>- <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-to-jboss-lib</id> - <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <includeArtifactIds>adaptor-core</includeArtifactIds> - <outputDirectory>${env.JBOSS_HOME}/server/${node}/deployers/snmp.deployer</outputDirectory> </configuration> </execution> </executions> </plugin> -->
- </plugins>
- </build>
- </profile>
- <profile>
- <id>jboss-distro</id>
- <build>
- <plugins>
- <plugin>
-
<groupId>org.apache.maven.plugins</groupId>
-
<artifactId>maven-antrun-plugin</artifactId>
- <version>1.1</version>
- <executions>
- <execution>
-
<phase>package</phase>
- <configuration>
- <tasks>
-
<condition
-
property="jboss.dir"
-
value="${jboss.home}"
-
else="${env.JBOSS_HOME}">
-
<isset
-
property="jboss.home" />
-
</condition>
-
<!-- make local backup -->
-
<copy
-
verbose="true"
-
overwrite="true"
-
file="${env.JBOSS_HOME}/server/${node}/deployers//metadata-deployer-jboss-beans.xml"
-
tofile="${basedir}/target/metadata-deployer-jboss-beans_bck.xml" />
-
-
-
<copy
-
verbose="true"
-
overwrite="true"
-
file="${basedir}/overrides/metadata-deployer-jboss-beans.xml"
-
todir="${env.JBOSS_HOME}/server/${node}/deployers/" />
-
-
<unjar
-
src="${project.build.directory}/${artifactId}-${project.version}-sar.jar"
-
dest="${jboss.dir}/server/${node}/deployers/snmp-adaptor-deployer" />
-
- </tasks>
- </configuration>
- <goals>
-
<goal>run</goal>
- </goals>
- </execution>
- <execution>
-
<id>pre-clean</id>
-
<phase>pre-clean</phase>
- <configuration>
- <tasks>
-
<condition
-
property="jboss.dir"
-
value="${jboss.home}"
-
else="${env.JBOSS_HOME}">
-
<isset
-
property="jboss.home" />
-
</condition>
-
<!-- make local backup -->
-
<copy
-
verbose="true"
-
overwrite="true"
-
file="${basedir}/target/metadata-deployer-jboss-beans_bck.xml"
-
tofile="${env.JBOSS_HOME}/server/${node}/deployers//metadata-deployer-jboss-beans.xml"
/>
-
-
<delete
verbose="true"
dir="${jboss.dir}/server/${node}/deployers/snmp-adaptor-deployer" />
----- You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
