Right-o.  I'll paste it inline...
************************** STARTING DIFF **************************
Index: src/main/java/org/apache/maven/plugin/ear/WebModule.java
===================================================================
--- src/main/java/org/apache/maven/plugin/ear/WebModule.java
(.../vendor/maven-ear-plugin/current)    (revision 133)
+++ src/main/java/org/apache/maven/plugin/ear/WebModule.java
(.../trunk/maven-ear-plugin)    (revision 133)
@@ -54,7 +54,12 @@
         writer.startElement( MODULE_ELEMENT );
         writer.startElement( WEB_MODULE );
         writer.startElement( WEB_URI_FIELD );
-        writer.writeText( getUri() );
+
+        if(explodedUri != null)
+            writer.writeText(explodedUri);
+        else
+            writer.writeText( getUri() );
+
         writer.endElement(); // web-uri
         writer.startElement( CONTEXT_ROOT_FIELD );
         writer.writeText( getContextRoot() );
@@ -75,6 +80,23 @@
             contextRoot = getDefaultContextRoot( getArtifact() );
         }
     }
+
+    /**
+     * A specific path uri.  This will allow a web application to be
referenced in a container without
+     * requiring full rebuild of the entire ear (exploded webapp).
Relative path to the webapp project
+     * recommended.
+     *
+     * @parameter
+     */
+    private String explodedUri;
+
+//    public String getUri()
+//    {
+//        if(explodedUri != null)
+//            return explodedUri;
+//        else
+//            return super.getUri();
+//    }

     /**
      * Returns the context root to use for the web module.
Index: pom.xml
===================================================================
--- pom.xml    (.../vendor/maven-ear-plugin/current)    (revision 133)
+++ pom.xml    (.../trunk/maven-ear-plugin)    (revision 133)
@@ -1,27 +1,46 @@
-<?xml version="1.0" encoding="UTF-8"?><project>
-  <parent>
-    <artifactId>maven-plugin-parent</artifactId>
-    <groupId>org.apache.maven.plugins</groupId>
-    <version>2.0.1</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <artifactId>maven-ear-plugin</artifactId>
-  <packaging>maven-plugin</packaging>
-  <name>Maven Ear plugin</name>
-  <version>2.2-SNAPSHOT</version>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.maven</groupId>
-      <artifactId>maven-project</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.maven</groupId>
-      <artifactId>maven-archiver</artifactId>
-      <version>2.0.1</version>
-    </dependency>
-    <dependency>
-      <groupId>org.codehaus.plexus</groupId>
-      <artifactId>plexus-utils</artifactId>
-    </dependency>
-  </dependencies>
+<?xml version="1.0" encoding="UTF-8"?><project>
+  <parent>
+    <artifactId>maven-plugin-parent</artifactId>
+    <groupId>org.apache.maven.plugins</groupId>
+    <version>2.0.1</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>maven-ear-plugin</artifactId>
+  <packaging>maven-plugin</packaging>
+  <name>Maven Ear plugin</name>
+  <version>2.2-SNAPSHOT</version>
+
+  <distributionManagement>
+    <snapshotRepository>
+      <id>snapshots</id>
+      <name>Maven Central Plugins Development Repository</name>
+      <url>file://///nyddb01/d$/Data/maven-repository</url>
+    </snapshotRepository>
+    <repository>
+      <id>repo1</id>
+      <name>Maven Central Plugins Repository</name>
+      <url>file://///nyddb01/d$/Data/maven-repository</url>
+    </repository>
+    <site>
+      <id>website</id>
+      <url>scp://minotaur.apache.org/www/maven.apache.org/plugins/</url>
+    </site>
+  </distributionManagement>
+
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-archiver</artifactId>
+      <version>2.0.1</version>
+    </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-utils</artifactId>
+    </dependency>
+  </dependencies>
 </project>
\ No newline at end of file

Property changes on: .
___________________________________________________________________
Name: svn:ignore
   + target



************************** ENDING DIFF **************************



On 4/18/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> Just FYI Kevin... Either you didn't attach the diff, or it got chopped
> in transit somewhere.
>
> Wayne
>
> On 4/18/06, Kevin Galligan <[EMAIL PROTECTED]> wrote:
> > Attaching a diff for the ear plugin.  Its a diff from 380736 to my local
> > vendor branch.  There are some extra things, like the deploy repository
> is
> > our local path, but you should be able to see what I did to the code
> from
> > the diff file.
> >
> >
> >
> >
> > On 4/18/06, brianwainwright <[EMAIL PROTECTED]> wrote:
> > >
> > > Thanks for the quick reply Kevin!
> > >
> > > I feared that the solution may involve hacking the plugins!  It's
> > > essentially what we had to do with Maven 1.x, but I'd just hoped that
> > > there'd be a more "complete" solution in M2?
> > >
> > > Although, to be honest, I don't mind "hacky" too much at the moment,
> I've
> > > had to do that a fair bit to get our M2 build looking anything like
> our
> > M1,
> > > but I'm mainly putting that down to the plugins not being mature
> enough
> > just
> > > yet.
> > >
> > > I'll take a look at the war and ear plugins and see what I can come up
> > with.
> > > I like your "movejsp" target idea - we had written a similar Maven 1.x
> > goal
> > > to perform a similar step, so it's probably something I should add too
> to
> > > keep our developers happy!
> > >
> > > Brian Wainwright
> > > Developer
> > > Burns E-Commerce
> > > Mansion House, Manchester Road, Altrincham, Cheshire, WA14 4RJ, UK
> > > http://www.burnsecs.com
> > > mailto:[EMAIL PROTECTED]
> > >
> > > --
> > > View this message in context:
> >
> http://www.nabble.com/Exploded-WAR-in-exploded-EAR-t1468379.html#a3969692
> > > Sent from the Maven - Users forum at Nabble.com.
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

Reply via email to