Scott Ryan-2 wrote:
> 
> I just returned from overseas so as soon as I catch up on some sleep I
> will
> update this issue.  There are samples posted on the Codehaus website but
> let
> me try and understand more of what you are trying to do and see if I can
> come up with a sample.  It looks like you are needing more of the base
> maven
> plugins rather than the weblogic plugin.  The weblogic plugin is to be
> used
> after you have assembled each artifact and want to compile and deploy
> those
> artifacts.  The base maven plugins (jar, ear, war, etc) should be used
> first
> to assemble your artifacts.
> 
> More after a few hours shuteye.....
> 
> Scott Ryan
> Chief Technology Officer
> Soaring Eagle L.L.C.
> [EMAIL PROTECTED]
> www.soaringeagleco.com
> (303) 263-3044
> 

Hey Scott, it was good to finally meet you last night.  Let me rehash where
I'm at right now with the plugin and perhaps you can help me in the right
direction.  As it stands I realized that I needed to run the APPC goal
against the finished ear file, where before I was trying to run it against
the war file before I created the ear.  So, finally got that figured out. 
The problem I'm having now is that when APPC runs against the ear file,
nothing else can take place after the APPC goal.  The goal runs and then
maven stops.  I have the APPC goal set for the "package" phase and I execute
it by runnning mvn package.  However, when I run mvn install the APPC goal
executes (as expected), but then maven finishes without installing my ear. 
It seems like nothing else can run after APPC.  Perhaps theres a problem
with the plugin passing control back to Maven?  Below is my ear pom.  Please
let me know if it's something trivial that I did wrong (hopefully, this is
the cause) or if you think there's a bug in the plugin.  Thanks for your
help!

--MJ

<project> 
  <modelVersion>4.0.0</modelVersion> 
  <groupId>twtc</groupId> 
  <artifactId>um-ear</artifactId> 
  <version>1.0-SNAPSHOT</version> 
  <name>UM EAR</name> 
  <url>http://imatrix/</url> 
  <packaging>ear</packaging>
  <parent>
    <groupId>twtc</groupId>
    <artifactId>um</artifactId>
    <version>1.0-SNAPSHOT</version>
  </parent> 
  <build>
    <finalName>um</finalName>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-ear-plugin</artifactId>
          <configuration> 
          <defaultJavaBundleDir>APP-INF/lib</defaultJavaBundleDir>         
           <archive> 
             <manifest> 
               <addClasspath>true</addClasspath> 
             </manifest> 
            </archive>          
             <modules>
               <webModule>
                 <groupId>twtc</groupId>
                 <artifactId>um-web</artifactId>
                 <contextRoot>um</contextRoot>
               </webModule>
               <javaModule>
                 <groupId>twtc</groupId>
                 <artifactId>um-app</artifactId>                 
               </javaModule>
            </modules>
            <generateApplicationXml>true</generateApplicationXml>
          </configuration>          
        </plugin>
        <plugin> 
          <groupId>org.codehaus.mojo</groupId> 
          <artifactId>weblogic-maven-plugin</artifactId> 
          <version>2.8.0-SNAPSHOT</version> 
          <configuration>
            <classpath>C:\bea\weblogic81\server\lib\weblogic.jar</classpath>    
  
           
<objectPath>${project.build.directory}/um.${project.packaging}</objectPath>     
    
          </configuration>
            <executions> 
              <execution>               
                <phase>package</phase> 
                  <goals> 
                    <goal>appc</goal>               
                  </goals>
              </execution>            
            </executions> 
        </plugin>        
      </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>twtc</groupId>
      <artifactId>um-app</artifactId>
      <version>1.0-SNAPSHOT</version>      
    </dependency>
    <dependency>
      <groupId>twtc</groupId>
      <artifactId>um-web</artifactId>
      <version>1.0-SNAPSHOT</version>
      <type>war</type>
    </dependency>                                                               
    <dependency>
      <groupId>twtc</groupId>
      <artifactId>mailhandler-app</artifactId>
      <version>1.0-SNAPSHOT</version>       
    </dependency>
    <dependency>
      <groupId>twtc</groupId>
      <artifactId>common</artifactId>
      <version>1.0-SNAPSHOT</version>       
    </dependency>       
    <dependency>
        <groupId>weblogic</groupId>
        <artifactId>weblogic</artifactId>
        <version>8.1</version>   
        <scope>provided</scope>
    </dependency>    
  </dependencies>
</project> 

--
View this message in context: 
http://www.nabble.com/-m2-Weblogic-J2EE-Plugin-t1408033.html#a4029553
Sent from the Maven - Users forum at Nabble.com.


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

Reply via email to