atteo / classindex

Index classes, do not scan them!
Apache License 2.0
263 stars 42 forks source link

Not working in Eclipse 4.4.0? #20

Closed johnedo1234 closed 10 years ago

johnedo1234 commented 10 years ago

I've tried adding the classindex jar to the Eclipse annotation processing settings, as suggested.

I've tried adding guava as well.

I've tried with ClassIndex v3.1 and v3.2.

The jaxb.index file is not created, and I can't see any signs of the annotation processor actually being run.

Any suggestions?

sentinelt commented 10 years ago

Do you have 'Enable annotation processing' checked as shown on the screenshot below?

anno

johnedo1234 commented 10 years ago

Yes, in fact we already have the Hibernate JPA metamodel generator running through annotation processing, and it works fine.

On Wed, Oct 22, 2014 at 3:02 PM, Sławek Piotrowski notifications@github.com wrote:

Do you have 'Enable annotation processing' checked as shown on the screenshot below?

anno

Reply to this email directly or view it on GitHub: https://github.com/atteo/classindex/issues/20#issuecomment-60137094

sentinelt commented 10 years ago

I downloaded Eclipse Luna and loaded classindex-benchmark project into it. With that setup it seems to work. The index is created in target/classes/META-INF/annotations/ folder.

Could you please provide me with an example project with which I could reproduce the problem?

johnedo1234 commented 10 years ago

Ok, so what version of classindex are you using?

And do I need to include guava or any other libraries in the annotation processing factory path?

On Wed, Oct 22, 2014 at 3:11 PM, Sławek Piotrowski notifications@github.com wrote:

I downloaded Eclipse Luna and loaded classindex-benchmark project into it. With that setup it seems to work. The index is created in target/classes/META-INF/annotations/ folder.

Could you please provide me with an example project with which I could reproduce the problem?

Reply to this email directly or view it on GitHub: https://github.com/atteo/classindex/issues/20#issuecomment-60138598

sentinelt commented 10 years ago

I used the latest version: 3.2. Guava is not needed anymore.

johnedo1234 commented 10 years ago

Ok, cool. I see now - I was looking for a file called jaxb.index, but instead I get files like com.blah.IndexThis instead.

They are in fact being generated.

Thanks!

On Wed, Oct 22, 2014 at 3:15 PM, Sławek Piotrowski notifications@github.com wrote:

I used the latest version: 3.2. Guava is not needed anymore.

Reply to this email directly or view it on GitHub: https://github.com/atteo/classindex/issues/20#issuecomment-60139142

sentinelt commented 10 years ago

No problem