FYI, I have just answered your SO question:
https://stackoverflow.com/a/63894653/1082681
--
Alexander Kriegisch
https://scrum-master.de
Shelley Baker schrieb am 14.09.2020 20:54 (GMT +07:00):
> I've also posted this question on Stack Overflow:
>
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
I had the same question some days back
(https://mail-archives.apache.org/mod_mbox/maven-users/202009.mbox/%3C922b4efc-3296-d35d-0675-d6c0090cc4b1%40swe-blog.net%3E)
and Stuart McCulloch sent me a link to this JIRA issue:
> *any* explicit pom.xml cannot be overridden by a property
expression given on
> the command line.
I also encountered the problem when my Maven project has multiple main
classes and I wanted to run them by switching "mvn exec:java
-Dexec.mainClass=...' while keeping the default one in pom.xml.
I guess you don't even need a custom property since each plugin tends to
have one already. So a simpler property-based approach would just be:
${skipChecks}
And maybe you'd also need false in your properties
to provide a default for when skipChecks isn't specified on the command
line. But
I agree this behavior is unexpected. But it's different for properties! So
a workaround here is to have a unique property for each check you want to
skip, so that you can override the property by command line rather than
overriding the configuration directly. Then you can have a single
way to set
Hi,
I am currently sprinkling child elements like the
following through my (parent) POMs for enforcer:enforce, tidy:check and
checkstyle:check :
${skipChecks}
This allows me to skip all kinds of checks with a simple
-DskipChecks=true (or even -DskipChecks), just like I am used to for
tests
I've also posted this question on Stack Overflow:
https://stackoverflow.com/questions/63885408/maven-dependency-plugin-useddependency-vs-ignoredunuseddeclareddependencies
On 2020/09/02 15:09:43, Shelley wrote:
> What is the difference between the maven-dependency-plugin's
>
On Mon, Sep 14, 2020 at 1:41 PM Alex Gerdov
wrote:
> Hello,
>
> I was wondering - is it possible to instruct the compiler plug-in to
> exclude source files even if they are referenced directly by other source
> files?
>
It depends what you're trying to do.
You can exclude [1] those files, but
Hello,
I was wondering - is it possible to instruct the compiler plug-in to exclude
source files even if they are referenced directly by other source files?
Thank you.
Alex Gerdov
Research & Development
(t) +972-54-6489120
(e) alex.ger...@unboundtech.com
(w) www.unboundtech.com