slawekjaranowski commented on a change in pull request #225:
URL: https://github.com/apache/maven-site/pull/225#discussion_r553961399
##########
File path: content/apt/guides/introduction/introduction-to-profiles.apt
##########
@@ -100,9 +100,11 @@ Introduction to Build Profiles
profile IDs to use. The profile(s) specified in the option
are activated in addition to any profiles which are activated by their
activation
configuration or the <<<\<activeProfiles\>>>> section in <<<settings.xml>>>.
+ Maven will refuse to activate or deactivate a profile that cannot be
resolved.
+ To prevent this, prefix the profile identifier with an <<<?>>>, marking it
as optional:
Review comment:
Does this behavior will be implemented in current version `3.6.x`? - if
not, information which version will be impact will be useful
##########
File path: content/apt/guides/introduction/introduction-to-profiles.apt
##########
@@ -307,7 +309,7 @@ mvn groupId:artifactId:goal -Denvironment=test
identifier with either the character '!' or '-' as shown below:
+---+
-mvn groupId:artifactId:goal -P !profile-1,!profile-2
+mvn groupId:artifactId:goal -P !profile-1,!profile-2,!?profile-3
Review comment:
did you try from console ... I have :
```
$ mvn -N validate -P !profile-1,!profile-2
bash: !profile-1,!profile-2: event not found
```
```
$ bash --version
GNU bash, version 5.1.4(1)-release (x86_64-apple-darwin19.6.0)
```
##########
File path: content/apt/guides/introduction/introduction-to-profiles.apt
##########
@@ -307,7 +309,7 @@ mvn groupId:artifactId:goal -Denvironment=test
identifier with either the character '!' or '-' as shown below:
+---+
-mvn groupId:artifactId:goal -P !profile-1,!profile-2
+mvn groupId:artifactId:goal -P !profile-1,!profile-2,!?profile-3
Review comment:
did you try from console ... I have :
```
$ mvn -N validate -P !profile-1,!profile-2
bash: !profile-1,!profile-2: event not found
```
```
$ bash --version
GNU bash, version 5.1.4(1)-release (x86_64-apple-darwin19.6.0)
```
```
$ mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]