Re: creating a source directory on the fly
That was my first thought too, but unfortunately my build includes a custom build plugin (which I don't control) which does its own ad-hoc parsing of the project structure. So it only works if the project is actually structured in a certain way. At 12:32 PM 12/9/2023, Michael Osipov wrote: >On 2023/12/06 03:34:58 Dave Dyer wrote: >> >> I'm trying to tune up my maven build, which requires that I construct >> a source directory on the fly by copying from the canonical location. >> >> The best advice I've found is to use mavin-resources-plugin, but >> that's a bit inelegant because it copies everything, not just the >> sources. > >That the wrong approach. > >> Is there a better approach? > >The right approach: >https://www.mojohaus.org/build-helper-maven-plugin/add-source-mojo.html - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: creating a source directory on the fly
On 2023/12/06 03:34:58 Dave Dyer wrote: > > I'm trying to tune up my maven build, which requires that I construct > a source directory on the fly by copying from the canonical location. > > The best advice I've found is to use mavin-resources-plugin, but > that's a bit inelegant because it copies everything, not just the > sources. That the wrong approach. > Is there a better approach? The right approach: https://www.mojohaus.org/build-helper-maven-plugin/add-source-mojo.html - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: creating a source directory on the fly
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: 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: creating a source directory on the fly
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 -Original Message- From: Dave Dyer Sent: Tuesday, December 5, 2023 10:35 PM To: Maven Users List ; Maven Users List ; Maven Users List Subject: creating a source directory on the fly CAUTION: This email originated from outside our organisation - dd...@real-me.net Do not click on links, open attachments, or respond unless you recognize the sender and can validate the content is safe. I'm trying to tune up my maven build, which requires that I construct a source directory on the fly by copying from the canonical location. The best advice I've found is to use mavin-resources-plugin, but that's a bit inelegant because it copies everything, not just the sources. Is there a better approach? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org This message is for information purposes only. It is not a recommendation, advice, offer or solicitation to buy or sell a product or service, nor an official confirmation of any transaction. It is directed at persons who are professionals and is intended for the recipient(s) only. It is not directed at retail customers. This message is subject to the terms at: https://www.cib.barclays/disclosures/web-and-email-disclaimer.html. For important disclosures, please see: https://www.cib.barclays/disclosures/sales-and-trading-disclaimer.html regarding marketing commentary from Barclays Sales and/or Trading desks, who are active market participants; https://www.cib.barclays/disclosures/barclays-global-markets-disclosures.html regarding our standard terms for Barclays Corporate and Investment Bank where we trade with you in principal-to-principal wholesale markets transactions; and in respect to Barclays Research, including disclosures relating to specific issuers, see: http://publicresearch.barclays.com. __ If you are incorporated or operating in Australia, read these important disclosures: https://www.cib.barclays/disclosures/important-disclosures-asia-pacific.html. __ For more details about how we use personal information, see our privacy notice: https://www.cib.barclays/disclosures/personal-information-use.html. __ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
creating a source directory on the fly
I'm trying to tune up my maven build, which requires that I construct a source directory on the fly by copying from the canonical location. The best advice I've found is to use mavin-resources-plugin, but that's a bit inelegant because it copies everything, not just the sources. Is there a better approach? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org