Skip to content

[Minor][Build] Remove empty tags in parent pom.xml#14193

Closed
keypointt wants to merge 1 commit into
apache:masterfrom
keypointt:emptyTag
Closed

[Minor][Build] Remove empty tags in parent pom.xml#14193
keypointt wants to merge 1 commit into
apache:masterfrom
keypointt:emptyTag

Conversation

@keypointt
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Remove empty tags in parent pom.xml

When I was working on another ticket and scanning code files randomly, I found these empty tags. I'm not sure if it is needed, or these empty tags are left on purpose.

If this is not a valid PR, please just let me know and I'll close it.

How was this patch tested?

Tested by re-building the project on my local machine.

@SparkQA
Copy link
Copy Markdown

SparkQA commented Jul 14, 2016

Test build #62294 has finished for PR 14193 at commit 534f8c6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Copy Markdown
Member

srowen commented Jul 14, 2016

No, I don't think any of these can be removed. Why would you assume an empty tag is meaningless? that's not true in any XML format.

@keypointt
Copy link
Copy Markdown
Contributor Author

Hi Sean do you mind to explain a bit the meaning of the empty tags?

Is it mean these empty paras can be set via command line like mvn compile -paraA -paraB?

I googled around and didn't find a satisfying answer. Thanks a lot

@keypointt keypointt closed this Jul 14, 2016
@srowen
Copy link
Copy Markdown
Member

srowen commented Jul 14, 2016

The first one sets a property with an empty value. I think this is necessary to refer to it in the Maven build even if it doesn't have a default value. The rest -- refer to the plugin docs for that they mean. Empty tags are perfectly meaningful in XML.

@keypointt
Copy link
Copy Markdown
Contributor Author

I get it now, thank you Sean for explaining this 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants