Hi Scott,
I tried other to achieve that (build the ear). Use the WebLogic
Workshop to export the build.xml. And then use the maven-antrun-plugin to
execute that build.xml. The EAR can build successfully.
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<configuration>
<tasks>
<echo>Building EAR by using WebLogic generated
build.xml</echo>
<ant antfile="${basedir}/build.xml" inheritRefs="true">
<target name="build"/>
</ant>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
But there are some problems / questions .
1) As I used <packaging>pom</packaging>. The built EAR don't copy to
Repository, just only copy the pom.xml only. If I change to this
<packaging>ear</packaging>. Even the build.xml is executed but Maven will
copy the other EAR (the incorrect one) and POM to the repository. So how can
I solve that ???
2) In the Multiproject case, I have some EJB, Taglib, etc in other
Project. How can I copy it into the WebLogic Application source directory ?
Thanks,
Eric
-----Original Message-----
From: Scott Ryan [mailto:[EMAIL PROTECTED] On Behalf Of Scott Ryan
Sent: Sunday, July 29, 2007 12:19 AM
To: Maven Users List
Subject: Re: Question - weblogic-maven-plugin - Urgent
Appc has been repackaged and has become very difficult to support.
I am working on getting support built into the plugin however it
requires a host of additional libraries that would make the other
goals a real pain to use. I will probably post a set of instructions
on the mojo website on how to set up the proper libraries to run appc
and then it is really unpredictable. Since I get no support for this
plugin from BEA it is some guesswork on my end. There are a number
of posts on the mojo list that describe how to get appc working. If
you want to work with me to get it working I will be more than happy
to put it in the plugin.
Sorry,
Scott Ryan
On Jul 27, 2007, at 7:57 PM, Dmitry wrote:
>
> Eric,
> Probably you did not set correct configuration for maven..it's one
> point.
> Actually its interesting about maven plagin for Workshop.
> Can you sene the link to that plugin i also try to use it.
>
> thanks,
> dt
> www.ejinz.com
> Search Engine News
> ----- Original Message -----
> From: Eric YH WONG
> To: 'Maven Users List'
> Sent: Friday, July 27, 2007 8:52 PM
> Subject: Question - weblogic-maven-plugin - Urgent
>
>
> Hi All,
>
>
>
> Here is my env setting: JDK v1.4.2, WebLogic Platform v8.1.6,
> Windows XP SP2. I use WebLogic Workshop (accompany with the
> WebLogic Platform installer) v8.1.6 to create a new Application and
> a portal project.
>
>
>
> Attached the Directory Layout.
>
>
>
> And I want to use Maven2 to build an EAR, so I created a pom.xml
> and using "weblogic-maven-plugin" v2.8.0.. When I execute "mvn
> weblogic:appc" I got errors (see the attached files Debug.txt and
> Error.txt).
>
>
>
> Does anyone can help to resolve it ???
>
>
>
> Thanks,
>
>
>
> Eric
>
>
>
>
>
>
>
> ----------------------------------------------------------------------
> --------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
Scott Ryan
CTO Soaring Eagle L.L.C.
Denver, Co. 80129
www.soaringeagleco.com
www.theryansplace.com
(303) 263-3044
[EMAIL PROTECTED]