« Return to Thread: Deploy assembly to glassfish

Deploy assembly to glassfish

by Marcin Kwapisz-2 :: Rate this Message:

Reply to Author | View in Thread

Hi,
Is it possible to deploy jar (ejb) created by assembly plugin to glassfish server?
Now, when I choose "Run project", maven tries to deploy jar package without dependencies (and of course fails). The only one solution is to deploy assembled jar package manually.

My assembly plugin configuration is as follows:
<plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2-beta-2</version>
                <executions>
                    <execution>
                        <id>create-ejb-module</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <archiverConfig>
                                <duplicateBehavior>fail</duplicateBehavior>
                            </archiverConfig>
                            <descriptors>
                                <descriptor>src/main/assembly/ejbModule.xml</descriptor>
                            </descriptors>
                            <archive>
                            </archive>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Thanks in advance
Regards
--
Marcin Kwapisz
Division of Computer Networks
Technical Univeristy of Lodz, Poland



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Deploy assembly to glassfish