[英]How to inherit External Maven POM in Project POM
I'm looking at the Google Web Toolkit pom file at http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/examples.html and it doesn't seem right to copy all of it into my project pom, as it would add too much unnecessary clutter. 我正在http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/examples.html上查看Google Web Toolkit pom文件,将其全部复制到其中似乎不合适我的项目pom,因为这会增加太多不必要的混乱。
Hence, am looking for a way I could store the GWT pom in an external file, and make reference to it in my project pom. 因此,我正在寻找一种方法可以将GWT pom存储在外部文件中,并在我的项目pom中进行引用。
Anyone knows? 有谁知道?
That project is deprecated, use gwt-maven-plugin from codehaus. 该项目已弃用,请使用codehaus的gwt-maven-plugin 。
Hence, am looking for a way I could store the GWT pom in an external file, and make reference to it in my project pom.
因此,我正在寻找一种方法可以将GWT pom存储在外部文件中,并在我的项目pom中进行引用。
That's multi-module-project setup, have a look. 那是多模块项目的设置,看看吧。
Have you tried using the gwt Pom as the parent Pom for your project? 您是否尝试过将gwt Pom用作项目的父Pom? Something like this in your pom.xml?
在您的pom.xml中是这样的吗?
<parent>
<groupId>com.totsp.gwt</groupId>
<artifactId>maven-gwt-sample-withouthome</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.