建文 wrote:
> Junit is added in dependencies,and i can run Junit test in my Eclipse,
> but when run mvn clean install -DskipTests=true fail
Maven is about conventions. If you don't follow its conventions, you'll run
into trouble. Like this.
Maven separates between the main source and the code for
Junit is added in dependencies,and i can run Junit test in my Eclipse,
but when run mvn clean install -DskipTests=true fail
On 2015/9/1 23:56, Sandra Parsick wrote:
Hi,
You have to add the junit dependency in your section.
But I would recommend you to move the tests to src/test/java.
Best reg
Hi,
You have to add the junit dependency in your section.
But I would recommend you to move the tests to src/test/java.
Best regards,
Sandra
Am 30.08.2015 um 15:40 schrieb 建文:
> I add junit4.8 in my project, and the test java classes are in
> src/main/java not src/test/java(i know it's not be
?
Sent from Outlook
On Sun, Aug 30, 2015 at 7:35 AM -0700, "Karl Heinz Marbaise"
wrote:
Hi,
On 8/30/15 3:40 PM, 建文 wrote:
> I add junit4.8 in my project, and the test java classes are in
> src/main/java not src/test/java(i know it's not best practice),
You should change that and
Hi,
On 8/30/15 3:40 PM, 建文 wrote:
I add junit4.8 in my project, and the test java classes are in
src/main/java not src/test/java(i know it's not best practice),
You should change that and put the tests into src/test/java...
I assume you have given the scope for junit ? If yes than junit is no
I add junit4.8 in my project, and the test java classes are in
src/main/java not src/test/java(i know it's not best practice),
and i set junit dependency scope to runtime.
but when i run mvn clean install -DskipTests=ture,got error,
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-