Permalink
Browse files

make example code actually compile

git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/trunk@1086213 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent da03549 commit eb8e57808b27bdbb0cf84e21be0c5dac2a4aec8f @brettporter brettporter committed Mar 28, 2011
@@ -8,6 +8,6 @@
{
public static void main( String[] args )
{
- System.out.println( "Hello World!" );
+ System.out.println( "Hello World! I am " + (com.example.ancient.AncientClass.isAncient ? "ancient" : "not ancient" ) );
}
}
@@ -33,6 +33,6 @@ public static Test suite()
*/
public void testApp()
{
- assertTrue( true );
+ assertTrue( com.example.ancient.AncientClass.isAncient );
}
}
@@ -1,7 +1,18 @@
-<project>
+<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>test.MNG3989</groupId>
<artifactId>ancient-artifact</artifactId>
+ <packaging>jar</packaging>
<version>3.1.0.2</version>
+ <name>ancient-artifact</name>
+ <url>http://maven.apache.org</url>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
</project>
-

0 comments on commit eb8e578

Please sign in to comment.