`
iamxiaole
  • 浏览: 18902 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论

Maven备忘

阅读更多
Ntool/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>cn.net.nsun</groupId>
	<artifactId>NTool</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<build>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
		</plugins>
		<extensions>
			<extension>
				<groupId>org.jvnet.wagon-svn</groupId>
				<artifactId>wagon-svn</artifactId>
				<version>1.9</version>
			</extension>
		</extensions>
	</build>
	<dependencies>
		<dependency>
			<groupId>org.apache.struts</groupId>
			<artifactId>struts2-core</artifactId>
			<version>2.1.8.1</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse</groupId>
			<artifactId>jface</artifactId>
			<version>3.3.0-I20070606-0010</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse.swt.win32.win32</groupId>
			<artifactId>x86</artifactId>
			<version>3.3.0-v3346</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse.ui</groupId>
			<artifactId>workbench</artifactId>
			<version>3.3.0-I20070608-1100</version>
		</dependency>
	</dependencies>
	<repositories>
		<repository>
			<id>maven2-repository.dev.java.net</id>
			<name>Java.net Repository for Maven</name>
			<url>http://download.java.net/maven/2/</url>
		</repository>
	</repositories>
	<distributionManagement>
		<repository>
			<id>ntool-releases</id>
			<name>NTool Release Repository</name>
			<url>svn:https://ntool.googlecode.com/svn/maven2/releases</url>
		</repository>
		<snapshotRepository>
			<id>ntool-snapshots</id>
			<name>Ntool Snapshot Repository</name>
			<url>svn:https://ntool.googlecode.com/svn/maven2/snapshots</url>
		</snapshotRepository>
	</distributionManagement>
</project>


setting.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
    <server>    
      <id>ntool-releases</id>    
      <username>jiale.chan@gmail.com</username>
      <password>******</password>
    </server>    
    <server>    
      <id>ntool-snapshots</id>    
     <username>jiale.chan@gmail.com</username>
      <password>******</password>
    </server>  
  </servers>
</settings>


myapp/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>cn.net.nsun</groupId>
	<artifactId>myapp</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<build>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
			<plugin>  
                <groupId>org.apache.maven.plugins</groupId>  
                <artifactId>maven-jar-plugin</artifactId>  
                <configuration>  
                    <archive>  
                        <manifest> 
                        	<addClasspath>true</addClasspath> 
                            <mainClass>app.myapp</mainClass>
                        </manifest>  
                    </archive>  
                </configuration>  
            </plugin>
            <plugin>  
                <groupId>org.apache.maven.plugins</groupId>  
                <artifactId>maven-assembly-plugin</artifactId>  
                <configuration>  
                    <archive>  
                        <manifest>  
                            <mainClass>app.myapp</mainClass>  
                        </manifest>  
                    </archive>  
                    <descriptorRefs>  
                        <descriptorRef>jar-with-dependencies</descriptorRef>  
                    </descriptorRefs>  
                </configuration>  
                <executions>
					<execution>
						<id>make-assembly</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
            </plugin> 
		</plugins>
		
	</build>
	<dependencies>
		<dependency>
			<groupId>cn.net.nsun</groupId>
			<artifactId>NTool</artifactId>
			<version>0.0.1-SNAPSHOT</version>
		</dependency>
	</dependencies>
	<repositories>
		<repository>
			<id>Ntool@Googlecode</id>
			<name>googlecode.com Repository for NTool</name>
			<url>http://ntool.googlecode.com/svn/maven2/snapshots/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>
</project>
分享到:
评论

相关推荐

    maven备忘命令集

    NULL 博文链接:https://tywo45.iteye.com/blog/462053

    IDEA Maven 配置备忘笔记

    主要介绍了IDEA Maven 配置备忘笔记,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    nexus+maven构建私服

    nexus+maven构建私服,自己备忘

    tomcat,jdk,maven环境变量配置(备忘)

    NULL 博文链接:https://wangyu.iteye.com/blog/1325138

    coms10017:UoB coms10009实验室常见问题解答和一些常规信息

    COMS10017 该存储库包含注释,以及有关各种主题的详细讨论,例如和 。 实用材料(0%) : 2月- 2月1日 2月至8月8日 2月至19日 2月至22日 3月17日- 3月1日阅读周 3月至8月8日 ...Maven - Maven备忘单

    cms项目-maven项目搭建

    此文档主要描述一个maven项目的搭建过程,没有理论的东西,只有实战。写文档的目的只是作为一个项目搭建的备忘录(记性差,怕忘了),也为有需要的同行提供一个参考,以方便快速搭建自己的maven项目。

    毕业设计基于JavaWeb实现的一个备忘录系统项目源码.zip

    后端基于Maven构建,采用Jdbc完成数据持久化操作。代码分层编写,分为Controller控制器层,Service业务逻辑层,dao持久化层,以及相对应的工具类。 前端直接采用Layui框架编写,ajax请求后端接口,进而完成页面渲染...

    mavenweb.iml

    学习crm的javaweb项目文章由B站动力节点相关课程视频整理而成,不作为基础入门教程,只作为备忘的学习笔记。

    备忘录.rar

    资源内容:项目全套源码+完整文档 源码说明: 全部项目源码都是经过测试校正后百分百成功运行。 SpringBoot 毕业设计,SpringBoot 课程设计,基于...部署环境:Tomcat(建议用 7.x 或者 8.x b版本),maven 

    VB工作备忘录设计与实现(源代码+系统).rar

    资源内容:项目全套源码+完整文档 源码说明: 全部项目源码都是经过测试校正后百分百成功运行。 SpringBoot 毕业设计,SpringBoot 课程设计,基于...部署环境:Tomcat(建议用 7.x 或者 8.x b版本),maven 

    基于SpringBoot+Vue的客户信息管理系统设计与实现(源码+数据库+文档).zip

    基于SpringBoot+Vue的客户信息管理系统设计与实现(源码+数据库+文档).zip 高分通过项目,已获导师指导。 本项目是一套基于Springboot的客户信息管理系统,主要针对计算机相关专业的正在做毕设的...Maven包:Maven3.3.9+

    java基于SpringBoot+vue流浪宠物爱心组织管理系统-论文源码数据库.zip

    管理员的功能包括备忘录管理、宠物管理、宠物收藏管理、宠物评价管理、宠物订单管理、字典管理、公告管理、捐赠管理、流浪管理、流浪收藏管理、流浪评价管理、流浪订单管理、单页数据管理、团队活动管理、团队活动...

    RabbitMQ-Demo.zip

    Maven项目中使用RabbitMQ示例 使用到读取自定义配置文件。 可以正常运行。 主要是自己总结记录备忘。 如果能帮到需要的人,欢迎下载。

    BlogGakki:伍记的备忘录(wuvole.com)

    一个用于记录自己学习与生活的博客网站(自己喜欢称为备忘录) ,开发此项目的初衷是为了加深对 JAVA Web 开发各个姿势的了解,以及学习一些新的技术点,毕竟实践是检验学习成果的方法 V1 版本(已基本完成):采用 ...

    mybatis-plus-demo.zip

    Maven项目中使用mybatis-plus操作mysql示例 使用到读取自定义配置文件。 可以正常运行。 主要是自己总结记录备忘。 如果能帮到需要的人,欢迎下载。

    java8集合源码分析-memobook:备忘录

    maven docker 详细安装过程 框架 Spring Mybatis SpringMVC SpringBoot Spring Security Shiro Swagger-API框架 开发语言 java javaweb socket编程 rpc框架 tomcat jdk源码分析 go rust 前端 基础概念 html css 开发...

    CSC-495:社交网络分析班项目 CSC 495

    请参考此备忘单以获取有关某些 Java Java 文件夹包含一个 maven 项目,该项目有两个主要方法,它们都修剪数据以删除文本评论数据和名称以减小文件大小。 一种方法保留原始文件格式,另一种方法将每条记录转换为 CSV...

    udemy-tankwar:Udemy课程“放码过来!新版Java坦克大战”源代码

    开发环境及相关备忘 基于JDK8,IDEA 2019.1,MAVEN 集成Travis 也可以使用exe4j或install4j内置Windows重置程序或安装程序 mvn clean package mvn dependency:copy-dependencies -DoutputDirectory=target/libs -...

    贷款:此API管理向用户的贷款

    前提条件: MavenJava JDK 1.8配置su proyecto 卢塞戈·德·克洛纳尔·库图尔储藏所,制罐厂和工程公司, mvn clean install工厂中的建筑工人。 一个连续的,连续的,连续的,连续的播放mvn spring-boot:run y ...

Global site tag (gtag.js) - Google Analytics