mvn clean install
2006/4/24, RobJac <[EMAIL PROTECTED]>:
>
>
> Thanks Johan. Sorry for troubling you again on this, but what is the
> command
> you ran to execute this plugin? i tried running mvn deploy and it was
> throwing me an exception. Please find below the exception
>
> Exception:
>
> [INFO] Executing tasks
> [scp] Connecting to ${appserver.hostname}:22
> [INFO]
> -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Error executing ant tasks
>
> Embedded error: com.jcraft.jsch.JSchException: Session.connect:
> java.net.Unknown
> HostException: ${appserver.hostname}
> [INFO]
> -------------------------------------------------------------------------
>
>
> Pls find below my ear pom xml. I something missing here?
>
> <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>
> <groupId>DefinedBenefit_EA</groupId>
> <artifactId>DefinedBenefit_EA</artifactId>
> <packaging>ear</packaging>
> <version>1.0</version>
> <dependencies>
> <dependency>
> <groupId>background_admin</groupId>
> <artifactId>background_admin</artifactId>
> <version>1.0</version>
> <type>jar</type>
> </dependency>
>
> </dependencies>
> <build>
> <directory>${basedir}</directory>
> <finalName>${project.artifactId}</finalName>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-ear-plugin</artifactId>
> <configuration>
> <configuration>
> <archive>
>
>
> <manifestFile>${basedir}/src/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> </configuration>
> <earSourceDirectory>${basedir}/src</earSourceDirectory>
> <generateApplicationXml>false</generateApplicationXml>
> <resources>
> <resource>
> <directory>${basedir}/src</directory>
> </resource>
> </resources>
> <modules>
> <javaModule>
> <groupId>background_admin</groupId>
> <artifactId>background_admin</artifactId>
>
>
> <bundleFileName>background_admin.sar</bundleFileName>
> </javaModule>
> </modules>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>generate-sources</phase>
> <configuration>
> <tasks>
> <delete dir="${basedir}/${
> project.build.directory}"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> <execution>
> <id>jboss-remote-hotdeploy</id>
> <phase>integration-test</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <scp trust="true" file="${
> project.build.directory}/${
> project.build.finalName}.${project.packaging}"
>
> todir="[EMAIL PROTECTED]:${
> appserver.deploydir}"
> password="${appserver.remote.password}" />
> </tasks>
> </configuration>
> </execution>
>
> </executions>
> <dependencies>
> <dependency>
> <groupId>ant</groupId>
> <artifactId>ant-optional</artifactId>
> <version>1.5.3-1</version>
> </dependency>
> <dependency>
> <groupId>ant</groupId>
> <artifactId>ant-jsch</artifactId>
> <version>1.6.5</version>
> </dependency>
> </dependencies>
> </plugin>
> </plugins>
> </build>
> <profiles>
> <profile>
> <id>test-environment</id>
> <activation>
> <property>
> <name>env</name>
> <value>test</value>
> </property>
> </activation>
> <properties>
> <appserver.hostname>10.156.4.302
> </appserver.hostname>
> <appserver.protocol>https</appserver.protocol>
> <appserver.remote.username
> >jboss</appserver.remote.username>
> <appserver.remote.password
> >super</appserver.remote.password>
> <appserver.deploydir
> >/opt/jboss403SP1</appserver.deploydir>
> <appserver.jvmargs></appserver.jvmargs>
> <appserver.rmi.port></appserver.rmi.port>
> <appserver.servlet.port
> >8080</appserver.servlet.port>
> <appserver.logging>medium</appserver.logging>
> <appserver.servlet.users
> ></appserver.servlet.users>
> </properties>
> </profile>
> </profiles>
>
>
> </project>
> --
> View this message in context:
> http://www.nabble.com/Alternative-for-remote-deploying-an-ear-t1391330.html#a4064953
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Johan Vogelzang