Re: BOM files referencing optional dependencies

2023-06-18 Thread Hervé Boutemy
cü a écrit : > Hello, > > Is it considered good practice to reference optional dependencies in BOM > files? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: BOM files referencing optional dependencies

2023-06-17 Thread Tamás Cservenák
I would say yes. My reasoning: BOM is bill of materials, ANY materials potentially needed for a library. Otoh, optional dependencies have to be explicitly listed by consumers (POM consuming your library). Hence, you will help your consumer by giving them predefined version to use, IF they

Re: BOM files referencing optional dependencies

2023-06-17 Thread Garret Wilson
the time you import a BOM into the `` section, /everything/ in the BOM is optional until it is declared to be actually used separately in the actual `` section of the POM or one of its descendants. Garret On 6/17/2023 12:32 PM, Ceki Gülcü wrote: Hello, Is it considered good practice to refere

Re: BOM files referencing optional dependencies

2023-06-17 Thread Ceki Gülcü
On 6/17/2023 9:32 PM, Ceki Gülcü wrote: > > Hello, > > Is it considered good practice to reference optional dependencies in BOM > files? My question is probably silly as BOM files are reserved for declaring artifacts a project builds itself and not for dependencies, option

BOM files referencing optional dependencies

2023-06-17 Thread Ceki Gülcü
Hello, Is it considered good practice to reference optional dependencies in BOM files? -- Ceki Gülcü Sponsoring SLF4J/logback/reload4j at https://github.com/sponsors/qos-ch - To unsubscribe, e-mail: users-unsubscr

Re: Best practice for "optional" dependencies?

2015-02-06 Thread Ron Wheeler
ansitive dependency. That is: we depend on someone else's artifact (let's call it A), which itself depends *in some circumstances* on a third artifact (from a third source) which I'll call "B". That is: if you never trigger a certain feature of A then it doesn't rea

Re: Best practice for "optional" dependencies?

2015-02-06 Thread Curtis Rueden
ror, >> and handle the error in a more appropriate way for your users? >> >> Regards, >> Curtis >> >> On Thu, Jan 22, 2015 at 10:48 AM, Mark H. Wood wrote: >> >> I'm working on a project which has an "optional" transitive >>> d

Re: Best practice for "optional" dependencies?

2015-02-04 Thread Ron Wheeler
's artifact (let's call it A), which itself depends *in some circumstances* on a third artifact (from a third source) which I'll call "B". That is: if you never trigger a certain feature of A then it doesn't really need B. A expresses this by making B a dependency with

Re: Best practice for "optional" dependencies?

2015-02-04 Thread Curtis Rueden
l call "B". That is: if you > never trigger a certain feature of A then it doesn't really need B. A > expresses this by making B a dependency with provided. > > I feel that this is an abuse of the dependency mechanism, and that > optional dependencies should not be d

Re: Best practice for "optional" dependencies?

2015-01-22 Thread Ron Wheeler
ances* on a third artifact (from a third source) which I'll call "B". That is: if you never trigger a certain feature of A then it doesn't really need B. A expresses this by making B a dependency with provided. I feel that this is an abuse of the dependency mechanism, and tha

Best practice for "optional" dependencies?

2015-01-22 Thread Mark H. Wood
f you never trigger a certain feature of A then it doesn't really need B. A expresses this by making B a dependency with provided. I feel that this is an abuse of the dependency mechanism, and that optional dependencies should not be declared to Maven as dependencies at all. I think that

Re: Nice article discussing optional dependencies

2012-08-08 Thread Wayne Fay
> any idea where his background jpg was shot? It changes every time you refresh the page. The author also tweeted "My blog background picture will now change regularly and draw from the tens of thousands of photos from my trips to 63 countries so far." So I'm afraid you'd have to ask him directly

RE: Nice article discussing optional dependencies

2012-08-08 Thread Martin Gainty
> Date: Wed, 8 Aug 2012 07:23:00 -0400 > From: rwhee...@artifact-software.com > To: users@maven.apache.org > Subject: Nice article discussing optional dependencies > > This is a nicely illustrated and fairly concise discussion about > handling optional dependencies. > h

Nice article discussing optional dependencies

2012-08-08 Thread Ron Wheeler
This is a nicely illustrated and fairly concise discussion about handling optional dependencies. http://www.axelfontaine.com/2012/08/optional-dependency-strategies-for-java.html Enjoy Ron -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype

Optional dependencies based on classifier

2011-05-05 Thread Phillip Hellewell
Is there any way to toggle which dependencies are optional, based on the classifier? E.g., if we have these dependencies: A -> X, Y, Z B -> A When B depends on A, it transitively inherits X, Y, and Z. Now let's suppose A produces multiple zips (different classifiers) using the assembly plugin.

Re: How to include Optional dependencies?

2007-05-11 Thread Wayne Fay
o not have it defined as a dependency in the pom. When the test that used shale-test failed I had to determine the failure was due to a missing dependency that was defined in shale-test's pom. Thus the following questions. 1) Is their a way I can include all of a dependencies optional depend

How to include Optional dependencies?

2007-05-11 Thread Paul Spencer
n the test that used shale-test failed I had to determine the failure was due to a missing dependency that was defined in shale-test's pom. Thus the following questions. 1) Is their a way I can include all of a dependencies optional dependencies without knowing wha

Re: optional dependencies got pull into my web app?

