View Javadoc
1   package org.apache.maven.it;
2   
3   import org.apache.maven.it.util.ResourceExtractor;
4   
5   import java.io.File;
6   
7   /*
8    * Licensed to the Apache Software Foundation (ASF) under one
9    * or more contributor license agreements.  See the NOTICE file
10   * distributed with this work for additional information
11   * regarding copyright ownership.  The ASF licenses this file
12   * to you under the Apache License, Version 2.0 (the
13   * "License"); you may not use this file except in compliance
14   * with the License.  You may obtain a copy of the License at
15   *
16   *   http://www.apache.org/licenses/LICENSE-2.0
17   *
18   * Unless required by applicable law or agreed to in writing,
19   * software distributed under the License is distributed on an
20   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21   * KIND, either express or implied.  See the License for the
22   * specific language governing permissions and limitations
23   * under the License.
24   */
25  
26  /**
27   * This is a test set for <a href="https://issues.apache.org/jira/browse/MNG-4633">MNG-4633</a>.
28   *
29   *
30   * @author Kristian Rosenvold
31   */
32  public class MavenITmng4633DualCompilerExecutionsWeaveModeTest
33      extends AbstractMavenIntegrationTestCase
34  {
35  
36      public MavenITmng4633DualCompilerExecutionsWeaveModeTest()
37      {
38          super( "[3.0-beta-2,)" );
39      }
40  
41      /**
42       * Submodule2 depends on compiler output from submodule1, but dependency is in generate-resources phase in
43       * submodule2. This effectively tests the module-locking of the project artifact.
44       *
45       * @throws Exception in case of failure
46       */
47      public void testit()
48          throws Exception
49      {
50          File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4633" );
51  
52          Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
53          verifier.setAutoclean( false );
54          verifier.addCliOption( "-T" );
55          verifier.addCliOption( "2W" );
56          verifier.executeGoal( "install" );
57          verifier.verifyErrorFreeLog();
58          verifier.resetStreams();
59      }
60  
61  }