English 中文(简体)
如何从Maven POM档案中删除评论意见
原标题:How to remove comments from Maven POM file

我有POM文件。 我想在网上人汇编期间删除这些内容。 我发现,存在一种混杂的 p块——maven-config-processor-plugin。 但没有任何信息表明我如何能够从人民党的档案中删除评论? 是否有解决办法?

问题回答

《刑法》有一个xml maven plugin,即可以将XML文档与XSLT作文转换成。 answer 所提到的@Mark O Connor举了一个例子。 两者合在一起,可满足你们的需要。

如果你将 p用于“生产”,那么你或许会希望生成 rel=“nofollow”> 有效:

mvn help:effective-pom

mvn help:effective-pom -Doutput=production-pom.xml

这不仅删除了评论,而且也删除了任何财产参考资料(=Resolves),并应用了dependencyManagement <>/code>和pluginManagement,从括号中删除,从而使om“能够独立”。





相关问题
JavaFX with Maven [closed]

I recently started a JavaFX project, and I d like to use Maven as my compiler/deployment tool. Is there a good tutorial or plugin to integrate JavaFX and Maven?

How to upload jar to respository?

I have jar files that cannot be found on Maven Central repository. I would like to add the jar so I can just include extra tag in my pom.xml file and other developer can use the jar. What are the ...

Debug Maven project in Eclipse with third party sources

I am currently developing a maven project in eclipse. The m2eclipse plugin works beautifully. It even works out of the box with debugging. But when I am debugging open source third party libarries. ...

Could Free Pascal benefit of something like Apache Maven?

Apache Maven is a very popular build and dependency management tool in the Java open source ecosphere. I did some tests to find out if it can handle compiled Free Pascal / Delphi units and found it ...

Run a single test method with maven

I know you can run all the tests in a certain class using: mvn test -Dtest=classname But I want to run an individual method and -Dtest=classname.methodname doesn t seem to work.

Uploading a directory using sftp with Maven

How can I upload a directory - Eclipse update site - using sftp with public key authentication in Maven? For background information: I m using tycho to build an Eclipse plugin and want to get the ...

What are solid NMaven or build servers for .NET alternatives?

Maven had a long history and is well supported in the Java world. NMaven has received a less successful start and has never become as popular in the C#/.NET world as its larger cousin was in the Java ...