• maven POM搜索网址


    http://search.maven.org

    http://repository.apache.org
    http://www.artifact-repository.org
    http://mvnrepository.com
    http://www.mvnbrowser.com
    http://www.jarvana.com
    http://mavensearch.net

    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/xsd/maven-4.0.0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    
    	<groupId>com.wcg</groupId>
    	<artifactId>HelloWorldArtifactId</artifactId>
    	<version>0.0.1-SNAPSHOT</version>
    	<packaging>jar</packaging>
    
    	<name>HelloWorldArtifactId</name>
    	<url>http://maven.apache.org</url>
    	<build>
    		<plugins>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-jar-plugin</artifactId>
    				<version>2.3.1</version>				
    				<configuration>
    					<archive>
    						<manifest>
    							<mainClass>com.wcg.HelloWorldArtifactId.App</mainClass>							
    						</manifest>						
    					</archive>					
    				</configuration>
    			</plugin>
    
    		</plugins>
    	</build>
    	<properties>
    		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    	</properties>
    
    	<repositories>
    	</repositories>
    	<dependencies>
    
    		<dependency>
    			<groupId>commons-lang</groupId>
    			<artifactId>commons-lang</artifactId>
    			<version>2.1</version>
    		</dependency>
    		<dependency>
    			<groupId>org.codehaus.plexus</groupId>
    			<artifactId>plexus-utils</artifactId>
    			<version>1.1</version>
    		</dependency>
    
    		<dependency>
    			<groupId>junit</groupId>
    			<artifactId>junit</artifactId>
    			<version>3.8.1</version>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>log4j</groupId>
    			<artifactId>log4j</artifactId>
    			<version>1.2.16</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>commons-logging</groupId>
    			<artifactId>commons-logging</artifactId>
    			<version>1.1.1</version>
    			<scope>provided</scope>
    		</dependency>
    	</dependencies>
    </project>
    
  • 相关阅读:
    汉语-词语:养生
    汉语-词语:道家美学
    汉语-词语:审美
    人物-书法家:王羲之
    人物-道家:庄子
    汉语-词语:含蓄
    关于finfo_file函数获取文件mime值验证出错的问题
    第一个Hello,OS World操作系统
    Lead软件项目半年感受
    Cts框架解析(15)-任务运行完
  • 原文地址:https://www.cnblogs.com/wucg/p/2077753.html
Copyright © 2020-2023  润新知