I have build errors with m2eclipse but not with maven2 on the command line - is my m2eclipse misconfigured?

后端 未结 3 1580
谎友^
谎友^ 2021-02-14 18:10

I installed m2eclipse to build a java project in Eclipse.

I imported the project as follows:

Import->
Maven->
Existing Maven Projects->
Import M         


        
3条回答
  •  被撕碎了的回忆
    2021-02-14 18:31

    I checked out the code. I have exactly the same problem. The code seems to be just broken.

    Edit: It definitely is. Look at the class com.jappstart.service.auth.UserDetailsServiceImpl. It wants to override the method public final UserDetails loadUserByUsername(final String username) but this method doesn't exist in the interface the class implements and is has no superclass.

    Edit: Ok, that doesn't explain why it builds with maven standalone. This also works for me. Very strange. It seems that there is something going on with the build that doesn't work with m2eclipse.

    Edit: I'm pretty sure the code works because the bytecode is modified by the datanucleus plugin. When I run the project as maven build (right-click->Run->maven package) it sucessfully creates the war with m2eclipse. So my guess is that the problem is with the m2eclipse Maven Builder.

提交回复
热议问题