In addition to what Joe suggested, since you mentioned running the test
suite in IntelliJ, you might also want to consider the J-Unit working
directory.

When you import a multi-module Maven project, the J-Unit working directory
will default to the top level directory, in this case 'nifi'.

If you click Run -> Edit Configurations -> Defaults -> J-Unit you can
change 'Working Directory' to $MODULE_DIRS and this will become the new
default for any tests you run, you'll also want to delete any existing
J-Unit configurations in the same window (outside the Defaults section)
because they are likely set with the wrong working directory.

-Bryan


On Thu, Jul 23, 2015 at 5:33 AM, Joe Witt <[email protected]> wrote:

> Yu
>
> Did you run 'mvn clean install' under each of the following
> directories in the following order:
>
> ./nifi-parent
> ./nifi-nar-maven-plugin
> ./nifi
>
> Also, was this on the 'develop' branch?  'git checkout develop'
>
> Thanks
> Joe
>
> On Wed, Jul 22, 2015 at 11:34 PM, Yu Ishikawa
> <[email protected]> wrote:
> > Hi all,
> >
> > I am tackling the first issue of Apache NiFi. I had checked out the
> project
> > from Github with IntelliJ. And then, I tried to run a junit test suite on
> > IntelliJ. But, I couldn't run it because the classes which seems to be
> > generated by antlr, such as below, didn't exist.
> >
> >
> org.apache.nifi.attribute.expression.language.antlr.AttributeExpressionLexer
> >
> > Even though I executed `mvn clean install` and `mcn clean compile` under
> the
> > `./nifi-parent` directory, those classes weren't generated. How do I
> > generate those classes?
> >
> > Thanks,
> > Yu
> >
> >
> >
> > --
> > View this message in context:
> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/How-do-I-generate-java-classes-from-the-antlr-grammar-file-tp2221.html
> > Sent from the Apache NiFi (incubating) Developer List mailing list
> archive at Nabble.com.
>

Reply via email to