I\'m using Google Protocol Buffers to generate some Java classes for my project. Using Maven 2 and its \"antrun\" plugin, these classes are freshly generated before compile,
I had this issue with code generated using Maven and wsdl2java and here's what I did in Eclipse Juno to resolve it. Assume my project is named project1:
- Right-click project1 and select Properties
- Choose Java Build Path from the left and select the Libraries tab
- Click Add Class Folder
- Select the bin directory and click OK (project1/target/generated-sources/bin)
- Click OK and Refresh the project
As an added bonus you can also attach the source code:
- Click the arrow next to the new class folder you just created
- Click on Source attachment
- Click the Edit button
- Set the Path to /project1/target/generated-sources/axis2/src
- Click OK