pom.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<groupId>com.company.esb</groupId>
<artifactId>skybus-parent</artifactId>
<version>1.5-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>obe</artifactId>
<packaging>mule</packaging>
<name>obe</name>
<description>obe subject mule</description>
<pluginRepositories>
<pluginRepository>
<id>company</id>
<url>http://10.123.78.58/nexus/content/groups/company/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>company-public</id>
<url>http://10.123.78.58/nexus/content/groups/public/</url>
</pluginRepository>
<pluginRepository>
<id>nexus-central-plugin</id>
<url>http://oss.sonatype.org/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>company</id>
<url>http://10.123.78.58/nexus/content/groups/company/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>company-public</id>
<url>http://10.123.78.58/nexus/content/groups/public/</url>
</repository>
<repository>
<id>nexus-public</id>
<url>http://oss.sonatype.org/content/groups/public/</url>
</repository>
</repositories>
<distributionManagement>
<snapshotRepository>
<id>company-snapshots</id>
<url>http://10.123.78.58/nexus/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>company-releases</id>
<url>http://10.123.78.58/nexus/content/repositories/releases</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>com.company.esb</groupId>
<artifactId>skybus-common</artifactId>
<version>1.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ibeOpenClient</groupId>
<artifactId>ibeOpenClient</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>ibeclient</groupId>
<artifactId>ibeclient</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>ibeclient</groupId>
<artifactId>rmi4IbeInf</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>obeproxy</groupId>
<artifactId>obeproxy</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>service4obeClient</groupId>
<artifactId>service4obeClient</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>hangyi</groupId>
<artifactId>hangyi</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>hangyinew</groupId>
<artifactId>hangyinew</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>pnrparse</groupId>
<artifactId>pnrparse</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>com.company</groupId>
<artifactId>apiparser</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>com.company.bravo</groupId>
<artifactId>bravo-util</artifactId>
<version>3.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.company</groupId>
<artifactId>apiparser</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<!--
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.1</version>
</dependency>
-->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
报错信息:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.travelsky.esb:obe:mule:1.5-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.travelsky:apiparser:jar -> version 1.0 vs 1.0.0-SNAPSHOT @ line 125, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building obe 1.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for xmlbeans:xbean:jar:2.5.0 is missing, no dependency information available
[WARNING] The POM for spring-jdbc:spring-jdbc:jar:3.0.3.RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for com.travelsky:apiparser:jar:1.0.0-SNAPSHOT is missing, no dependency information available
[WARNING] The artifact ant:ant:jar:1.7.0 has been relocated to org.apache.ant:ant:jar:1.7.0
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ obe ---
[INFO] Deleting D:\workspace\obe\target
[INFO]
[INFO] --- maven-mule-plugin:1.6:attach-test-resources (default-attach-test-resources) @ obe ---
[INFO] attaching test resource D:\workspace\obe\src\main\app
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ obe ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ obe ---
[INFO] Compiling 74 source files to D:\workspace\obe\target\classes
[WARNING] \workspace\obe\src\main\java\com\travelsky\esb\services\obe\components\AVComponent.java:[31,31] 警告:com.sun.image.codec.jpeg.TruncatedFileException 是 Sun 的专用 API,可能会在未来版本中删除
[WARNING] \workspace\obe\src\main\java\com\travelsky\esb\services\obe\components\AVForObeComponent.java:[31,31] 警告:com.sun.image.codec.jpeg.TruncatedFileException 是 Sun 的专用 API,可能会在未来版本中删除
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ obe ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ obe ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.14.1:test (default-test) @ obe ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.864s
[INFO] Finished at: Thu Nov 20 08:36:37 CST 2014
[INFO] Final Memory: 19M/47M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test (default-test) on project obe: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.14.1 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-surefire-plugin:jar:2.14.1 (): Failed to read artifact descriptor for org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2: The repository system is offline but the artifact org.apache.maven.plugin-tools:maven-plugin-tools:pom:3.2 is not available in the local repository. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
运行方式:
请大婶帮忙看一下,十分谢谢!
1 个解决方案
#1
解决了:run的时候加一个参数看看debug的信息,我这边是缺少了包,自己到网上下载了相应的jar包就没问题了。
mvn -X clean install。
mvn -X clean install。
#1
解决了:run的时候加一个参数看看debug的信息,我这边是缺少了包,自己到网上下载了相应的jar包就没问题了。
mvn -X clean install。
mvn -X clean install。