Index: core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0126TestJarDependency.java
===================================================================
--- core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0126TestJarDependency.java (wersja 0)
+++ core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0126TestJarDependency.java (wersja 0)
@@ -0,0 +1,55 @@
+package org.apache.maven.integrationtests;
+
+/*
+ * 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.
+ */
+
+import java.io.File;
+
+import org.apache.maven.it.Verifier;
+import org.apache.maven.it.util.ResourceExtractor;
+
+public class MavenIT0126TestJarDependency
+ extends AbstractMavenIntegrationTestCase
+{
+
+ /**
+ * MNG-2871
+ */
+ public void testit0126()
+ throws Exception
+ {
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0126-testJarDependency" );
+
+ Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+ /* It is important to start from empty repository*/
+ verifier.deleteArtifact( "org.apache.maven.its.it0126", "parent", "1.0-SNAPSHOT", "pom" );
+ verifier.deleteArtifact( "org.apache.maven.its.it0126", "client", "1.0-SNAPSHOT", "jar" );
+ verifier.deleteArtifact( "org.apache.maven.its.it0126", "model", "1.0-SNAPSHOT", "jar" );
+ verifier.deleteArtifact( "org.apache.maven.its.it0126", "model", "1.0-SNAPSHOT", "test-jar" );
+
+ /* Not "install" or "higher" goal to repeat the bug */
+ verifier.executeGoal( "compile" );
+
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+ }
+
+
+
+}
Index: core-integration-tests/src/test/resources/pom.xml
===================================================================
--- core-integration-tests/src/test/resources/pom.xml (wersja 565195)
+++ core-integration-tests/src/test/resources/pom.xml (kopia robocza)
@@ -125,5 +125,6 @@
+ it0126-testJarDependency
Index: core-integration-tests/src/test/resources/it0126-testJarDependency/model/src/main/java/org/apache/maven/its/it0126/Component.java
===================================================================
--- core-integration-tests/src/test/resources/it0126-testJarDependency/model/src/main/java/org/apache/maven/its/it0126/Component.java (wersja 0)
+++ core-integration-tests/src/test/resources/it0126-testJarDependency/model/src/main/java/org/apache/maven/its/it0126/Component.java (wersja 0)
@@ -0,0 +1,25 @@
+package org.apache.maven.its.it0126;
+
+/*
+ * 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.
+ */
+
+public interface Component
+{
+ void func();
+}
Index: core-integration-tests/src/test/resources/it0126-testJarDependency/model/src/main/resources/META-INF/ejb-jar.xml
===================================================================
--- core-integration-tests/src/test/resources/it0126-testJarDependency/model/src/main/resources/META-INF/ejb-jar.xml (wersja 0)
+++ core-integration-tests/src/test/resources/it0126-testJarDependency/model/src/main/resources/META-INF/ejb-jar.xml (wersja 0)
@@ -0,0 +1,26 @@
+
+
+
+
+
+
Index: core-integration-tests/src/test/resources/it0126-testJarDependency/model/pom.xml
===================================================================
--- core-integration-tests/src/test/resources/it0126-testJarDependency/model/pom.xml (wersja 0)
+++ core-integration-tests/src/test/resources/it0126-testJarDependency/model/pom.xml (wersja 0)
@@ -0,0 +1,49 @@
+
+
+
+
+
+ 4.0.0
+
+ org.apache.maven.its.it0126
+ parent
+ 1.0-SNAPSHOT
+
+ model
+ Model
+ jar
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ test-jar
+
+
+
+
+
+
+
Index: core-integration-tests/src/test/resources/it0126-testJarDependency/pom.xml
===================================================================
--- core-integration-tests/src/test/resources/it0126-testJarDependency/pom.xml (wersja 0)
+++ core-integration-tests/src/test/resources/it0126-testJarDependency/pom.xml (wersja 0)
@@ -0,0 +1,38 @@
+
+
+
+
+
+ 4.0.0
+ org.apache.maven.its.it0126
+ parent
+ Parent
+ pom
+ 1.0-SNAPSHOT
+
+ model
+ client
+
+
+ MNG-2871
+
+
Index: core-integration-tests/src/test/resources/it0126-testJarDependency/client/src/main/java/org/apache/maven/its/it0126/MyClient.java
===================================================================
--- core-integration-tests/src/test/resources/it0126-testJarDependency/client/src/main/java/org/apache/maven/its/it0126/MyClient.java (wersja 0)
+++ core-integration-tests/src/test/resources/it0126-testJarDependency/client/src/main/java/org/apache/maven/its/it0126/MyClient.java (wersja 0)
@@ -0,0 +1,30 @@
+package org.apache.maven.its.it0126;
+
+/*
+ * 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.
+ */
+
+import org.apache.maven.its.it0126.Component;
+
+public class MyClient
+{
+
+ void func()
+ {
+ }
+}
Index: core-integration-tests/src/test/resources/it0126-testJarDependency/client/pom.xml
===================================================================
--- core-integration-tests/src/test/resources/it0126-testJarDependency/client/pom.xml (wersja 0)
+++ core-integration-tests/src/test/resources/it0126-testJarDependency/client/pom.xml (wersja 0)
@@ -0,0 +1,42 @@
+
+
+
+
+
+ 4.0.0
+
+ org.apache.maven.its.it0126
+ parent
+ 1.0-SNAPSHOT
+
+ client
+ Client
+ jar
+
+
+ org.apache.maven.its.it0126
+ model
+ test-jar
+ 1.0-SNAPSHOT
+
+
+