Re: [VOTE] Require Java 17 for Maven 4

2024-02-28 Thread Joseph Kesselman
+. 8

Xalan-J's next release should be Maven-based. But we wanted to put out one Java 
8-compatible-but-deprecated build before moving to Java 17.

Of course as part of that we could say Maven3 is compatible but deprecated. I 
haven't yet tested with Maven 4, though, and given my limited Maven skill if 
something odd turns up I may need to get help resolving that.

We can try a spin of that as a sanity check...


--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

Caveat: Opinionated old geezer with overcompensated writer's block. May be 
redundant, verbose, prolix, sesquipedalian, didactic, officious, or redundant.

From: Gary Gregory 
Sent: Wednesday, February 28, 2024 7:44:49 AM
To: Maven Users List 
Cc: Maven Developers List 
Subject: Re: [VOTE] Require Java 17 for Maven 4

+1

Also good idea to remind folks to stay focused in a vote thread.

Gary

On Wed, Feb 28, 2024, 2:31 AM Benjamin Marwell  wrote:

> Hi Maven Devs/Users/Committers and PMC members!
>
> After several discussions on the mailing lists, I would like to
> start a vote in favour of setting the minimal Java bytecode target
> of Maven-Core 4 to 17 and hence require Java 17 for Maven 4.
>
> This is a procedural majority vote [1*]:
> You can also vote with fractions and negative votes are not vetoes.
>
> Please also notice:
> * Maven 3 will stay at Java 8 no matter what.
> * We may raise Maven 4 to JDK 21 later if we feel like it (depending
> on the release date).
>   This is not part of this vote.
> * The linked PR is not part of this vote (this is not a code vote).
>   But you may take a look at it to understand the intended change.
>
> PR: https://github.com/apache/maven/pull/1430
>
> Maven-Parent will not be raised with this vote, the other PR is not
> part of this vote.
>
> Please refrain from starting discussions in this thread, but do
> include a reasoning on downvotes and feel free to start a new
> discussion on the mailing list, or comment on the existing ones.
>
> ---
>
> Vote open for 72 hours:
>
> [ ] +1 (set JDK17 min version for Maven 4.x)
> [ ] +0
> [ ] -1 (please include reasoning)
>
> ---
>
> - Ben
>
> [1*]: https://www.apache.org/foundation/voting.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


RE: Re: Re: Re: Re: Inconsistent dependency resolution behaviour for concurrent multi-module build can cause failures

2024-02-28 Thread Joseph Leonard
Hi Tamás,
Is there an Maven issue out there to track this issue (and your fix for it)? I 
haven’t been able to get access to the Maven Jira project so have not been able 
to raise the issue myself.
Thanks,
Joe

On 2024/02/08 10:09:31 Tamás Cservenák wrote:
> Seems we are on track with this. To prove my last-night theory I created a
> "hack" (is really just that) and guess what?
> It makes reproducer behave "as expected":
> https://github.com/apache/maven/pull/1406
>
> T
>
> On Wed, Feb 7, 2024 at 10:05 PM Tamás Cservenák  wrote:
>
> > Howdy,
> >
> > Thank you very much, the reproducer works. Did not dig thru it fully, but
> > here are some related issues:
> >
> > https://issues.apache.org/jira/browse/MNG-8028 (funny thing, I created
> > this few weeks ago)
> > https://issues.apache.org/jira/browse/MNG-6300
> >
> > Will report back tomorrow (EU TZ)
> > T
> >
> >
> > On Wed, Feb 7, 2024 at 7:48 PM Joseph Leonard <
> > joseph.leon...@alfasystems.com> wrote:
> >
> >> Hi Tamás,
> >> I have created a simple example here:
> >> https://github.com/josple/mvn-multibuild-issue
> >> Hopefully the README is clear enough – let me know if I can clarify
> >> anything.
> >> Thanks,
> >> Joe
> >>
> >> On 2024/02/07 17:33:08 Tamás Cservenák wrote:
> >> > Howdy,
> >> >
> >> > In that case, there is something fishy with the project, my blind guess
> >> > would be some "hidden" inter-module dependency maybe?
> >> >
> >> > Can you provide access to source, or, if not feasible, could you provide
> >> > some reproducer and publish it on Github/Gitlab/whatever (maybe even
> >> just
> >> > send it privately as ML strips off attachments and images) for us to see
> >> > this in action?
> >> >
> >> > Thanks
> >> > T
> >> >
> >> > On Wed, Feb 7, 2024 at 6:29 PM Joseph Leonard <
> >> > joseph.leon...@alfasystems.com> wrote:
> >> >
> >> > > Hi Tamás,
> >> > > We have previously played around a bit with mvnd but not takari
> >> directly –
> >> > > I will have a play with it. With regards to this issue, using the
> >> takari
> >> > > smart builder unfortunately doesn’t resolve the issue.
> >> > > Joe
> >> > >
> >> > > On 2024/02/07 11:41:22 Tamás Cservenák wrote:
> >> > > > Can you please try smart builder instead?
> >> > > > https://github.com/takari/takari-smart-builder
> >> > > >
> >> > > > (note: smart builder is used by mvnd as well)
> >> > > >
> >> > > > The difference between the two can be seen here:
> >> > > > http://takari.io/book/30-team-maven.html#takari-smart-builder
> >> > > >
> >> > > > On Wed, Feb 7, 2024 at 11:50 AM Joseph Leonard <
> >> > > > joseph.leon...@alfasystems.com> wrote:
> >> > > >
> >> > > > > Hi Tamás,
> >> > > > > Yeah, this was unexpected to me initially as well. From what I
> >> can tell
> >> > > > > the Maven reactor only considers direct dependencies (i.e. not
> >> > > transitive
> >> > > > > dependencies) between the modules in the reactor when working out
> >> the
> >> > > build
> >> > > > > graph. For example if you have a simple linear dependency chain
> >> of:
> >> > > > > One --> Two --> Three --> Four --> Five
> >> > > > > Then invoking “mvn clean verify -pl One,Two,Four,Five -T 2 will
> >> result
> >> > > in
> >> > > > > two ‘graphs’ being built in parallel ([One,Two] and [Four,Five]).
> >> I
> >> > > assume
> >> > > > > this is as designed because it actually offers quite powerful
> >> > > functionality
> >> > > > > to improve the parallelism in your build. An example of where
> >> this is
> >> > > legit
> >> > > > > is when:
> >> > > > >
> >> > > > >   *   “Four” has a test scope dependency on “Five”
> >> > > > >   *   “One” has a test scoped dependency on “Two”
> >> > > > > If you made a src code change to “Five” and “Two” then it would be
> >> > > sa

RE: How does maven resolve inter-module dependencies in a multi-module build?

2024-02-15 Thread Joseph Leonard
Builds in the reactor are always favoured over the m2 repo because the builds 
in the reactor will be up-to-date whereas the jar in the repo may be out of 
date.

If you run mvn compile in directory B then you will not be running a multi 
module build - and therefore module A will not be in the reactor. This is why 
the m2 repo will always be used for module A in this scenario.

Joe 

-Original Message-
From: Siddharth Jain  
Sent: Thursday, February 15, 2024 7:50 PM
To: Maven Users List 
Subject: Re: How does maven resolve inter-module dependencies in a multi-module 
build?

External Email: Please be vigilant and check the contents and source for signs 
of malicious activity.

thanks Joe. but then if classes are available both in the target directory of 
module A as well as a jar file in M2 repository which takes precedence?

also i have noticed that while running mvn compile from the root works, running 
mvn compile from the directory of B does not pick up classes from A's target 
directory. it only picks up from M2 repo in that case.

On Thu, Feb 15, 2024 at 11:28 AM Joseph Leonard < 
joseph.leon...@alfasystems.com> wrote:

> Hi Sid,
> It will resolve the classes directory of module A that will have been 
> populated during module A's 'compile' build.
> Joe
>
> On 2024/02/15 17:50:44 Siddharth Jain wrote:
> > Hello,
> >
> > I am working on a multi-module Maven build. e.g., I have a root 
> > directory containing 3 sub-projects A, B, C and a parent pom defined 
> > in the root directory. I notice that I can run mvn compile from the 
> > root directory
> and
> > it will build the 3 projects. The projects may have 
> > inter-dependencies e.g., B depends on A and let's say C depends on both A 
> > and B.
> >
> > My question is while building B how does maven locate the compiled 
> > code
> of
> > A (the dependency) since maven compile by itself does not install 
> > the
> built
> > artifact into M2 repository?
> >
> > Sid
> >
>


RE: How does maven resolve inter-module dependencies in a multi-module build?

2024-02-15 Thread Joseph Leonard
Hi Sid,
It will resolve the classes directory of module A that will have been populated 
during module A's 'compile' build.
Joe

On 2024/02/15 17:50:44 Siddharth Jain wrote:
> Hello,
>
> I am working on a multi-module Maven build. e.g., I have a root directory
> containing 3 sub-projects A, B, C and a parent pom defined in the root
> directory. I notice that I can run mvn compile from the root directory and
> it will build the 3 projects. The projects may have inter-dependencies
> e.g., B depends on A and let's say C depends on both A and B.
>
> My question is while building B how does maven locate the compiled code of
> A (the dependency) since maven compile by itself does not install the built
> artifact into M2 repository?
>
> Sid
>


RE: Re: Re: Re: Re: Re: Inconsistent dependency resolution behaviour for concurrent multi-module build can cause failures

2024-02-08 Thread Joseph Leonard
Hey,

Yeah, exactly: ideally we want module-b to be resolved in different ways within 
the same reactor. I noticed that this kind of already happens (albeit in a 
simpler way): In my reproducer testing if you play with the test timeouts to 
dictate the module build order then with the same modules in the reactor you 
can get different resolution behaviour:
* If "app" builds before "module-b" has started compiling then "app" will 
resolve "module-b" from the local repo
* If "app" builds after "module-b" has compiled but before "module-b" has 
packaged then "app" will resolve the "module-b" class directory (this is the 
out-of-the-box scenario the reproducer produces)
* If "app" builds after "module-b" has packaged then "app" will resolve the 
"module-b" jar from the "module-b" target directory

So within this logic to perform different types of resolves, it would be neat 
if the reactor could perform an initial check first:
* if the dependency being resolved is within the same 'sub-build graph' of the 
module requesting the resolve then look within the reactor (current behaviour)
* otherwise, only resolve from the local repository

I don't know whether the code architecture means this is quite easy to do or 
very difficult. But to be fair, I think this extra parallelism opportunity is a 
bit of niche edge case and it probably isn't worth it if this is very complex 
to achieve (or considered a smell generally by the community!)

On 2024/02/08 Tamás Cservenák wrote
> Howdy,
> 
> Well, sadly, Maven currently has no means to make one module "this and that" 
> at the same time.
> It is either in the reactor or is out of it.
> To me, it sounds like you want one reactor, but where module-b is "out" and 
> 'in", at the same time (within same session)
> 
> 
> T
> 
> On Thu, Feb 8, 2024 at 1:27 PM Joseph Leonard < 
> joseph.leon...@alfasystems.com> wrote:
> 
> > Hey,
> > We don't need the module-b jar built in the reactor to be included in 
> > the war if the changes made in module-b won't affect the war. Instead, 
> > in this scenario, we're fine with using a jar resolved from the local 
> > repository.
> > The requisites for this scenario are:
> >
> >   *   Any change made to module-b is only in its test tree
> >   *   The only changes made to the direct and transitive dependencies of
> > module-b are to its test scoped dependencies So basically module-b is 
> > only in the reactor for verification purposes rather than ‘src 
> > packaging’ purposes.
> > Thanks,
> > Joe
> >
> > On 2024/02/08 12:12:03 Tamás Cservenák wrote:
> > > Hej,
> > >
> > > yes, basically the "hack" is well described by you:
> > > - it retains "full' reactor project
> > > - introduces "needs build" on project
> > > - when it comes to building, it skips the project if flag set
> > >
> > > This results that module-b -> app link is not lost.
> > > And as for your parallelization request: the truth is that there IS 
> > > and edge between app and module-b (via module-a), so despite 
> > > module-a is "done", its transitive module-b is not done, hence you 
> > > cannot build these two in parallel, as you do have an edge between app 
> > > and module-b.
> > >
> > > Or to invert the question: what module-b JAR you want to have 
> > > included in app WAR, when building? The one built, or the one from 
> > > the local repository? If the latter, why are you building it in the first 
> > > place?
> > >
> > > On Thu, Feb 8, 2024 at 12:06 PM Joseph Leonard < 
> > > joseph.leon...@alfasystems.com> wrote:
> > >
> > > > Hi Tamás,
> > > > Thank you for hacking around this so rapidly. I am not familiar 
> > > > with
> > the
> > > > maven code base, so let me know if I have misinterpreted the 
> > > > change: Is your hack to:
> > > >
> > > >   1.  Retain the full multi-module build dependency graph such 
> > > > that the build graph always remains consistent regardless of whether a 
> > > > “-pl”
> > arg has
> > > > been provided
> > > >   2.  Introduce a skip build option to satisfy the functionality 
> > > > of the “-pl” arg: The reactor will report the module has been 
> > > > built but the
> > build
> > > > is basically a no-op
> > > > If so, this does resolve the issue but at th

RE: Re: Re: Re: Re: Re: Inconsistent dependency resolution behaviour for concurrent multi-module build can cause failures

2024-02-08 Thread Joseph Leonard
Hey,
We don't need the module-b jar built in the reactor to be included in the war 
if the changes made in module-b won't affect the war. Instead, in this 
scenario, we're fine with using a jar resolved from the local repository. The 
requisites for this scenario are:

  *   Any change made to module-b is only in its test tree
  *   The only changes made to the direct and transitive dependencies of 
module-b are to its test scoped dependencies
So basically module-b is only in the reactor for verification purposes rather 
than ‘src packaging’ purposes.
Thanks,
Joe

On 2024/02/08 12:12:03 Tamás Cservenák wrote:
> Hej,
>
> yes, basically the "hack" is well described by you:
> - it retains "full' reactor project
> - introduces "needs build" on project
> - when it comes to building, it skips the project if flag set
>
> This results that module-b -> app link is not lost.
> And as for your parallelization request: the truth is that there IS and
> edge between app and module-b (via module-a), so despite module-a is
> "done", its transitive module-b is not done, hence you cannot build these
> two in parallel, as you do have an edge between app and module-b.
>
> Or to invert the question: what module-b JAR you want to have included in
> app WAR, when building? The one built, or the one from the local
> repository? If the latter, why are you building it in the first place?
>
> On Thu, Feb 8, 2024 at 12:06 PM Joseph Leonard <
> joseph.leon...@alfasystems.com> wrote:
>
> > Hi Tamás,
> > Thank you for hacking around this so rapidly. I am not familiar with the
> > maven code base, so let me know if I have misinterpreted the change: Is
> > your hack to:
> >
> >   1.  Retain the full multi-module build dependency graph such that the
> > build graph always remains consistent regardless of whether a “-pl” arg has
> > been provided
> >   2.  Introduce a skip build option to satisfy the functionality of the
> > “-pl” arg: The reactor will report the module has been built but the build
> > is basically a no-op
> > If so, this does resolve the issue but at the cost of losing the
> > opportunity to gain extra parallelism in the build.
> > What I was wondering may be possible (without any idea of how feasible it
> > would be to implement) would be the opportunity to recognise in the
> > multi-build distinct build graphs and then keep isolation in the reactor
> > between these graphs. To elaborate, in the reproducer scenario there would
> > be two distinct graphs:
> >
> >   *   "testsupport-module-1" followed by "app"
> >   *   "testsupport-module-2" followed by "module-b"
> > Ideally these two graphs build in parallel to each other and even if
> > ultimately there is a dependency between them they NEVER resolve that
> > dependency from within reactor they instead always resolve from the
> > external Maven cache. The key statement here is that if a user presents a
> > list of modules to be built then they really need to be sure that the
> > DIRECT dependencies between these modules truly represent the build
> > graph(s) they want. For tools like gitflow-incremental-builder which are
> > designed to carefully work out change sets and what needs to build this
> > offers a really powerful opportunity to optimise builds. I appreciate this
> > functionality could also be seen as a gotcha (although tbf this already
> > exists).
> > Thanks,
> > Joe
> >
> >
> > On 2024/02/08 10:09:31 Tamás Cservenák wrote:
> > > Seems we are on track with this. To prove my last-night theory I created
> > a
> > > "hack" (is really just that) and guess what?
> > > It makes reproducer behave "as expected":
> > > https://github.com/apache/maven/pull/1406
> > >
> > > T
> > >
> > > On Wed, Feb 7, 2024 at 10:05 PM Tamás Cservenák 
> > wrote:
> > >
> > > > Howdy,
> > > >
> > > > Thank you very much, the reproducer works. Did not dig thru it fully,
> > but
> > > > here are some related issues:
> > > >
> > > > https://issues.apache.org/jira/browse/MNG-8028 (funny thing, I created
> > > > this few weeks ago)
> > > > https://issues.apache.org/jira/browse/MNG-6300
> > > >
> > > > Will report back tomorrow (EU TZ)
> > > > T
> > > >
> > > >
> > > > On Wed, Feb 7, 2024 at 7:48 PM Joseph Leonard <
> > > > joseph.leon...@alfasystems.com> wrote:
> > > >
> > > >> Hi T

RE: Re: Re: Re: Re: Inconsistent dependency resolution behaviour for concurrent multi-module build can cause failures

2024-02-08 Thread Joseph Leonard
Hi Tamás,
Thank you for hacking around this so rapidly. I am not familiar with the maven 
code base, so let me know if I have misinterpreted the change: Is your hack to:

  1.  Retain the full multi-module build dependency graph such that the build 
graph always remains consistent regardless of whether a “-pl” arg has been 
provided
  2.  Introduce a skip build option to satisfy the functionality of the “-pl” 
arg: The reactor will report the module has been built but the build is 
basically a no-op
If so, this does resolve the issue but at the cost of losing the opportunity to 
gain extra parallelism in the build.
What I was wondering may be possible (without any idea of how feasible it would 
be to implement) would be the opportunity to recognise in the multi-build 
distinct build graphs and then keep isolation in the reactor between these 
graphs. To elaborate, in the reproducer scenario there would be two distinct 
graphs:

  *   "testsupport-module-1" followed by "app"
  *   "testsupport-module-2" followed by "module-b"
Ideally these two graphs build in parallel to each other and even if ultimately 
there is a dependency between them they NEVER resolve that dependency from 
within reactor they instead always resolve from the external Maven cache. The 
key statement here is that if a user presents a list of modules to be built 
then they really need to be sure that the DIRECT dependencies between these 
modules truly represent the build graph(s) they want. For tools like 
gitflow-incremental-builder which are designed to carefully work out change 
sets and what needs to build this offers a really powerful opportunity to 
optimise builds. I appreciate this functionality could also be seen as a gotcha 
(although tbf this already exists).
Thanks,
Joe


On 2024/02/08 10:09:31 Tamás Cservenák wrote:
> Seems we are on track with this. To prove my last-night theory I created a
> "hack" (is really just that) and guess what?
> It makes reproducer behave "as expected":
> https://github.com/apache/maven/pull/1406
>
> T
>
> On Wed, Feb 7, 2024 at 10:05 PM Tamás Cservenák  wrote:
>
> > Howdy,
> >
> > Thank you very much, the reproducer works. Did not dig thru it fully, but
> > here are some related issues:
> >
> > https://issues.apache.org/jira/browse/MNG-8028 (funny thing, I created
> > this few weeks ago)
> > https://issues.apache.org/jira/browse/MNG-6300
> >
> > Will report back tomorrow (EU TZ)
> > T
> >
> >
> > On Wed, Feb 7, 2024 at 7:48 PM Joseph Leonard <
> > joseph.leon...@alfasystems.com> wrote:
> >
> >> Hi Tamás,
> >> I have created a simple example here:
> >> https://github.com/josple/mvn-multibuild-issue
> >> Hopefully the README is clear enough – let me know if I can clarify
> >> anything.
> >> Thanks,
> >> Joe
> >>
> >> On 2024/02/07 17:33:08 Tamás Cservenák wrote:
> >> > Howdy,
> >> >
> >> > In that case, there is something fishy with the project, my blind guess
> >> > would be some "hidden" inter-module dependency maybe?
> >> >
> >> > Can you provide access to source, or, if not feasible, could you provide
> >> > some reproducer and publish it on Github/Gitlab/whatever (maybe even
> >> just
> >> > send it privately as ML strips off attachments and images) for us to see
> >> > this in action?
> >> >
> >> > Thanks
> >> > T
> >> >
> >> > On Wed, Feb 7, 2024 at 6:29 PM Joseph Leonard <
> >> > joseph.leon...@alfasystems.com> wrote:
> >> >
> >> > > Hi Tamás,
> >> > > We have previously played around a bit with mvnd but not takari
> >> directly –
> >> > > I will have a play with it. With regards to this issue, using the
> >> takari
> >> > > smart builder unfortunately doesn’t resolve the issue.
> >> > > Joe
> >> > >
> >> > > On 2024/02/07 11:41:22 Tamás Cservenák wrote:
> >> > > > Can you please try smart builder instead?
> >> > > > https://github.com/takari/takari-smart-builder
> >> > > >
> >> > > > (note: smart builder is used by mvnd as well)
> >> > > >
> >> > > > The difference between the two can be seen here:
> >> > > > http://takari.io/book/30-team-maven.html#takari-smart-builder
> >> > > >
> >> > > > On Wed, Feb 7, 2024 at 11:50 AM Joseph Leonard <
> >> > > > joseph.leon...@alfasystems.com> wrote:
> >> 

RE: Re: Re: Re: Inconsistent dependency resolution behaviour for concurrent multi-module build can cause failures

2024-02-07 Thread Joseph Leonard
Hi Tamás,
I have created a simple example here: 
https://github.com/josple/mvn-multibuild-issue
Hopefully the README is clear enough – let me know if I can clarify anything.
Thanks,
Joe

