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="http://jira.codehaus.org/browse/MNG-4633">MNG-4633</a>. 28 * 29 * @version $Id: MavenITmng4633DualCompilerExecutionsWeaveModeTest.java 1165035 2011-09-04 14:40:36Z hboutemy $ 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 moddule-locking of the project artifact. 44 */ 45 public void testit() 46 throws Exception 47 { 48 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4633" ); 49 50 Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" ); 51 verifier.setAutoclean( false ); 52 verifier.getCliOptions().add( "-T" ); 53 verifier.getCliOptions().add( "2W" ); 54 verifier.executeGoal( "install" ); 55 verifier.verifyErrorFreeLog(); 56 verifier.resetStreams(); 57 } 58 59 }