Re: Defining a property designed to be overridden?

2017-03-02 Thread org . apache . maven . user
Hello! On 2017-03-01T15:49:10 -0600 Curtis Rueden wrote: > > If what you want is to ensure the property is simply non-empty, or matching > a particular regex, then take a look at the requireProperty enforcer rule > [1]. > > Or if your goal is to make sure that a property

Re: [EXTERNAL] [ANN] Apache Maven Version 3.5.0-alpha-1 Released

2017-03-02 Thread Andreas Sewe
Hi, > Any chance the Aether work would somehow enable declaring server credentials > only once in settings.xml and then reusing them for multiple > build.repositories.repository nodes in pom.xml (such as when you have > multiple independent repositories within the same authentication realm of

Re: [EXTERNAL] [ANN] Apache Maven Version 3.5.0-alpha-1 Released

2017-03-02 Thread Stephen Connolly
Can you create an issue against the MNG project in the issue tracker and we will consider it from there On 2 March 2017 at 08:24, Andreas Sewe wrote: > Hi, > > > Any chance the Aether work would somehow enable declaring server > credentials only once in

Re: [EXTERNAL] [ANN] Apache Maven Version 3.5.0-alpha-1 Released

2017-03-02 Thread Andreas Sewe
Stephen Connolly wrote: > Can you create an issue against the MNG project in the issue tracker and we > will consider it from there I'll leave that to Justin, as he has the need for this feature and can probably describe his requirements best: I

Re: Defining a property designed to be overridden?

2017-03-02 Thread Curtis Rueden
Hi, > I do actually want to enforce this, the issue is that I only want to > enforce it as far as the first ancestor. Sorry if you stated otherwise in your writeup, but my understanding is that you want to define some empty properties in your new root POM, and then ensure they are _not_ empty in

Re: Defining a property designed to be overridden?

2017-03-02 Thread org . apache . maven . user
On 2017-03-02T10:29:30 -0600 Curtis Rueden wrote: > > it seems that I can only require that the XML elements be overridden > > in *all* descendant POMs, and this introduces too much redundancy. > > I see. > > Would it be sufficient if the requireElements rule had a

Re: Defining a property designed to be overridden?

2017-03-02 Thread Curtis Rueden
> it seems that I can only require that the XML elements be overridden > in *all* descendant POMs, and this introduces too much redundancy. I see. Would it be sufficient if the requireElements rule had a multiModule flag which, if set, green-lighted the build when the stated elements are defined

Re: Defining a property designed to be overridden?

2017-03-02 Thread Curtis Rueden
Hi, > I'd need to think a bit more about it, but I personally dislike > relativePath and have never used it (across hundreds of projects), > pretty much for the sorts of reasons you've described. Hard-coding > paths that represent links to other modules seems like a > horrendously bad idea. That

Re: Defining a property designed to be overridden?

2017-03-02 Thread org . apache . maven . user
On 2017-03-02T11:12:58 -0600 Curtis Rueden wrote: > Hi, > > > I'd need to think a bit more about it, but I personally dislike > > relativePath and have never used it (across hundreds of projects), > > pretty much for the sorts of reasons you've described. Hard-coding > >

Re: Download an artifact and its dependencies without a pom.xml

2017-03-02 Thread Curtis Rueden
Hi everyone, > My use case is that I want to run a class from a Maven artifact. I turned my "synthesize a dummy POM" approach into a full-blown shell script called jrun [1]. You can use it to conveniently run Java code from any remote Maven repository. For example, to spin up the Jython REPL:

Re: Download an artifact and its dependencies without a pom.xml

2017-03-02 Thread Manfred Moser
I have a similar tool that can be used to provision from and to a repository. https://github.com/simpligility/maven-repository-tools/tree/master/maven-repository-provisioner hth Manfred Curtis Rueden wrote on 2017-03-02 14:29: > Hi everyone, > >> My use case is that I want to run a class

Re: Defining a property designed to be overridden?

2017-03-02 Thread Curtis Rueden
Hi, > I get the sense that adding is something that would > upset IDEs (my experience has been that they cope relatively poorly > with anything uncommon like that). My group uses "" a lot in IDEs including Eclipse, NetBeans and IDEA, and it works for us. I suggest giving it a try and seeing if

Download an artifact and its dependencies without a pom.xml

2017-03-02 Thread Curtis Rueden
Hi everyone, Is there an easy way to download an artifact and its dependencies to a folder locally? * dependency:get will download a single artifact without needing a pom.xml. * dependency:copy-dependencies will copy the dependencies of the current project to a target location. But can these

Re: Defining a property designed to be overridden?

2017-03-02 Thread org . apache . maven . user
'Ello. On 2017-03-02T08:16:43 -0600 Curtis Rueden wrote: > Hi, > > > I do actually want to enforce this, the issue is that I only want to > > enforce it as far as the first ancestor. > > Sorry if you stated otherwise in your writeup, but my understanding is that > you

RE: [EXTERNAL] [ANN] Apache Maven Version 3.5.0-alpha-1 Released

2017-03-02 Thread Justin Georgeson
There's already MNG-5585 [1] for declaring credentials for authentication realms insettings.xml, so that Maven could choose the credentials that match the challenge by realm instead of hard coding the mapping of each to a . [1] https://issues.apache.org/jira/browse/MNG-5585 -Original