Add maven.exec.xxx.skip option for exec-maven-plugin#6162
Add maven.exec.xxx.skip option for exec-maven-plugin#6162fjy merged 2 commits intoapache:masterfrom asdf2014:skip_exec
Conversation
|
It seems that those maven options are in effect. The travis job#415338345 failed again related to the test case timeout. Would you please help me to rebuild it? @jihoonson |
|
@asdf2014 thanks for taking this issue. I've restarted the failed one. BTW, IMO, it would be better to have an option to make the distribution tarball rather than avoiding pulling some dependencies. As you can see in https://github.com/apache/incubator-druid/blob/master/distribution/pom.xml, |
|
Hi, @jihoonson . Thanks for your help. The travis job is succeeded. Yes, using profile to control this will be better, it has been changed. |
|
Thanks. Would you please add a doc for this? Probably you can add it to https://github.com/apache/incubator-druid/blob/master/docs/content/development/build.md. Also, if you want, you can change the travis script to not make the distribution tarball, so that we can check it helps Travis jobs to succeed. |
|
@jihoonson Indeed, it is necessary to double check it. After adding the -Pdist option, it seems that I can see from the log that this option is already works, and the exec-maven-plugin plugin starts running. |
There was a problem hiding this comment.
This profile only skips pulling dependencies. How about skipping the entire process to build the distribution tarball? I think -Pdist is more intuitive name for skipping the entire process.
There was a problem hiding this comment.
Do you mean that the bundle-contrib-exts part should also be included in the dist profile? Or should we include all the build plugins, such as the maven-assembly-plugin and license-maven-plugin plugins?
There was a problem hiding this comment.
I mean both. We don't have to execute assembling the tarball or downloading licenses for the install phase. Also, bundle-contrib-exts is currently not executed by default, but it should also be a part of building the distribution tarball.
There was a problem hiding this comment.
Would you explain how this property is being used?
There was a problem hiding this comment.
Sure, we also can use -Dtar to execute this plugin. In addition, if we used both of name and value tags, then only -Dtar=dist will be in effect.
<property>
<name>tar</name>
<value>dist</value>
</property>There was a problem hiding this comment.
Thanks. Please document this option as well.
There was a problem hiding this comment.
We need to add more details about this option. The document should say what this option means and how different mvn clean install and mvn clean install -Pdist are. Also, please update this command to mvn clean install -Pdist
There was a problem hiding this comment.
Okay, i will improve this.
|
Thanks @asdf2014. Would you check this warning which is seen when building the project. |
There was a problem hiding this comment.
There was a problem hiding this comment.
Hi, @jihoonson . Sorry for the delayed reply, this has been patched, PTAL.
|
@asdf2014 sorry for the delayed review. Would you please resolve conflicts? I'll review again. |
|
Hi, @jihoonson . The conflict has been fixed. PTAL. |
| <argument> | ||
| -Ddruid.extensions.hadoopDependenciesDir=${project.build.directory}/hadoop-dependencies | ||
| </argument> | ||
| <argument>io.druid.cli.Main</argument> |
There was a problem hiding this comment.
We have changed all package names from io.druid to org.apache.druid. Please fix this.
Same for other places below.
|
@asdf2014 can we finish this up? |
|
Hi, @fjy . It's done. PTAL. |
Try to fix #6160