On 2024/02/07 17:33:08 Tamás Cservenák wrote:
> Howdy,
>
> In that case, there is something fishy with the project, my blind guess
> would be some "hidden" inter-module dependency maybe?
>
> Can you provide access to source, or, if not feasible, could you provide
> some reproducer and publish it on Github/Gitlab/whatever (maybe even just
> send it privately as ML strips off attachments and images) for us to see
> this in action?
>
> Thanks
> T
>
> On Wed, Feb 7, 2024 at 6:29 PM Joseph Leonard <
> joseph.leon...@alfasystems.com> wrote:
>
> > Hi Tamás,
> > We have previously played around a bit with mvnd but not takari directly –
> > I will have a play with it. With regards to this issue, using the takari
> > smart builder unfortunately doesn’t resolve the issue.
> > Joe
> >
> > On 2024/02/07 11:41:22 Tamás Cservenák wrote:
> > > Can you please try smart builder instead?
> > > https://github.com/takari/takari-smart-builder
> > >
> > > (note: smart builder is used by mvnd as well)
> > >
> > > The difference between the two can be seen here:
> > > http://takari.io/book/30-team-maven.html#takari-smart-builder
> > >
> > > On Wed, Feb 7, 2024 at 11:50 AM Joseph Leonard <
> > > joseph.leon...@alfasystems.com> wrote:
> > >
> > > > Hi Tamás,
> > > > Yeah, this was unexpected to me initially as well. From what I can tell
> > > > the Maven reactor only considers direct dependencies (i.e. not
> > transitive
> > > > dependencies) between the modules in the reactor when working out the
> > build
> > > > graph. For example if you have a simple linear dependency chain of:
> > > > One --> Two --> Three --> Four --> Five
> > > > Then invoking “mvn clean verify -pl One,Two,Four,Five -T 2 will result
> > in
> > > > two ‘graphs’ being built in parallel ([One,Two] and [Four,Five]). I
> > assume
> > > > this is as designed because it actually offers quite powerful
> > functionality
> > > > to improve the parallelism in your build. An example of where this is
> > legit
> > > > is when:
> > > >
> > > >   *   “Four” has a test scope dependency on “Five”
> > > >   *   “One” has a test scoped dependency on “Two”
> > > > If you made a src code change to “Five” and “Two” then it would be
> > safe to
> > > > build [One,Two] and [Four,Five] in parallel because you know the
> > changes
> > > > within these graphs cannot impact each other.
> > > > Joe
> > > >
> > > > On 2024/02/06 21:37:42 Tamás Cservenák wrote:
> > > > > Howdy,
> > > > >
> > > > > To me this looks like Maven is not aware that the App depends on
> > > > ModuleB...
> > > > > Are they "plain dependency" linked? Or what kind of dependency we
> > talk
> > > > > about here?
> > > > > In short: why would App start while ModuleB (upstream dep) is not
> > done?
> > > > > Something is fishy here.
> > > > >
> > > > > T
> > > > >
> > > > >
> > > > > On Tue, Feb 6, 2024 at 11:40 AM Joseph Leonard <
> > > > > joseph.leon...@alfasystems.com> wrote:
> > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > It would be great to get any thoughts on whether the following is a
> > > > defect:
> > > > > >
> > > > > >
> > > > > > Issue details:
> > > > > > tl;dr
> > > > > >
> > > > > > Maven can resolve dependencies either from:
> > > > > >
> > > > > >   *   an external repo
> > > > > >   *   a class directory of a module being built within the reactor
> > > > > >   *   a packaged jar of a module being built within the reactor
> > > > > >
> > > > > > If you run a concurrent multi-module build it is possible to get a
> > race
> > > > > > condition whereby the build of module Foo may resolve module Bar
> > from
> > > > > > either of the three resolution channels. This inconsistency can
&g

RE: Re: Re: Inconsistent dependency resolution behaviour for concurrent multi-module build can cause failures

2024-02-07 Thread Joseph Leonard
Hi Tamás,
We have previously played around a bit with mvnd but not takari directly – I 
will have a play with it. With regards to this issue, using the takari smart 
builder unfortunately doesn’t resolve the issue.
Joe

On 2024/02/07 11:41:22 Tamás Cservenák wrote:
> Can you please try smart builder instead?
> https://github.com/takari/takari-smart-builder
>
> (note: smart builder is used by mvnd as well)
>
> The difference between the two can be seen here:
> http://takari.io/book/30-team-maven.html#takari-smart-builder
>
> On Wed, Feb 7, 2024 at 11:50 AM Joseph Leonard <
> joseph.leon...@alfasystems.com> wrote:
>
> > Hi Tamás,
> > Yeah, this was unexpected to me initially as well. From what I can tell
> > the Maven reactor only considers direct dependencies (i.e. not transitive
> > dependencies) between the modules in the reactor when working out the build
> > graph. For example if you have a simple linear dependency chain of:
> > One --> Two --> Three --> Four --> Five
> > Then invoking “mvn clean verify -pl One,Two,Four,Five -T 2 will result in
> > two ‘graphs’ being built in parallel ([One,Two] and [Four,Five]). I assume
> > this is as designed because it actually offers quite powerful functionality
> > to improve the parallelism in your build. An example of where this is legit
> > is when:
> >
> >   *   “Four” has a test scope dependency on “Five”
> >   *   “One” has a test scoped dependency on “Two”
> > If you made a src code change to “Five” and “Two” then it would be safe to
> > build [One,Two] and [Four,Five] in parallel because you know the changes
> > within these graphs cannot impact each other.
> > Joe
> >
> > On 2024/02/06 21:37:42 Tamás Cservenák wrote:
> > > Howdy,
> > >
> > > To me this looks like Maven is not aware that the App depends on
> > ModuleB...
> > > Are they "plain dependency" linked? Or what kind of dependency we talk
> > > about here?
> > > In short: why would App start while ModuleB (upstream dep) is not done?
> > > Something is fishy here.
> > >
> > > T
> > >
> > >
> > > On Tue, Feb 6, 2024 at 11:40 AM Joseph Leonard <
> > > joseph.leon...@alfasystems.com> wrote:
> > >
> > > > Hi all,
> > > >
> > > > It would be great to get any thoughts on whether the following is a
> > defect:
> > > >
> > > >
> > > > Issue details:
> > > > tl;dr
> > > >
> > > > Maven can resolve dependencies either from:
> > > >
> > > >   *   an external repo
> > > >   *   a class directory of a module being built within the reactor
> > > >   *   a packaged jar of a module being built within the reactor
> > > >
> > > > If you run a concurrent multi-module build it is possible to get a race
> > > > condition whereby the build of module Foo may resolve module Bar from
> > > > either of the three resolution channels. This inconsistency can result
> > in
> > > > the Maven war plugin sometimes failing to build a functional war file.
> > I
> > > > would expect a consistent resolution would always take place.
> > > >
> > > > Full details
> > > > Scenario
> > > >
> > > > Consider you have a repo with the following structure:
> > > >
> > > >App
> > > >
> > > >  / \
> > > >
> > > > /   \
> > > >
> > > >(compile scope)  (test scope)
> > > >
> > > >   /   \
> > > >
> > > > \/_   _\/
> > > >
> > > >  ModuleA  TestSupportModule1
> > > >
> > > > /
> > > >
> > > >/
> > > >
> > > > (compile scope)
> > > >
> > > >  /
> > > >
> > > >\/_
> > > >
> > > > ModuleB
> > > >
> > > >/
> > > >
> > > >   /
> > > >
> > > > (test scope)
> > > >
> > > > /
> > > >
> > > >   \/_
> > > >
> > > > TestSupportModule2
> > > >
> > > > If you were to make a src code change to the following test support
>

RE: Re: Inconsistent dependency resolution behaviour for concurrent multi-module build can cause failures

2024-02-07 Thread Joseph Leonard
Hi Nils,
Ah I see. We actually already use ‘-pl …’ arguments in conjunction with the 
Develocity Build Cache implementation because we have found this to still 
generate very significant time savings. Primarily because even with hits on the 
build cache there is still fairly substantial time spent resolving cached 
artifacts (and the reactor doing all its goal steps and determining cache 
hits). The other advantage of using ‘-pl …’ is that it gives opportunity for 
even greater parallelism (per my sub-thread example with Tamás).
Joe

On 2024/02/07 10:59:28 Nils Breunese wrote:
> Hi Jospeh,
>
> I didn’t necessarily expect that enabling the extension would solve/avoid the 
> issue you described, but I mentioned it, because it would allow you to not 
> have to specify an argument like '-pl 
> TestSupportModule1,TestSupportModule2,ModuleB,App’ in the first place, 
> because the Build Cache Extension should automatically determine which 
> modules need to be built and for which ones previously cached artifacts can 
> be used.

>
> Nils.
>
> > Op 6 feb 2024, om 15:11 heeft Joseph Leonard  het 
> > volgende geschreven:
> >
> > Thanks Nils,
> > maven-build-cache-extension looks very interesting generally – I will have 
> > a play with it.
> > With regards to this issue, the maven-build-cache-extension overview 
> > references “Subtree support for multimodule projects builds part of the 
> > codebase in isolation” which sounded similar to the solution I am proposing 
> > for this issue. Unfortunately, after enabling the 
> > maven-build-cache-extension I still hit the same issue.

