confirm, using a more recent war plugin with and using the
dependency classifier classes 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:
war
...
maven-war-plugin
2.1-beta-1
true
...
==
then in other projects depending on jar binary (GWT class files as you
integrate):
...
...
classes
...
--- On Thu, 12/17/09, Justin Edelson wrote:
> From: Justin Edelson
> Subject: Re: WAR/JAR sync deploy for GWT modules
> To: "Maven Users List"
> 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:
>
>
> maven-war-plugin
>
> true
>
>
>
> 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: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org