我从命令行使用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?
以下是我正在使用的插件:
<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>
请告知如何解决这个问题,谢谢。
答案 0 :(得分:3)
尝试通过mvn dependency:resolve-plugins
解决插件依赖关系 - 它会打印maven插件的依赖关系树来输出。
同样可以改变调试模式的选项有助于:mvn -X