You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Larry Suto <la...@gmail.com> on 2007/05/14 06:33:59 UTC

Non executing plugin

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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Non executing plugin

Posted by Jason Dillon <ja...@planet57.com>.
"preintegration-test" is not a valid phase, "pre-integration-test" is  
however.

See http://maven.apache.org/guides/introduction/introduction-to-the- 
lifecycle.html for the list.

--jason


On May 13, 2007, at 9:33 PM, Larry Suto wrote:

> 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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org