Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Laurent C
Liferay, Junit and Maven.
February 25, 2013 10:18 AM
Answer

Laurent C

Rank: New Member

Posts: 6

Join Date: October 17, 2012

Recent Posts

Hi everybody,

I try to make unit tests on my portlet. I work on 6.1.1-GA2 with the maven plugin.
I can't use InitUtil.iniWithSpring() to run my tests.

Is it somebody that already write test with maven?

thanks for help.
David H Nebinger
RE: Liferay, Junit and Maven.
February 25, 2013 10:57 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11770

Join Date: September 1, 2006

Recent Posts

Maven support is still not official.

If you are doing anything with maven, you are a maven support tester. In this role, you would be testing the code, finding bugs, and reporting those bugs to Jira.

If you are not in this role, you should not be using maven until it is officially supported.
Laurent C
RE: Liferay, Junit and Maven.
February 25, 2013 1:08 PM
Answer

Laurent C

Rank: New Member

Posts: 6

Join Date: October 17, 2012

Recent Posts

Hi, dear David.

In my post I ask for help, not this kind of answer.

So thanks David for your helpless.
David H Nebinger
RE: Liferay, Junit and Maven.
February 25, 2013 2:00 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11770

Join Date: September 1, 2006

Recent Posts

It wasn't meant to be helpless, it was meant to point out that maven support is not yet ready for prime time.

Lots of folks have been posting about liferay and maven, and I consistently point out to them that it is not ready.

Not trying to be mean or anything, but until maven is officially supported any answer you get (if there is one) would be unofficial at best and likely to change when maven is officially supported.

I too am looking forward to using maven to build plugins, but until it's officially supported I'm sticking w/ the tried and true ant process.
Laurent C
RE: Liferay, Junit and Maven.
February 26, 2013 2:46 AM
Answer

Laurent C

Rank: New Member

Posts: 6

Join Date: October 17, 2012

Recent Posts

Dear David,

it does not matter if the answer I get is not official or is likely to change later. I am looking for help on this topic and your answer leads me not.
The use of ant is certainly honed, but we do not use it, we use maven.

I did not ask if maven was supported, so I do not think your answer is very appropriate.

Thank you.