mirror of https://github.com/apache/maven.git
[MNG-3641] additional test to check that when only some projects in the reactor contain the profile, warning does not appear
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@749998 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
44a27cd663
commit
367e969f71
|
@ -82,5 +82,16 @@ public class MavenITmng3641ProfileActivationWarningTest
|
|||
logFile = verifier.loadFile( verifier.getBasedir(), verifier.getLogFileName(), false );
|
||||
assertFalse( logFile.contains( "[WARNING] Profile with id: 'mng-3641-it-provided-profile' has not been activated." ) );
|
||||
assertTrue( logFile.contains( "[WARNING] Profile with id: 'mng-3641-TWlzdGVyIFQgd2FzIGhlcmUuICheX14p' has not been activated." ) );
|
||||
|
||||
// (4) Fourth run: make sure the warning is only printed when the profile is missing in all projects
|
||||
verifier = new Verifier( testDir.getAbsolutePath() );
|
||||
verifier.setCliOptions( Collections.singletonList( "-P mng-3641-it-provided-profile-child" ) );
|
||||
verifier.setLogFileName( "log-4.txt" );
|
||||
verifier.executeGoal( "validate" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
logFile = verifier.loadFile( verifier.getBasedir(), verifier.getLogFileName(), false );
|
||||
assertFalse( logFile.contains( "[WARNING] Profile with id: 'mng-3641-it-provided-profile-child' has not been activated." ) );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you 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.
|
||||
-->
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.maven.its.mng3641</groupId>
|
||||
<artifactId>profile-test</artifactId>
|
||||
<version>1</version>
|
||||
</parent>
|
||||
<artifactId>child1</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>MNG-3641 - Profile activation warning test - child 1</name>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>mng-3641-it-provided-profile-child</id>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you 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.
|
||||
-->
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.maven.its.mng3641</groupId>
|
||||
<artifactId>profile-test</artifactId>
|
||||
<version>1</version>
|
||||
</parent>
|
||||
<artifactId>child2</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>MNG-3641 - Profile activation warning test - child 2</name>
|
||||
</project>
|
|
@ -34,4 +34,9 @@ under the License.
|
|||
<id>mng-3641-it-provided-profile</id>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<modules>
|
||||
<module>child1</module>
|
||||
<module>child2</module>
|
||||
</modules>
|
||||
</project>
|
||||
|
|
Loading…
Reference in New Issue