i have parent pom, which i have specified in jenkins 

    <?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
 
  <packaging>pom</packaging>
  <name>Foo</name>
  <modules>
    <module>Foo-ear</module>
    <module>../CalendarInfo-ejb</module>
    <module>../Foo-ejb</module>
    <module>../Archway-ejb</module>
    <module>../Sales-ejb</module>
    <module>../ETLProcess</module>
    <module>../SurveyMgr-ejb</module>
    <module>../SurveyViewer</module>
    <module>../SurveyMaker</module>
    <module>../Fooclient-web</module>
    <module>../Foo-web</module>
  </modules>




       
<build>
      
    <plugins>
         <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    
<executable>/Users/rajendartalatam/glassfish3/glassfish/bin/asadmin</executable>
                    <arguments>
                        <argument>deploy</argument>

                        <argument>--user=admin</argument>
                        
<argument>--passwordfile=/Users/rajendartalatam/glassfish3/glassfish/domains/domain1/config/domain-passwords</argument>
                        <argument>--host=localhost</argument>
                        <argument>--port=4848</argument>
                        
<argument>target/${artifactId}-${version}.${packaging}</argument>
                    </arguments>
                </configuration>
            </plugin>
        
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <version>2.6</version>
        <configuration>
            <version>6</version>
            <defaultLibBundleDir>lib</defaultLibBundleDir>
        </configuration>
      </plugin>
    </plugins>
  </build>


in EAR Foo pom.xml i have plugin to deploy this EAR in to glass fish,
through command   mvN exec:exec`enter code here`
How to specify goal in jenkins , in Foo Ear pom to deploy it to glass Fish

thanks
rajendr

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 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.

Reply via email to