Unresolveable error occured in org.mule.tools.maven

老子叫甜甜 提交于 2020-02-06 10:02:07

问题


I am getting the following Error in Maven

Project build error: Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.1 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar: 1.5.0 at specified path C:\Program Files\Java\jre7/../lib/tools.jar

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jaggedpeak</groupId>
<artifactId>amazon-integration</artifactId>
<version>1.0.0</version>
<packaging>mule</packaging>
<name>Mule amazon-integration Application</name>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8
    </project.reporting.outputEncoding>

    <mule.version>3.7.0</mule.version>
    <mule.tools.version>1.1</mule.tools.version>
    <munit.version>1.1.0</munit.version>
    <mule.munit.support.version>3.7.1</mule.munit.support.version>
</properties>

<build>
    <plugins>
        <plugin>
            <groupId>org.mule.tools.maven</groupId>
            <artifactId>mule-app-maven-plugin</artifactId>
            <version>${mule.tools.version}</version>
            <extensions>true</extensions>
            <configuration>
                <copyToAppsDirectory>true</copyToAppsDirectory>
                <inclusions>
                    <inclusion>
                        <groupId>org.mule.modules</groupId>
                        <artifactId>mule-module-extensions-support</artifactId>
                    </inclusion>
                    <inclusion>
                        <groupId>org.mule.modules</groupId>
                        <artifactId>mule-module-extensions-spring-support</artifactId>
                    </inclusion>
                </inclusions>
            </configuration>
        </plugin>
     <plugins>
  </build>

Note: The following are my findings ,My build is pointing to JDK,There is no restriction in downloading.


回答1:


point your project to jdk instead of jre.



来源:https://stackoverflow.com/questions/43349556/unresolveable-error-occured-in-org-mule-tools-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!