Skip to content

Commit 95f7288

Browse files
authored
[MNGSITE-393] Remove Maven 2 references (#446)
and other minor copy edits
1 parent 946993c commit 95f7288

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

content/apt/guides/introduction/introduction-to-profiles.apt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ mvn groupId:artifactId:goal -P profile-1,profile-2,?profile-3
176176
</profiles>
177177
+---+
178178

179-
Ranges can also be used as of Maven 2.1 (refer to the {{{/enforcer/enforcer-rules/versionRanges.html} Enforcer Version Range Syntax}} for more information).
180-
Range values must start with either <<<[>>> or <<<(>>> otherwise the value is interpreted as prefix.
179+
{{{/enforcer/enforcer-rules/versionRanges.html} Ranges}} can also be used.
180+
Range values must start with either <<<[>>> or <<<(>>>. Otherwise, the value is interpreted as a prefix.
181181
The following honours versions 1.3, 1.4 and 1.5.
182182

183183
+---+
@@ -337,7 +337,7 @@ mvn groupId:artifactId:goal -Denvironment=test
337337
</profiles>
338338
+---+
339339

340-
As of Maven 2.0.9, the tags <<<\<exists\>>>> and <<<\<missing\>>>> could be interpolated. Supported variables are
340+
The tags <<<\<exists\>>>> and <<<\<missing\>>>> can be interpolated. Supported variables are
341341
system properties like <<<$\{user.home\}>>> and environment variables like <<<$\{env.HOME\}>>>. Please note that
342342
properties and values defined in the POM itself are not available for interpolation here, e.g. the above example
343343
activator cannot use <<<$\{project.build.directory\}>>> but needs to hard-code the path <<<target>>>.
@@ -350,7 +350,7 @@ mvn groupId:artifactId:goal -Denvironment=test
350350

351351
** Deactivating a profile
352352

353-
Starting with Maven 2.0.10, one or more profiles can be deactivated using the command line by prefixing their
353+
One or more profiles can be deactivated using the command line by prefixing their
354354
identifier with either the character '!' or '-' as shown below:
355355

356356
-----
@@ -453,19 +453,17 @@ mvn groupId:artifactId:goal -P -profile-1,-profile-2,-?profile-3
453453
Another reason is that this POM info is sometimes being reused from the
454454
parent POM.
455455

456-
External files such as <<<settings.xml>>> and <<<profiles.xml>>> also does not support elements
456+
External files such as <<<settings.xml>>> and <<<profiles.xml>>> also do not support elements
457457
outside the POM-profiles. Let us take this scenario for elaboration. When the
458-
effective POM get deployed to a remote repository, any person can pickup
458+
effective POM is deployed to a remote repository, any person can pickup
459459
its info out of the repository and use it to build a Maven project directly.
460460
Now, imagine that if we can set profiles in dependencies, which is very
461461
important to a build, or in any other elements outside POM-profiles in
462462
<<<settings.xml>>> then most probably we cannot expect someone else to use that
463463
POM from the repository and be able to build it. And we have to also think about
464464
how to share the <<<settings.xml>>> with others. Note that too many files to
465-
configure is very confusing and very hard to maintain.
465+
configure are very confusing and very hard to maintain.
466466
Bottom line is that since this is build data, it should be in the POM.
467-
One of the goals in Maven 2 is to consolidate all the information needed to
468-
run a build into a single file, or file hierarchy which is the POM.
469467

470468
* Profile Order
471469

0 commit comments

Comments
 (0)