You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Al...@miranda.com on 2013/03/07 21:24:42 UTC

error in unit test


I have a problem where my maven plugin's unit tests fail ONLY when i run
them in jenkins. When i run `mvn test` locally everything passes fine

The error i get is

Tests in error:
  testGetMyModules(com.example.AnalyzerTest): (class:
org/apache/maven/project/MavenProject, method:
getSnapshotArtifactRepository signature:
()Lorg/apache/maven/artifact/repository/ArtifactRepository;) Incompatible
argument to function

Does anyone know what this is related to?

Thank you,


Alejandro
DISCLAIMER:

Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.

Thank You.


Re: error in unit test

Posted by Baptiste MATHUS <ml...@batmat.net>.
Hi,
This is more a question for jenkins users ml.
I suppose you're using a Maven native type of job. Does it produce the same
error with a freestyle job&Maven step?

And also check you're using the same Maven version locally and in jenkins.
But from your logs, I don't think it's related.

Cheers
Le 7 mars 2013 21:25, <Al...@miranda.com> a écrit :

>
>
> I have a problem where my maven plugin's unit tests fail ONLY when i run
> them in jenkins. When i run `mvn test` locally everything passes fine
>
> The error i get is
>
> Tests in error:
>   testGetMyModules(com.example.AnalyzerTest): (class:
> org/apache/maven/project/MavenProject, method:
> getSnapshotArtifactRepository signature:
> ()Lorg/apache/maven/artifact/repository/ArtifactRepository;) Incompatible
> argument to function
>
> Does anyone know what this is related to?
>
> Thank you,
>
>
> Alejandro
> DISCLAIMER:
>
> Privileged and/or Confidential information may be contained in this
> message. If you are not the addressee of this message, you may not
> copy, use or deliver this message to anyone. In such event, you
> should destroy the message and kindly notify the sender by reply
> e-mail. It is understood that opinions or conclusions that do not
> relate to the official business of the company are neither given
> nor endorsed by the company.
>
> Thank You.
>
>