> > Joe
> >
> > On 2024/02/06 12:54:59 Nils Breunese wrote:
> >> I can’t comment on your question directly, but I just wanted to say that 
> >> your use case sounds like it could benefit from the Maven Build Cache 
> >> Extension 
> >> (https://maven.apache.org/extensions/maven-build-cache-extension/).

> >
> >>
> >> Just my 2 cents.
> >>
> >> Nils.
> >>
> >>> Op 6 feb 2024 om 11:40 heeft Joseph Leonard  het 
> >>> volgende geschreven:
> >>>
> >>> Hi all,
> >>>
> >>> It would be great to get any thoughts on whether the following is a 
> >>> defect:
> >>>
> >>>
> >>> Issue details:
> >>> tl;dr
> >>>
> >>> Maven can resolve dependencies either from:
> >>>
> >>> *   an external repo
> >>> *   a class directory of a module being built within the reactor
> >>> *   a packaged jar of a module being built within the reactor
> >>>
> >>> If you run a concurrent multi-module build it is possible to get a race 
> >>> condition whereby the build of module Foo may resolve module Bar from 
> >>> either of the three resolution channels. This inconsistency can result in 
> >>> the Maven war plugin sometimes failing to build a functional war file. I 
> >>> would expect a consistent resolution would always take place.

> >
> >>>
> >>> Full details
> >>> Scenario
> >>>
> >>> Consider you have a repo with the following structure:
> >>>
> >>>  App
> >>>
> >>>/ \
> >>>
> >>>   /   \
> >>>
> >>>  (compile scope)  (test scope)
> >>>
> >>> /   \
> >>>
> >>>   \/_   _\/
> >>>
> >>>ModuleA  TestSupportModule1
> >>>
> >>>   /
> >>>
> >>>  /
> >>>
> >>>   (compile scope)
> >>>
> >>>/
> >>>
> >>>  \/_
> >>>
> >>>   ModuleB
> >>>
> >>>  /
> >>>
> >>> /
> >>>
> >>>   (test scope)
> >>>
> >>>   /
> >>>
> >>> \/_
> >>>
> >>> TestSupportModule2
> >>>
> >>> If you were to make a src code change to the following test support 
> >>> modules:
> >>>
> >>> *   TestSupportModule1
> >>> *   TestSupportModule2
> >>>
> >>> Then the minimum number of modules we need to build to verify the change 
> >>> set is OK is:
> >>>
> >>> *   TestSupportModule1
> &

RE: Re: Inconsistent dependency resolution behaviour for concurrent multi-module build can cause failures

2024-02-07 Thread Joseph Leonard
Hi Tamás,
Yeah, this was unexpected to me initially as well. From what I can tell the 
Maven reactor only considers direct dependencies (i.e. not transitive 
dependencies) between the modules in the reactor when working out the build 
graph. For example if you have a simple linear dependency chain of:
One --> Two --> Three --> Four --> Five
Then invoking “mvn clean verify -pl One,Two,Four,Five -T 2 will result in two 
‘graphs’ being built in parallel ([One,Two] and [Four,Five]). I assume this is 
as designed because it actually offers quite powerful functionality to improve 
the parallelism in your build. An example of where this is legit is when:

  *   “Four” has a test scope dependency on “Five”
  *   “One” has a test scoped dependency on “Two”
If you made a src code change to “Five” and “Two” then it would be safe to 
build [One,Two] and [Four,Five] in parallel because you know the changes within 
these graphs cannot impact each other.
Joe

On 2024/02/06 21:37:42 Tamás Cservenák wrote:
> Howdy,
>
> To me this looks like Maven is not aware that the App depends on ModuleB...
> Are they "plain dependency" linked? Or what kind of dependency we talk
> about here?
> In short: why would App start while ModuleB (upstream dep) is not done?
> Something is fishy here.
>
> T
>
>
> On Tue, Feb 6, 2024 at 11:40 AM Joseph Leonard <
> joseph.leon...@alfasystems.com> wrote:
>
> > Hi all,
> >
> > It would be great to get any thoughts on whether the following is a defect:
> >
> >
> > Issue details:
> > tl;dr
> >
> > Maven can resolve dependencies either from:
> >
> >   *   an external repo
> >   *   a class directory of a module being built within the reactor
> >   *   a packaged jar of a module being built within the reactor
> >
> > If you run a concurrent multi-module build it is possible to get a race
> > condition whereby the build of module Foo may resolve module Bar from
> > either of the three resolution channels. This inconsistency can result in
> > the Maven war plugin sometimes failing to build a functional war file. I
> > would expect a consistent resolution would always take place.
> >
> > Full details
> > Scenario
> >
> > Consider you have a repo with the following structure:
> >
> >App
> >
> >  / \
> >
> > /   \
> >
> >(compile scope)  (test scope)
> >
> >   /   \
> >
> > \/_   _\/
> >
> >  ModuleA  TestSupportModule1
> >
> > /
> >
> >/
> >
> > (compile scope)
> >
> >  /
> >
> >\/_
> >
> > ModuleB
> >
> >/
> >
> >   /
> >
> > (test scope)
> >
> > /
> >
> >   \/_
> >
> > TestSupportModule2
> >
> > If you were to make a src code change to the following test support
> > modules:
> >
> >   *   TestSupportModule1
> >   *   TestSupportModule2
> >
> > Then the minimum number of modules we need to build to verify the change
> > set is OK is:
> >
> >   *   TestSupportModule1
> >   *   TestSupportModule2
> >   *   ModuleB
> >   *   App
> >
> > i.e. there is no requirement to build ModuleA because we know that none of
> > the src code changes could impact the classpaths used in its maven build.
> >
> > We know that despite 'App' depending (transitively) on ModuleB there is no
> > need for the 'App' build to wait for ModuleB to complete its build because
> > the src code change to TestSupportModule2 will not impact any of the
> > classpaths used in the App maven build. Therefore to get the most efficient
> > build possible we ideally would invoke Maven to run with 2 threads and with
> > instruction to build two distinct 'dependency graphs':
> >
> >   *   TestSupportModule1 followed by ModuleB
> >   *   TestSupportModule1 followed by App
> >
> > The following Maven command achieves exactly what we want because the
> > reactor build order is based only on the direct (i.e. non-transitive)
> > dependencies of the modules provided to the reactor in the build command.
> > Therefore the absence of ModuleA results in two distinct 'dependency
> > graphs':
> >
> > mvn clean verify -pl TestSupportModule1,TestSupportModule2,ModuleB,App -T 2
> >
> > Note: In reality the code base I maintain ha

RE: Inconsistent dependency resolution behaviour for concurrent multi-module build can cause failures

2024-02-06 Thread Joseph Leonard
Note that my diagram formatting is very hard to read in the default formatting 
on this mailing list. If you view my email in 'raw source' then it is easier to 
understand!

On 2024/02/06 10:40:14 Joseph Leonard wrote:
> Hi all,
>
> It would be great to get any thoughts on whether the following is a defect:
>
>
> Issue details:
> tl;dr
>
> Maven can resolve dependencies either from:
>
>   *   an external repo
>   *   a class directory of a module being built within the reactor
>   *   a packaged jar of a module being built within the reactor
>
> If you run a concurrent multi-module build it is possible to get a race 
> condition whereby the build of module Foo may resolve module Bar from either 
> of the three resolution channels. This inconsistency can result in the Maven 
> war plugin sometimes failing to build a functional war file. I would expect a 
> consistent resolution would always take place.

>
> Full details
> Scenario
>
> Consider you have a repo with the following structure:
>
>App
>
>  / \
>
> /   \
>
>(compile scope)  (test scope)
>
>   /   \
>
> \/_   _\/
>
>  ModuleA  TestSupportModule1
>
> /
>
>/
>
> (compile scope)
>
>  /
>
>\/_
>
> ModuleB
>
>/
>
>   /
>
> (test scope)
>
> /
>
>   \/_
>
> TestSupportModule2
>
> If you were to make a src code change to the following test support modules:
>
>   *   TestSupportModule1
>   *   TestSupportModule2
>
> Then the minimum number of modules we need to build to verify the change set 
> is OK is:
>
>   *   TestSupportModule1
>   *   TestSupportModule2
>   *   ModuleB
>   *   App
>
> i.e. there is no requirement to build ModuleA because we know that none of 
> the src code changes could impact the classpaths used in its maven build.

>
> We know that despite 'App' depending (transitively) on ModuleB there is no 
> need for the 'App' build to wait for ModuleB to complete its build because 
> the src code change to TestSupportModule2 will not impact any of the 
> classpaths used in the App maven build. Therefore to get the most efficient 
> build possible we ideally would invoke Maven to run with 2 threads and with 
> instruction to build two distinct 'dependency graphs':

>
>   *   TestSupportModule1 followed by ModuleB
>   *   TestSupportModule1 followed by App
>
> The following Maven command achieves exactly what we want because the reactor 
> build order is based only on the direct (i.e. non-transitive) dependencies of 
> the modules provided to the reactor in the build command. Therefore the 
> absence of ModuleA results in two distinct 'dependency graphs':

>
> mvn clean verify -pl TestSupportModule1,TestSupportModule2,ModuleB,App -T 2
>
> Note: In reality the code base I maintain has a very large monobuild with 
> 100s of modules and this type of build optimisation makes a significant 
> difference to the speed of our monobuild (we use 
> https://github.com/gitflow-incremental-builder/gitflow-incremental-builder to 
> automate the logic of determining which modules to include in the reactor 
> based on our change set).

>
> Issue
>
> We have encountered an issue in the above scenario because the 'App' build 
> has a race condition with the ModuleB build which will result in one of the 
> following three outcomes:

>
>   *   If the 'App' build starts before the ModuleB build has compiled its src 
> classes then the 'App' build will resolve ModuleB from the external repo 
> (i.e. equivalent to ModuleB not being in the reactor at all)

>   *   If the 'App' build starts after ModuleB has compiled its src classes 
> but before it has packaged these classes into a jar then the 'App' build will 
> resolve ModuleB's target/classes directory

>   *   If the 'App' build starts after ModuleB has packaged its jar file then 
> the 'App' build will resolve ModuleB's target/ModuleB.jar file.

>
> In many scenarios this dependency resolution inconsistency doesn't represent 
> a challenge. However, it does cause an issue in our case because the 'App' 
> POM has its Maven packaging stanza configured to war and in the scenario 
> where ModuleB's target/classes directory is resolved by the 'App' then this 
> results in the resultant 'App' war file being packaged with a completely 
> 

RE: Re: Inconsistent dependency resolution behaviour for concurrent multi-module build can cause failures

2024-02-06 Thread Joseph Leonard
Thanks Nils,
maven-build-cache-extension looks very interesting generally – I will have a 
play with it.
With regards to this issue, the maven-build-cache-extension overview references 
“Subtree support for multimodule projects builds part of the codebase in 
isolation” which sounded similar to the solution I am proposing for this issue. 
Unfortunately, after enabling the maven-build-cache-extension I still hit the 
same issue.
Joe

On 2024/02/06 12:54:59 Nils Breunese wrote:
> I can’t comment on your question directly, but I just wanted to say that your 
> use case sounds like it could benefit from the Maven Build Cache Extension 
> (https://maven.apache.org/extensions/maven-build-cache-extension/).

>
> Just my 2 cents.
>
> Nils.
>
> > Op 6 feb 2024 om 11:40 heeft Joseph Leonard  het 
> > volgende geschreven:
> >
> > Hi all,
> >
> > It would be great to get any thoughts on whether the following is a defect:
> >
> >
> > Issue details:
> > tl;dr
> >
> > Maven can resolve dependencies either from:
> >
> >  *   an external repo
> >  *   a class directory of a module being built within the reactor
> >  *   a packaged jar of a module being built within the reactor
> >
> > If you run a concurrent multi-module build it is possible to get a race 
> > condition whereby the build of module Foo may resolve module Bar from 
> > either of the three resolution channels. This inconsistency can result in 
> > the Maven war plugin sometimes failing to build a functional war file. I 
> > would expect a consistent resolution would always take place.

> >
> > Full details
> > Scenario
> >
> > Consider you have a repo with the following structure:
> >
> >   App
> >
> > / \
> >
> >/   \
> >
> >   (compile scope)  (test scope)
> >
> >  /   \
> >
> >\/_   _\/
> >
> > ModuleA  TestSupportModule1
> >
> >/
> >
> >   /
> >
> >(compile scope)
> >
> > /
> >
> >   \/_
> >
> >ModuleB
> >
> >   /
> >
> >  /
> >
> >(test scope)
> >
> >/
> >
> >  \/_
> >
> > TestSupportModule2
> >
> > If you were to make a src code change to the following test support modules:
> >
> >  *   TestSupportModule1
> >  *   TestSupportModule2
> >
> > Then the minimum number of modules we need to build to verify the change 
> > set is OK is:
> >
> >  *   TestSupportModule1
> >  *   TestSupportModule2
> >  *   ModuleB
> >  *   App
> >
> > i.e. there is no requirement to build ModuleA because we know that none of 
> > the src code changes could impact the classpaths used in its maven build.

> >
> > We know that despite 'App' depending (transitively) on ModuleB there is no 
> > need for the 'App' build to wait for ModuleB to complete its build because 
> > the src code change to TestSupportModule2 will not impact any of the 
> > classpaths used in the App maven build. Therefore to get the most efficient 
> > build possible we ideally would invoke Maven to run with 2 threads and with 
> > instruction to build two distinct 'dependency graphs':

> >
> >  *   TestSupportModule1 followed by ModuleB
> >  *   TestSupportModule1 followed by App
> >
> > The following Maven command achieves exactly what we want because the 
> > reactor build order is based only on the direct (i.e. non-transitive) 
> > dependencies of the modules provided to the reactor in the build command. 
> > Therefore the absence of ModuleA results in two distinct 'dependency 
> > graphs':

> >
> > mvn clean verify -pl TestSupportModule1,TestSupportModule2,ModuleB,App -T 2
> >
> > Note: In reality the code base I maintain has a very large monobuild with 
> > 100s of modules and this type of build optimisation makes a significant 
> > difference to the speed of our monobuild (we use 
> > https://github.com/gitflow-incremental-builder/gitflow-incremental-builder 
> > to automate the logic of determining which modules to include in the 
> > reactor based on our change set).

> >
> > Issue
> >
> > We have encountered an issue in the above scenario because the 'App' build 
> > has a race condition with the ModuleB build which will result in one of the 

Inconsistent dependency resolution behaviour for concurrent multi-module build can cause failures

2024-02-06 Thread Joseph Leonard
Hi all,

It would be great to get any thoughts on whether the following is a defect:


Issue details:
tl;dr

Maven can resolve dependencies either from:

  *   an external repo
  *   a class directory of a module being built within the reactor
  *   a packaged jar of a module being built within the reactor

If you run a concurrent multi-module build it is possible to get a race 
condition whereby the build of module Foo may resolve module Bar from either of 
the three resolution channels. This inconsistency can result in the Maven war 
plugin sometimes failing to build a functional war file. I would expect a 
consistent resolution would always take place.

Full details
Scenario

Consider you have a repo with the following structure:

   App

 / \

/   \

   (compile scope)  (test scope)

  /   \

\/_   _\/

 ModuleA  TestSupportModule1

/

   /

(compile scope)

 /

   \/_

ModuleB

   /

  /

(test scope)

/

  \/_

TestSupportModule2

If you were to make a src code change to the following test support modules:

  *   TestSupportModule1
  *   TestSupportModule2

Then the minimum number of modules we need to build to verify the change set is 
OK is:

  *   TestSupportModule1
  *   TestSupportModule2
  *   ModuleB
  *   App

i.e. there is no requirement to build ModuleA because we know that none of the 
src code changes could impact the classpaths used in its maven build.

We know that despite 'App' depending (transitively) on ModuleB there is no need 
for the 'App' build to wait for ModuleB to complete its build because the src 
code change to TestSupportModule2 will not impact any of the classpaths used in 
the App maven build. Therefore to get the most efficient build possible we 
ideally would invoke Maven to run with 2 threads and with instruction to build 
two distinct 'dependency graphs':

  *   TestSupportModule1 followed by ModuleB
  *   TestSupportModule1 followed by App

The following Maven command achieves exactly what we want because the reactor 
build order is based only on the direct (i.e. non-transitive) dependencies of 
the modules provided to the reactor in the build command. Therefore the absence 
of ModuleA results in two distinct 'dependency graphs':

mvn clean verify -pl TestSupportModule1,TestSupportModule2,ModuleB,App -T 2

Note: In reality the code base I maintain has a very large monobuild with 100s 
of modules and this type of build optimisation makes a significant difference 
to the speed of our monobuild (we use 
https://github.com/gitflow-incremental-builder/gitflow-incremental-builder to 
automate the logic of determining which modules to include in the reactor based 
on our change set).

Issue

We have encountered an issue in the above scenario because the 'App' build has 
a race condition with the ModuleB build which will result in one of the 
following three outcomes:

  *   If the 'App' build starts before the ModuleB build has compiled its src 
classes then the 'App' build will resolve ModuleB from the external repo (i.e. 
equivalent to ModuleB not being in the reactor at all)
  *   If the 'App' build starts after ModuleB has compiled its src classes but 
before it has packaged these classes into a jar then the 'App' build will 
resolve ModuleB's target/classes directory
  *   If the 'App' build starts after ModuleB has packaged its jar file then 
the 'App' build will resolve ModuleB's target/ModuleB.jar file.

In many scenarios this dependency resolution inconsistency doesn't represent a 
challenge. However, it does cause an issue in our case because the 'App' POM 
has its Maven packaging stanza configured to war and in the scenario where 
ModuleB's target/classes directory is resolved by the 'App' then this results 
in the resultant 'App' war file being packaged with a completely empty 
ModuleB.jar file.

Proposed solution

Ideally we would like the Maven reactor to retain isolation between the two 
distinct 'dependency graphs' it constructs at instantiation throughout the 
entire Maven build. This would mean, in the simple example above, that the 
'App' would always resolves ModuleB from the external repo (regardless of 
whether the reactor has built ModuleB or not in a separate 'dependency graph' 
in the reactor).



Joseph Leonard
Manager

Alfa

e: joseph.leon...@alfasystems.com | w: 
alfasystems.com<https://www.alfasystems.com>
t: +44 (0)20 7588 1800 | Moor Place, 1 Fore Street Avenue, London, EC2Y 9DT, GB


The contents of this communication are not intended to be binding or co

Re: creating a source directory on the fly

2023-12-06 Thread Joseph Kesselman
It has occurred to me that Maven needs something like the XSLT FAQ page -- a 
(semi)official collection of common "how to" questions with validated "best 
practice" worked examples, updated as best practice changes. It's easy to find 
examples, much harder for a novice to understand the subtleties that make them 
good or bad examples.


--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

Caveat: Opinionated old geezer with overcompensated writer's block. May be 
redundant, verbose, prolix, sesquipedalian, didactic, officious, or redundant.

From: Dave Dyer 
Sent: Wednesday, December 6, 2023 11:43:37 AM
To: Maven Users List ; users@maven.apache.org 

Subject: RE: creating a source directory on the fly

At 06:55 AM 12/6/2023, mark.yagnatin...@barclays.com.INVALID wrote:
>Pretty sure that plugin is flexible enough to just copy what you tell it to?
>https://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

Thanks.  I just hadn't encountered the right examples!



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Pure curiosity

2023-11-20 Thread Joseph Kesselman
BTW, apologies. The strengths/weaknesses post was intended to be sent to Gary 
for offline discussion , not list.

I'm very aware that I haven't used Maven long enough or deeply enough to have a 
valid opinion. This was initial reactions only, as I approach publishable 
version of a Maven build for Xalan. I badly mis-sized the effort, and I *think* 
the things I called out were the points I struggled most to wrap my head around.

Which may just be me. But I figured I'd toss that to Gary for discussion 
offline, then I fat-fingered the send. Again, apologies.

.


--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

Caveat: Opinionated old geezer with overcompensated writer's block. May be 
redundant, verbose, prolix, sesquipedalian, didactic, officious, or redundant.
________
From: Joseph Kesselman 
Sent: Sunday, November 19, 2023 6:25:37 PM
To: Maven Users List 
Subject: Re: Pure curiosity

Maven's declarative nature may be its second greatest strength, following 
platform independence and preceding the rich plugin collection.

The lack of any _dependency_ driven flow below the module level -- apparently 
typically solved by throwing more modules into the mix just to achieve 
sequencing, or trying to use the fixed sequencing of the stages -- may be its 
greatest weakness. Note that I'm still having to play games with when site 
runs; site depends on code in the package, and the download zipfiles depend 
upon site.

Alex grants that if you're pushing declarative build design as a Maven 
advantage, _make_ beat you the punch by about half a century, and is fully 
dependency driven; its major downsides are that it doesn't have platform 
independence and isn't new and sexy and markup language based.

I really expected Maven to handle that better.

So my half-thought is what it would take to change from stages to dependencies, 
 and how much of the Maven design would have to be thrown out the window to 
achieve it... or at least to draft a prototype that could leverage what's 
already been done.

Maven does beat Ant. And it has the plugin tooling and auto-fetch from 
libraries. But the lack of dependency-driven execution Bothers me.

Vlad favors Gradle. I don't know if Gradle is better, worse, or just different, 
but from what he's said it sounds like it does have the ability to update just 
what it must, as make did, and to handle sequences that don't  match the 
predefined stage sequences. Maybe it's time to consider crossbreeding.

I may change my mind after further exposure to Maven, but that's my reaction to 
what I've seen of it so far and how much help I needed to understand its quirks.



--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

Caveat: Opinionated old geezer with overcompensated writer's block. May be 
redundant, verbose, prolix, sesquipedalian, didactic, officious, or redundant.

From: Gary Gregory 
Sent: Sunday, November 19, 2023 5:55:40 PM
To: Maven Users List 
Subject: Re: Pure curiosity

You can get an idea by downloading the source zip file from
https://maven.apache.org/download.cgi and and counting something like Java
source files or kilobytes' worth of Java files, or LoCs...

FWIW, I see Gradle mentioned here and there in our issues. Using
Gradlebwould be a huge mistake IMO... I really don't like Gradle.

Maven has its quirks, sure, but if you implement a build using Maven's
philosophy of "configuration by exception", you end up with a nice easy to
maintain build.

Gary

On Sun, Nov 19, 2023, 5:39 PM Joseph Kesselman  wrote:

> How large is the actual Maven core application itself, without even the
> "standard" plugins?
>
> (I've got half an idea and am trying to guess how much work it would be to
> prototype something.)
>
> --
>/_  Joe Kesselman (he/him/his)
> -/ _) My Alexa skill for New Music/New Sounds fans:
>/   https://www.amazon.com/dp/B09WJ3H657/
>
> Caveat: Opinionated old geezer with overcompensated writer's block. May be
> redundant, verbose, prolix, sesquipedalian, didactic, officious, or
> redundant.
>


Re: Pure curiosity

2023-11-19 Thread Joseph Kesselman
I'm half asleep right now, so I may be completely confused. Or I may just not 
from Maven well enough yet. I did say it was half an idea, and might not have 
been worth posting. Lemme think about it further and see where, if anywhere, it 
goes.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

Caveat: Opinionated old geezer with overcompensated writer's block. May be 
redundant, verbose, prolix, sesquipedalian, didactic, officious, or redundant.

From: Gary Gregory 
Sent: Sunday, November 19, 2023 6:43:30 PM
To: Maven Users List 
Subject: Re: Pure curiosity

I don't know what issue you're struggling with for the Maven build so we
should talk this week or discuss it over email. I don't want to ask you to
explain all of this over email if it's quicker to explain via voice. Maybe
we can start with: Where is the Maven build and what's the current hurdle?

Also note that the Maven devs can be quite helpful on their mailing list.

Gary


On Sun, Nov 19, 2023, 6:26 PM Joseph Kesselman  wrote:

> Maven's declarative nature may be its second greatest strength, following
> platform independence and preceding the rich plugin collection.
>
> The lack of any _dependency_ driven flow below the module level --
> apparently typically solved by throwing more modules into the mix just to
> achieve sequencing, or trying to use the fixed sequencing of the stages --
> may be its greatest weakness. Note that I'm still having to play games with
> when site runs; site depends on code in the package, and the download
> zipfiles depend upon site.
>
> Alex grants that if you're pushing declarative build design as a Maven
> advantage, _make_ beat you the punch by about half a century, and is fully
> dependency driven; its major downsides are that it doesn't have platform
> independence and isn't new and sexy and markup language based.
>
> I really expected Maven to handle that better.
>
> So my half-thought is what it would take to change from stages to
> dependencies,  and how much of the Maven design would have to be thrown out
> the window to achieve it... or at least to draft a prototype that could
> leverage what's already been done.
>
> Maven does beat Ant. And it has the plugin tooling and auto-fetch from
> libraries. But the lack of dependency-driven execution Bothers me.
>
> Vlad favors Gradle. I don't know if Gradle is better, worse, or just
> different, but from what he's said it sounds like it does have the ability
> to update just what it must, as make did, and to handle sequences that
> don't  match the predefined stage sequences. Maybe it's time to consider
> crossbreeding.
>
> I may change my mind after further exposure to Maven, but that's my
> reaction to what I've seen of it so far and how much help I needed to
> understand its quirks.
>
>
>
> --
>/_  Joe Kesselman (he/him/his)
> -/ _) My Alexa skill for New Music/New Sounds fans:
>/   https://www.amazon.com/dp/B09WJ3H657/
>
> Caveat: Opinionated old geezer with overcompensated writer's block. May be
> redundant, verbose, prolix, sesquipedalian, didactic, officious, or
> redundant.
> 
> From: Gary Gregory 
> Sent: Sunday, November 19, 2023 5:55:40 PM
> To: Maven Users List 
> Subject: Re: Pure curiosity
>
> You can get an idea by downloading the source zip file from
> https://maven.apache.org/download.cgi and and counting something like Java
> source files or kilobytes' worth of Java files, or LoCs...
>
> FWIW, I see Gradle mentioned here and there in our issues. Using
> Gradlebwould be a huge mistake IMO... I really don't like Gradle.
>
> Maven has its quirks, sure, but if you implement a build using Maven's
> philosophy of "configuration by exception", you end up with a nice easy to
> maintain build.
>
> Gary
>
> On Sun, Nov 19, 2023, 5:39 PM Joseph Kesselman 
> wrote:
>
> > How large is the actual Maven core application itself, without even the
> > "standard" plugins?
> >
> > (I've got half an idea and am trying to guess how much work it would be
> to
> > prototype something.)
> >
> > --
> >/_  Joe Kesselman (he/him/his)
> > -/ _) My Alexa skill for New Music/New Sounds fans:
> >/   https://www.amazon.com/dp/B09WJ3H657/
> >
> > Caveat: Opinionated old geezer with overcompensated writer's block. May
> be
> > redundant, verbose, prolix, sesquipedalian, didactic, officious, or
> > redundant.
> >
>


Re: Pure curiosity

2023-11-19 Thread Joseph Kesselman
Maven's declarative nature may be its second greatest strength, following 
platform independence and preceding the rich plugin collection.

The lack of any _dependency_ driven flow below the module level -- apparently 
typically solved by throwing more modules into the mix just to achieve 
sequencing, or trying to use the fixed sequencing of the stages -- may be its 
greatest weakness. Note that I'm still having to play games with when site 
runs; site depends on code in the package, and the download zipfiles depend 
upon site.

Alex grants that if you're pushing declarative build design as a Maven 
advantage, _make_ beat you the punch by about half a century, and is fully 
dependency driven; its major downsides are that it doesn't have platform 
independence and isn't new and sexy and markup language based.

I really expected Maven to handle that better.

So my half-thought is what it would take to change from stages to dependencies, 
 and how much of the Maven design would have to be thrown out the window to 
achieve it... or at least to draft a prototype that could leverage what's 
already been done.

Maven does beat Ant. And it has the plugin tooling and auto-fetch from 
libraries. But the lack of dependency-driven execution Bothers me.

Vlad favors Gradle. I don't know if Gradle is better, worse, or just different, 
but from what he's said it sounds like it does have the ability to update just 
what it must, as make did, and to handle sequences that don't  match the 
predefined stage sequences. Maybe it's time to consider crossbreeding.

I may change my mind after further exposure to Maven, but that's my reaction to 
what I've seen of it so far and how much help I needed to understand its quirks.



--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

Caveat: Opinionated old geezer with overcompensated writer's block. May be 
redundant, verbose, prolix, sesquipedalian, didactic, officious, or redundant.

From: Gary Gregory 
Sent: Sunday, November 19, 2023 5:55:40 PM
To: Maven Users List 
Subject: Re: Pure curiosity

You can get an idea by downloading the source zip file from
https://maven.apache.org/download.cgi and and counting something like Java
source files or kilobytes' worth of Java files, or LoCs...

FWIW, I see Gradle mentioned here and there in our issues. Using
Gradlebwould be a huge mistake IMO... I really don't like Gradle.

Maven has its quirks, sure, but if you implement a build using Maven's
philosophy of "configuration by exception", you end up with a nice easy to
maintain build.

Gary

On Sun, Nov 19, 2023, 5:39 PM Joseph Kesselman  wrote:

> How large is the actual Maven core application itself, without even the
> "standard" plugins?
>
> (I've got half an idea and am trying to guess how much work it would be to
> prototype something.)
>
> --
>/_  Joe Kesselman (he/him/his)
> -/ _) My Alexa skill for New Music/New Sounds fans:
>/   https://www.amazon.com/dp/B09WJ3H657/
>
> Caveat: Opinionated old geezer with overcompensated writer's block. May be
> redundant, verbose, prolix, sesquipedalian, didactic, officious, or
> redundant.
>


Pure curiosity

2023-11-19 Thread Joseph Kesselman
How large is the actual Maven core application itself, without even the 
"standard" plugins?

(I've got half an idea and am trying to guess how much work it would be to 
prototype something.)

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

Caveat: Opinionated old geezer with overcompensated writer's block. May be 
redundant, verbose, prolix, sesquipedalian, didactic, officious, or redundant.


Re: Self-inflicted wounds again.

2023-11-14 Thread Joseph Kesselman
Thanks; hadn't gotten to retesting the latest changes on Windows this week. 
Though it did seem to be accepting the colons last time I tested. (This may be 
like / vs \, where Windows insists on its own syntax at the command line but 
also accepts the Posix convention at the API level...)

It appears that the recent problems were indeed due to my using a backlevel 
plug-in. Still don't grok how that happened when I'd been running fine the 
previous day, but it's fixed now. Many thanks for the catch.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() I still don't think HTML mail is a good idea
/\ but Outlook/Android is insisting. Need to
 change mail client.

From: Alexander Kriegisch 
Sent: Monday, November 13, 2023 8:02:01 PM
To: users@maven.apache.org 
Subject: Re: Self-inflicted wounds again.

Hi Joseph.

In your branch, please note that currently your build will not work for
Windows users:

[INFO] --- exec:3.1.0:exec (Xalan2 design documentation) @ xalan-project ---
Fehler: Hauptklasse org.apache.stylebook.StyleBook konnte nicht gefunden oder 
geladen werden
Ursache: java.lang.ClassNotFoundException: org.apache.stylebook.StyleBook
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit 
value: 1)

I have replaced the UNIX-style ":'" path separators by instances of
"${path.separator}", see also my PR
https://github.com/apache/xalan-java/pull/119.

Now, the build passes. You seem to have upgraded the Assembly Plugin, as
Karl Heinz advised you to do. Please do not use things like LATEST or
version ranges, it defeats any efforts to get repeatable builds.

Before I look into your project any deeper, especially into your
assemblies - so far I did not look at all yet - can you tell me if your
problems are all fixed for the moment? The situation seems to have
progressed since last time you asked.

Kind regards
--
Alexander Kriegisch
https://scrum-master.de


Karl Heinz Marbaise schrieb am 14.11.2023 02:44 (GMT +07:00):

