Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse 无法解析依赖项,找不到jar_Eclipse_Maven_Vaadin_Vaadin7_Vaadin Charts - Fatal编程技术网

Eclipse 无法解析依赖项,找不到jar

Eclipse 无法解析依赖项,找不到jar,eclipse,maven,vaadin,vaadin7,vaadin-charts,Eclipse,Maven,Vaadin,Vaadin7,Vaadin Charts,我正在试着运行瓦丁图表演示 与此类似的问题: [INFO]您是否尝试为Vaadin加载项添加此存储库: <repository> <id>vaadin-addons</id> <url>http://maven.vaadin.com/vaadin-addons</url> </repository> 瓦丁插件 http://maven.vaadin.com/vaadin-

我正在试着运行瓦丁图表演示

与此类似的问题:


[INFO]您是否尝试为Vaadin加载项添加此存储库:

    <repository>
        <id>vaadin-addons</id>
        <url>http://maven.vaadin.com/vaadin-addons</url>
    </repository>

瓦丁插件
http://maven.vaadin.com/vaadin-addons

如果您只构建了
vaadin图表演示版
到目前为止,也构建了
vaadin图表父级

因此,如果您至少一次没有构建
父级
(或者明确地构建
示例
),那么Eclipse工作区和本地Maven repo中就没有任何模块的工件可用

记住,是不同类型的


有关从Eclipse工作区解析依赖项的信息,请参阅→ 性质→ 专家→ [✔] 从工作区项目中解析依赖项。

您最初是如何设置项目的?您从哪里获得添加此依赖项的信息?为什么问题标记为eclipse?问题中没有提及它。我添加了编辑-当我尝试编译Widgetsys时出现警告/错误,它不起作用。它还有一个错误她的项目文件夹作为其依赖项之一,而pom的pom具有存储库。这是否意味着它们是连接的/相关的/与当前项目pom中的项目文件夹相同?@newMAD显然,您仍然需要将所有依赖项添加到两个pom中。检查是否通过maven依赖项链接项目。
<?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/maven-v4_0_0.xsd">

<parent>
    <groupId>com.vaadin.addon</groupId>
    <artifactId>vaadin-charts-parent</artifactId>
    <version>3.0-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<groupId>com.vaadin.demo</groupId>
<artifactId>vaadin-charts-demo</artifactId>
<packaging>war</packaging>

<name>Vaadin Charts Demo</name>

<dependencies>

    <dependency>
        <groupId>com.vaadin.addon</groupId>
        <artifactId>vaadin-charts</artifactId>
        <version>${project.version}</version>
    </dependency>
    <dependency>
        <groupId>com.vaadin.demo</groupId>
        <artifactId>vaadin-charts-examples</artifactId>
        <version>${project.version}</version>
    </dependency>

    <!-- Vaadin -->
    <dependency>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-server</artifactId>
    </dependency>
    <dependency>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-themes</artifactId>
    </dependency>

    <dependency>
        <groupId>org.reflections</groupId>
        <artifactId>reflections</artifactId>
        <version>0.9.8</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.4</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.4</version>
    </dependency>

    <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-webapp</artifactId>
        <version>8.1.13.v20130916</version>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>org.vaadin.addons</groupId>
        <artifactId>googleanalyticstracker</artifactId>
        <version>2.1.0</version>
    </dependency>

    <dependency>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-maven-plugin</artifactId>
        <version>7.6.0.alpha2</version>
    </dependency>

</dependencies>

<build>
    <resources>
        <resource>
            <directory>src/main/resources</directory>
            <filtering>true</filtering>
            <includes>
                <include>**/config.properties</include>
            </includes>
        </resource>
        <resource>
            <directory>src/main/resources</directory>
            <filtering>false</filtering>
            <excludes>
                <exclude>**/config.properties</exclude>
            </excludes>
        </resource>
    </resources>
    <plugins>
        <plugin>
            <artifactId>maven-deploy-plugin</artifactId>
            <configuration>
                <skip>true</skip>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.4</version>
            <configuration>
                <packagingExcludes>**/gwt-unitCache/*,**/widgetsets/WEB-INF/**/*</packagingExcludes>
            </configuration>
        </plugin>

        <!-- As we are doing "inplace" GWT compilation, ensure the widgetset -->
        <!-- directory is cleaned properly -->
        <plugin>
            <artifactId>maven-clean-plugin</artifactId>
            <version>2.4.1</version>
            <configuration>
                <filesets>
                    <fileset>
                        <directory>src/main/webapp/VAADIN/widgetsets</directory>
                    </fileset>
                </filesets>
            </configuration>
        </plugin>
        <plugin>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-maven-plugin</artifactId>
            <configuration>
                <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
                <!-- We are doing "inplace" but into subdir VAADIN/widgetsets.
                    This way compatible with Vaadin eclipse plugin. -->
                <webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets
                </webappDirectory>
                <hostedWebapp>${basedir}/target/ignore/VAADIN/widgetsets
                </hostedWebapp>
                <noServer>true</noServer>
                <!-- Remove draftCompile when project is ready -->
                <draftCompile>false</draftCompile>
                <compileReport>true</compileReport>
                <!-- <style>PRETTY</style> -->
                <strict>true</strict>
                <runTarget>http://localhost:8080/</runTarget>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>resources</goal>
                        <goal>update-widgetset</goal>
                    </goals>
                </execution>
                <execution>
                    <id>compile-widgetset-on-compile</id>
                    <phase>compile</phase>
                    <goals>
                        <goal>compile</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>
    <repository>
        <id>vaadin-addons</id>
        <url>http://maven.vaadin.com/vaadin-addons</url>
    </repository>