confirm, using a more recent war plugin with <attachClasses> and using the dependency classifier <classifier>classes</classifier> did allow the packing type WAR project to also deploy a binary JAR to my repos (so WAR and JARs are deploying to production. Now those jars are available as a dependency (so, for GWT purposes, can set dependencies with classifiers 'sources' and 'classes' to build up GWT modules).
thanks! -D ================== Example: <packaging>war</packaging> ... <build> <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> <version>2.1-beta-1</version> <configuration> <!-- make sure modern war-plugin version --> <attachClasses>true</attachClasses> ... ============== then in other projects depending on jar binary (GWT class files as you integrate): ... <dependencies> <dependency> ... <classifier>classes</classifier> ... --- On Thu, 12/17/09, Justin Edelson <[email protected]> wrote: > From: Justin Edelson <[email protected]> > Subject: Re: WAR/JAR sync deploy for GWT modules > To: "Maven Users List" <[email protected]> > Date: Thursday, December 17, 2009, 10:06 AM > Since you're not actually describing > the problem you're having, it's > hard to say what the solution might be. But I do know that > the URL you > posted below describes a terribly convoluted non-solution. > The only > thing you need to do to create a JAR file containing the > classes AND get > it installed in your local repository AND get it deployed > to the remote > repository (at the appropriate lifecycle phases) is this: > > <plugin> > <artifactId>maven-war-plugin</artifactId> > <configuration> > <attachClasses>true</attachClasses> > </configuration> > </plugin> > > Any time you're using install-file or deploy-file inside > your pom, > something is wrong. > > HTH, > Justin > > > On 12/17/09 9:49 AM, Darren Hartford wrote: > > Hi all, > > I am building GWT modules. A GWT module may be used on > it's own (as a WAR), and other times is a dependency for a > larger project (as a binary JAR). > > > > I've tried this approach here: > > http://communitygrids.blogspot.com/2007/11/maven-making-war-and-jar-at-same-time.html > > > > Unfortunatley, it looks like the maven-metadata.xml, > or something else in the repository world, doesn't recognize > both a WAR and a JAR at the same time when we try to pull > back from the repo. When I go to the repo, the WAR and > the JAR have different file date/times, which may or may not > matter to the maven-metadata.xml -- this is all guessing at > this point. > > > > In any fashion, trying to search on how to solve this > problem has been a nightmare in itself -- any guidance > please? > > > > thanks, > > -D > > > > > > > > > > > > > --------------------------------------------------------------------- > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
