You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Elek, Marton (JIRA)" <ji...@apache.org> on 2017/11/01 19:29:00 UTC
[jira] [Updated] (RATIS-102) Clean generated sources as part of the
default clean lifecycle
[ https://issues.apache.org/jira/browse/RATIS-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elek, Marton updated RATIS-102:
-------------------------------
Attachment: RATIS-102.001.patch
Patch modified according to the commens. In the mean time I found that the clean-shade profiled modifed the parameters of the default-clean execution. So I also modified the clean-shade profile to be more explicit and do a separated plugin execution. Now we can check from the output what is happening:
{code}
mvn clean -P!clean-shade
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Ratis Hadoop Shaded 0.1.1-alpha-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ ratis-hadoop-shaded ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
{code}
{code}
mvn clean
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Ratis Hadoop Shaded 0.1.1-alpha-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ ratis-hadoop-shaded ---
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (shaded-clean) @ ratis-hadoop-shaded ---
[INFO] Deleting /home/elek/projects/ratis/ratis-hadoop-shaded (includes = [dependency-reduced-pom.xml], excludes = [])
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
{code}
> Clean generated sources as part of the default clean lifecycle
> --------------------------------------------------------------
>
> Key: RATIS-102
> URL: https://issues.apache.org/jira/browse/RATIS-102
> Project: Ratis
> Issue Type: Bug
> Reporter: Elek, Marton
> Assignee: Elek, Marton
> Priority: Major
> Labels: build
> Attachments: RATIS-102.000.patch, RATIS-102.001.patch
>
>
> RATIS-49 introduced new profiles to cleanup the generated sources/proto files in the shaded artifacts.
> I suggest to make it more easier by binding the additional {clean:clean} plugin calls to the clean phase of the default clean lifecycle instead of trigger them from a separated profile.
> In RATIS-4 I experimenting with build scripts and yetus test-patch script. As the simple {{mvn clean}} command is more common, it would be easier to switch to the simple clean without the profile.
> The cleanup could be done with triggering additional clean plugin execution.
> To test:
> {code}
> git checkout 52c4b64
> mvn clean package -DskipTests
> git checkout master
> mvn clean package -DskipTests
> {code}
> Without the patch the second only works with -Pclean-shade, with the proposed patch it works without activating any additional profile
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)