Skip to content

Commit

Permalink
Main: Added ignored test for pom.xml until we fix the resolver in cey…
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Jun 23, 2014
1 parent b2082a5 commit dff5ed0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Expand Up @@ -18,6 +18,7 @@
import javax.tools.StandardJavaFileManager;
import javax.tools.ToolProvider;

import org.junit.Ignore;
import org.junit.Test;

import com.redhat.ceylon.cmr.impl.IOUtils;
Expand Down Expand Up @@ -81,6 +82,13 @@ public void testJBossModuleProperties() throws IOException, ModuleNotFoundExcept
checkJarDependencies(jar);
}

@Ignore("Requires a fix to disable resolution since modules come from the classpath")
@Test
public void testMavenModule() throws IOException, ModuleNotFoundException{
File jar = jar("pom.xml", "META-INF/maven/foo/foo");
checkJarDependencies(jar);
}

private void checkJarDependencies(File jar) throws ModuleNotFoundException {
try{
ArrayList<File> jars = new ArrayList<File>(1);
Expand Down
27 changes: 27 additions & 0 deletions test-jvm/com/redhat/ceylon/compiler/java/runtime/pom.xml
@@ -0,0 +1,27 @@
<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>
<groupId>foo</groupId>
<artifactId>foo</artifactId>
<version>1</version>

<dependencies>

<dependency>
<groupId>a</groupId>
<artifactId>a</artifactId>
<version>1</version>
</dependency>

<dependency>
<groupId>b</groupId>
<artifactId>b</artifactId>
<version>2</version>
<optional>true</optional>
</dependency>

</dependencies>

</project>

0 comments on commit dff5ed0

Please sign in to comment.