-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reading project model should throw exception
In other case we can omit a module from list to process In Maven 4 model reading is more strict, when we have a bad file in project - ITs can not start because of strict parsing
- Loading branch information
1 parent
2ac332d
commit 2fd9c32
Showing
6 changed files
with
30 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
versions-maven-plugin/src/it/it-set-017-issue-321/setup.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import java.nio.file.Files | ||
/* | ||
* Copyright MojoHaus and Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
// rename file before run test | ||
def module2Path = basedir.toPath().resolve('module-a2') | ||
Files.move(module2Path.resolve('pom.invalid'), module2Path.resolve('pom.xml')) | ||
|
||
return true |
22 changes: 0 additions & 22 deletions
22
versions-maven-plugin/src/it/it-set-017-issue-321/verify.bsh
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
versions-maven-plugin/src/it/it-set-017-issue-321/verify.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
|
||
def log = new File( basedir, "build.log" ).text | ||
assert log.contains(' Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs.') |