You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Daivish Shah <da...@gmail.com> on 2011/08/24 02:28:34 UTC

MAVEN-EAR-PLUGIN question, I want to add some CLASS files in my EAR

Hi,

I am using maven-ear-plugin. I want to add following ANT Script files in
MAVEN EAR plugin. How can i do it ?

So basically i have some CLASS files on my machine/ Which are located
"..\workshop\output\" and ".workshop/WebService/**".

Also i want to add whatever under this directory to EAR
"\WPSWebService\WEB-INF\"

How can i do it using MAVEN-EAR-PLUGIN ?

Before converting the project from ANT to MAVEN build.xml File as followed:

        <ear
destfile="${maven.local.repository}\sampleproject\sampleproject\1.0\sampleproject-1.0.ear"
appxml="..\META-INF/application.xml" >
              <fileset dir="..\" includes="*.jar"/>
              <metainf dir="..\META-INF"/>
              <fileset dir="..\.workshop\output" />
              <fileset dir="..\">
                    <include name=".workshop/WebService/**"/>
                      <include name="\WPSWebService\WEB-INF\**"/>

              </fileset>

        </ear>

Please let me know i am looking to solve this problem.

Thanks,
daivish.

Re: MAVEN-EAR-PLUGIN question, I want to add some CLASS files in my EAR

Posted by Wayne Fay <wa...@gmail.com>.
> I am using EJB 2.0 and weblogic workshop 8.1 version. And my EAR has
> structure something like below.
>
> So how can i handle this by using EAR plugin ? Or i need to use MAVEN ANT
> Plugin and create EAR file by using that ?

I don't use Weblogic Workshop and I have no tool-specific advice to
offer you. You can generally construct whatever package you require
using the Assembly plugin or breaking things up into modules and then
using the jar plug, ejb plugin, war plugin, and ear plugin with proper
dependencies. All of this will require you to restructure your project
and build -- if you are unwilling to do this, then yes, use the Ant
plugin.

Wayne

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


Re: MAVEN-EAR-PLUGIN question, I want to add some CLASS files in my EAR

Posted by Daivish Shah <da...@gmail.com>.
Hi Wayen,

I am using EJB 2.0 and weblogic workshop 8.1 version. And my EAR has
structure something like below.

EAR
|
|--META-INF
| |
| |--ejb-jar.xml
| |--weblogic-ejb-jar.xml
|
|--APP-INF\lib
|
|
|
|--Webservice\WEB-INF\
|--Webservice\WEB-INF\classes
|--here all Webservice EJB class files with package


So how can i handle this by using EAR plugin ? Or i need to use MAVEN ANT
Plugin and create EAR file by using that ?

Please guide me.

thanks,
daivish.

On Tue, Aug 23, 2011 at 8:50 PM, Wayne Fay <wa...@gmail.com> wrote:

> > So basically i have some CLASS files on my machine/ Which are located
> > "..\workshop\output\" and ".workshop/WebService/**".
> >
> > Also i want to add whatever under this directory to EAR
> > "\WPSWebService\WEB-INF\"
> >
> > How can i do it using MAVEN-EAR-PLUGIN ?
>
> I don't believe that it is legal to package un-jarred class files in
> an EAR file. So you will need to bundle those class files into a Jar
> and then simply install/deploy the jar, then add a dependency to that
> artifact in your EAR module.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: MAVEN-EAR-PLUGIN question, I want to add some CLASS files in my EAR

Posted by Wayne Fay <wa...@gmail.com>.
> So basically i have some CLASS files on my machine/ Which are located
> "..\workshop\output\" and ".workshop/WebService/**".
>
> Also i want to add whatever under this directory to EAR
> "\WPSWebService\WEB-INF\"
>
> How can i do it using MAVEN-EAR-PLUGIN ?

I don't believe that it is legal to package un-jarred class files in
an EAR file. So you will need to bundle those class files into a Jar
and then simply install/deploy the jar, then add a dependency to that
artifact in your EAR module.

Wayne

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