> The first what I see is that you are using an ancient old
> maven-assembly-plugin version (2.2-beta-5) ... Please upgrade first
> (most recent is currentl 3.6.0)..
>
> Here you find the overview of all plugins with the most recent versions:
>
> https://maven.apache.org/plugins/
>
>
> On 13.11.23 20:27, Joseph Kessselman wrote:
>
>> Had generation of the multi-module distribution binary zipfile working
>> yesterday.
>>
>> Came back today to find I had apparently stepped on it before pushing.
>> Sigh. OK, I should be able to reproduce this, right?
>>
>> Unfortunately, no. I'm missing something obvious again.
>>
>> In context, currently broken as checked in:
>> https://github.com/apache/xalan-java/tree/xalan-java-mvn-refactored
>>
>> Current error message is
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single
>> (distro-assembly) on project distribution: Error reading assemblies:
>> Error reading descriptor at: src/assembly/bin.xml: Unrecognised tag:
>> 'useAllReactorProjects' (position: START_TAG seen ...\n
>> ... @15:30)  -> [Help 1]
>>
>> The bin.xml file mentioned currently contains something that is based
>> directly off the multi-module assembly instructions, just changing which
>> modules are included. Or at least that's the intent.
>>
>> 
>> http://maven.apache.org/ASSEMBLY/2.2.0";
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>  xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0
>> http://maven.apache.org/xsd/assembly-2.2.0.xsd";>
>>bin
>> 
>>   zip 
>>   tar-gz 
>> 
>>false
>>
>>  
>>true
>>
>>
>>  xalan:serializer
>>  xalan:xalan
>>  xalan:samples
>>
>>
>>
>>  modules/maven-assembly-plugin
>>  false
>>
>>  
>>
>>
>>
>>  
>>../target/site
>>docs
>>  
>>  
>>../samples
>>
>>  target/**
>>  src/site/**
>>
>>  
>>
>> 
>> --
>> And the POM invoking this is likewise based pretty directly on the example:
>>
>> http://maven.apache.org/POM/4.0.0";
>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>

Self-inflicted wounds again.

2023-11-13 Thread Joseph Kessselman
Had generation of the multi-module distribution binary zipfile working 
yesterday.


Came back today to find I had apparently stepped on it before pushing. 
Sigh. OK, I should be able to reproduce this, right?


Unfortunately, no. I'm missing something obvious again.


In context, currently broken as checked in:
https://github.com/apache/xalan-java/tree/xalan-java-mvn-refactored


Current error message is

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single 
(distro-assembly) on project distribution: Error reading assemblies: 
Error reading descriptor at: src/assembly/bin.xml: Unrecognised tag: 
'useAllReactorProjects' (position: START_TAG seen ...\n 
... @15:30)  -> [Help 1]


The bin.xml file mentioned currently contains something that is based 
directly off the multi-module assembly instructions, just changing which 
modules are included. Or at least that's the intent.



http://maven.apache.org/ASSEMBLY/2.2.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 
http://maven.apache.org/xsd/assembly-2.2.0.xsd";>

  bin
  
zip
tar-gz
  
  false
  

  true
  
  
xalan:serializer
xalan:xalan
xalan:samples
  
  
modules/maven-assembly-plugin
false
  

  
  
  

  ../target/site
  docs


  ../samples
  
target/**
src/site/**
  

  

--
And the POM invoking this is likewise based pretty directly on the example:

http://maven.apache.org/POM/4.0.0";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
https://maven.apache.org/xsd/maven-4.0.0.xsd";>

  4.0.0
  
xalan
xalan-project
2.7.3
  

  distribution
  pom

  distribution

  
  

  xalan
  serializer
  2.7.3


  xalan
  xalan
  2.7.3


  xalan
  samples
  2.7.3

  

  

  
maven-assembly-plugin

  
distro-assembly
package

  single


  
src/assembly/bin.xml
  

  

  

  

--

I'm undoubtedly looking right past my error. Which foot am I shooting 
off this time?



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kesselman
I welcome feedback on where I might have departed from Maven conventions and 
defaults, or otherwise missed a bet. I actually don't think I'm far off -- 
maybe not the most elegant solutions possible, but basically using Maven as 
designed to be used.

But I'd sorta appreciate it if folks were throwing net-rocks at what I actually 
did rather than what you fear I might have done. Directed feedback is more 
useful.


--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Alexander Kriegisch 
Sent: Saturday, November 11, 2023 7:31:25 PM
To: users@maven.apache.org 
Subject: Re: Can the jar plugin respect .gitignore?

Let me also chime in, telling an "old war story" from my early days in
AspectJ: It used to be a very complex and convoluted Ant multi-module
monster. I never dared to even try and understand the build or
contribute to the project. Then one day, Andy Clement converted the
project to a Maven project, and suddenly I began to understand the
structure better. I started contributing to the project infrastructure,
weeding out the remaining relics of a replicated, scripted build taken
over from Ant, and use *convention over configuration*. Now, you can
just clone the repository, import the Maven project into Eclipse or IDEA
and build it.

We also have some source and binary assemblies, and I never thought
about using .gitignore as a source for excludes, because

  -- as was said before, you usually exclude target, the very folder of
 most interest for binary assemblies, and

  -- whatever is ignored in my .gitignore and resides outside the target
 folder, is usually also to be ignored in source assemblies.

If your case is any different, chances are that your directory structure
is suboptimal and non-standard.

IMO, the one-time effort of developers getting to know the new directory
layout is well invested, because sticking to Maven conventions pays off
in so many ways, not just because IDE import is now easier and users can
contribute patches or features more easily due to painless on-boarding.

--
Alexander Kriegisch
https://scrum-master.de

Greg Chabala schrieb am 12.11.2023 06:32 (GMT +07:00):

> I hesitate to bring it up, but this seems as good a time as any.
> You've mentioned several times your intent to massage the Xalan Maven
> build to produce artifacts at parity with the existing Ant build, and
> not just the contents of artifacts but also where they end up in the
> directory structure, for the convenience of those who are used to the
> Ant build.
>
> I foresee that if you are truly successful in this goal, you will have
> thoroughly reimplemented a procedural Ant build, and created a very
> weird Maven build, to the point where you may exclaim 'why did I even
> start this? It took so much work to get Maven to do what I was doing
> easily in Ant!', and Maven users will be confused about why there's
> nothing they expected in the target directory after running compile.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kesselman
I am using a Maven build structure. Or my best attempt at it as a newcomer to 
Maven. I've been delaying cutover specifically because I didn't want to pull 
the trigger without a sanity check.

Gary has said he'll try to look at what I've done soon. If anyone else has 
cycles, I'd welcome review of what I've done, questions about why I made those 
decisions, and suggestions for better ways to achieve the goals.

Again: This is intended to be a Maven-native build, with some postprocessing so 
folks who were used to the Ant build and have assumptions based on it can also 
find the jars, tars, and zips they expect in the place they're used to seeing 
them. The build itself is working; I'm essentially just dealing with that final 
cosmetic stage, and trying to do so in a reasonably drclarative Maven-native 
way rather than resorting to a shell script.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Bernd Eckenfels 
Sent: Saturday, November 11, 2023 6:43:15 PM
To: users@maven.apache.org 
Subject: Re: Can the jar plugin respect .gitignore?

Hello,

Joseph Kesselman wrote on 11. Nov 2023 17:27 (GMT +01:00):
> ... Right. I was thinking specifically about source assembly, where a good
> initial approximation is to include the same files checked into git.

If you stick to the maven way, this is pretty trivial: you only need to exclude 
the target/ directory - or only include the src/ directory which is common for 
-src artifacts. I fully agree, don’t try to mold maven projects in a custom 
structure… it can be done to some extend, but it will not make you happy.

Gruß
Bernd
—
https://bernd.eckenfels.net

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kesselman
Don't worry. I'm not trying to reproduce the Ant build logic. I'm trying to be 
as Maven& idiomatic as I can in the actual build.

But if possible I want to produce, from that, a directory which contains 
somethIng close to what the Ant build would have delivered. Both because I 
haven't had time to rework the tests yet and they have assumptions about what 
they access to execute the build, and because showing that I can get the same 
final jar or zip file out of the build is strong evidence that the port is 
correct and complete.

I've been using diffs between the Maven-produced jarfiles and the Ant ones as 
sanity checks, and that has flushed out some errors in the build along the way. 
But that's the only level at which I'm making it look like Ant, and that only 
as a final postprocessing layer.

Remember, I'm an XSLT developer. Declarative programming is nothing new to me. 
I'm just still learning how to write the declarations so Maven will do what's 
necessary. If anything, I was hoping Maven's dependency driven defaults were 
just a bit stronger than they are... but I'm learning how to talk to it.

We're going in the same direction. I'm just learning how Maven wants to get 
there.



--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Greg Chabala 
Sent: Saturday, November 11, 2023 6:32:13 PM
To: Maven Users List 
Subject: Re: Can the jar plugin respect .gitignore?

I hesitate to bring it up, but this seems as good a time as any. You've
mentioned several times your intent to massage the Xalan Maven build to
produce artifacts at parity with the existing Ant build, and not just the
contents of artifacts but also where they end up in the directory
structure, for the convenience of those who are used to the Ant build.

I foresee that if you are truly successful in this goal, you will have
thoroughly reimplemented a procedural Ant build, and created a very weird
Maven build, to the point where you may exclaim 'why did I even start this?
It took so much work to get Maven to do what I was doing easily in Ant!',
and Maven users will be confused about why there's nothing they expected in
the target directory after running compile.

There's something to be said for embracing the Maven Way [1], and if you
want to keep both builds in sync for a time, perhaps the effort would be
better spent in updating the Ant build to put things in the places Maven
puts them by default.

[1]: https://maven.apache.org/background/philosophy-of-maven.html


Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kesselman
The "binary" assembly I'm trying to reproduce is the one our And project 
generated -- the artifact jarfile, plus source and input for the samples, plus 
the documentation directory -- basically, everything an end-user might want 
locally. I'm getting close to having that working.

Output directory in some places refers to directory within the archive. For 
example, I have it copying my Maven target/site/ directory to releaseName/docs/ 
inside the tar.gz and zip files, to confirm to past patterns.

It isn't clear whether I should move the src assembly build down into this late 
processing module. Conceptually it belongs next to the bin assembly, but 
syntactically I think it's simpler in the parent pom. Unless I'm missing 
something. Again.

Biggest remaining challenge: Again for convenience of folks who were used to 
the Ant build, I'd like to move/copy both bin and src assemblies to my 
Ant-emulation build/ directory. And again, if I try to do this with a separate 
copying operation it looks like I need another layer of dependency to ensure 
the bin assembly is generated before I copy it. Doable but not pretty. Having 
the assemblies write directly into build/ would be another solution if 
available.

Random brainstorm, may be all wet: Maven might want to consider allowing users 
to specify priority. Phase is a good default/basic sequencing tool, but as the 
need to resort to dependencies shows, not quite complete by itself. If I could 
assign what amount to sub-phases by saying "this is higher or lower priority 
than anything else which runs in that phase", that might let me resolve cases 
where the phase alone is not enough to ensure desired sequence of operations... 
such as not running assembly until after other packaging is complete.



--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Greg Chabala 
Sent: Saturday, November 11, 2023 12:38:05 PM
To: Maven Users List 
Subject: Re: Can the jar plugin respect .gitignore?

I have no first hand experience using it, and only know of its existence as
it's mentioned at the bottom the Reproducible Builds docs:
https://reproducible-builds.org/docs/jvm/

Notably the maven-assembly-plugin documentation mentions a predefined
'project' descriptor which may also do just what you want(for buildable
sources):
https://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#project

You should be able to configure outputDirectory for either to place the
assembly where you like:
https://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html#outputDirectory

Didn't see a binary equivalent, but perhaps that would just be your normal
build artifact?


Re: maven-assembly-plugin, bin example is giving me trouble

2023-11-11 Thread Joseph Kessselman
Duh. Just noticed that the FAQ explicitly mentions creating a child 
module just to achieve this sequencing in multi-module projects. Mea 
culpa, mea maxima culpa... I'd have hoped something could be done with 
phase and target, but if not, not.


On 11/11/2023 11:44 AM, Joseph Kessselman wrote:
Sorry: 
https://github.com/apache/xalan-java/tree/xalan-java-mvn-refactored 
(which currently has the binary assembly commented out).


Dependency order... Well, I'm currently running the assembly at the top 
level, which would presumably mean it has to run after packaging of the 
contained modules. I suppose I could try moving it down to the module at 
the farthest end of the current dependency chain, or even into a new 
module which exists just to depend on everything else, but that feels 
like I'm solving the wrong problem; "give me an assembly for the whole 
project" is conceptually a top-level operation and I'd expect to invoke 
it from the root module.


On 11/10/2023 10:54 PM, Alexander Kriegisch wrote:

Tried making my top-level module dependent on all the others


Don't! That does not make any logical sense.


Checked in on xalan-java branch xalan-java-mvn-refactored


Please always provide a link. I have no idea where to find your project.
To you, that might be obvious. to others, it is not.



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kessselman

On 11/11/2023 11:44 AM, Greg Chabala wrote:

Use the sourceReleaseAssemblyDescriptor of maven-assembly-plugin:
https://maven.apache.org/apache-resource-bundles/source-release/


Thanks; hadn't seen that one. Definitely a fan of not reinventing wheels.

Can that be configured to write the archives to a specific directory? 
I've been trying to simulate the Ant build/ directory, for backward
compatibility... I can copy the archives there after they've been built, 
of course, if I can get the phase sequencing right.


Is there an equivalent standard configuration for Apache binary release?

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-assembly-plugin, bin example is giving me trouble

2023-11-11 Thread Joseph Kessselman
Sorry: 
https://github.com/apache/xalan-java/tree/xalan-java-mvn-refactored 
(which currently has the binary assembly commented out).


Dependency order... Well, I'm currently running the assembly at the top 
level, which would presumably mean it has to run after packaging of the 
contained modules. I suppose I could try moving it down to the module at 
the farthest end of the current dependency chain, or even into a new 
module which exists just to depend on everything else, but that feels 
like I'm solving the wrong problem; "give me an assembly for the whole 
project" is conceptually a top-level operation and I'd expect to invoke 
it from the root module.


On 11/10/2023 10:54 PM, Alexander Kriegisch wrote:

Tried making my top-level module dependent on all the others


Don't! That does not make any logical sense.


Checked in on xalan-java branch xalan-java-mvn-refactored


Please always provide a link. I have no idea where to find your project.
To you, that might be obvious. to others, it is not.



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kesselman
... Right. I was thinking specifically about source assembly, where a good 
initial approximation is to include the same files checked into git. Obviously 
that's wrong for binary assembly, but having the option of "import ignore list 
into source excludes" would help keep the two in synch. And the basic selection 
pattern syntax seems close to the same.

Not a big deal to maintain manually; I'm just looking to automate what I can.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: John Patrick 
Sent: Saturday, November 11, 2023 6:18:43 AM
To: Maven Users List 
Subject: Re: Can the jar plugin respect .gitignore?

my .gitignore includes target, so that would probably cause more issues
with the assembly plugin.


On Fri, 10 Nov 2023 at 21:34,  wrote:

> I think there are two issues with this, first of all git is not the only
> SCM, so why prefer it’s file.
>
> But secondly it is very common that binary result artifacts are git
> ignored and exactly the stuff you want to package. For example target/
>
> Are you thinking about -src archives, only?
>
> Having said that, supporting the file format and patterns might be a good
> idea (if it can be sorted out which directory level should be relevant) and
> having a easy way to enable .*ignore.
>
> Joseph Kessselman wrote on 10. Nov 2023 19:42 (GMT +01:00):
>
> > (Or, equivalently be told to take exclude list from a file in .gitignore
> > syntax and then be told .gitignore was that file.)
> >
> > If not, I'd consider that worth adding.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven-assembly-plugin, bin example is giving me trouble

2023-11-10 Thread Joseph Kessselman
Tried making my top-level module dependent on all the others so the 
assembly invoked there would run last. Unfortunately, it seems the 
dependencies are inherited to all the children, and Maven complains 
about dependencies upon self.


I presume there's an obvious idiom that I just haven't yet beaten into 
my head.


Checked in on xalan-java branch xalan-java-mvn-refactored with bin 
assembly commented out, if anyone wants to see it in context.



On 11/10/2023 9:37 PM, Joseph Kessselman wrote:

Oh. I probably forgot to set dependencies. Checking.


On 11/10/2023 9:35 PM, Joseph Kessselman wrote:
I'm trying to adapt the examples given at 
https://maven.apache.org/plugins/maven-assembly-plugin to work with my 
multi-module project.


Source was mostly easy -- I copied the  into a file, 
tweaked its excludes (still wish it picked up the .gitinclude 
automagically), and it worked. I'd still like to change which 
directory the resulting archive files were written to, but that's a 
nitpick; maybe I can copy 'em to the "ant simulation" build/ directory 
afterward.



But binary is giving me a bit more trouble. This is working for 
others, so I presume it's another case of my just not understanding 
the idiom well enough.



All I did was add one more  to reference
src/assembly/bin.xml, and dropped there a copy of the 
taken from the page, modified to output to tar.gz and zip. I changed the
s to reference my artifacts, and ran mvn package again.

Maven objects to my first child module:

 > [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-assembly-plugin:3.6.0:single 
(make-assembly) on project xalan-project: Failed to create assembly: 
Artifact: xalan:serializer:jar:2.7.3 (included by module) does not 
have an artifact with a file. Please ensure the package phase is run 
before the assembly is generated. -> [Help 1]



This confuses me. There is indeed a file there,
serializer/target/serializer-2.7.3.jar, which xalan:xalan seems to 
successfully use as the artifact for further compilation. Why isn't

maven-assembly-plugin finding and using it?

If I take out the  section entirely (trying to rely on 
defaults), I get the same error message.


Does a  assembly need to be put on a later phase? Or a 
different execution?



Any advice would bemore than welcome...!


In my pom.xml, last plugin before :
...
   
 maven-assembly-plugin
 3.6.0
 false
 
   
 src/assembly/src.xml
 src/assembly/bin.xml
   
 
 
   
 make-assembly 

 package 
 
   single
 
   
 
   
...

And my bin.xml:



http://maven.apache.org/ASSEMBLY/2.2.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 
http://maven.apache.org/xsd/assembly-2.2.0.xsd";>

   bin
   
 tar.gz
 zip
   
   true
   
 
   

   true

   
   
   
   
   
   
   
   
   
 modules/maven-assembly-plugin
 false
   
 
   



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-assembly-plugin, bin example is giving me trouble

2023-11-10 Thread Joseph Kessselman

Oh. I probably forgot to set dependencies. Checking.


On 11/10/2023 9:35 PM, Joseph Kessselman wrote:
I'm trying to adapt the examples given at 
https://maven.apache.org/plugins/maven-assembly-plugin to work with my 
multi-module project.


Source was mostly easy -- I copied the  into a file, tweaked 
its excludes (still wish it picked up the .gitinclude automagically), 
and it worked. I'd still like to change which directory the resulting 
archive files were written to, but that's a nitpick; maybe I can copy 
'em to the "ant simulation" build/ directory afterward.



But binary is giving me a bit more trouble. This is working for others, 
so I presume it's another case of my just not understanding the idiom 
well enough.



All I did was add one more  to reference
src/assembly/bin.xml, and dropped there a copy of the 
taken from the page, modified to output to tar.gz and zip. I changed the
s to reference my artifacts, and ran mvn package again.

Maven objects to my first child module:

 > [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-assembly-plugin:3.6.0:single 
(make-assembly) on project xalan-project: Failed to create assembly: 
Artifact: xalan:serializer:jar:2.7.3 (included by module) does not have 
an artifact with a file. Please ensure the package phase is run before 
the assembly is generated. -> [Help 1]



This confuses me. There is indeed a file there,
serializer/target/serializer-2.7.3.jar, which xalan:xalan seems to 
successfully use as the artifact for further compilation. Why isn't

maven-assembly-plugin finding and using it?

If I take out the  section entirely (trying to rely on 
defaults), I get the same error message.


Does a  assembly need to be put on a later phase? Or a 
different execution?



Any advice would bemore than welcome...!


In my pom.xml, last plugin before :
...
   
     maven-assembly-plugin
     3.6.0
 false
     
   
     src/assembly/src.xml
     src/assembly/bin.xml
   
     
 
   
     make-assembly 

     package 
     
   single
     
   
     
   
...

And my bin.xml:



http://maven.apache.org/ASSEMBLY/2.2.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 
http://maven.apache.org/xsd/assembly-2.2.0.xsd";>

   bin
   
     tar.gz
     zip
   
   true
   
     
   

   true

   
   
   
   
   
   
   
   
   
     modules/maven-assembly-plugin
     false
   
     
   



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven-assembly-plugin, bin example is giving me trouble

2023-11-10 Thread Joseph Kessselman
I'm trying to adapt the examples given at 
https://maven.apache.org/plugins/maven-assembly-plugin to work with my 
multi-module project.


Source was mostly easy -- I copied the  into a file, tweaked 
its excludes (still wish it picked up the .gitinclude automagically), 
and it worked. I'd still like to change which directory the resulting 
archive files were written to, but that's a nitpick; maybe I can copy 
'em to the "ant simulation" build/ directory afterward.



But binary is giving me a bit more trouble. This is working for others, 
so I presume it's another case of my just not understanding the idiom 
well enough.



All I did was add one more  to reference
src/assembly/bin.xml, and dropped there a copy of the 
taken from the page, modified to output to tar.gz and zip. I changed the
s to reference my artifacts, and ran mvn package again.

Maven objects to my first child module:

> [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-assembly-plugin:3.6.0:single 
(make-assembly) on project xalan-project: Failed to create assembly: 
Artifact: xalan:serializer:jar:2.7.3 (included by module) does not have 
an artifact with a file. Please ensure the package phase is run before 
the assembly is generated. -> [Help 1]



This confuses me. There is indeed a file there,
serializer/target/serializer-2.7.3.jar, which xalan:xalan seems to 
successfully use as the artifact for further compilation. Why isn't

maven-assembly-plugin finding and using it?

If I take out the  section entirely (trying to rely on 
defaults), I get the same error message.


Does a  assembly need to be put on a later phase? Or a 
different execution?



Any advice would bemore than welcome...!


In my pom.xml, last plugin before :
...
  
maven-assembly-plugin
3.6.0
false

  
src/assembly/src.xml
src/assembly/bin.xml
  


  
make-assembly 

package 

  single

  

  
...

And my bin.xml:



http://maven.apache.org/ASSEMBLY/2.2.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 
http://maven.apache.org/xsd/assembly-2.2.0.xsd";>

  bin
  
tar.gz
zip
  
  true
  

  

  true

  
  
  
  
  
  
  
  
  
modules/maven-assembly-plugin
false
  

  


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Can the jar plugin respect .gitignore?

2023-11-10 Thread Joseph Kessselman

... Actually, correction -- not the jar plugin, the assembly plugin. (sigh)

On 11/10/2023 1:42 PM, Joseph Kessselman wrote:
(Or, equivalently be told to take exclude list from a file in .gitignore 
syntax and then be told .gitignore was that file.)


If not, I'd consider that worth adding.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Can the jar plugin respect .gitignore?

2023-11-10 Thread Joseph Kessselman
(Or, equivalently be told to take exclude list from a file in .gitignore 
syntax and then be told .gitignore was that file.)


If not, I'd consider that worth adding.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Keeping java's version in sync with project's version

2023-11-08 Thread Joseph Kessselman
For obvious reasons, if would be nice if the -version option on my 
project automatically reported the version I'd set in the pom.xml rather 
than my trying to synchronize the two manually.


The best approaches I've found so far are in
https://stackoverflow.com/questions/2712970/get-maven-artifact-version-at-runtime
... but there's a note that at least one of them doesn't work in all 
classloaders, or in openjdk.


I'm willing to have the pom write this into a file that the Java code 
would query, if that's what it takes to have a portable solution, but 
I'm not sure what the best way to express that would be.



There must be an established Best Practices solution for this, right?

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Multi-module build, emulating Ant build...

2023-11-06 Thread Joseph Kessselman

Right. Copypaste of the plugin doesn't work because Maven is declarative.

One instance of exec-maven-plugin with multiple s, each 
having its own ID (since the default is to collide) and its own set of 
arguments, appears to be what's intended.


Unfortunately only the first  seems to be running.

Undoubtedly a Maven-beginner error, misunderstanding some bit of idiom, 
but I haven't yet flailed my way to a solution.


I've opened this as an Issue, mostly because I think it's worth 
explicitly adding an example of this sort to the documentation to help 
other novices. That is, assuming that what I want to do is possible. 
Which it should be, right?


https://github.com/mojohaus/exec-maven-plugin/issues/388

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Multi-module build, emulating Ant build...

2023-11-06 Thread Joseph Kessselman
(To clarify: Reason I'm asking is that the example of exec:java puts all 
the parameters in  rather than in , and I'm 
not clear on whether I can have  for multiple runs, or
move the arguments into the , or something else to avoid 
repeating quite so much boilerplate.)


On 11/6/2023 7:14 PM, Joseph Kessselman wrote:
Turns out Stylebook does have a front-end driver that I don't have 
source for, so I'm just invoking it via exec:java for now. I'll clean up 
later. At least it gets rid of the platform-specific script and puts the 
pom in charge of everything.


Quick question re exec-maven-plugin: Is it possible for one instance of 
the plugin to run multiple executions, or should I just rely on copypasta?



On 11/4/2023 7:53 PM, Joseph Kessselman wrote:
1) For backward compatibility with the prior Ant build (and with the 
test framework's assumptions about where compiled code will land), I 
have my maven build creating ./build/ in the top-level directory and 
copying the jarfiles from the individual modules up to that using 
maven-dependency-plugin. It would probably be a good thing to copy the 
modules' *-sources.jar files there too, but I haven't found a syntax 
which will do that without also copying all the dependencies' 
sources.jar files. Any tips?



2) Some of Xalan's older documentation was written in stylebook. I'm 
currently handling that by running a post-build script (.sh or .bat) 
to execute the org.apache.stylebook.StyleBook class several times with 
appropriate arguments. It'd be more elegant to invoke that from the 
pom, of course, for clarity and portability... but I haven't yet 
gotten the exec plugin to Do The Right Thing. The needed command is 
something like (in Linux syntax):



java -cp 
stylebook/stylebook-1.0-b3_xalan-2.jar:tools/xalan2jdoc.jar:serializer/target/classes:xalan/target/classes org.apache.stylebook.StyleBook loaderConfig=sbk:/style/loaderdesign.xml targetDirectory=./target/site/design/ ./stylebook/sources/xalandesign.xml ./stylebook/style



... where of course the */target/classes are the compiled sub-modules 
and could just as easily be the generated jarfiles and referenced as 
maven artifacts (right?).


