It figures, now the project with no tests works fine and the one *with* tests
isn't working. It seems like using JDK 6 prevents Maven from resolving
dependencies from a parent pom.xml.
cannot access junit.framework.TestCase
class file for junit.framework.TestCase not found
public abstract class BaseDaoTestCase extends
AbstractTransactionalDataSourceSpringContextTests {
/Users/mraible/Work/appfuse-2.0/data/hibernate/src/main/java/org/appfuse/dao/BaseDaoTestCase.java:[19,48]
cannot find symbol
symbol : method getClass()
location: class org.appfuse.dao.BaseDaoTestCase
/Users/mraible/Work/appfuse-2.0/data/hibernate/src/main/java/org/appfuse/dao/BaseDaoTestCase.java:[23,24]
cannot find symbol
symbol : variable AUTOWIRE_BY_NAME
location: class org.appfuse.dao.BaseDaoTestCase
/Users/mraible/Work/appfuse-2.0/data/hibernate/src/main/java/org/appfuse/dao/BaseDaoTestCase.java:[30,27]
cannot find symbol
symbol : variable this
location: class org.appfuse.dao.BaseDaoTestCase
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Dec 18 16:45:19 EST 2006
[INFO] Final Memory: 13M/508M
[INFO]
------------------------------------------------------------------------
I'm on OS X, switching to JDK 5 works fine. To reproduce, you can checkout
AppFuse from SVN, install the root pom using "mvn -N install" and then try
to cd into data and build the problem.
svn checkout https://appfuse.dev.java.net/svn/appfuse/trunk/ appfuse
--username guest
password is "" (empty string)
If you get passed the compilation stage, then it's probably something with
my system and not JDK 6. However, I have been able to reproduce this on OS
X and Windows XP.
Matt
Carlos Sanchez-4 wrote:
>
> if it works under jdk 5 and not under 6 then please open an issue and
> attach the pom
>
> On 12/18/06, mraible <[EMAIL PROTECTED]> wrote:
>>
>> I don't have a junit dependency in this pom.xml because I have no tests.
>> In
>> fact, I have no src/test directory either. My only dependencies are:
>>
>> <dependencies>
>> <dependency>
>> <groupId>commons-lang</groupId>
>> <artifactId>commons-lang</artifactId>
>> <version>${commons.lang.version}</version>
>> </dependency>
>> <dependency>
>> <groupId>javax.persistence</groupId>
>> <artifactId>persistence-api</artifactId>
>> <version>${jpa.version}</version>
>> </dependency>
>> </dependencies>
>>
>> Matt
>>
>> Donnchadh Ó Donnabháin wrote:
>> >
>> > I've been using maven2 with JDK 6 for several months now (beta 2 and
>> > recently FCS) with no issues. I presume you have a dependecy on e.g.
>> > junit in your pom.xml?
>> >
>> > Donnchadh
>> >
>> > On 12/18/06, mraible <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I tried running Maven 2 with JDK 6 and I get the following error. Is
>> >> this a
>> >> Maven issue or do I have to do something to get my pom.xml to work
>> with
>> >> JDK
>> >> 6.
>> >>
>> >> [INFO] [surefire:test]
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [ERROR] BUILD ERROR
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [INFO] No Java test frameworks found
>> >>
>> >> Thanks,
>> >>
>> >> Matt
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Maven-2-and-JDK-6-tf2841587s177.html#a7934094
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-2-and-JDK-6-tf2841587s177.html#a7936741
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/Maven-2-and-JDK-6-tf2841587s177.html#a7937123
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]