New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SUREFIRE-1994] Upgrade javacc-maven-plugin, add setup instructions for Eclipse #453
Conversation
surefire-grouper/pom.xml
Outdated
<executions> | ||
<execution> | ||
<id>javacc</id> | ||
<goals> | ||
<goal>javacc</goal> | ||
</goals> | ||
<configuration> | ||
<sourceDirectory>${project.basedir}/src/main/javacc</sourceDirectory> | ||
<outputDirectory>${generated.sources.dir}</outputDirectory> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change default value .... ${project.build.directory}/generated-sources/javacc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bad default imho. People don't expect source folders to exist in the build directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sman-81
Don;t modify default settings unless it is absolutely necessary.
The old plugin is compliant with IDEs, the default layout, where generates sources appear in target/generated-sources/javacc
.
surefire-grouper/pom.xml
Outdated
<executions> | ||
<execution> | ||
<id>javacc</id> | ||
<goals> | ||
<goal>javacc</goal> | ||
</goals> | ||
<configuration> | ||
<sourceDirectory>${project.basedir}/src/main/javacc</sourceDirectory> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default value is ${basedir}/src/main/javacc
, so looks the same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like things to be obvious and explicit. Devs not familiar with the workings of this plugin will be able to understand better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sman-81
Don;t modify default settings unless it is absolutely necessary.
The old plugin is compliant with IDEs, the default layout, where generates sources appear in target/generated-sources/javacc
.
The src/main
files are a subject to git commit them. So I disagree to touch this folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nowadays the IDEs can be configured to run the compilation and lookup target/generated-sources
which is default path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
src/main
files are a subject to git commit them. So I disagree to touch this folder.
@Tibor17
Did you notice .gitignore
was updated to prevent this?
Take a look at my comment in the Jira-Ticket.
I have checked it out and the following plugin fails with an error
I have used another plugin which release was made 20 days ago and it is stable
The directory structure is the same and I did not provide any additional configuration (only used groupId:artifactId:version).
and compiled the project |
@Tibor17 for |
This works as well and it is binary compliant with the old plugin.
|
Hello @Tibor17, @slawekjaranowski, |
@sman-81 |
I've merged upstream modifications, git-squashed the two commits of this ticket, and renamed the PR. |
@sman-81 |
No 1 and 2 weren't so clever I can see now. I'll make a new pull request, ok? |
@sman-81 |
Hello @Tibor17 now the pr is correctly rebased and squashed. Please take a look :) |
@sman-81 |
well ..., I don't :) |
Thx for contributing and the PR! Let's keep tehm coming more. |
@Tibor17 Thank you, too. I like your attention to detail. It was good working together! |
This PR addresses the issue in [SUREFIRE-1994] to upgrade/configure
javacc-maven-plugin
.✅ Each commit in the pull request should have a meaningful subject line and body.
✅ Format the pull request title like
[SUREFIRE-XXX] - Fixes bug in ApproximateQuantiles
✅ Run
mvn clean install
to make sure basic checks pass.(I use
mvn clean verify
usually which is the same but does not put artifacts into the local repo.)✅ I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004