如何将本地maven工程打包到仓库以供在其他工程用pom.xml文件调用
2015-02-09 11:50
483 查看
<distributionManagement>
<repository>
<id>pro-release</id>
<name>Proj Release Repository</name>
<url>http://xxx.xxx.xxxx.xx/nexus/content/repositories/RestBus-Releases</url>
</repository>
<snapshotRepository>
<id>pro-snapshot</id>
<name>Proj Snapshot Repository</name>
<url>http://xxx.xxx.xxxx.xx/nexus/content/repositories/ResBus-SnapShots/</url>
</snapshotRepository>
</distributionManagement>
<build>
<finalName>spiderman</finalName>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
在项目名称上右击,run as
maven build
clean deploy
<repository>
<id>pro-release</id>
<name>Proj Release Repository</name>
<url>http://xxx.xxx.xxxx.xx/nexus/content/repositories/RestBus-Releases</url>
</repository>
<snapshotRepository>
<id>pro-snapshot</id>
<name>Proj Snapshot Repository</name>
<url>http://xxx.xxx.xxxx.xx/nexus/content/repositories/ResBus-SnapShots/</url>
</snapshotRepository>
</distributionManagement>
<build>
<finalName>spiderman</finalName>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
在项目名称上右击,run as
maven build
clean deploy
相关文章推荐
- 如何用maven 手动把本地jar安装到本地仓库和将本地项目打包并安装到本地资源仓库
- Maven将本地jar包生成pom文件,在项目中引用打包到本地仓库。
- 如何配置pom.xml用maven打包java工程
- Maven将本地jar包生成pom文件,在项目中引用打包到本地仓库。
- maven的配置,maven构建工程,pom.xml文件配置,maven打包
- Eclipse下载Github上FastDFS-Client源码并转化成Maven工程以及打包到本地Maven仓库
- 如何配置pom.xml用maven打包java工程
- 如何配置pom.xml用maven打包java工程
- Eclipse下载Github上FastDFS-Client源码并转化成Maven工程以及打包到本地Maven仓库
- 如何用maven 手动把本地jar安装到本地仓库和将本地项目打包并安装到本地资源仓库
- maven打包jar与pom文件到本地仓库例子
- 学习淘淘商城第十九课 补充2:Eclipse下载Github上FastDFS-Client源码并转化成Maven工程以及打包到本地Maven仓库
- 如何配置pom.xml用maven打包java工程
- 如何将jar包加入到Maven本地仓库
- Maven如何手动添加依赖的jar文件到本地Maven仓库
- 如何将jar包添加到maven的本地仓库
- 将本地jar包手动拷贝到Maven库中,在其他电脑上用Maven打包时出错
- Maven 搜索仓库如何配置pom.xml的依赖
- eclipse中如何把workspace中的源代码打包加入本地maven库中
- Maven如何手动添加jar包到本地Maven仓库