You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: maven-enforcer-plugin/src/it/projects/ban-dependency-management-scope-fail/verify.groovy
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,11 @@
16
16
* specific language governing permissions and limitations
17
17
* under the License.
18
18
*/
19
-
File buildLog =newFile( basedir, 'build.log' )
20
-
assert buildLog.text.contains( '[ERROR] Rule 0: org.apache.maven.enforcer.rules.BanDependencyManagementScope failed with message:' )
21
-
assert buildLog.text.contains( 'Scope other than \'import\' is not allowed in \'dependencyManagement\'' )
22
-
assert buildLog.text.contains( 'Banned scope \'provided\' used on dependency \'org.apache.maven.plugins.enforcer.its:menforcer138_archiver:jar\' @ line 65, column 19' )
23
-
assert buildLog.text.contains( 'Banned scope \'test\' used on dependency \'org.apache.maven.plugins.enforcer.its:menforcer138_utils:jar\' @ line 71, column 19' )
assert buildLog.text.contains('[ERROR] Rule 0: org.apache.maven.enforcer.rules.BanDependencyManagementScope failed with message:')
24
+
assert buildLog.text.contains('Scope other than \'import\' is not allowed in \'dependencyManagement\'')
25
+
assert buildLog.text.contains('Banned scope \'provided\' used on dependency \'org.apache.maven.plugins.enforcer.its:menforcer138_archiver:jar\' @ line 65, column '+ column)
26
+
assert buildLog.text.contains('Banned scope \'test\' used on dependency \'org.apache.maven.plugins.enforcer.its:menforcer138_utils:jar\' @ line 71, column '+ column)
Copy file name to clipboardExpand all lines: maven-enforcer-plugin/src/it/projects/require-dependency-scope/verify.groovy
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,5 +17,8 @@
17
17
* under the License.
18
18
*/
19
19
File buildLog =newFile(basedir, 'build.log')
20
-
assert buildLog.text.contains('[ERROR] Dependency org.apache.jackrabbit.vault:vault-cli:jar @ line 65, column 21 does not have an explicit scope defined!')
assert buildLog.text.contains('[ERROR] Dependency org.apache.jackrabbit.vault:vault-cli:jar @ line 65, column '+ column +' does not have an explicit scope defined!')
21
24
assert buildLog.text.contains('Found 1 missing dependency scope. Look at the errors emitted above for the details.')
0 commit comments