Dear all maven developers,
    I have a project which was build by maven2, It always works well when
build or package it using maven2. But it came out a build error after i
upgraded maven from maven2 to maven3. The main error message is :it can't
find a special method in a class. Aware of collision of different version
jars, I find the project have
two related dependencies, one is A, another is B. There are a class C with
the same name, but the class C in B provide method m, which is not provided
by the class C in A.
    I run the command mvn dependency:tree. In the dependency tree, I saw
that the project dependents A and B directly. I moved declaration of B
before A, but it made no difference. other way, A and B are necessary,
neither of them is permitted to remove.
    Can you tell me what I can do? and why a project work with maven2 well
can't not be build with maven3?

best regards

yours sincerely Yongpo Liu

Reply via email to