users@glassfish.java.net

Re: Deploy EAR through Maven 2?

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 Jun 2007 11:22:01 PDT

I've tried:

<build>
                <plugins>
                        <plugin>
                                <artifactId>maven-ear-plugin</artifactId>
                                <configuration>
                                        <version>5</version>
                                </configuration>
                        </plugin>
                </plugins>
</build>

and fails during the deployment because the application.xml built is like follows:

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
  <description>Enterprise Application de VacationsAddRequestService</description>
  <display-name>DEAS-VAC-VacationsAddRequestService_EAR</display-name>
</application>


I've also tried to insert this just after the version tag
                                        <modules>
                                                <ejbModule>
                                                        <groupId>
                                                                com.degesys.deas.vacations
                                                        </groupId>
                                                        <artifactId>
                                                                DEAS-VAC-VacationsAddRequestService_BIZ
                                                        </artifactId>
                                                </ejbModule>
                                        </modules>
but the packaging fails.

[INFO] Artifact[ejb:com.degesys.deas.vacations:DEAS-VAC-VacationsAddRequestService_BIZ] is not a dependency of the project.

It's weird because the dependency is in the dependencies section...

any help?

thnx
JMB
[Message sent by forum member 'jm_beas' (jm_beas)]

http://forums.java.net/jive/thread.jspa?messageID=224054