sockeqwe / annotationprocessing101

http://hannesdorfmann.com/annotation-processing/annotationprocessing101/
431 stars 157 forks source link

How to open this repo using IDEA ? #9

Closed CoXier closed 6 years ago

sockeqwe commented 6 years ago

What exactly is the problem?

JianxinLi notifications@github.com schrieb am Fr., 1. Dez. 2017, 04:28:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sockeqwe/annotationprocessing101/issues/9, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjnrpqz57aPeLn7CwdJ4pUs2hwsTbARks5s73JcgaJpZM4Qx0aD .

CoXier commented 6 years ago

Here is question link https://stackoverflow.com/questions/47586054/how-to-open-pom-xml-project-using-idea

sockeqwe commented 6 years ago

Just use the open dialog in intellij and open the pom.xml file in the root folder of this project.

JianxinLi notifications@github.com schrieb am Fr., 1. Dez. 2017, 14:43:

Here is question link https://stackoverflow.com/questions/47586054/how-to-open-pom-xml-project-using-idea

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sockeqwe/annotationprocessing101/issues/9#issuecomment-348497685, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjnrrYGncmhzqaEdM3dO18rK3F2jxb6ks5s8AJpgaJpZM4Qx0aD .

CoXier commented 6 years ago

Obviously there is not pom.xml in your root folder of this project.

sockeqwe commented 6 years ago

Oops, you are right. Open the pom.xml file in the favtory folder. That is the project that contains the annotation and the annotation processor. https://github.com/sockeqwe/annotationprocessing101/tree/master/factory

To build the annotation processor you have to run mvn install in this folder https://github.com/sockeqwe/annotationprocessing101/tree/master/factory

Then you can open use the annotation processor and annotations in other projects like https://github.com/sockeqwe/annotationprocessing101/tree/master/factory-sample/pizzastore did (open the pom.xml file in this directory in IntelliJ, its a separate project not part of the annotation processor project).

JianxinLi notifications@github.com schrieb am Sa., 2. Dez. 2017, 04:45:

Obviously there is not pom.xml in your root folder of this project.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sockeqwe/annotationprocessing101/issues/9#issuecomment-348665470, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjnrlaRePYzdPDROkoI8dd9d1W0T81Rks5s8Mf1gaJpZM4Qx0aD .