mvn 备忘
来源:互联网 发布:mac os x系统ios镜像 编辑:程序博客网 时间:2024/05/22 05:26
1.mvn repo
http://www.mvnrepository.com/
JBoss repo:https://repository.jboss.org/nexus/content/groups/public
国内repo:http://maven.oschina.net/content/groups/public
settings.xml可增加以下配置
<mirror>
<id>maven-net-cn</id>
<name>Maven China Mirror</name>
<url>http://maven.oschina.net/content/groups/public</url>
<mirrorOf>*</mirrorOf>
</mirror>
2.install
mvn install:install-file -Dfile=jar的位置 -DgroupId=组织名 -DartifactId=jar名 -Dversion=版本号 -Dpackaging=jar
-- java-source
mvn install:install-file -Dfile=quartzdesk-service-api-1.5.0.src.zip -DartifactId=quartzdesk-service-api -Dversion=1.5.0 -DgroupId=com.quartzdesk -Dpackaging=java-source
3.m2build execution
exception :maven-dependency-plugin (goals "copy-dependencies","unpack") is not supported by m2e
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[2.0,)</versionRange>
<goals>
<goal>copy-dependencies</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<excludeTransitive>false</excludeTransitive>
<stripVersion>true</stripVersion>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
- mvn 备忘
- mvn命令备忘
- mvn
- MVN
- mvn
- mvn
- mvn
- mvn
- mvn
- mvn
- mvn
- 备忘
- 备忘
- 备忘
- 备忘
- 备忘
- 备忘
- 备忘
- 不同网络环境下个人电脑做网站的实现
- oracle 常用查询信息
- Android之dialog的四种形式
- 内存映射文件
- >/dev/null 2>&1
- mvn 备忘
- Linux静态库和动态库调用
- Tomcat6.0.37,tomcat6.0.37,下访问Web项目,jsp项目不需要输入项目名称和端口号的配置方法
- Eclipse快捷键 10个最有用的快捷键
- 【代码备忘】今天突然写的一个比较奇葩的C++ 代码,模版,friend,友元...
- 一道淘汰85%面试者的百度开发者面试题参考答案
- Android-自定义图像资源的使用(2)
- JUnit4
- 图像缩放