2007-04-27 Thread Dan Tran
My bad, it must be Friday!!! how did i missed read that in the pom? :( Thanks for pointing it out. -D On 4/27/07, Heinrich Nirschl <[EMAIL PROTECTED]> wrote: On Fri, 2007-04-27 at 16:04 -0700, Dan Tran wrote: > Hello, my webapp depends on commons-logging-1.1 which has a punch of > optional j

Re: optional dependencies got pull into my web app?

2007-04-27 Thread Heinrich Nirschl
On Fri, 2007-04-27 at 16:04 -0700, Dan Tran wrote: > Hello, my webapp depends on commons-logging-1.1 which has a punch of > optional jars and they are pull into my WEB-INF/lib directory > is it a expected behavior, the optional depdendency seems to disagree with > that According to the commons-lo

optional dependencies got pull into my web app?

2007-04-27 Thread Dan Tran
Hello, my webapp depends on commons-logging-1.1 which has a punch of optional jars and they are pull into my WEB-INF/lib directory is it a expected behavior, the optional depdendency seems to disagree with that here is a pom to produce a the issue, makesure to create a empty src/main/webapp/WEB

Include optional dependencies

2007-04-23 Thread Daniel Beland
Hi, I am presently converting our projects from maven 1.1 to maven 2. I must say that the transitive dependencies help a lot to reduce the pom and makes upgrades easier. But I would like to include optional dependencies as well, without having to explicitly include them myself in the pom. For

Re: Assembly plugin and optional dependencies

2006-05-28 Thread Edwin Punzalan
have a pom file which includes dependency=A as scope=compile, optional=true. I would like the assembly plugin to add all optional dependencies in a separate directory than the non-optional ones... any way to do this? I currently have: false runtime And it puts

Assembly plugin and optional dependencies

2006-05-17 Thread Guilherme Silveira
I have a pom file which includes dependency=A as scope=compile, optional=true. I would like the assembly plugin to add all optional dependencies in a separate directory than the non-optional ones... any way to do this? I currently have: false runtime And it puts

Re: Optional dependencies

2006-01-02 Thread Jochen Wiedmann
Brett Porter wrote: Create a profile, activated by the jdk, and include the dependency within it. Thanks, read through the docs and this seems to be fine. I was missing one feature, though, which I have filed as MNG-1910: The jdk element should allow values like 1.4+. Jochen -

Re: Optional dependencies

2006-01-01 Thread Brett Porter
Optional was not the solution to his original mail (I emailed him separately about using profiles in this instance). I just wanted to answer your question about the use of optional. - Brett On 1/2/06, ir. ing. Jan Dockx <[EMAIL PROTECTED]> wrote: > Ok, but in the original mail, Jochen talks abo

Re: Optional dependencies

2006-01-01 Thread ir. ing. Jan Dockx
Ok, but in the original mail, Jochen talks about the requirements of his _users_, not of the developers of the main project. And users of his users need those dependencies transitively … On 1 Jan 2006, at 23:48, Brett Porter wrote: The optional tag is *only* for the purposes of transitive depen

Re: Optional dependencies

2006-01-01 Thread Brett Porter
The optional tag is *only* for the purposes of transitive dependencies. It's not really intended for use in a real Maven build. - Brett On 1/2/06, ir. ing. Jan Dockx <[EMAIL PROTECTED]> wrote: > Frankly, I have no idea ;-). I knew the tag existed, but have no > experience with it yet, although I

Re: Optional dependencies

2006-01-01 Thread Brett Porter
Create a profile, activated by the jdk, and include the dependency within it. Cheers, Brett On 1/2/06, Jochen Wiedmann <[EMAIL PROTECTED]> wrote: > > Hi, > > are there any recommendations on how to handle dependencies, which > aren't always required? > > For example, I am using JDK 1.5 classes in

Re: Optional dependencies

2006-01-01 Thread ir. ing. Jan Dockx
Frankly, I have no idea ;-). I knew the tag existed, but have no experience with it yet, although I do recognize your problem (see http://cvs.peopleware.be/training/maven/maven2/dependencies.html, Issues). I briefly talked with Vincent Massol during JavaPolis (hi Vincent -- nice chat), and he wasn'

Re: Optional dependencies

2006-01-01 Thread Jochen Wiedmann
ir. ing. Jan Dockx wrote: Have you tried the tag for the dependency? Thank you. To be honest, I wasn't aware of this tag. Reading through the docs, I do, however, believe, that it is a partial solution only, isn't it? I'd prefer a solution where Maven automatically detects the presence or

Re: Optional dependencies

2006-01-01 Thread ir. ing. Jan Dockx
Have you tried the tag for the dependency? On 1 Jan 2006, at 14:25, Jochen Wiedmann wrote: Hi, are there any recommendations on how to handle dependencies, which aren't always required? For example, I am using JDK 1.5 classes in some projects like javax.xml.Constants, or javax.xml.namespace.Q

Optional dependencies

2006-01-01 Thread Jochen Wiedmann
Hi, are there any recommendations on how to handle dependencies, which aren't always required? For example, I am using JDK 1.5 classes in some projects like javax.xml.Constants, or javax.xml.namespace.QName. For JDK 1.3, and JDK 1.4 users, these are available as dependencies like gero

Re: [m2] are optional dependencies implemented?

2005-10-11 Thread Brett Porter
true - Brett On 10/12/05, Dave Brondsema <[EMAIL PROTECTED]> wrote: > > I have a POM that declares some optional dependencies, like this: > > > xerces > xerces > 2.0.2 > > > > These are getting included as a transitive de

[m2] are optional dependencies implemented?

2005-10-11 Thread Dave Brondsema
I have a POM that declares some optional dependencies, like this: xerces xerces 2.0.2 These are getting included as a transitive dependency. Am I doing something wrong or is unimplemented? -- Dave Brondsema Software Developer Cornerstone University