maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Tran <dant...@gmail.com>
Subject Re: Replacing a bunch of -Dkey=value pairs using external file
Date Wed, 09 Sep 2015 00:52:55 GMT
that gives me a idea to write a mvn command decorator  :-)

Thanks

-D

On Tue, Sep 8, 2015 at 5:38 PM, jieryn <jieryn@gmail.com> wrote:

> bash$ cat sys1.env
> -DZZ01=maven
> -DZZ02=rocks
>
> bash$ mvn $(<sys1.env) help:system | grep ZZ
> ZZ02=rocks
> ZZ01=maven
> sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher
> -DZZ01=maven -DZZ02=rocks help:system
> MAVEN_CMD_LINE_ARGS= -DZZ01=maven -DZZ02=rocks help:system
>
>
> On Tue, Sep 8, 2015 at 8:13 PM, Dan Tran <dantran@gmail.com> wrote:
> > As mentioned, the poms already jam with all the default properties work
> out
> > of box for a particular environment.  I just need a friendly way to
> > override them.  Using settings.xml is the only choice at this moment
> >
> > Thanks
> >
> > -Dan
> >
> > On Tue, Sep 8, 2015 at 5:07 PM, Barrie Treloar <baerrach@gmail.com>
> wrote:
> >
> >> On 9 September 2015 at 09:30, Dan Tran <dantran@gmail.com> wrote:
> >>
> >> > Hi Barrie,
> >> >
> >> > That would work.  On caveat, I have to instruct my user to edit their
> own
> >> > settings.xml.  Would be nice if I can just pass in -fp xxx from
> command
> >> > line
> >>
> >>
> >> Are they truly always on?
> >>
> >> Then you can jam them in your pom.xml
> >>
> >> http://maven.apache.org/pom.html#Properties
> >>
> >>   <properties>
> >>     <rat.skip>true</rat.skip>
> >>   </properties>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message