Might be possible to use the ant-stylebook plugin instead, but that 
seems to be deprecated, not well documented, and have CVEs against 
it... which last probably apply to my local copy too, admittedly.


-
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



Re: Multi-module build, emulating Ant build...

2023-11-06 Thread Joseph Kessselman
Turns out Stylebook does have a front-end driver that I don't have 
source for, so I'm just invoking it via exec:java for now. I'll clean up 
later. At least it gets rid of the platform-specific script and puts the 
pom in charge of everything.


Quick question re exec-maven-plugin: Is it possible for one instance of 
the plugin to run multiple executions, or should I just rely on copypasta?



On 11/4/2023 7:53 PM, Joseph Kessselman wrote:
1) For backward compatibility with the prior Ant build (and with the 
test framework's assumptions about where compiled code will land), I 
have my maven build creating ./build/ in the top-level directory and 
copying the jarfiles from the individual modules up to that using 
maven-dependency-plugin. It would probably be a good thing to copy the 
modules' *-sources.jar files there too, but I haven't found a syntax 
which will do that without also copying all the dependencies' 
sources.jar files. Any tips?



2) Some of Xalan's older documentation was written in stylebook. I'm 
currently handling that by running a post-build script (.sh or .bat) to 
execute the org.apache.stylebook.StyleBook class several times with 
appropriate arguments. It'd be more elegant to invoke that from the pom, 
of course, for clarity and portability... but I haven't yet gotten the 
exec plugin to Do The Right Thing. The needed command is something like 
(in Linux syntax):



java -cp 
stylebook/stylebook-1.0-b3_xalan-2.jar:tools/xalan2jdoc.jar:serializer/target/classes:xalan/target/classes org.apache.stylebook.StyleBook loaderConfig=sbk:/style/loaderdesign.xml targetDirectory=./target/site/design/ ./stylebook/sources/xalandesign.xml ./stylebook/style



... where of course the */target/classes are the compiled sub-modules 
and could just as easily be the generated jarfiles and referenced as 
maven artifacts (right?).


Might be possible to use the ant-stylebook plugin instead, but that 
seems to be deprecated, not well documented, and have CVEs against it... 
which last probably apply to my local copy too, admittedly.


-
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



Re: Multi-module build, emulating Ant build...

2023-11-05 Thread Joseph Kesselman
Well, I'm an idiot... Stylebook processing (at least until you want to try to 
run it through  FO and FOP) is just XSLT. There is a Maven plugin to invoke 
XSLT. It looks like it can even be configured to run from the copy I've just 
built, though I need to check that.

Duh. Too obvious.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Alexander Kriegisch 
Sent: Saturday, November 4, 2023 9:51:37 PM
To: users@maven.apache.org 
Subject: Re: Multi-module build, emulating Ant build...

Hi Joseph.

Just some thoughts:

  -- Stylebook seems to be a DocBook variant or extension. Maybe you
 could with little effort change the documentations to conform to
 DocBook and then use existing Docbook solutions for Maven.

  -- Scripting the build Ant-style by using Groovy or Bsh from
 corresponding Maven plugins is another, albeiut ugly, option. So is
 using Ant from Maven.

  -- You could write a simple Maven plugin encapsulating the minimal
 behaviour you need, publish it use it for Xalan.

  -- You could convert Stylebook to AsciiDoc and use existing Maven
 plugins to generate the documentation. Last year, I started to
 convert the DocBook and HTML files from the AspectJ documentation
 to AsciiDoc. I did the heavy lifting with Pandoc, batch-converting
 the DocBook stuff. Then I manually fixed up stuff like code blocks
 and other details to be as clean as I like them to be, which was
 tedious, but manageable. Back then, I did not finish my work,
 because the last step, changing the Maven docs generation stuff,
 has not been done yet, but the files look pretty nice already and
 can be directly displayed inline on GitHub, because, well - they
 are AsciiDoc now.

HTH. Regards
--
Alexander Kriegisch
https://scrum-master.de


Joseph Kessselman schrieb am 05.11.2023 06:53 (GMT +07:00):

> 1) For backward compatibility with the prior Ant build (and with the
> test framework's assumptions about where compiled code will land), I
> have my maven build creating ./build/ in the top-level directory and
> copying the jarfiles from the individual modules up to that using
> maven-dependency-plugin. It would probably be a good thing to copy the
> modules' *-sources.jar files there too, but I haven't found a syntax
> which will do that without also copying all the dependencies'
> sources.jar files. Any tips?
>
>
> 2) Some of Xalan's older documentation was written in stylebook. I'm
> currently handling that by running a post-build script (.sh or .bat) to
> execute the org.apache.stylebook.StyleBook class several times with
> appropriate arguments. It'd be more elegant to invoke that from the pom,
> of course, for clarity and portability... but I haven't yet gotten the
> exec plugin to Do The Right Thing. The needed command is something like
> (in Linux syntax):
>
>
> java -cp
> stylebook/stylebook-1.0-b3_xalan-2.jar:tools/xalan2jdoc.jar:serializer/target/classes:xalan/target/classes
>
> org.apache.stylebook.StyleBook loaderConfig=sbk:/style/loaderdesign.xml
> targetDirectory=./target/site/design/
> ./stylebook/sources/xalandesign.xml ./stylebook/style
>
>
> ... where of course the */target/classes are the compiled sub-modules
> and could just as easily be the generated jarfiles and referenced as
> maven artifacts (right?).
>
> Might be possible to use the ant-stylebook plugin instead, but that
> seems to be deprecated, not well documented, and have CVEs against it...
> which last probably apply to my local copy too, admittedly.
>
> -
> 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



Multi-module build, emulating Ant build...

2023-11-04 Thread Joseph Kessselman
1) For backward compatibility with the prior Ant build (and with the 
test framework's assumptions about where compiled code will land), I 
have my maven build creating ./build/ in the top-level directory and 
copying the jarfiles from the individual modules up to that using 
maven-dependency-plugin. It would probably be a good thing to copy the 
modules' *-sources.jar files there too, but I haven't found a syntax 
which will do that without also copying all the dependencies' 
sources.jar files. Any tips?



2) Some of Xalan's older documentation was written in stylebook. I'm 
currently handling that by running a post-build script (.sh or .bat) to 
execute the org.apache.stylebook.StyleBook class several times with 
appropriate arguments. It'd be more elegant to invoke that from the pom, 
of course, for clarity and portability... but I haven't yet gotten the 
exec plugin to Do The Right Thing. The needed command is something like 
(in Linux syntax):



java -cp 
stylebook/stylebook-1.0-b3_xalan-2.jar:tools/xalan2jdoc.jar:serializer/target/classes:xalan/target/classes 
org.apache.stylebook.StyleBook loaderConfig=sbk:/style/loaderdesign.xml 
targetDirectory=./target/site/design/ 
./stylebook/sources/xalandesign.xml ./stylebook/style



... where of course the */target/classes are the compiled sub-modules 
and could just as easily be the generated jarfiles and referenced as 
maven artifacts (right?).


Might be possible to use the ant-stylebook plugin instead, but that 
seems to be deprecated, not well documented, and have CVEs against it... 
which last probably apply to my local copy too, admittedly.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Feedback sought

2023-10-15 Thread Joseph Kesselman
Hm. Doesn't handle language-semantic formatting (yet?), which in my experience 
is often a bigger deal than spaces vs tabs. Good start, though.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Nils Breunese 
Sent: Sunday, October 15, 2023 3:01:28 AM
To: Maven Users List 
Subject: Re: Feedback sought

Joseph Kesselman  wrote:

