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

后端 未结 3 1195
感动是毒
感动是毒 2021-02-14 18:11

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:16

    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.

提交回复
热议问题