It is a very specific case, yes. And technically I can change it if I
really need to. It's an open source project which we are trying to avoid
making changes to the upstream version in this particular case, because it
doesn't need to be a jar file for the mainline. We just want to override it
internally. In the end it's probably just going to be a local patch that we
keep on our own branch.

Thanks for the help.


On Fri, May 23, 2014 at 6:12 PM, Dan Tran <[email protected]> wrote:

> This sounds weird that you cant change the pom which is a sibling of yours,
> and I dont want to get into that ...
>
> any way, you are stuck, unless you get permission to make that setting
> configurable
>
> -D
>
>
> On Fri, May 23, 2014 at 10:39 AM, Jeff Hair <[email protected]> wrote:
>
> > Hi,
> > That's not it. The only POM I can modify in this situation is my own POM,
> > which needs to have a dependency on this sibling POM. The problem is that
> > the sibling POM only generates a .war file, which can't be used as a
> > dependency. Changing attachClasses to true would fix this of course, but
> I
> > can't modify the POM directly. I can however, change the command I use to
> > build this sibling project, or change anything in my own POM.
> >
> > The structure is thus:
> >
> > Parent
> > --- Sibling that generates .war files
> > --- My project
> >
> > I want to make the sibling attach some classes, so I can use it as a
> > dependency in my own project.
> >
> >
> > On Fri, May 23, 2014 at 4:35 PM, Dan Tran <[email protected]> wrote:
> >
> > > So both projects have attachClasses=true set, and you want to change
> one
> > of
> > > that config at command line?
> > >
> > > -D
> > >
> > >
> > > On Fri, May 23, 2014 at 2:40 AM, Jeff Hair <[email protected]>
> wrote:
> > >
> > > > Hi,
> > > >
> > > > I have a case where a sibling POM (both POMs have the same parent)
> > needs
> > > to
> > > > have a different configuration plugin for the maven-war plugin.
> > > > Specifically, I need to put the <attachClasses>true</attachClasses>
> > > element
> > > > into the configuration. The problem is that I cannot override or
> modify
> > > > this POM. Other acceptable solutions would be to build this
> particular
> > > > project with a command-line property or through some kind of
> aggregated
> > > > POM, as long as I can specify the option without modifying this POM
> > > itself.
> > > >
> > > > I've scoured the internet for a solution and the only thing I've
> really
> > > > found is passing a property in via command line. But this apparently
> > only
> > > > works for properties which have an expression defined. attachClasses
> > does
> > > > not have this.
> > > >
> > >
> >
> >
> >
> > --
> > *Jeff Hair*
> > Core Systems Developer
> >
> > Tel: (+354) 415 0200
> > [email protected]
> > www.greenqloud.com
> >
>



-- 
*Jeff Hair*
Core Systems Developer

Tel: (+354) 415 0200
[email protected]
www.greenqloud.com

Reply via email to