-
Notifications
You must be signed in to change notification settings - Fork 237
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
Support building from sub directory #4070
Support building from sub directory #4070
Conversation
Signed-off-by: Chong Gao <res_life@163.com>
build |
@@ -214,7 +214,6 @@ | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<version>1.8</version> |
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.
Root pom is 3.0.0, but here it's 1.8, so delete this line.
Use directory-maven-plugin to get spark-rapids root path instead of user.dir which is a relative 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.
I tried this out locally and the build-info
was generated to the correct location. This change is more deterministic than using user.dir
so this looks good to me. I'm not an expert on the build system so would be good to get another review.
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 agree this looks good to me, but I really would like to hear from @gerashegalov about this because he has been doing most of the work on the maven build system lately.
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.
LGTM
@@ -48,7 +48,7 @@ | |||
<target> | |||
<mkdir dir="${project.build.directory}/extra-resources"/> | |||
<exec executable="bash" failonerror="true" output="${project.build.directory}/extra-resources/spark-${spark301.version}-info.properties"> |
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.
In a follow-on we need to generalize this invocation to use spark.version and move to the shim/pom.xml and delete from child shims.
Use directory-maven-plugin to get spark-rapids root path instead of user.dir which is a relative path.
Fixes #3461
Signed-off-by: Chong Gao res_life@163.com