You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Dima Berastau <di...@hotmail.com> on 2003/06/29 09:45:01 UTC

ejb, war, ear patches + little jboss plugin suggestion

Hi Everyone,
 Attached are maven ejb, war and ear plugin patches, based on a 2 weeks old
discussion on maven-users (titled 'j2ee workflow' if I remember correctly).
I was hoping to get this emailed earlier but got caught up with other
things.

1. ejb patch = the basic idea is to get ejb plugin in line with jar,war,ear
plugins (e.g. things like install, install-snapshot deploy, etc).

2. war plugin suggestion - maybe maven.final.name should be used as a basis
for the war file name rather than pom.artifactId to be consistent?

2. ear patch = the idea is to be able to package in project's own war or jar
file without having to create a whole new POM just for that. Here is a
simple example:

given the following project.xml extract:

<dependencies>
    <dependency>
        <id>bla.for.war</id>
        <version>SNAPSHOT</version>
        <properties>
            <war.bundle>true</war.bundle>
        </properties>
    </dependency>

    <dependency>
        <id>bla.for.ear</id>
        <version>SNAPSHOT</version>
        <properties>
            <ear.bundle>true</ear.bundle>
        </properties>
    </dependency>

    <!-- and a little hack for ejbs until the issue with war/ejb
dependencies is fixed -->
    <dependency>
        <id>ejb.for.ear</id>
        <version>SNAPSHOT</version>
        <properties>
            <ear.bundle>true</ear.bundle>
            <bundle.type>ejb</bundle.type>
        </properties>
    </dependency>
</dependencies>

and the following in project.properties:
maven.ear.include.project.war=true
maven.project.context-root=/test

given the above, you could produce a war file, an ear file (as usual) and
optionally package in project's own war file (including generating the
descriptor). The same logic applies for project's jar file (if any).

4. jboss plugin.properties

I've noticed the that JXM deploy/undeploy URL in jboss 3.2 is slightly
different from what was originally in the plugin.properties.

I was wondering if one of the committers could have a quick look through the
attached patches and see if these suggestions are of any use.

thanks in advance.

dima


Re: ejb, war, ear patches + little jboss plugin suggestion

Posted by Rafal Krzewski <Ra...@caltha.pl>.
Dima Berastau wrote:
> Hi Everyone,
>  Attached are maven ejb, war and ear plugin patches, based on a 2 weeks old
> discussion on maven-users (titled 'j2ee workflow' if I remember correctly).
> I was hoping to get this emailed earlier but got caught up with other
> things.

You need to post your patches to Jira. They are like to go unnoticed,
otherwise, and that would be bad.

Thanks for your contribution!

R.


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