首页 > maven创建文件

maven创建文件

我想问一下我在apache上看到一个文件
Maven artifact
http://thrift.apache.org/download
这个怎么弄直接能通过mvn命令构建是不是


上面已经提供了Maven artifact,直接复制到pom.xml中即可。

<dependency>
  <groupId>org.apache.thrift</groupId>
  <artifactId>libthrift</artifactId>
  <version>0.9.2</version>
</dependency>

然后在自己的工程目录下mvn clean install

或者说题主说的是这个问题http://thrift.apache.org/docs/BuildingFromSource


不是

<dependency>
  <groupId>org.apache.thrift</groupId>
  <artifactId>libthrift</artifactId>
  <version>0.9.2</version>
</dependency>

只是为你的项目增加thrift的依赖,相当于引用thrift的jar包。
只要将上面的xml增加到你的pom.xml里的标签就可以。


增加到本地pom 然后build

【热门文章】
【热门文章】