Yes, this works. However, after importing as Maven project into Eclipse I am getting Eclipse errors:
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (execution: default, phase: process-sources)
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.2:test-compile (execution: default, phase: process-test-sources)
What is the best way of dealing with these errors? Please, note that I do not plan to use AspectJ now
Are you using STS? How are you importing the project, and is this the spring-mvc-showcase example? This error usually occurs when you are using the new m2e plugin with an older POM files that does not adhere to all the new rules. You can tell STS to use the older one by selecting the modules tab in the dashboard selecting the m2e plugin and clicking install. This will revert back to the old m2e plugin, you can re-install the new one by simply following the same process. The other option is to fix the POM to be compatible.