I've found the solution myself googleing and looking to the source code :-)

You have to use a javaModule inside the configuration of the
maven-ear-plugin with the artifact information and the
includeInApplicationXml set to true:

      <plugin>
        <artifactId>maven-ear-plugin</artifactId>
        <configuration>
          <modules>
            <javaModule>
               <groupId>ebiointel-bionary</groupId>
              <artifactId>bionary</artifactId>
              <includeInApplicationXml>true</includeInApplicationXml>
            </javaModule>
          </modules>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
            </manifest>
          </archive>
        </configuration>
      </plugin>

Regards,

Bruno

2005/11/30, Bruno Aranda <[EMAIL PROTECTED]>:
> Hi all,
>
> I wonder if it is possible to configure the ear plugin somehow to put
> some of the jar dependencies inside the application.xml file as
> <module><java>myFile.jar</java></module>, as it is actually done with
> ejb's and webapps...
> I need this because I have a par (ejb3) that depends on a jar and in
> order to make this work I also need that jar in the application.xml
> file...
>
> Regards,
>
> Bruno
>

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

Reply via email to