> Re "IDE droppings"... My experience is that they can actually be useful in 
> expressing things like preferred code formatting style in 
> importable/executable form. (I'd rather have a standard cross-editor way if 
> representing that, but I don't know of one.)

You could take a look at EditorConfig: https://editorconfig.org/

Nils.


Re: Feedback sought

2023-10-15 Thread Joseph Kesselman
Thanks for the pointer.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Nils Breunese 
Sent: Sunday, October 15, 2023 3:01:28 AM
To: Maven Users List 
Subject: Re: Feedback sought

Joseph Kesselman  wrote:

> Re "IDE droppings"... My experience is that they can actually be useful in 
> expressing things like preferred code formatting style in 
> importable/executable form. (I'd rather have a standard cross-editor way if 
> representing that, but I don't know of one.)

You could take a look at EditorConfig: https://editorconfig.org/

Nils.


Re: Feedback sought

2023-10-14 Thread Joseph Kesselman
... And I committed my own typo; it should of course have been "moving forward 
with", not living. Darned auto-correct; I really need to learn to proofread 
more carefully when typing on the phone.


--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!
____
From: Joseph Kesselman 
Sent: Sunday, October 15, 2023 12:48:38 AM
To: Maven Users List 
Subject: Re: Feedback sought

Don't worry, we recognized your intent.

I do appreciate the feedback I'm getting. I asked for it, and hopefully the 
parts that don't make sense to apply right now will be useful in the future.

But, yes, let's focus on whether what I've done is worth living forward with 
rather than the details of how we got here. I realize that this large a 
changeset is a pain to review, and I wouldn't normally do it this way. But it 
isn't as much actual change as it appears to be, and I *think* it's stable 
enough to seriously consider cutting over to or I wouldn't have issued the PR.

I'd love to see the maven build tested on a few more systems, too. I've run it 
on Fedora (under WSL) and Windows 10; it would be good to have someone 
sanity-check it on a Mac.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Alexander Kriegisch 
Sent: Saturday, October 14, 2023 11:40:52 PM
To: users@maven.apache.org 
Subject: Re: Feedback sought

Alexander Kriegisch schrieb am 15.10.2023 10:36 (GMT +07:00):

>   -- Let us abuse reviews as a tool to micro-manage the contributor to
   
OMG, of course I meant "let us NOT abuse".

>  change what we would have done differently, until it looks exactly
>  like a change we would have done. It is both disheartening and a
>  waste of resources on both sides.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Feedback sought

2023-10-14 Thread Joseph Kesselman
Don't worry, we recognized your intent.

I do appreciate the feedback I'm getting. I asked for it, and hopefully the 
parts that don't make sense to apply right now will be useful in the future.

But, yes, let's focus on whether what I've done is worth living forward with 
rather than the details of how we got here. I realize that this large a 
changeset is a pain to review, and I wouldn't normally do it this way. But it 
isn't as much actual change as it appears to be, and I *think* it's stable 
enough to seriously consider cutting over to or I wouldn't have issued the PR.

I'd love to see the maven build tested on a few more systems, too. I've run it 
on Fedora (under WSL) and Windows 10; it would be good to have someone 
sanity-check it on a Mac.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Alexander Kriegisch 
Sent: Saturday, October 14, 2023 11:40:52 PM
To: users@maven.apache.org 
Subject: Re: Feedback sought

Alexander Kriegisch schrieb am 15.10.2023 10:36 (GMT +07:00):

>   -- Let us abuse reviews as a tool to micro-manage the contributor to
   
OMG, of course I meant "let us NOT abuse".

>  change what we would have done differently, until it looks exactly
>  like a change we would have done. It is both disheartening and a
>  waste of resources on both sides.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Feedback sought

2023-10-14 Thread Joseph Kesselman
Taking out the META-INF: I'll look at that.

NOTE that as long as this is basically an acceptable framework to replace the 
And build, and produces correct code, quibbles like editor configurations and 
unnecessary files can be cleaned up in subsequent edits; they shouldn't be 
considered blockers now. "Make it work, make it good, make it great. In that 
order."

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Greg Chabala 
Sent: Saturday, October 14, 2023 1:50:16 PM
To: Maven Users List 
Subject: Re: Feedback sought

That's certainly an ambitious changeset, but it takes courage to do great
work.

I'd generally suggest trying to make smaller steps so it's easier on
reviewers.

For instance:

   - Could you make a basic Maven build that delegated most of the work to
   Ant with maven-antrun-plugin?
   - If so, then you could have separate follow up steps for moving code
   into the standard Maven layout, and converting from libraries in source to
   Maven retrieved versions.
   - Could you convert a smaller artifact first, like the samples directory?

As far as specific advice on your current PR:

   - I'd recommend taking this opportunity to remove IDE droppings from
   source control entirely. .classpath, .project, .settings/* are all Eclipse
   specific and will be regenerated when the project is imported, if needed.
   They are needless noise in source control and IntelliJ IDEA users don't
   care about them at all.
   - Everything in META-INF will be generated by Maven, so none of that
   should be in source control either.


Re: Feedback sought

2023-10-14 Thread Joseph Kesselman
Re "IDE droppings"... My experience is that they can actually be useful in 
expressing things like preferred code formatting style in importable/executable 
form. (I'd rather have a standard cross-editor way if representing that, but I 
don't know of one.) But I don't care that strongly; if consensus is to drop 
them, I won't object. Nitpick, but a valid one.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Greg Chabala 
Sent: Saturday, October 14, 2023 1:50:16 PM
To: Maven Users List 
Subject: Re: Feedback sought

That's certainly an ambitious changeset, but it takes courage to do great
work.

I'd generally suggest trying to make smaller steps so it's easier on
reviewers.

For instance:

   - Could you make a basic Maven build that delegated most of the work to
   Ant with maven-antrun-plugin?
   - If so, then you could have separate follow up steps for moving code
   into the standard Maven layout, and converting from libraries in source to
   Maven retrieved versions.
   - Could you convert a smaller artifact first, like the samples directory?

As far as specific advice on your current PR:

   - I'd recommend taking this opportunity to remove IDE droppings from
   source control entirely. .classpath, .project, .settings/* are all Eclipse
   specific and will be regenerated when the project is imported, if needed.
   They are needless noise in source control and IntelliJ IDEA users don't
   care about them at all.
   - Everything in META-INF will be generated by Maven, so none of that
   should be in source control either.


Re: Feedback sought

2023-10-14 Thread Joseph Kesselman
There didn't seem to be a good intermediate point.

Maven wanted things organized differently, and I didn't know Maven well enough 
to argue with it.

Switching from private binaries to Maven packages was a driving force behind 
the cut-over, and the need to move from jlec to jflex forced the one 
significant  code change.

The "insignificant" ones in Javadoc were an attempt to get a Maven build with 
no errors before I found the control for turning off doclint. I could back them 
out but that doesn't seem a good use of resource at this point.

There really isn't that much actual code change. Most of it is moving things 
into different subdirectories.

It's a one time cost. There's really less needing review than may appear.

If someone wants to volunteer to take my changeset as the final goal and 
deliver it incrementally, I have no objection. I'm sure someone who knew Maven 
better could have done this more incrementally.

But I'm what was available, and this is what I could do. And it's actually 
pretty clean.

I think.



--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Greg Chabala 
Sent: Saturday, October 14, 2023 1:50:16 PM
To: Maven Users List 
Subject: Re: Feedback sought

That's certainly an ambitious changeset, but it takes courage to do great
work.

I'd generally suggest trying to make smaller steps so it's easier on
reviewers.

For instance:

   - Could you make a basic Maven build that delegated most of the work to
   Ant with maven-antrun-plugin?
   - If so, then you could have separate follow up steps for moving code
   into the standard Maven layout, and converting from libraries in source to
   Maven retrieved versions.
   - Could you convert a smaller artifact first, like the samples directory?

As far as specific advice on your current PR:

   - I'd recommend taking this opportunity to remove IDE droppings from
   source control entirely. .classpath, .project, .settings/* are all Eclipse
   specific and will be regenerated when the project is imported, if needed.
   They are needless noise in source control and IntelliJ IDEA users don't
   care about them at all.
   - Everything in META-INF will be generated by Maven, so none of that
   should be in source control either.


Feedback sought

2023-10-14 Thread Joseph Kessselman
I've just issued a pull request proposing that the Apache Xalan-Java 
project cut over from Ant-based to Maven-based build.


This is the first time I'm working with Maven, and I'm *sure* I have 
done things that are bad form. If anyone has time and energy to glance 
at it and sanity-check that I haven't made too much of a mess, that 
would be tremendously appreciated.


https://github.com/apache/xalan-java/pull/101

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven license distribution - repo

2023-10-11 Thread Joseph Kesselman
I presume: Maven can automatically download declared dependencies from a 
repository into the local repository  directory as needed. Or  users can 
manually download them into some other location and reference them as local 
"provided" resources.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Florent Biville 
Sent: Wednesday, October 11, 2023 5:54:18 AM
To: Maven Users List 
Subject: Maven license distribution - repo

Hello,

Could someone clarify what "repo" actually means in terms of license
distribution.
I searched the interwebz without much success.

I also find the official documentation
 quite vague:

This describes how the project may be legally distributed. The two stated
> methods are repo (they may be downloaded from a Maven repository) or manual
> (they must be manually installed).
>

What does "downloaded from a Maven repository" mean here?

Thanks a lot!
Florent


Re: "First time caller..." javadoc taglet dependencies?

2023-10-04 Thread Joseph Kessselman

Oh. Duh.

  
com.sun
tools
1.6.0
system
${toolsjar}
  



On 10/3/2023 10:04 PM, Alexander Kriegisch wrote:

Hi Joseph.

I think you uncovered a bug in Maven Javadoc Plugin. I just created
https://issues.apache.org/jira/browse/MJAVADOC-775 on your behalf.

As a workaround for the non-functioning 'tagletpath' option, I recommend
to separately publish the taglet library as a Maven artifact, which then
you can refer to using the 'tagletArtifact' option. The hypothetical
workaround to just use a system-scoped dependency and refer to that in
'tagletArtifact', is not working either. So, until this will have been
fixed, your options are very limited.

Because I was looking at the two simple taglet classes in your JAR
anyway from my IDE when analysing your problem, in the attached ZIP
archive is the decompiled source code for both classes, just in case you
do not have the sources anymore and want to recreate the JAR as a
separate artifact. I hope that the mailing list does not strip off
attachments.

Regards


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: "First time caller..." javadoc taglet dependencies?

2023-10-04 Thread Joseph Kesselman
Thanks for the analysis, and the decompile. One of the reasons we're being 
pushed to Mavenize xalan is that people have been grumbling about our carrying 
binaries in the package, so this will make them happier.

My only other real gripe with Maven at the moment is that I haven't yet found a 
way to tell the javadoc plugin "Yes, I know there's lots that can be improved, 
but for now please consider that a Warning rather than an Error."


--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!

From: Alexander Kriegisch 
Sent: Tuesday, October 3, 2023 10:04:33 PM
To: users@maven.apache.org 
Subject: Re: "First time caller..." javadoc taglet dependencies?

Hi Joseph.

I think you uncovered a bug in Maven Javadoc Plugin. I just created
https://issues.apache.org/jira/browse/MJAVADOC-775 on your behalf.

As a workaround for the non-functioning 'tagletpath' option, I recommend
to separately publish the taglet library as a Maven artifact, which then
you can refer to using the 'tagletArtifact' option. The hypothetical
workaround to just use a system-scoped dependency and refer to that in
'tagletArtifact', is not working either. So, until this will have been
fixed, your options are very limited.

Because I was looking at the two simple taglet classes in your JAR
anyway from my IDE when analysing your problem, in the attached ZIP
archive is the decompiled source code for both classes, just in case you
do not have the sources anymore and want to recreate the JAR as a
separate artifact. I hope that the mailing list does not strip off
attachments.

Regards
--
Alexander Kriegisch
https://scrum-master.de


Joseph Kessselman schrieb am 04.10.2023 05:41 (GMT +07:00):

> Hi, folks. I'm in the process of trying to port the Apache Xalan build
> from Ant to Maven. It's close to usable, but I'm still struggling with a
> few odd corners.
>
> One of the odder corners: The Xalan documentation uses a javadoc taglet,
> @xsl.usage, to indicate whether a method is intended only for internal
> use despite having to be public for cross-package references. This is
> working fine in one of the two modules of this project, but in the other
> I get:
>
> [ERROR] javadoc: error - Error - Exception
> java.lang.ClassNotFoundException thrown while trying to register Taglet
> xalan2jtaglet.XSLUsageTag...
> [ERROR]
> /home/keshlam/git/xalan-java-mvn/serializer/src/main/java/org/apache/xml/serializer/AttributesImplSerializer.java:37:
>
> error: unknown tag: xsl.usage
>
> Not a very helpful error message Trying to probe at this, the best
> guess I have is that the taglet code has a dependency on another
> jarfile, specifically tools.jar (or equivalent). None of my POMs
> explicitly reference tools.jar, but it's possible that one module is
> acquiring it as an indirect dependency while the other isn't.
>
> My question is whether this diagnosis is likely to be vaguely correct,
> if not how to get a more useful error message out of the javadoc
> invocation, and if so how to make tools.jar available to the taglet in a
> moderately portable manner. I've been trying various fragments from
> Stack Overflow and haven't found one that worked for me yet, hence the
> question here.
>
>
>
> The overall porting attempt is checked in as
> https://github.com/jkesselm/xalan-java-mvn.git if you want to look at
> the configuration as it currently stands, with this problem as yet unsolved.
>
> Thanks in advance. "If it was easy, they wouldn't need _us_."
>
>
> (If anyone is foolish enough to want to glance over the pom.xml files
> for this build and sanity-check them for massive volations of Maven
> idiom or horrible misunderstandings of Maven use, I'd greatly appreciate
> it. I haven't previously written a Maven configuration and a lot of this
> has been guesswork based on how many other build systems have behaved.)
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


"First time caller..." javadoc taglet dependencies?

2023-10-03 Thread Joseph Kessselman
Hi, folks. I'm in the process of trying to port the Apache Xalan build 
from Ant to Maven. It's close to usable, but I'm still struggling with a 
few odd corners.


One of the odder corners: The Xalan documentation uses a javadoc taglet, 
@xsl.usage, to indicate whether a method is intended only for internal 
use despite having to be public for cross-package references. This is 
working fine in one of the two modules of this project, but in the other 
I get:


[ERROR] javadoc: error - Error - Exception 
java.lang.ClassNotFoundException thrown while trying to register Taglet 
xalan2jtaglet.XSLUsageTag...
[ERROR] 
/home/keshlam/git/xalan-java-mvn/serializer/src/main/java/org/apache/xml/serializer/AttributesImplSerializer.java:37: 
error: unknown tag: xsl.usage


Not a very helpful error message Trying to probe at this, the best 
guess I have is that the taglet code has a dependency on another 
jarfile, specifically tools.jar (or equivalent). None of my POMs 
explicitly reference tools.jar, but it's possible that one module is 
acquiring it as an indirect dependency while the other isn't.


My question is whether this diagnosis is likely to be vaguely correct, 
if not how to get a more useful error message out of the javadoc 
invocation, and if so how to make tools.jar available to the taglet in a 
moderately portable manner. I've been trying various fragments from 
Stack Overflow and haven't found one that worked for me yet, hence the 
question here.




The overall porting attempt is checked in as 
https://github.com/jkesselm/xalan-java-mvn.git if you want to look at 
the configuration as it currently stands, with this problem as yet unsolved.


Thanks in advance. "If it was easy, they wouldn't need _us_."


(If anyone is foolish enough to want to glance over the pom.xml files 
for this build and sanity-check them for massive volations of Maven 
idiom or horrible misunderstandings of Maven use, I'd greatly appreciate 
it. I haven't previously written a Maven configuration and a lot of this 
has been guesswork based on how many other build systems have behaved.)


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Parent pom not resolved in current reactor ?

2014-10-13 Thread Grégory Joseph
Hey there,

In the documentation for "relativePath" in
http://maven.apache.org/xsd/maven-4.0.0.xsd, I read that "Maven looks
for the parent pom first in the reactor of currently building
projects, then <...>". Oddly enough, even though the reference docs
_seem_ to be generated off of the same source, this bit is absent from
http://maven.apache.org/ref/3.2.3/maven-model/maven.html#class_parent

Empirically, it would appear the online doc is correct and the xsd doc
is wrong, but I'd like a confirmation this is indeed the intended
behavior. I'm currently working on a project that has a reactor, but
where some of the modules have a different lifecycle than others; for
those, it is inconvenient to have to have  (because that
paths points to a current snapshot, where as the rest of the 
tag point to a release version of the same artifact, making it unclear
which one is actually used)

Thanks for any hint or tip,

Cheers,

-greg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Changes in how exclusions are applied transitively ?

2013-07-24 Thread Grégory Joseph
Hey there,

I can't seem to find an accurate trace of this in the release notes,
so I thought I'd just ping the list - Changes in how exclusions are
applied transitively between Maven 2.2.1 and 3.1 ?

Here's a situation: A has dependencies on B and C. Both transitively
depend on D  (through X, which is irrelevant, I think)  but B excludes
it (on its dep declaration of X)

With 2.2.1, D was (wrongly imo) excluded from A (depending on
dependency order, seemingly)

With 3.1, it appears to behave "correctly".

Since I'm stuck with 2.2.1 for a bit, I'm facing a situation right now
where I need to work around the bug, currently by removing the
exclusions. That's currently OK, but at some point, those exclusions
will be re-added (in A or in a new project) and we'll face the same
issue again, without any clue as to why.

How have people dealt with this so far ?

Thanks for any hint or pointers !

-greg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Changes in how exclusions are applied transitively ?

2013-07-24 Thread Grégory Joseph
Hey there,

I can't seem to find an accurate trace of this in the release notes,
so I thought I'd just ping the list - Changes in how exclusions are
applied transitively between Maven 2.2.1 and 3.1 ?

Here's a situation: A has dependencies on B and C. Both transitively
depend on D  (through X, which is irrelevant, I think)  but B excludes
it (on its dep declaration of X)

With 2.2.1, D was (wrongly imo) excluded from A (depending on
dependency order, seemingly)

With 3.1, it appears to behave "correctly".

Since I'm stuck with 2.2.1 for a bit, I'm facing a situation right now
where I need to work around the bug, currently by removing the
exclusions. That's currently OK, but at some point, those exclusions
will be re-added (in A or in a new project) and we'll face the same
issue again, without any clue as to why.

How have people dealt with this so far ?

Thanks for any hint or pointers !

-greg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Site, deployment url and inheritance

2012-07-02 Thread Grégory Joseph
On 2 July 2012 14:38, Lukas Theussl  wrote:
> Grégory Joseph wrote:
>> Just tried staging, and indeed, the paths in that case are correct* -

I take it back. Staging was fine… with 2.1.1.
With 3.1 I get this, for example for last module of the multi-module build
[INFO] Pushing /project-root/moduleX/target/site
[INFO]>>> to
file:///project-root/target/staging/../..//
… which is wrong, since that makes
 end up in the project root,
and not under target/staging/...

>> but again, I'm assuming that's because the normalization is done and
>> supported by my local FS ?
>
> IIRC normalization is done by the wagon you are using for the deploy, so
> it's outside the realm of the site plugin. I seem to remember that this
> was also the reason for adding a dot component /./ in the deployment url
> because some wagons only worked like that (I might be wrong though, it's
> been a while...).
>
> OTOH, I don't quite see what the problem is, a non-normalized url is
> still a valid url and every server/file system should be able to deal
> with it. Or do you have a specific actual issue that's caused by it?
> There have been issues reported (MSITE-531, MSITE-601) but in each case
> the underlying cause was outside maven/wagon/site-plugin.

Yes I do have an issue with that, that's why I'm here for ;) The "../"
isn't resolved properly, I'm assuming on the server side -- it seems
my Nexus instance just zaps it entirely, so "a/b/../../foo" ends up in
"a/b/foo".

Anyhow - I am currently re-testing all I can, and considering going
back to 2.1.1 - not sure what my problem was with it in the first
place, that I wanted to try the newer version :D

Cheers,

-g

>>
>> * with the strange bug that "https://nexus.domain.org/xyz"; was
>> converted to targetstaging/http/s.domain.org/xyz ...
>
> that looks weird indeed, if you have a test case I will look at it.
>
> -Lukas
>
>>
>> On 2 July 2012 13:57, Grégory Joseph  wrote:
>>> Hi Lukas,
>>>
>>> On 2 July 2012 13:18, Lukas Theussl  wrote:
>>>> Grégory Joseph wrote:
>>>>> It kind of sounds like MSITE-600 to me, so I'm unsure if/how the issue
>>>>> was fixed. Example:
>>>>> * Corporate parent pom defines this site deployment url:
>>>>> prot://foo/${artifactId}/${version} -- it works for this pom, and it's
>>>>> a good enough default for most of our single-module projects. Not the
>>>>> lack of trailing slash, btw.
>>>>> * Some multi-module project defines this site deployment url:
>>>>> prot://foo/xuq/lolcats/${version}. And the resulting deployment urls
>>>>> end up looking like:
>>>>> prot://foo/corp-parent/12//../../xuq/lolcats/${version} (and I still
>>>>> don't know where the double slash comes from)
>>>>
>>>> Normalizing this is exactly the same as
>>>> prot://foo/xuq/lolcats/${version},
>>>
>>> It *should* be, but by using those URLs as-is, Maven relies on the
>>> receiving end to do the normalization.
>>> And I'm still wondering why it bothers doing that in the first place ;)
>>>
>>>> so the deployment location should be
>>>> correct. Did you try site:stage to check?
>>>
>>> How is that helping ? I am not worried about inter-module links -
>>> those indeed seem to work - but about why the parent's urls are taken
>>> into account in the first place, and if there's a good reason for
>>> that, then I wonder why normalization doesn't happen on the Maven
>>> side.
>>>
>>> Cheers,
>>>
>>> -g
>>
>> -
>> 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



Re: Site, deployment url and inheritance

2012-07-02 Thread Grégory Joseph
Just tried staging, and indeed, the paths in that case are correct* -
but again, I'm assuming that's because the normalization is done and
supported by my local FS ?

-g

* with the strange bug that "https://nexus.domain.org/xyz"; was
converted to targetstaging/http/s.domain.org/xyz ...

On 2 July 2012 13:57, Grégory Joseph  wrote:
> Hi Lukas,
>
> On 2 July 2012 13:18, Lukas Theussl  wrote:
>> Grégory Joseph wrote:
>>> It kind of sounds like MSITE-600 to me, so I'm unsure if/how the issue
>>> was fixed. Example:
>>> * Corporate parent pom defines this site deployment url:
>>> prot://foo/${artifactId}/${version} -- it works for this pom, and it's
>>> a good enough default for most of our single-module projects. Not the
>>> lack of trailing slash, btw.
>>> * Some multi-module project defines this site deployment url:
>>> prot://foo/xuq/lolcats/${version}. And the resulting deployment urls
>>> end up looking like:
>>> prot://foo/corp-parent/12//../../xuq/lolcats/${version} (and I still
>>> don't know where the double slash comes from)
>>
>> Normalizing this is exactly the same as
>> prot://foo/xuq/lolcats/${version},
>
> It *should* be, but by using those URLs as-is, Maven relies on the
> receiving end to do the normalization.
> And I'm still wondering why it bothers doing that in the first place ;)
>
>> so the deployment location should be
>> correct. Did you try site:stage to check?
>
> How is that helping ? I am not worried about inter-module links -
> those indeed seem to work - but about why the parent's urls are taken
> into account in the first place, and if there's a good reason for
> that, then I wonder why normalization doesn't happen on the Maven
> side.
>
> Cheers,
>
> -g

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Site, deployment url and inheritance

2012-07-02 Thread Grégory Joseph
Hi Lukas,

On 2 July 2012 13:18, Lukas Theussl  wrote:
> Grégory Joseph wrote:
>> It kind of sounds like MSITE-600 to me, so I'm unsure if/how the issue
>> was fixed. Example:
>> * Corporate parent pom defines this site deployment url:
>> prot://foo/${artifactId}/${version} -- it works for this pom, and it's
>> a good enough default for most of our single-module projects. Not the
>> lack of trailing slash, btw.
>> * Some multi-module project defines this site deployment url:
>> prot://foo/xuq/lolcats/${version}. And the resulting deployment urls
>> end up looking like:
>> prot://foo/corp-parent/12//../../xuq/lolcats/${version} (and I still
>> don't know where the double slash comes from)
>
> Normalizing this is exactly the same as
> prot://foo/xuq/lolcats/${version},

It *should* be, but by using those URLs as-is, Maven relies on the
receiving end to do the normalization.
And I'm still wondering why it bothers doing that in the first place ;)

> so the deployment location should be
> correct. Did you try site:stage to check?

How is that helping ? I am not worried about inter-module links -
those indeed seem to work - but about why the parent's urls are taken
into account in the first place, and if there's a good reason for
that, then I wonder why normalization doesn't happen on the Maven
side.

Cheers,

-g

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Site, deployment url and inheritance

2012-07-02 Thread Grégory Joseph
Hi there,

I've seen this "topic" debated many times, and still haven't figured
everything out. I was recently confused by the handling and
inheritance of urls in Maven. I think I got most of it, when it comes
to project.url.

Now, when it comes to deploying a site, I'm baffled. Up to
maven-site-plugin 2.1.1, things seem to be fairly understandable. It
wasn't exactly possible (at least to my understanding) to have
multi-module projects sites deployed in a "versioned" directory
(because ${artifactId}/${version} would be re-interpolated for every
submodule). But at least, I could do a help:effective-pom, and get the
URLs that would be used for deployment.

Now I just tried 3.1, and I'm baffled that I can't seem to be able to
completely override the distributionManagement.site.url defined by my
parent pom. Using help:effective-pom gives me the URLs I expect, and
the ones i would like Maven to use when deploying the site. However,
the plugin seems to think differently, and tries to upload to
"relativised" urls, somehow inheriting the site url defined in a
corporate parent pom, adding some levels of "../" and finally the path
i'm expecting.

It kind of sounds like MSITE-600 to me, so I'm unsure if/how the issue
was fixed. Example:
* Corporate parent pom defines this site deployment url:
prot://foo/${artifactId}/${version} -- it works for this pom, and it's
a good enough default for most of our single-module projects. Not the
lack of trailing slash, btw.
* Some multi-module project defines this site deployment url:
prot://foo/xuq/lolcats/${version}. And the resulting deployment urls
end up looking like:
prot://foo/corp-parent/12//../../xuq/lolcats/${version} (and I still
don't know where the double slash comes from)

So unlike one of the latest comments in MSITE-600, I'm not even trying
to change the protocol. But it seems that either the wagon (i'm using
dav, if that's relevant), or the Nexus instance I have at the
receiving end, don't cope well with those "../".

Question is two fold:
* Why is the plugin even trying to do that ? Why is it not following
the same rules as effective-pom ? How can one "preview" what urls will
be used, then ?
* How do people really deploy sites with a version number in the path,
when using a "corporate" parent pom, without redefining the site.url
for every single project ?

Thanks for any hint or tip !

Cheers,
-greg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

2012-06-21 Thread Joseph
If u were using oracle jdk 1.5+,have a try with jvm param 
-xx:+TraceClassLoading ,this might helps a little

在 2012-6-22,8:26,hujirong  写道:

> [WARNING] We have a duplicate
> org/apache/log4j/varia/ExternallyRolledFileAppender.class in
> C:\Users\Administrator\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar
> 
> What does this mean? I deleted  org/apache folder in
> C:\Users\Administrator\.m2\repository, still having this error.
> 
> Thanks
> Jirong
> 
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/We-have-a-duplicate-org-apache-log4j-varia-ExternallyRolledFileAppender-class-tp5711741.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> -
> 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



RE: [maven-site-plugin] trouble migrating from 3.0-beta3 to 3.0, bug?

2012-02-23 Thread Joseph Argiro
Did you move the   section  INSIDE the  site plugin

I had the same problem & fixed it by removing the reporting section
And rewriting the maven-site-plugin  section of the pom

See http://maven.apache.org/plugins/maven-site-plugin/maven-3.html
Look at old configuration / new configuration

-Original Message-
From: nodje [mailto:nodje...@gmail.com]
Sent: Thursday, February 23, 2012 12:23 AM
To: users@maven.apache.org
Subject: Re: [maven-site-plugin] trouble migrating from 3.0-beta3 to 3.0,
bug?

Hum, I guess I can provide something.

I can send you the smallest 'mvn site' failing project.
Note that it does in a similar fashion on all failing projects.

I've integrated the parent pom into the project pom for convenience, I
hope it'll work without problem for you.

I'll send it on you apache email.

cheers

Olivier Lamy [via Maven] wrote:
> Hello,
> Do you have a sample project to reproduce that ?
>
> 2012/2/22 nodje <[hidden email]
> >:
>
>> migration form 2.x to 3.0-betax wasn't much of a problem, but since
> then, I
>> had to release components and fix version.
>>
>> Now with maven-site-plugin:3.0, I have a recurring error and can't
> find any
>> information on it. It basically looks like this, happens on 'mvn site'
> goal.
>>
>> Number of foreign imports: 1
>> import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
>>
>> -
>>
>>at
>>
>
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuild
PluginManager.java:139)
>
>>at
>>
>
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java
:209)
>
>>... 19 more
>> Caused by: org.apache.maven.plugin.PluginContainerException: An API
>> incompatibility was encountered while executing
>> org.apache.maven.plugins:maven-site-plugin:3.0:site:
>> java.lang.AbstractMethodError: null
>>
>> I still have a couple of small components which can successfully pass
the
>> 'site' goal, but they don't seem to have anything different from the
> others.
>> Can't figure anything form those, site.xml is identical in every
project.
>>
>> See end of post for complete debug stack trace.
>>
>> Thanks for any help or pointer.
>>
>>
>>
>> realm =plugin>org.apache.maven.plugins:maven-site-plugin:3.0
>> strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
>> urls[0] =
>>
>
file:/Users/nodje/.m2/repository/org/apache/maven/plugins/maven-site-plugi
n/3.0/maven-site-plugin-3.0.jar
>
>> urls[1] =
>>
>
file:/Users/nodje/.m2/repository/org/apache/maven/reporting/maven-reportin
g-exec/1.0.1/maven-reporting-exec-1.0.1.jar
>
>> urls[2] =
>>
>
file:/Users/nodje/.m2/repository/org/apache/maven/reporting/maven-reportin
g-api/3.0/maven-reporting-api-3.0.jar
>
>> urls[3] =
>>
>
file:/Users/nodje/.m2/repository/org/apache/velocity/velocity/1.5/velocity
-1.5.jar
>
>> urls[4] = file:/Users/nodje/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
>> urls[5] =
>> file:/Users/nodje/.m2/repository/velocity/velocity/1.5/velocity-1.5.jar
>> urls[6] =
>>
>
file:/Users/nodje/.m2/repository/org/sonatype/aether/aether-util/1.7/aethe
r-util-1.7.jar
>
>> urls[7] =
>>
>
file:/Users/nodje/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/
sisu-inject-bean-1.4.2.jar
>
>> urls[8] =
>>
>
file:/Users/nodje/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-g
uice-2.1.7-noaop.jar
>
>> urls[9] =
>>
>
file:/Users/nodje/.m2/repository/org/codehaus/plexus/plexus-interpolation/
1.14/plexus-interpolation-1.14.jar
>
>> urls[10] =
>>
>
file:/Users/nodje/.m2/repository/org/codehaus/plexus/plexus-component-anno
tations/1.5.5/plexus-component-annotations-1.5.5.jar
>
>> urls[11] =
>>
>
file:/Users/nodje/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher
/1.3/plexus-sec-dispatcher-1.3.jar
>
>> urls[12] =
>>
>
file:/Users/nodje/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/ple
xus-cipher-1.4.jar
>
>> urls[13] =
>>
>
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.2
/doxia-sink-api-1.2.jar
>
>> urls[14] =
>>
>
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-logging-api/
1.2/doxia-logging-api-1.2.jar
>
>> urls[15] =
>> file:/Users/nodje/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
>> urls[16] =
>>
>
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-core/1.2/dox
ia-core-1.2.jar
>
>> urls[17] =
>>
>
file:/Users/nodje/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.
jar
>
>> urls[18] =
>>
>
file:/Users/nodje/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.
jar
>
>> urls[19] =
>>
>
file:/Users/nodje/.m2/repository/org/apache/httpcomponents/httpclient/4.0.
2/httpclient-4.0.2.jar
>
>> urls[20] =
>>
>
file:/Users/nodje/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/
httpcore-4.0.1.jar
>
>> urls[21] =
>>
>
file:/Users/nodje/.m2/repository/commons-codec/commons-codec/1.3/commons-c
odec-1.3.jar
>
>> urls[22] =
>>
>
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml
/1.2/doxia-module-

Any plans for a release of the checkstyle plugin 2.7 ?

2011-07-21 Thread Grégory Joseph
Hi guys,

I see on Jira that all issues for maven-checkstyle-plugin 2.7 have
been resolved. Are there any plans for releasing ?

I'm asking because I'd like to use features which have been added to
Checkstyle 5.2+, and can not, because Checkstyle's groupId has changed
in 5.2, so I can't use a newer version by simply changing the
dependency in the plugin.

Cheers,

-greg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: question about mvn dir structure

2011-06-29 Thread Joseph
app was created by command line.

"Yes, you'd need to match the package structure for resources ..." <--
all by hand coding ? any tools or tricks that do?

2011/6/30 Wendy Smoak :
> On Wed, Jun 29, 2011 at 9:12 PM, Joseph  wrote:
>> I am a newbie for mvn and have a simple question about dir structure.I
>> know the basic dirs were created automaticlly by mvn after
>> initialization setup of a web apps.Then what I do is just code and
>> create some packages under src/main/java,but the resource and test
>> directories did not updated .Do I have to create dir(package) under
>> resource/test manually to align against src/main/java structure? or do
>> we have some tricks that could accomplish that?
>
> How did you set up your webapp?  Did you use the archetype plugin at
> the command line, or are you using an IDE?
>
> (Yes, you'd need to match the package structure for resources and
> tests so things end up where they belong.)
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>



-- 
Never trust your computer.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



question about mvn dir structure

2011-06-29 Thread Joseph
Hi all,

I am a newbie for mvn and have a simple question about dir structure.I
know the basic dirs were created automaticlly by mvn after
initialization setup of a web apps.Then what I do is just code and
create some packages under src/main/java,but the resource and test
directories did not updated .Do I have to create dir(package) under
resource/test manually to align against src/main/java structure? or do
we have some tricks that could accomplish that?


thanks a lot




Joseph

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



M2 how to switch to wagon-ssh 1.0-beta-6

2011-03-01 Thread Joseph Argiro
In maven2

How do I upgrade to wagon-ssh 1.0-beta-6



I added the following to my pom.xml



   

 org.apache.maven.wagon

 wagon-ssh

 1.0-beta-7







It downloads beta-6 but the build still  uses beta-2



What am I missing?



--joe


Re: Where is the global settings.xml for built-in (embedded) Maven in Eclipse?

2011-01-04 Thread Joseph
did u have a check on some dir like "{user_home}/.m2/" ?

like "c:\user\Joseph\.m2\..."


2011-01-05 



Joseph 



发件人: Ben Stover 
发送时间: 2011-01-04  20:57:34 
收件人: Maven Users 
抄送: 
主题: Where is the global settings.xml for built-in (embedded) Maven in Eclipse? 
 
Yes, I know the global settings file for a stand-alone Maven is in
\conf\settings.xml
But where is that corresponding file if I use the built-in, embedded Maven in 
Eclipse (v3.6.1) ?
Ben
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


Remote resources: what's include/exclude for ?

2010-11-16 Thread Grégory Joseph
Hi there,

Could anyone shed some light on what the exclude* and include*
configuration items in the remote-resources plugin's process goal [1]
are for ? What gets included/excluded ?

Thanks for any hint,

-greg
[1] 
http://maven.apache.org/plugins/maven-remote-resources-plugin/process-mojo.html

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Including scope:provided dependencies in a shaded jar ?

2010-10-29 Thread Grégory Joseph
Hi again,

>> could split my project and have 2 modules, one simply being the
>> standalone/shaded version of the other, but it seems overkill, since
>> they're really the same source.

On 27 October 2010 19:33, Wayne Fay  wrote:
> This is the correct approach (imo). Two artifacts, one for the
> provided artifact, another for the shaded artifact.

On 27 October 2010 19:49, Antonio Petrelli  wrote:
> The multi-module path is the best. Why do you say that they share "the
> same source"? The shaded project must have a dependency on the
> original project, so it takes the compiled version, not the source.

This actually does not really solve my problem.

Parent:
 !-- projectA - the "regular" project, which depends on thirdParty
with scope:provided
 !-- projectB - the new "shading" project, which depends on projectA

The only way I can get projectB's generated shaded jar to also include
thirdParty is to redefine that dependency in projectB and change its
scope.

Which would be ok if projectA had that single dependency.
Unfortunately it has a few more.

On of the reasons my dependencies are in scope:provided, is because we
also build an assembly with the regular jar and a few text files.
Dependencies don't need to be shipped with this; we use a common
assembly descriptor where dependencies in scope:provided are excluded.

I just tried the same approach for this assembly, i.e extract it to a
3rd module, but I still run in the same issues.

It looks like I'll either have to add a bunch of  in my
assembly's dependency to projectA .. or re-declare all deps of
projectA in projectB. Neither is appealing nor convenient... any other
option ?

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Including scope:provided dependencies in a shaded jar ?

2010-10-28 Thread Grégory Joseph
Hi Jörg,

> Did you see this:
> http://maven.apache.org/plugins/maven-shade-plugin/shade-
> mojo.html#keepDependenciesWithProvidedScope

I did, but it doesn't do what I need; my understanding is that it
changes the scope of the compile-scoped deps to :provided in the
shaded jar's pom.

Antonio, Wayne,
> The multi-module path is the best. Why do you say that they share "the
> same source"? The shaded project must have a dependency on the
> original project, so it takes the compiled version, not the source.

Yeah. Not something I like to do in a minor release though.
The shaded artifact will be a pom-only project, which always seems a
little silly.
Oh well.
Thanks ;)

-g

>> I have a project for which I'd like to create a shaded jar.
>> It has a bunch of dependencies in scope:provided, because they really
>> are, in the normal use-case of this artifact; it's meant to be
>> deployed as a plugin in another app, so, for example, myapp-api really
>> is "provided".
>>
>> The project also has an assembly, which depends on these deps to be
>> scope:provided (so they're not included in the assembly)
>>
>> If a webapp project is made and depends on this project, the
>> scope:provided also helps avoiding duplicated dependencies in some
>> cases. (I might have to double-check what I'm saying here ...)
>>
>> .. but yes, this project now also needs a standalone/executable jar;
>> some of the "provided" dependencies are needed at runtime for this. As
>> far as I can tell, the shade plugin currently does not propose any
>> solution for this.
>>
>> Is there any way this could be considered for the plugin ? Or am I
>> looking at it the wrong way ? Are there any alternatives ? I suppose I
>> could split my project and have 2 modules, one simply being the
>> standalone/shaded version of the other, but it seems overkill, since
>> they're really the same source.
>>
>> I've also looked at the assembly plugin, but as far as I can tell it
>> doesn't have a "minify" feature yet. (and we're talking 12mb vs 500k
>> when minified)
>>
>> I reported this as http://jira.codehaus.org/browse/MSHADE-89
>> yesterday, before figuring it might be better discussed here
>> beforehand.
>>
>> Thanks for any tip or hint,

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: synchronizing version of interdependent projects

2008-07-07 Thread Joseph Syjuco
Thank you for the quick reply Luke - one thing I forgot to mention in my
previous post is that we are using Maven 1 w/ cruisecontrol which builds the
trunk projects (sometimes with SNAPSHOT).   To futher add description to our
setup we are using the multiproject plugin.  As I was browsing through the
Net I found one feature dependencyManagement where I can list down all
versions of the project in one pom.xml ... unfortunately I cant see it
implemented in Maven 1

On 7/7/08, Luke Daley <[EMAIL PROTECTED]> wrote:
>
>
> On 07/07/2008, at 2:24 PM, Joseph Syjuco wrote:
>
> We have a project consisting of 20+ interdependent folders 
>> unfortunately whenever 1 project updates its version I am having
>> difficulty
>> modifying projects that has a dependency to it.  Right now I had to open
>> each project.xml and search for it.  Additionally, since this project has
>> just been turned over to us, I am not familiar with the relationship
>> between
>> this projects/ folders.  Is there a way/ tool that will allow me to
>> identify
>> folders or project.xml and it will automatically check and update version
>> information.
>>
>> I am new to maven so apologies if this problem is a basic one
>>
>
> If you use the version number 'RELEASE' you will get the latest non
> snapshot version.
>
> LD.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


synchronizing version of interdependent projects

2008-07-06 Thread Joseph Syjuco
Hi all,

We have a project consisting of 20+ interdependent folders 
unfortunately whenever 1 project updates its version I am having difficulty
modifying projects that has a dependency to it.  Right now I had to open
each project.xml and search for it.  Additionally, since this project has
just been turned over to us, I am not familiar with the relationship between
this projects/ folders.  Is there a way/ tool that will allow me to identify
folders or project.xml and it will automatically check and update version
information.

I am new to maven so apologies if this problem is a basic one

Regards,
Joseph


Re: how to remove maven specific files

2008-04-29 Thread walid joseph Gedeon
Hello ragjan, have you run "mvn clean" before trying again?

On Thu, Apr 24, 2008 at 5:21 AM, I am Who i am <[EMAIL PROTECTED]> wrote:

> No use
>  its still same here it is what i have
>
>
>org.apache.maven.plugins
>maven-jar-plugin
> 2.2
> 
>
>
> ${basedir}/../wsear/META-INF/MANIFEST.MF
> false
>
>
>
>
>
> On Wed, Apr 23, 2008 at 3:34 PM, Stephen Connolly <
> [EMAIL PROTECTED]> wrote:
>
> > On Tue, Apr 22, 2008 at 11:29 PM, I am Who i am <[EMAIL PROTECTED]>
> wrote:
> >
> > > Hi All,
> > >
> > > How to remove maven related files like maven folder / pom.xml /
> > > pom.properties files from the jar file being created, i have the
> > following
> > > in my pom, but still seeing the maven directory with pom /
> > > .xml/.properties
> > > under META-INF directory, my jar plugin version is 2.2
> > > 
> > > 
> > >
> > >org.apache.maven.plugins
> > >maven-jar-plugin
> > >
> > >
> > >CUSTOM-MANIFEST
> > >
> > >jar
> > >
> > >
> > >
> > >
> > > ${basedir}/../wsear/META-INF/MANIFEST.MF
> > > false
> > >
> > >
> > >
> > >
> > >
> > >   
> > >   
> > >
> > >
> > > Please help
> > >
> >
> > What you have done is only removed the files from the execution you
> > added...
> > additionally you have not attached this execution to any phase... what
> you
> > want to do is change the default configuration for the jar plugin in
> your
> > pom.xml by doing
> >
> >
> > 
> >
> >   
> >   org.apache.maven.plugins
> >
> > >maven-jar-plugin
> > >
> > >
> > >
> > > ${basedir}/../wsear/META-INF/MANIFEST.MF
> > > false
> > >
> > >
> > >
> > >   
> > >   
> > >
> >
>


Re: how to prevent default goal in a phase to run?

2008-04-29 Thread walid joseph Gedeon
Hello Zemian,
   Can you share parts of your pom?
Thanks.

On Wed, Apr 23, 2008 at 10:01 PM, Zemian Deng <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> I have successfully setup and bind assembly plugin in pom to generate my
> custom jar file at package phase. But then the default jar:jar still get
> run
> during package phase. How can i prevent it from running, or skip this
> goal?
>
> --
> Thanks,
> Zemian Deng
>


Re: [POLL] Default Value for File Encoding

2008-04-29 Thread walid joseph Gedeon
+1 for a)

- People that don't care about it don't need to worry
- It works similarly within groups that share the same encodings
- When it breaks, because cross-unicode-script contributors are involved,
then it needs to be specified in the pom.

The downside of b) is that it forces all those who don't use latin-1 to set
it in the pom, even if they're all using the same default encoding.

Note: it would probably be a good idea to include the encoding used (whether
default or set) in the plugin report information.

W

On Tue, Apr 29, 2008 at 8:32 PM, Roger Ye <[EMAIL PROTECTED]> wrote:

> Hi,
>
> On 4/30/08, Benjamin Bentmann <[EMAIL PROTECTED]> wrote:
> >
> > I agree, having users explicitly state the encoding in their POMs is the
> > best we can have, the same applies to locking down plugin versions by
> the
> > way. No guessing, no implicit default values, just full control, let's
> call
> > it "heaven" ;-)
> >
> > But how to get their? The threat I see with continuing to use the
> platform
> > default encoding is that people will be left unaware of the encoding
> issue
> > because platform default encoding works just nicely most of time.
>
>
> For projects involving developers from different country (i.e. the
> developers use different default encodings from one to another), it's a
> must
> for everyone in the team / project to understand that his/her default
> encoding is not the "default" for others, e.g. I'm from China, I've
> created
> a Maven project, using the my default encoding GBK, and then shared it
> with
> you, Benjamin, then how would you collaborate with me? surely you cannot
> assume the encoding to be iso-8859-xx (your system default, excuse me if
> I'm
> wrong)
> Then there are two solutions IMO:
> 1). we set GBK as source file encoding in pom.xml
> 2). we don't change pom.xml, but we both use an imaginary-maven-fork which
> treats every file as encoded in GBK, this does not be platform-dependent.
> as
> option b)
>
> will you agree with solution 2)? even if there're 99 developers from China
> while only one of you from Germany :P
>
> so, I insist option a), and if it's problematic without explicit encoding,
> it means an explicit encoding is required in the POM.
>
> and I also insist that it's important for developers to understand the
> root
> cause of the inconsistent build result generated by developers from
> different country / region.
> such developers should understand Unicode, and different encodings, and
> how
> the platform default encoding affects the build result.
>
> Thanks
> Roger
>
> Or just a warning for not to expect "whole world is just using your
> > > preferred encoding"?
> > >
> >  Yes, a nice warning is surely due if a) wins.
> > Benjamin
> >
> >
>


MAVEN SCM - Big Problems with ClearTool on Linux .

2008-01-18 Thread Hirn, Joseph
Hello. I am having an issue with Maven SCM checking in multiple files
during release:prepare phase. It seems to issue the right command but
only the first file is checked in. If I run this command from the
command line it works just fine. The next step that fails is when it
tried to re-checkout the file to increment version and re-add snapshot. 

I have already stepped through this in the debugger but can't seem to
find the issue. Please find the output to console below:

[DEBUG] executing checkin command...
[DEBUG] Executing:
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT>>cleartool
ci -c "[maven-release-plugin] prepare release firmsoft_project-6.0.0.17"
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/pom.xml
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/firmsoft-jar
/pom.xml
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/firmsoft-war
/pom.xml
[DEBUG] Checked in
"/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/pom.xml"
version "/main/jhirn_ETS_FIRMSOFT6.0/81".
[DEBUG]   Attached activities

I have also had other issues with cleartool, specifically with checkout
where the ClearCaseEditCommand.executeEditCommand() fails. This happens
at line 58 in when the CommandLineUtils.executeCommandLine() call
returns 141 as an exit code even though the file was checked out
successfully. By stepping through slowly in the debugger and giving
cleartool more time to finish I have gotten around this problem. I have
since used a wrapper script to spoof the return value. I do not have
this problem on windows, only linux so I assume it's cleartool on linux
but it could be plexus. 

What Linux version of cleartool is everyone else using? I am using
7.0.0.0 (Fri Apr 21 08:25:19 EDT 2006).

Thanks for anyone who can help me. This is keeping my organization from
moving forward with Maven and has been a throne in the project for
months now. We may end up having to write our own SCM provider. 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Two jars, one pom...

2007-11-13 Thread Hirn, Joseph
I am helping someone implement Maven in their project and looking for
the best way to go about generating two jars from the same source base.
They did this previously via two ant targets. Please note we are
retrofitting this codebase to Maven so it was not originally structured
with Maven's "project" structure in mind. 

The option to break up the project into two separate projects seems like
the ideal way. They need an "ALL" jar and a client jar for distribution.
>From what was explained, it might need to be three components where
there are server, client, and shared code. This would result in three
POMS and three jars which does not simplify distribution as they would
like a single "ALL" jar rather than having three separate artifacts. 

The other option would be to have a separate profile which compiles the
client jar but that doesn't seem "mavenish", and I'm not 1000% sure it
can be supported .

If there is a third way I would appreciate the recommendation. I also
would like to hear thoughts on my two approaches and if anyone has had
to deal with separating out things in this manner. 

Thanks so much. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Next versions? Industry Usage? Help me sell mvn to mydepartment.

2007-11-13 Thread Hirn, Joseph
Yes we have a great cfg mgmt team this is for the manager of that dept
to sell to the upper mgmt. I'm still trying to find specifics on the
next releases and a some sort of metric to quantify industry usage. 

-Original Message-
From: Taras Lipatov [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 13, 2007 4:23 PM
To: Maven Users List
Subject: Re: Next versions? Industry Usage? Help me sell mvn to
mydepartment.

I have used maven for the passed few years in companies ranging from 10
users to 200+ for only commercial applications.

One important thing to understand is that Maven is more then just a
build system. Its a configuration management suite (as we call it).

Make sure to have a good configuration management plan to go along with
your Maven conversion proposal. Employers eat that stuff up :)

Cheers.

On Tue, 2007-11-13 at 15:54 -0600, Hirn, Joseph wrote:
> Hello. I am doing some research for my employer to convert to Maven
and
> I had a few questions about future releases. 
> 
> I could not find any information on when the next version of Maven,
> 2.0.8 or 2.1 is anticipated nor could I find any information on the
next
> major, or Maven 3 release. I realize this would require knowledge of
the
> future to answer accurately but any ballparks would be appreciated. 
> 
> I'm also trying to determine what the market share of Maven is, I
would
> prefer to hear about major companies who are using it but if there is
a
> list of Major Open Source projects or a count that would be fantastic.

> 
> Thanks so much
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Next versions? Industry Usage? Help me sell mvn to my department.

2007-11-13 Thread Hirn, Joseph
Hello. I am doing some research for my employer to convert to Maven and
I had a few questions about future releases. 

I could not find any information on when the next version of Maven,
2.0.8 or 2.1 is anticipated nor could I find any information on the next
major, or Maven 3 release. I realize this would require knowledge of the
future to answer accurately but any ballparks would be appreciated. 

I'm also trying to determine what the market share of Maven is, I would
prefer to hear about major companies who are using it but if there is a
list of Major Open Source projects or a count that would be fantastic. 

Thanks so much

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maven SCM and clearcase dynamic views and release plug-in

2007-10-09 Thread Hirn, Joseph
Hello. 

I work in an environment which uses clearcase dynamic views. The
homepage for SCM says that there is limited support for dynamic views
but I don't quite understand what the limitations are. Please note, I
only need this information to get the release plugin working. 

First of all, why aren't dynamic views supported and are there plans to
support them in the future?

Secondly, can anyone else using dynamic views recommend how to easily
create a snapshot view to use for maven builds or at least recommend a
suitable work around. I'm specifically needing this for the release
plug-in. I'm sure there must be another person using dynamic views and
Maven. 

I'm in dire need to get this resolved but I have limited knowledge of CC
and hope that someone on this mailing list has dealth with the problem
in the past. I greatly appreciate any feedback on the topic. 

Cheers!

Joe

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Maven Release --> Unable to enable editing on the POM - clearcase ucm

2007-10-09 Thread Hirn, Joseph
Yes as I stated below, I get nothing interesting with -e:

[INFO] viewName = 'gfadm-qa1091c-maven' ; configSpec = 'load
/ETS_YADA_SOURCE/YADA' ; vobName = '\ETS_GFIXCCM_PROJECT' ; streamName =
'jhirn_ETS_YADA6.0'
[INFO] Updating yada-war to 6.0.7
[INFO] Ignoring artifact version update for expression:
${project.version}
[INFO] Updating yada-jar to 6.0.7
[INFO] Ignoring artifact version update for expression:
${project.version}
[INFO] Checking out file:
/view/jhirn_ETS_YADA6.0/cc/ETS_YADA_SOURCE/YADA/pom.xml

[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Unable to enable editing on the POM
Provider message:
The cleartool command failed.
Command output:

[INFO]

[INFO] Trace
org.apache.maven.BuildFailureException: Unable to enable editing on the
POM
Provider message:
The cleartool command failed.
Command output:

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:560)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:224)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:143)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to
enable editing on the POM
Provider message:
The cleartool command failed.
Command output:

at
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareRelea
seMojo.java:135)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:539)
... 16 more
[INFO]

[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Oct 09 10:47:40 CDT 2007
[INFO] Final Memory: 5M/81M
[INFO]


-Original Message-
From: Wim Deblauwe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 09, 2007 1:05 AM
To: Maven Users List
Subject: Re: Maven Release --> Unable to enable editing on the POM -
clearcase ucm

did you try with -e?

2007/10/8, Hirn, Joseph <[EMAIL PROTECTED]>:
>
> It is not... All of the console output is included below. The command
> output is blank. The next line maven logs is "for more information,
> run.. -e switch"
>
> -Original Message-
> From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 06, 2007 1:24 PM
> To: Maven Users List
> Subject: Re: Maven Release --> Unable to enable editing on the POM -
> clearcase ucm
>
> Is the cleartool command printed that is used?
>
> 2007/10/5, Hirn, Joseph <[EMAIL PROTECTED]>:
> >
> > Hello.
> >
> > I'm having a problem with the release:prepare goal in Linux
> environment.
> > It works fine in Windows. It is giving the following error:
> >
> > <<<<<<<<>>>>>>>>>>>>>>
> > [INFO] Checking out file:
/view/jhirnYADA/cc/ETS_YADA/YADAYADA/pom.xml
> >
> > [INFO]
> >
>

> > [ERROR] BUILD FAILURE
> > [INFO]
> >
>

> > [INFO] Unable to enable editing on the POM
> > Provider message:
> > The cleartool command failed.
> > Comma

RE: Maven Release --> Unable to enable editing on the POM - clearcase ucm

2007-10-08 Thread Hirn, Joseph
It is not... All of the console output is included below. The command
output is blank. The next line maven logs is "for more information,
run.. -e switch"

-Original Message-
From: Wim Deblauwe [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 06, 2007 1:24 PM
To: Maven Users List
Subject: Re: Maven Release --> Unable to enable editing on the POM -
clearcase ucm

Is the cleartool command printed that is used?

2007/10/5, Hirn, Joseph <[EMAIL PROTECTED]>:
>
> Hello.
>
> I'm having a problem with the release:prepare goal in Linux
environment.
> It works fine in Windows. It is giving the following error:
>
> <<<<<<<<>>>>>>>>>>>>>>
> [INFO] Checking out file: /view/jhirnYADA/cc/ETS_YADA/YADAYADA/pom.xml
>
> [INFO]
>

> [ERROR] BUILD FAILURE
> [INFO]
>

> [INFO] Unable to enable editing on the POM
> Provider message:
> The cleartool command failed.
> Command output:
> <<<<<<<<>>>>>>>>>>>>>>
>
> About my environment: Maven 2.0.7 - Clearcase-UCM, running Linux as
> non-root. The source code is in a dynamic view and I'm ok with it
> creating a snapshot view. I have clearcase-settings.xml defined in
> $MAVEN_HOME/conf to be of UCM type and the viewstore doesn't come into
> play until release:perform.
>
> `mvn scm:validate` let's me know all is well with the SCM URL, unless
> there are issues with / vs \ . The scm url in the pom is defined as
> such:
>
> 
> scm:clearcase:load
> /ETS_YADA:\ETS_YADA:jhirn_YADA
> 
>
>
> After I run release:prepare, the POM file is checked out and editable
to
> the user which maven runs as, but I still get this error. Again, I get
> past this just fine in my windows environment.
>
> Running with -e gives me nothing interesting.
>
> Help meh, help meh... I've been trying for a week on my own and can't
> figure out what's going on. Thanks to anyone who is able to help me.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maven Release --> Unable to enable editing on the POM - clearcase ucm

2007-10-05 Thread Hirn, Joseph
Hello. 

I'm having a problem with the release:prepare goal in Linux environment.
It works fine in Windows. It is giving the following error:

 >>
[INFO] Checking out file: /view/jhirnYADA/cc/ETS_YADA/YADAYADA/pom.xml

[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Unable to enable editing on the POM
Provider message:
The cleartool command failed.
Command output:
>>

About my environment: Maven 2.0.7 - Clearcase-UCM, running Linux as
non-root. The source code is in a dynamic view and I'm ok with it
creating a snapshot view. I have clearcase-settings.xml defined in
$MAVEN_HOME/conf to be of UCM type and the viewstore doesn't come into
play until release:perform. 

`mvn scm:validate` let's me know all is well with the SCM URL, unless
there are issues with / vs \ . The scm url in the pom is defined as
such:


scm:clearcase:load
/ETS_YADA:\ETS_YADA:jhirn_YADA



After I run release:prepare, the POM file is checked out and editable to
the user which maven runs as, but I still get this error. Again, I get
past this just fine in my windows environment. 

Running with -e gives me nothing interesting. 

Help meh, help meh... I've been trying for a week on my own and can't
figure out what's going on. Thanks to anyone who is able to help me. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2: how to create jni .jar & .so file from same pom.xml

2007-10-04 Thread Joseph Argiro

thanks dan

worked on the first try!!

--joe

Dan Tran wrote:

I just cooked one up

http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin/src/it/jni/java-win32/

-D



On 10/3/07, Joe Argiro <[EMAIL PROTECTED]> wrote:
  

Dan

I'm new to maven2... i tried adding phase to the compile & jar plugins
but can't get it to work

could you give me an example

thanks!
--joe

- Original Message -
From: "Dan Tran" <[EMAIL PROTECTED]>
To: "Maven Users List" 
Sent: Wednesday, October 03, 2007 11:24 PM
Subject: Re: M2: how to create jni .jar & .so file from same pom.xml




force maven-compiler-plugin and maven-jar-plugin to compile and
package your java classes at 'initialize' phase, and then
native-maven-plugin will take over.

then you  will need build-helper-maven-plugin to attach you jar for
  

deployment.


-D

On 10/3/07, Joe Argiro <[EMAIL PROTECTED]> wrote:
  

Hi

I attempting to migrate from  maven to maven2.

I have an existing project which creates a jar file and  a corresponding
.so file
I'd like to be avoid changing the existing directory structure  which


looks


like

project  - (pom.xml )
project/src/java  - (*.java)
project/src/unix   - (*.c *.h)


the pom.xml is below
if I set the   to  jar.  it creates the jar file
if I set it to .so  it creates the .so file

how do i get it to do both at the same time

thanks!
--joe


-
pom.xml -


  app
  app1
  jar
  
  9.3
 
-g -fPIC



   -g -fPIC -mimpure-text -shared







-L/usr/lib/shared -lboost_signals-gcc -lboost_thread-gcc-m


t -lsocket -lnsl -lresolv
 
  
install
src/java
src/test/java

  
org.apache.maven.plugins
maven-jar-plugin
  
  
org.codehaus.mojo
native-maven-plugin
true

  

${compilerStartOptions}
  
  

  src/unix
  
*.c
  


  src/unix

  
  
${linkerStartOptions}
  
  
${linkerEndOptions}
  


  
javah
generate-sources

true
  
class1
class2
  
   

  javah

  

  
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  
    


--

--
Joseph Argiro
Phone: 1-973-438-5736
Email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using maven embedder to force dependency updates

2007-06-27 Thread Joseph Ancell

I'm search all around the message boards for this and couldn't find it. 

Pretty much I'm trying to use the maven embedder to run "mvn eclipse:eclipse
-U".  How do you add the -U to the end?  I'm not seeing any API for this or
don't know how to add it as a property to of the MavenExecutionRequest?  Can
anyone help me out.  Thanks.
-- 
View this message in context: 
http://www.nabble.com/Using-maven-embedder-to-force-dependency-updates-tf3990901s177.html#a11332616
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Running Macker with Maven 2

2007-02-14 Thread Grégory Joseph

Hi Rune,

Sounds nice - I didn't know macker :) It should also be pretty easy to
wrap to ant task in a mojo - thus making pom reading requiring much
less sandwiches.

Thanks for sharing !
g

On 14/02/07, Rune Flobakk <[EMAIL PROTECTED]> wrote:

Hi,

I've recently been trying out the Macker tool (http://innig.net/macker)
to enforce architectural rules in a project of mine. I did some
searching in this mailing list as well as Google if there was a way to
run Macker with Maven 2, but only found questions from others asking how
this should be done. The existing maven-macker-plugin is for Maven 1,
though I have seen a message that there apparently is a Maven 2 plugin
in development.

Anyway, I have been fiddling around a bit and found a way to run Macker
in Maven 2 until a proper plugin is available, which I thought I'd share
  here for anyone interested. As I still consider myself as a Maven 2
newbie, I would appreciate any feedback on this solution, if it seems
reasonable at all. This is the first time I use the antrun plugin, and I
have no experience using Ant before at all.

The description below is for a simple single project following the
directory structure expected as default by Maven 2. It should however be
simple to adapt it. This is going to be a bit lengthy, so bring a sandwich.



1. In your POM:


...
   
  
 maven-antrun-plugin
 org.apache.maven.plugins
 1.1
 

   
  
   

 
 

   ant
   ant-antlr
   1.6.5


   antlr
   antlrall
   2.7.4


   macker
   innig
   0.4.2


   innig-util
   innig
   0.4.2


   jakarta-regexp
   jakarta-regexp
   1.4


   bcel
   bcel
   5.1


   jdom
   jdom
   1.0


   commons-lang
   commons-lang
   1.0.1

 
  
  ...
   
...





2. The build.xml file in ${basedir}. The location for this is configured
in the POM plugin configuration above (antfile="${basedir}/build.xml").





   Ant task to run the Macker tool.



   
   
  
  


  
 


  
  
 
  
   





3. The macker rules are placed in ${basedir}/src/test/macker/macker.xml.
This location is specified in build.xml above at
  


http://innig.net/macker/dtd/macker-0.4.dtd";>









Using 'mvn antrun:run' will run Macker on your compiled classes in
${basedir}/target/classes/

I hope I haven't forgot anything, and that this may be of interest for
others as well :)

Rune



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Order of classpath supplied by dependencies ant task

2007-02-07 Thread Joseph Leniston

Hi Franz,

I thought that would be the case. I have found a bug report that describes
my issue but it was created over a year ago so I don't hold out much hope of
it being fixed soon.

http://jira.codehaus.org/browse/MNG-1935?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel

We have an old application (started in the late 90's) that is built using
ANT scripts. It would be very painful to migrate the build to Maven. So the
next best thing is to use a maven repository for library file management and
the dependencies task to manage the dependencies in ANT.

Up till now the library files have not been managed. The libraries used in
the build are not the same as used at run time. Some of the library files
required by the application are no longer maintained and I don't know what
version they are. We also have some custom libraries. So I have created our
own maven repository and added the libraries using artifact:install. It will
be another exercise to get the application working with known versions of
the libraries.

I have set the POM files up as per the instructions on
http://maven.apache.org/ant-tasks.html. Is there another way to access the
maven repository from within an ANT script? Any suggestions are gratefully
received.

Thanks,
Joseph


franz see wrote:
> 
> Good day to you, Joseph,
> 
> AFAIK, you cannot control the order of the dependencies...And I can't
> think of a workaround.
> 
> Curious, why use antlib for your dependency management and not use maven's
> ?
> 
> Cheers,
> Franz
> 
> 
> Joseph Leniston wrote:
>> 
>> Hi,
>> 
>> I am using Antlib for Maven 2.0 to do dependency management in our ant
>> builds. I have a number of POM files for compiling common, server and
>> client code. I also want to use maven to manage our server runtime
>> classpath. I use the following code to get the server runtime classpath
>> from a POM file and store it in a pathId for use later.
>> 
>> > filesetId="server.runtime.jars.fileset" >
>> 
>> > />
>> 
>> 
>> However if I list the contents of the cp.server.runtime.jars property the
>> jar files are not in the order I specified:
>> 
>> 
>> 
>> 
>> It is important that I can specify the order of the runtime jar files
>> because there is a patch that must be first in the classpath. Is there a
>> way to specify an order of jar files in the POM file? Or to force the
>> dependencies to be stored in the pathID property in the same order as in
>> the POM file?
>> 
>> 
>>  ---
>>  This email message is intended solely for the person or entity to which
>>  it is addressed. The information it contains is confidential and may be
>>  legally privileged. Any review, retransmission, dissemination or other
>>  use of this email may be unlawful. If you are not the intended
>>  recipient, please notify us immediately and destroy the email from all
>>  sources. Thank you.
>>  Child, Youth and Family Service accepts no responsibility for changes
>> made
>>  to this email or to any attachments after transmission from the Office.
>>  --
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Order-of-classpath-supplied-by-dependencies-ant-task-tf3184655s177.html#a8855119
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Order of classpath supplied by dependencies ant task

2007-02-06 Thread Joseph Leniston
Hi,

I am using Antlib for Maven 2.0 to do dependency management in our ant builds. 
I have a number of POM files for compiling common, server and client code. I 
also want to use maven to manage our server runtime classpath. I use the 
following code to get the server runtime classpath from a POM file and store it 
in a pathId for use later.






However if I list the contents of the cp.server.runtime.jars property the jar 
files are not in the order I specified:




It is important that I can specify the order of the runtime jar files because 
there is a patch that must be first in the classpath. Is there a way to specify 
an order of jar files in the POM file? Or to force the dependencies to be 
stored in the pathID property in the same order as in the POM file?


 ---
 This email message is intended solely for the person or entity to which
 it is addressed. The information it contains is confidential and may be
 legally privileged. Any review, retransmission, dissemination or other
 use of this email may be unlawful. If you are not the intended
 recipient, please notify us immediately and destroy the email from all
 sources. Thank you.
 Child, Youth and Family Service accepts no responsibility for changes made
 to this email or to any attachments after transmission from the Office.
 --


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apacheds and Maven

2007-01-16 Thread Joseph
when use mvn directory:schema to create my schema class.the out print 

"The plugin 'org.apache.maven.plugins:maven-directory-plugin' does not
exist or no valid version could be found"

what's wrong with it?
How can i make it?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[M2] problems with site:deploy and PuTTy

2006-12-05 Thread McGarr, Joseph M
I am having trouble getting Maven's site:deploy to properly utilize
PuTTy's plink.  I am not sure what is going on, but it seems to use pscp
just fine, but then it fails while executing the following command:

 

Executing command: ssh -o "BatchMode yes" ...

 

This fails because I do not have any ssh executable available...gives me
this error message:

 

'ssh' is not recognized as an internal or external command,

operable program or batch file.

 

Shouldn't the site plugin recognize that in my settings.xml server
configuration, I have declared that it uses plink?  It should be trying
to call plink and not ssh.  Here is an excerpt from my settings.xml:

 

  

plink

pscp

  

 

Is there a fix for this or is this a bug in the site plugin?

 

 



errors adding maven2 project

2006-10-02 Thread Joseph Marques

My SVN server is on a linux box and exposed via https; there is NO http
access.  I'm setting up continuum-1.0.3 on a windows box.  Here are the
results when using various URLs.

https://:@//pom.xml
Could not download https:pom.xml:
Server returned HTTP response code: 401 for URL:
https:pom.xml

https:pom.xml
The URL you provided doesn't exist

OK, so...on a whim, I decided to leave the "s" off, and try http instead.

http:pom.xml
The URL you provided doesn't exist

http://:@//pom.xml
Works?!?


Um...what's going on here.  Regular http access to this box isn't even
allowed, so why is continuum pulling projects down using http?

-joe


https 401 error

2006-09-29 Thread Joseph Marques

when trying to add a maven2 project i'm getting the error: "could not
download https://user:[EMAIL PROTECTED]//pom.xml: Server returned
HTTP response code: 401 for URL: https://user:[EMAIL PROTECTED]/
/pom.xml.  i can hit and download the pom from both IE and
firefox. any clue as to what's going on?  **i was told in irc that it's
probably because java doesn't know my certificate, which granted is
self-signed, but according to
http://jira.codehaus.org/secure/attachment/16385/secure-url-validation.patchfrom
http://jira.codehaus.org/browse/CONTINUUM-258 continuum has been using the
all-accepting trust store for quite some time.  any suggestions on why this
might be happening?

oh, and just in case it was a certificate issue, I added the certificate to
the default truststore for my 1.5 installation (setup through JAVA_HOME) at
the console via keytool.  I also added the cert to the truststore associated
with the 1.6 jre registered with the browser (firefox) i'm using.  neither
of those options helped.

-joe


Re: Re: maven2 xdoclet2 plugin

2006-08-02 Thread Grégory Joseph

Sure, no worries :)

g

On 01/08/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:

Hello Gregory,
 thx for mail.. no i m still on XDoclet1.. i m trying to move my whole
environment to eclipse + maven2 + xdoclet..
i got xdoclet1 working with maven2.. i'll try to get eclipse in then i'll
try to move to xd2
and i'll let you know of result
dont expect any mail from me soon thoug :), i m reallly busy @ work and this
maven/xdoclet issue is what i do in spare time

will get back to you as soon as i can

thanx and regards
 marco

On 8/1/06, Grégory Joseph <[EMAIL PROTECTED]> wrote:
>
> Marco,
>
> Sorry for the late reply.. Were you able to move on this?
> I think your mistake was that you did not declare the
> dist.codehaus.org repository as being of
> layout:legacy(legacy in your 
> declaration)
>
> The XDoclet2 project and plugins are still partly built with m1, which
> is why we still deploy everything on the legacy repository.
>
> Let me know if you still need help.
>
> Cheers,
>
> g
>
> On 05/07/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
> > hi all,,
> >   can anyone point me in the right direction for using maven2 xdoclet2
> > plugin?
> >
> > i followed this link
> >
> > http://xdoclet.codehaus.org/Maven2+plugin
> >
> > to try, i wrote a simple pom.xml like in the example
> >
> > 
> >4.0.0
> >Backend
> >jar
> >1.0
> >Backend
> >
> >   TestJSFAppM2
> >   TestJSFAppM2
> >   1.0
> >
> >
> >
> >
> >   
> >aspectj
> >aspectjrt
> >1.5.0
> >  
> >  
> >jasperreports
> >jasperreports
> >1.2.4
> >  
> >  
> >commons-digester
> >commons-digester
> >1.7
> >  
> >  
> >log4j
> >log4j
> >1.2.9
> >  
> >  
> >castor
> >castor
> >1.0M4
> >  
> >  
> > javax.servlet
> >servlet-api
> >2.4
> >  
> >
> >  
> >TestJSFAppM2
> >Commons
> >1.0
> >  
> >
> >
> >
> >
> >   
> > 
> >   xdoclet
> >   maven2-xdoclet2-plugin
> >   
> > 
> >   
> >   
> >   org.xdoclet.plugin.web.TaglibPlugin
> >   
> >   
> >   2.0
> >   ${basedir}/target/xdoclet/META-INF
> > 
> >   
> >   
> >
> >  
> >  
> >
> >  
> >xdoclet
> >  
> >
> >  
> >
> >
> >
> > 
> >
> >!-- The following two sections should be unnecessary shortly.
> > surefire-2.2 is due for release yesterday. -->
> >   
> > 
> >   apache.snapshots
> >   http://cvs.apache.org/maven-snapshot-repository
> >   
> > true
> >   
> > 
> >   
> >   
> >   
> >  apache.snapshots
> >  http://cvs.apache.org/maven-snapshot-repository
> >   
> >   
> >   codehaus-plugins
> >   http://dist.codehaus.org/
> >   
> >true
> >   
> >   
> >   true
> >   
> >   
> >
> >
> >
> >
> >
> >
> > 
> >
> >
> >
> > when i run mvn:compile   i got following error
> >
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> > [INFO] The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no
> > valid ve
> > rsion could be found
> > [INFO]
> > 
> >
> >
> >
> >
> > and when i run mvn xdoclet:xdoclet i  got this
> >
> >
> > [INFO] The plugin 'org.apache.maven.plugins:maven-xdoclet-plugin' does
> not
> > exist
> >  or no valid version could be found
> >
> >
> > can anyone help me out on how to start? i got plugins working fine for
> > maven1, btu now i have
> > moved to maven2 ...
> >
> > thx and regards
> >  marco
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven2 xdoclet2 plugin

2006-07-31 Thread Grégory Joseph

Marco,

Sorry for the late reply.. Were you able to move on this?
I think your mistake was that you did not declare the
dist.codehaus.org repository as being of
layout:legacy(legacy in your 
declaration)

The XDoclet2 project and plugins are still partly built with m1, which
is why we still deploy everything on the legacy repository.

Let me know if you still need help.

Cheers,

g

On 05/07/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:

hi all,,
  can anyone point me in the right direction for using maven2 xdoclet2
plugin?

i followed this link

http://xdoclet.codehaus.org/Maven2+plugin

to try, i wrote a simple pom.xml like in the example


   4.0.0
   Backend
   jar
   1.0
   Backend
   
  TestJSFAppM2
  TestJSFAppM2
  1.0
   


   
  
   aspectj
   aspectjrt
   1.5.0
 
 
   jasperreports
   jasperreports
   1.2.4
 
 
   commons-digester
   commons-digester
   1.7
 
 
   log4j
   log4j
   1.2.9
 
 
   castor
   castor
   1.0M4
 
 
javax.servlet
   servlet-api
   2.4
 

 
   TestJSFAppM2
   Commons
   1.0
 

   

   
  

  xdoclet
  maven2-xdoclet2-plugin
  

  
  
  org.xdoclet.plugin.web.TaglibPlugin
  
  
  2.0
  ${basedir}/target/xdoclet/META-INF

  
  
   
 
 
   
 
   xdoclet
 
   
 
   



   
   !-- The following two sections should be unnecessary shortly.
surefire-2.2 is due for release yesterday. -->
  

  apache.snapshots
  http://cvs.apache.org/maven-snapshot-repository
  
true
  

  
  
  
 apache.snapshots
 http://cvs.apache.org/maven-snapshot-repository
  
  
  codehaus-plugins
  http://dist.codehaus.org/
  
   true
  
  
  true
  
  



   






when i run mvn:compile   i got following error

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no
valid ve
rsion could be found
[INFO]





and when i run mvn xdoclet:xdoclet i  got this


[INFO] The plugin 'org.apache.maven.plugins:maven-xdoclet-plugin' does not
exist
 or no valid version could be found


can anyone help me out on how to start? i got plugins working fine for
maven1, btu now i have
moved to maven2 ...

thx and regards
 marco




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Maven 2 jasper-reports-plugin

2006-07-31 Thread Grégory Joseph

Hi,

(sorry for the late reply)

FYI, there is actually a snapshot, but on this repo:
http://snapshots.repository.codehaus.org
I'm not sure what the difference is with the one you use, but it seems
it's only there :)

Please let me know if you have issues or wishes to be fulfilled with
this plugin.

Cheers,

greg

On 18/07/06, Doug Douglass <[EMAIL PROTECTED]> wrote:

Matt,

Since no one has responded...I haven't used this plugin, but it is in the
Mojo Sandbox, from which we do use other plugins. The following should help
you out with repository access issues:

http://mojo.codehaus.org/using-sandbox-plugins.html

I don't see a snapshot deployed to the above repository, so you'll propbably
have to grab the code from SVN and build locally:

https://svn.mojo.codehaus.org/mojo/trunk/mojo/mojo-sandbox/jasperreports-maven-plugin

HTH,
Doug

On 7/17/06, Matt Campbell <[EMAIL PROTECTED]> wrote:
>
> Could someone that is currently using this plugin give me some information
> on setting it up. Were having problems getting the plugin downloaded.
>
> What repository are you currently using to download the plugin from? The
> mojo plugin repository seems to be missing it.
>
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Unable to find the mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run'

2006-07-06 Thread Grégory Joseph

Hi list,

On 06/07/06, Graham Leggett <[EMAIL PROTECTED]> wrote:

Jeff Mutonho wrote:

> It looks like "maven-antrun-plugin"  and  "xdoclet-maven-plugin"  are
> having issues with each other.



> Does this mean "maven-antrun-plugin"  and  "xdoclet-maven-plugin"
> can not co-exist?

I have the same problem in a build here.


Shameless plug:
Sounds like a good reason to step over to xdoclet2...
http://xdoclet.codehaus.org/Maven2+plugin


Cheers,

g

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Maven 2: Manifest entries for JARs

2006-07-04 Thread Grégory Joseph

On 04/07/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:

Missed that documentation.

You can see how the description, "The maven archiver to use." is misleading.



Oh, in the plugin/goal description, yes, absolutely.
I seem to recall i've recently seen activity towards better
documentation of complex types in plugins configuration.
(At least a link to a basic javadoc would be helpful as to know what
one can set without resorting to copying examples)

Cheers

g



On 7/4/06, Grégory Joseph <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On 04/07/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> > I'm working on some library code which will be driven by a manifest
> > entry in client JARs.
> >
> > I need to be able to set some mainfest entries in my JAR files.
> >
> > I can't see where to do this.  It seems likely for the jar plugin, but
> > nothing in the source or documentation indicates how to do this.
>
> How about http://maven.apache.org/guides/mini/guide-manifest.html ?
>
> (cfr http://www.google.com/search?q=manifest%20site:maven.apache.org ;-)
>
> HTH,
>
> greg
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven 2: Manifest entries for JARs

2006-07-04 Thread Grégory Joseph

Hi,

On 04/07/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:

I'm working on some library code which will be driven by a manifest
entry in client JARs.

I need to be able to set some mainfest entries in my JAR files.

I can't see where to do this.  It seems likely for the jar plugin, but
nothing in the source or documentation indicates how to do this.


How about http://maven.apache.org/guides/mini/guide-manifest.html ?

(cfr http://www.google.com/search?q=manifest%20site:maven.apache.org ;-)

HTH,

greg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems with javax.sql:jbdc-sqlext download

2006-05-10 Thread McGarr, Joseph M
All:

 

I cannot download the javax.sql:jdbc-sqlext:jar:2.0 from the ibiblio
repository.  it appears that this jar was never added correctly, only
the sources, the pom and their checksum files exist in the repository,
but no jar or maven-meta.xml file.  How do we get a copy of these files
up?

 

Mike



[m2] Differences between resources and config

2006-02-13 Thread McGarr, Joseph M.
I have a fairly clear understanding of where the resources directory should
be used, but the config directory seems to only be mentioned once in the
documentation (Standard Directory Layout) and I am unclear what it is
intended for.  Resources are files that are eventually packaged with the
artifact and sometimes are dynamic.  What is the purpose of src/main/config?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Multiprojects and inherited SCM URLs

2006-01-20 Thread Grégory Joseph
On 20/01/06, DELMOTTE Grégory <[EMAIL PROTECTED]> wrote:
> Yann, si t'es en ligne, c'est où sur RICFILED que tu précisent les options de 
> compil Javac pour MAVEN ??

DTC >_<

Ps: catherine, est-ce que tu peux prendre du pain en sortant du boulot, merci.


> Greg
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >