You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Edmondo Porcu <Ed...@gottexbrokers.com> on 2012/05/09 16:35:11 UTC

Problem with Maven-surefire-plugin, testNG and Spring

Dear all,
I am running a mvn package over a complex project, which includes  tests written using TestNG and Spring AbstractTestNGSpringContexts.

When I run these tests inside my IDE (IDEA) everything works fine, but when I run through mvn package the @ContextConfiguration annotation is not processed and therefore @Autowired properties in my test classes fails to resolve.

What could be the reason for that?Do you have any suggestion?

Best Regards


[cid:image002.jpg@01CD2E01.B42FF820]

Edmondo PORCU
Associate - Financial software architect
edmondo.porcu@gottexbrokers.com<ma...@gottexbrokers.com>

Avenue de Rhodanie 48
1007 Lausanne
Switzerland

Dir
Fax

+41 (0) 21 560 30 82
+41 (0) 21 617 71 55

The information in this email is confidential and may be legally privileged. If you are not the intended recipient, you must not read, use or disseminate the information. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by the Gottex Group of Companies for any loss or damage arising in any way from its use.