Hi:
 
I have a project structure such that an EAR is created containing a WAR,
and an EJB JAR. Thus, each module has its own directory and its own pom.
THe parent directory (say projectOverAll) has a pom with packaging =
pom.
 
Now, the project packages successfully - mvn clean install works fine. I
get my .ear file. I now want to deploy this to weblogic. I understand
that I have to use the maven-weblogic plugin. I tried adding/installing
all the dependencies into the parent POM as required for teh plugin. and
then did a mvn weblogic:appc on the parent directory. However, this
throws teh following error - 
 
Downloading: 
http://repo1.maven.org/maven2/web-maven/web-maven/1.0/web-maven-1.0
.pom
[INFO] [weblogic:appc]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Unsupported project packaging pom
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.IllegalArgumentException: Unsupported project packaging pom
        at
org.codehaus.mojo.weblogic.util.WeblogicMojoUtilities.updateArtifactN
ame(WeblogicMojoUtilities.java:109)
        at
org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:144)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493) 
 
Is the expectation different for deployment? How do I deploy this on my
webogic 9.2 server? Attached for reference is the parent POM and EAR pom
with all the dependencies (modified to hide some details). 
 
Thanks and regards,
Supriya 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]
<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>
  <parent>
	  <groupId>com..</groupId>
	  <artifactId>Decision</artifactId>
	  <version>2.0</version>
	  <relativePath>../pom.xml</relativePath>
  </parent>
  <groupId>com...decision</groupId>
  <artifactId>DecisionEAR</artifactId>
  <packaging>ear</packaging>
  <version>2.0</version>
  <name>decision</name>
  <url>http://localhost:7001/</url>

<dependencies>
	<dependency>
      <groupId>com...decision.application</groupId>
      <artifactId>DecisionPOJO</artifactId>
      <version>${version}</version>
     <type>jar</type>
    </dependency>
 
    <dependency>
      <groupId>com...decision.service</groupId>
      <artifactId>DecisionEJB</artifactId>
      <version>${version}</version>
     <type>ejb</type>
    </dependency>

	<dependency>
      <groupId>com...decision.web</groupId>
      <artifactId>DecisionWAR</artifactId>
      <version>${version}</version>
     <type>war</type>
    </dependency>

</dependencies>

	<repositories>
		<repository>
		  <id>Codehaus Snapshots</id>
		  <url>http://snapshots.repository.codehaus.org/</url>
		  <snapshots>
			<enabled>true</enabled>
		  </snapshots>
		  <releases>
			<enabled>false</enabled>
		  </releases>
		</repository>
	  </repositories>
	  <pluginRepositories>
		<pluginRepository>
		  <id>Codehaus Snapshots</id>
		  <url>http://snapshots.repository.codehaus.org/</url>
		  <snapshots>
			<enabled>true</enabled>
		  </snapshots>
		  <releases>
			<enabled>false</enabled>
		  </releases>
		</pluginRepository>
	  </pluginRepositories>

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
        <source>1.5</source>
        <target>1.5</target>
      </configuration>
    </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <configuration>
			<modules>
				<webModule>
					<groupId>com...decision.web</groupId>
					<artifactId>DecisionWAR</artifactId>
				</webModule>
				<ejbModule>
					<groupId>com...decision.service</groupId>
					<artifactId>DecisionEJB</artifactId>
				</ejbModule>
			</modules>
			<defaultJavaBundleDir>lib/</defaultJavaBundleDir>
         </configuration>
       </plugin>

       
  </plugins>

</build>

</project>
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com..</groupId>
  <artifactId>Decision</artifactId>
  <version>2.0</version>
  <name> Decision WEB project</name>
  <packaging>pom</packaging>

  <modules>
  	<module>DecisionPOJO</module>
    <module>DecisionEJB</module>
    <module>DecisionWAR</module>
    <module>DecisionEAR</module>
  </modules>

  <!-- these dependencies will be inherited by all children -->
  <dependencies>
		<dependency>
			<groupId>com.sun</groupId>
			<artifactId>tools</artifactId>
			<version>1.6.0</version>
			<scope>system</scope>
			<systemPath>C:\Program Files\Java\jdk1.6.0_02\lib\tools.jar</systemPath>
		</dependency>
		
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.13</version>
			<scope>compile</scope>
		</dependency>
        <dependency>
            <groupId>-shared-services</groupId>
            <artifactId>enterprise-infrastructure-tuxedo</artifactId>
            <version>0.2</version>
        </dependency>
        <dependency>
            <groupId>-shared-services</groupId>
            <artifactId>enterprise-cares-access</artifactId>
            <version>0.4-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>-shared-services</groupId>
            <artifactId>enterprise-infrastructure-commons</artifactId>
            <version>0.2</version>
        </dependency>
		<dependency>
            <groupId>weblogic</groupId>
            <artifactId>weblogic</artifactId>
            <version>9.1</version>
            <scope>provided</scope>
		</dependency>
	

  </dependencies>

  <build>
	  <plugins>
		<!-- set this project compiler to jdk version 1.5 -->
		<plugin>
		<artifactId>maven-compiler-plugin</artifactId>
		<configuration>
		  <source>1.5</source>
		  <target>1.5</target>
		</configuration>
		</plugin>
	  </plugins>
  </build>

</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to