如何使用Maven跟踪罐子?
我正在从命令行使用maven构建我的应用程序,我获得了构建成功,但在eclipse中我得到了错误:如何使用Maven跟踪罐子?,maven,dependencies,dependency-management,Maven,Dependencies,Dependency Management,我正在从命令行使用maven构建我的应用程序,我获得了构建成功,但在eclipse中我得到了错误: The repository system is offline but the artifact org.codehaus.plexus:plexus-archiver:jar:1.2 is not available in the local repository. 虽然我做了更新项目配置和更新依赖项,但我想知道是什么插件或依赖项导致了这个jar 以下是我正在使用的插件: <plugi
The repository system is offline but the artifact org.codehaus.plexus:plexus-archiver:jar:1.2 is not available in the local repository.
虽然我做了更新项目配置和更新依赖项,但我想知道是什么插件或依赖项导致了这个jar
以下是我正在使用的插件:
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>hbm2ddl</goal>
</goals>
</execution>
</executions>
<configuration>
<components>
<component>
<name>hbm2ddl</name>
<implementation>annotationconfiguration</implementation>
</component>
<component>
<name>hbmdoc</name>
</component>
</components>
<componentProperties>
<configurationfile>/target/classes/hibernate.cfg.xml</configurationfile>
<outputfilename>CreateTables.sql</outputfilename>
<namingstrategy>com.xeno.advertisingsuite.web</namingstrategy>
<drop>false</drop>
<create>true</create>
<export>false</export>
<format>true</format>
</componentProperties>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- run command: mvn tomcat7:run -->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.0-beta-1</version>
<configuration>
<path>/${project.build.finalName}</path>
</configuration>
</plugin>
<!-- run command: mvn 7:run -->
<plugin>
<groupId>com.googlecode.t7mp</groupId>
<artifactId>maven-t7-plugin</artifactId>
<version>0.9.6</version>
<configuration>
<tomcatHttpPort>8081</tomcatHttpPort>
<tomcatShutdownPort>8008</tomcatShutdownPort>
<tomcatVersion>7.0.22</tomcatVersion>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<complianceLevel>1.6</complianceLevel>
<encoding>UTF-8</encoding>
<aspectLibraries>
<aspectLibrary>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</aspectLibrary>
</aspectLibraries>
<Xlint>warning</Xlint>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
org.codehaus.mojo
hibernate3 maven插件
2.2
进程类
hbm2ddl
hbm2ddl
注释配置
hbmdoc
/target/classes/hibernate.cfg.xml
CreateTables.sql
com.xeno.adverisingsuite.web
假的
真的
假的
真的
maven编译器插件
1.6
1.6
org.apache.maven.plugins
maven资源插件
2.5
UTF-8
org.apache.tomcat.maven
tomcat7 maven插件
2.0-beta-1
/${project.build.finalName}
com.googlecode.t7mp
maven-t7-plugin
0.9.6
8081
8008
7.0.22
org.codehaus.mojo
aspectj maven插件
1.4
1.6
UTF-8
org.springframework
春季方面
警告
编译
测试编译
请建议如何修复,谢谢。尝试通过
mvn dependency:resolve plugins
解决插件依赖关系-它将打印maven插件的依赖关系树以输出
另外,打开调试模式的选项也非常有帮助:
mvn-X
尝试在my.m2中本地存储库(~/.m2/repository)的*.pom文件中搜索plexus archiver id此jar的其他版本不是必需的,我想知道到底是什么插件要求使用这个jar,这样我就可以更改它。你可以使用正确的版本grep使用:grep-r--include=“*.pom”“plexus archiver\s1.2”也mvn
-u选项并删除上次更新的标记(*.lastUpdated文件)有助于更新依赖项