mvn package 打包问题 寻求高手指点

sunxile53 2011-05-24 04:52:53
每次打包时都会下载一些包文件,要等的时间很长,每次重新打包时不想等只有把打网断开,所连数据库又是非本机的,在哪能配置跳过下载,其它方法也行,急 急
请大侠指点!!!


Downloading: http://repo1.maven.org/maven2/oracle/ojdbc/1.4/ojdbc-1.4.pom
[WARNING] Unable to get resource 'oracle:ojdbc:pom:1.4' from repository central(http://repo1.maven.org/maven2): Error transferring file: Connection timed out:connect
Downloading: http://ws.zones.apache.org/repository2//commons-codec/commons-codec/1.4/commons-codec-1.4.pom
[WARNING] Unable to get resource 'commons-codec:commons-codec:pom:1.4' from repository apache-ws-snapshots2 (http://ws.zones.apache.org/repository2/): Error transferring file: Connection timed out: connect
Downloading: http://people.apache.org/repo/m2-incubating-repository/commons-codec/commons-codec/1.4/commons-codec-1.4.pom
[WARNING] Unable to get resource 'commons-codec:commons-codec:pom:1.4' from repository apache.incubating.releases (http://people.apache.org/repo/m2-incubating-repository): Error transferring file: Connection timed out: connect
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2/commons-codec/commons
-codec/1.4/commons-codec-1.4.pom
[WARNING] Unable to get resource 'commons-codec:commons-codec:pom:1.4' from repository ibiblio (http://mirrors.ibiblio.org/pub/mirrors/maven2): Error transferring file: Connection timed out: connect
Downloading: http://repo1.maven.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.pom
[WARNING] Unable to get resource 'commons-codec:commons-codec:pom:1.4' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect
Downloading: http://static.appfuse.org/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.pom
[WARNING] Unable to get resource 'commons-codec:commons-codec:pom:1.4' from repository appfuse (http://static.appfuse.org/repository): Error transferring file:Connection timed out: connect
Downloading: http://download.java.net/maven/1//commons-codec/poms/commons-codec-1.4.pom
[WARNING] Unable to get resource 'commons-codec:commons-codec:pom:1.4' from repository java.net (http://download.java.net/maven/1/): Error transferring file: Connection timed out: connect
Downloading: http://repository.jboss.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.pom
[WARNING] Unable to get resource 'commons-codec:commons-codec:pom:1.4' from repository repository.jboss.org (http://repository.jboss.org/maven2): Error transferring file: Connection timed out: connect
Downloading: http://repo1.maven.org/maven2/cpic/ClientProxy/1.0/ClientProxy-1.0.pom
[WARNING] Unable to get resource 'cpic:ClientProxy:pom:1.0' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed o
ut: connect
...全文
645 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
sunxile53 2011-05-24
  • 打赏
  • 举报
回复
谢谢大家!
sunxile53 2011-05-24
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 yingzhuo2011 的回复:]
XML code

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<skip>true</skip>
……
[/Quote]
是配置在pom.xml里面吗?刚试了一下没有跳过
zyr860122 2011-05-24
  • 打赏
  • 举报
回复
mvn install的时候带个 -o 就可以了吧
yingzhuo2011 2011-05-24
  • 打赏
  • 举报
回复

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>


试一试这个,看能不能跳过打包这个声明周期。

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