Announcement Announcement Module
Collapse
No announcement yet.
STS & Roo - AspectJ not weaved Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • STS & Roo - AspectJ not weaved

    I have a project built with Spring Roo, and I use STS to develop it. When I tried to check-in my project yesterday with the Git plugin, the project got a bit messed up. So I restored some things manually, and got most of it back ok. The only thing that's not working is the AspectJ files not being recognized correctly by STS.

    I thought it must be something with my .project file, so I'll post this below

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
    	<name>wijverbouwen</name>
    	<comment></comment>
    	<projects>
    	</projects>
    	<buildSpec>
    		<buildCommand>
    			<name>org.eclipse.wst.common.project.facet.core.builder</name>
    			<arguments>
    			</arguments>
    		</buildCommand>
    		<buildCommand>
    			<name>org.eclipse.ajdt.core.ajbuilder</name>
    			<arguments>
    			</arguments>
    		</buildCommand>
    		<buildCommand>
    			<name>org.springframework.ide.eclipse.core.springbuilder</name>
    			<arguments>
    			</arguments>
    		</buildCommand>
    		<buildCommand>
    			<name>org.eclipse.m2e.core.maven2Builder</name>
    			<arguments>
    			</arguments>
    		</buildCommand>
    	</buildSpec>
    	<natures>
    		<nature>org.eclipse.m2e.core.maven2Nature</nature>
    		<nature>com.springsource.sts.roo.core.nature</nature>
    		<nature>org.springframework.ide.eclipse.core.springnature</nature>
    		<nature>org.eclipse.ajdt.ui.ajnature</nature>
    		<nature>org.eclipse.jdt.core.javanature</nature>
    		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
    	</natures>
    </projectDescription>
    The problem is that all my getters, generated by @RooJavaBean, are giving compilation errors.
    Last edited by Dnomaid; May 17th, 2013, 02:34 AM.

  • #2
    I solved it, it was the build path that was wrong. Somehow only *.java was included in the src/java build path. I changed it to (All), and now the AspectJ files are being picked up correctly.

    Comment


    • #3
      Hey!

      Glad to hear you solved the issue and thanks for sharing the solution here!!!

      Cheers,
      -Martin

      Comment

      Working...
      X