You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Tatham <be...@nanometrics.ca.INVALID> on 2023/08/25 18:39:30 UTC
maven-build-cache: extra attached directories output of target
Hello,
Is it possible to add extra attached directories that are not within the
project build output directory (ie not in ./target?)
Based on the documentation and playing around with attachedOutputs
<https://maven.apache.org/extensions/maven-build-cache-extension/build-cache-config.html#class_attachedOutputs>,
those are relative to the project output directory (target). I want to
preserve those, but also want to preserve a secondary directory with it.
(In our case, we are doing an angular build as part of the project, which
outputs into ./dist that we want to reload from the cache as well.
Thanks,
Ben
[image: -] <http://www.nanometrics.ca>
[image: -] <https://twitter.com/nanometricsinc> [image: -]
<https://www.linkedin.com/company/nanometrics-seismological-instruments/>
[image:
-] <https://www.youtube.com/channel/UCwao286g87g7Mqj6qvnLIZw>
Ben Tatham
Principal Software Developer
Nanometrics
bentatham@nanometrics.ca
--
This message is intended exclusively for the individual or entity to which
it is addressed. This communication may contain information that is
proprietary, privileged, confidential or otherwise legally exempt from
disclosure. If you are not the named addressee, or have been inadvertently
and erroneously referenced in the address line, you are not authorized to
read, print, retain, copy or disseminate this message or any part of it. If
you have received this message in error, please notify the sender
immediately by e-mail and delete all copies of the message.
Re: maven-build-cache: extra attached directories output of target
Posted by Olivier Lamy <ol...@apache.org>.
Hi
On Sat, 26 Aug 2023 at 04:40, Ben Tatham
<be...@nanometrics.ca.invalid> wrote:
>
> Hello,
> Is it possible to add extra attached directories that are not within the
> project build output directory (ie not in ./target?)
Currently no. A possible solution could be to create an extra artifact
containing what you need and attach it to the project.
>
> Based on the documentation and playing around with attachedOutputs
> <https://maven.apache.org/extensions/maven-build-cache-extension/build-cache-config.html#class_attachedOutputs>,
> those are relative to the project output directory (target). I want to
> preserve those, but also want to preserve a secondary directory with it.
> (In our case, we are doing an angular build as part of the project, which
> outputs into ./dist that we want to reload from the cache as well.
>
> Thanks,
> Ben
>
> [image: -] <http://www.nanometrics.ca>
> [image: -] <https://twitter.com/nanometricsinc> [image: -]
> <https://www.linkedin.com/company/nanometrics-seismological-instruments/>
> [image:
> -] <https://www.youtube.com/channel/UCwao286g87g7Mqj6qvnLIZw>
>
> Ben Tatham
> Principal Software Developer
> Nanometrics
> bentatham@nanometrics.ca
>
> --
> This message is intended exclusively for the individual or entity to which
> it is addressed. This communication may contain information that is
> proprietary, privileged, confidential or otherwise legally exempt from
> disclosure. If you are not the named addressee, or have been inadvertently
> and erroneously referenced in the address line, you are not authorized to
> read, print, retain, copy or disseminate this message or any part of it. If
> you have received this message in error, please notify the sender
> immediately by e-mail and delete all copies of the message.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org