Hi,

I wrote a plugin(my first) that uses j2ssh to copy an artifact to a
server and then executes some scripts..I bound its execution to the
preintegration-test phase

Im referencing the ear as ${project.build.directory}/${project.build.finalName}

Nothing seems to happen when I execute maven...the ear is built but that's all.
Im configuring the plugin in a pom.xml as follows:

 <plugin>
       <groupId>com.xxx</groupId>
       <artifactId>build-deploy-plugin</artifactId>
        <version>1.0-SNAPSHOT</version>
        <executions>
        <execution>
           <id>devdeploy</id>
        <configuration>
         <hostConnectName>ccxuser-dev-2.xxx.com</hostConnectName>
          <userConnectName>xxx</userConnectName>
          <userPassword>xxxx</userPassword>
          <vm>xxxx</vm>
       </configuration>
        <goals>
            <goal>devdeploy</goal>
        </goals>
        </execution>
        </executions>
      </plugin>


Any clues as to what might be wrong would be appreciated  - thanks
Here is my plugin.xml:

<plugin>
 <description></description>
 <groupId>com.xxx</groupId>
 <artifactId>build-deploy-plugin</artifactId>
 <version>1.0-SNAPSHOT</version>
 <goalPrefix>build-deploy</goalPrefix>
 <isolatedRealm>false</isolatedRealm>
 <inheritedByDefault>true</inheritedByDefault>
 <mojos>
   <mojo>
     <goal>devdeploy</goal>
     <description>Goal which deploys an artifact to the dev/stage
environment</description>
     <requiresDirectInvocation>false</requiresDirectInvocation>
     <requiresProject>true</requiresProject>
     <requiresReports>false</requiresReports>
     <aggregator>false</aggregator>
     <requiresOnline>false</requiresOnline>
     <inheritedByDefault>true</inheritedByDefault>
     <phase>preintegration-test</phase>
     <implementation>com.xxx.DevDeployMojo</implementation>
     <language>java</language>
     <instantiationStrategy>per-lookup</instantiationStrategy>
     <executionStrategy>once-per-session</executionStrategy>
     <parameters>
       <parameter>
         <name>hostConnectName</name>
         <type>java.lang.String</type>
         <required>true</required>
         <editable>true</editable>
         <description>Artifact to be copied.</description>
       </parameter>
       <parameter>
         <name>outputArtifact</name>
         <type>java.io.File</type>
         <required>true</required>
         <editable>true</editable>
         <description>Artifact to be copied.</description>
       </parameter>
       <parameter>
         <name>stageDeploy</name>
         <type>boolean</type>
         <required>false</required>
         <editable>true</editable>
         <description>Deploy to stage flag</description>
       </parameter>
       <parameter>
         <name>userConnectName</name>
         <type>java.lang.String</type>
         <required>true</required>
         <editable>true</editable>
         <description>Artifact to be copied.</description>
       </parameter>
       <parameter>
         <name>userPassword</name>
         <type>java.lang.String</type>
         <required>true</required>
         <editable>true</editable>
         <description>Artifact to be copied.</description>
       </parameter>
       <parameter>
         <name>vm</name>
         <type>java.lang.String</type>
         <required>true</required>
         <editable>true</editable>
         <description>Virtual machine to deploy to</description>
       </parameter>
     </parameters>
     <configuration>
       <outputArtifact
implementation="java.io.File">${project.build.directory}/${project.build.finalName}</outputArtifact>
     </configuration>
   </mojo>
 </mojos>
 <dependencies/>
</plugin>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to