> Meanwhile I have installed it into my local repository, added it as a > dependency with a "test" scope and the compiler complains that it > cannot resolve the BuildFileTest.class (which exists in > ant-testutil.jar) -- where could I be wrong? >
Here is the relevant mvn -X fragment: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0:testCompile' --> [DEBUG] (f) basedir = E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1 [DEBUG] (f) buildDirectory = E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target [DEBUG] (f) classpathElements = [E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~ 1\target\classes, E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\test-classes, D:\Documents and Settings\bmf1972\.m2\repository\junit\junit\3.8.1\junit-3 .8.1.jar, D:\Documents and Settings\bmf1972\.m2\repository\ant\ant-testutil\1.6. 5-SNAPSHOT\ant-testutil-1.6.5-SNAPSHOT.jar, D:\Documents and Settings\bmf1972\.m 2\repository\ant\ant\1.6.5\ant-1.6.5.jar] [DEBUG] (f) compileSourceRoots = [E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE ~1\src\test\java] [DEBUG] (f) compilerId = javac [DEBUG] (f) debug = true [DEBUG] (f) fork = false [DEBUG] (f) optimize = false [DEBUG] (f) outputDirectory = E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\t arget\test-classes [DEBUG] (f) outputFileName = ant-acme-1.0-SNAPSHOT [DEBUG] (f) staleMillis = 0 [DEBUG] (f) verbose = false [DEBUG] -- end configuration -- [INFO] [compiler:testCompile] [DEBUG] Using compiler 'javac'. [DEBUG] Source directories: [E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\src\ test\java] [DEBUG] Classpath: [E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\classe s E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\test-classes D:\Documents and Settings\bmf1972\.m2\repository\junit\junit\3.8.1\junit-3.8.1. jar D:\Documents and Settings\bmf1972\.m2\repository\ant\ant-testutil\1.6.5-SNAPSHO T\ant-testutil-1.6.5-SNAPSHOT.jar D:\Documents and Settings\bmf1972\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar] [DEBUG] Output directory: E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\ test-classes [DEBUG] Classpath: [DEBUG] E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\classes [DEBUG] E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\test-classes [DEBUG] D:\Documents and Settings\bmf1972\.m2\repository\junit\junit\3.8.1\juni t-3.8.1.jar [DEBUG] D:\Documents and Settings\bmf1972\.m2\repository\ant\ant-testutil\1.6.5 -SNAPSHOT\ant-testutil-1.6.5-SNAPSHOT.jar [DEBUG] D:\Documents and Settings\bmf1972\.m2\repository\ant\ant\1.6.5\ant-1.6. 5.jar [DEBUG] Source roots: [DEBUG] E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\src\test\java Compiling 1 source file to E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target \test-classes [INFO] ------------------------------------------------------------------------- --- [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------- --- [INFO] Compilation failure E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\src\test\java\com\acme\b uildsys\ant\HelloWorldTest.java:[3,28] cannot resolve symbol symbol : class BuildFileTest location: package ant Adrian Herscu wrote: > If someone has built the ant-testutil.jar from sources then it will be > more suitable -- I grabbed myself a binary and I am not sure which ANT > version it belongs. > > Meanwhile I have installed it into my local repository, added it as a > dependency with a "test" scope and the compiler complains that it cannot > resolve the BuildFileTest.class (which exists in ant-testutil.jar) -- > where could I be wrong? > > Carlos Sanchez wrote: >> You can get it uploaded to ibiblio >> http://maven.apache.org/guides/mini/guide-ibiblio-upload.html >> >> On 3/8/06, Adrian Herscu <[EMAIL PROTECTED]> wrote: >>> Hi all, >>> >>> I would like to build my own ANT tasks using Maven. >>> The problem is that ANT testing requires a special JAR >>> (ant-testutil.jar) which is not distributed through Maven's central repo. >>> >>> Now, I have two choices: >>> >>> 1) manually install that JAR in my local repo -- this will require >>> everybody to manually install that JAR into his local repo >>> >>> 2) put that JAR into my projects src/bin directory and then somehow add >>> it to the Surefire classpath -- how? >>> >>> I saw the classpathElements, but don't know how to use it (or even if >>> that's what I need in this case). >>> >>> Please help, >>> Adrian. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> -- >> I could give you my word as a Spaniard. >> No good. I've known too many Spaniards. >> -- The Princess Bride --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
