Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/315.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.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
Java maven primefaces下载错误_Java_Maven_Jsf_Primefaces - Fatal编程技术网

Java maven primefaces下载错误

Java maven primefaces下载错误,java,maven,jsf,primefaces,Java,Maven,Jsf,Primefaces,我可以有一个关于如何用maven下载primefaces的更新过程吗 我尝试使用primefaces.org提供的流程,但在pom.xml文件中出现错误 这是错误的描述。 不可解析的POM C:\Users\phili_000.SHELTON5\Documents\AVA8\EE\POM.xml:预期的开始标记或结束标记不是文本(位置:文本可见…org.primefaces\ua0\ua0\r\n\ua0\ua0\ua0 拼写错误的单词 将所选文本转换为属性 我一直在寻找视频和帖子,这些视频和

我可以有一个关于如何用maven下载primefaces的更新过程吗

我尝试使用primefaces.org提供的流程,但在pom.xml文件中出现错误

这是错误的描述。

不可解析的POM C:\Users\phili_000.SHELTON5\Documents\AVA8\EE\POM.xml:预期的开始标记或结束标记不是文本(位置:文本可见…org.primefaces\ua0\ua0\r\n\ua0\ua0\ua0 拼写错误的单词

将所选文本转换为属性 我一直在寻找视频和帖子,这些视频和帖子会对我有所帮助,但似乎不起作用。 我确实找到了一个帖子,其中一些帖子有相同的错误信息

这篇文章试图像我一样安装一个框架。也许这篇文章能帮助回答这个问题

我所做的

我复制并粘贴了:

<dependency>  
    <groupId>org.primefaces</groupId>  
    <artifactId>primefaces</artifactId>  
    <version>6.0</version>  
</dependency>  

素数
素面
    6.0  
  
在这方面:

<dependencies>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-web-api</artifactId>
            <version>7.0</version>
            <scope>provided</scope>
        </dependency>
</dependencies>

爪哇
javaeewebapi
7
假如
我想要什么 我想要一个关于如何下载marven的primefaces的更新过程

文件: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">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.mycompany</groupId>
    <artifactId>EE</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>war</packaging>

    <name>EE</name>

    <properties>
        <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-web-api</artifactId>
            <version>7.0</version>
            <scope>provided</scope>
        </dependency>

    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <compilerArguments>
                        <endorseddirs>${endorsed.dir}</endorseddirs>
                    </compilerArguments>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.3</version>
                <configuration>
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${endorsed.dir}</outputDirectory>
                            <silent>true</silent>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>javax</groupId>
                                    <artifactId>javaee-endorsed-api</artifactId>
                                    <version>7.0</version>
                                    <type>jar</type>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

4.0.0
com.mycompany
EE
1.0-快照
战争
EE
${project.build.directory}/project
UTF-8
爪哇
javaeewebapi
7
假如
org.apache.maven.plugins
maven编译器插件
3.1
1.7
1.7
${annowed.dir}
org.apache.maven.plugins
maven战争插件
2.3
假的
org.apache.maven.plugins
maven依赖插件
2.6
验证
复制
${annowed.dir}
真的
爪哇
javaee认可的api
7
罐子

检查pom.xml中是否有多余的空格。使用netbeans格式化文本可以解决这个问题。当pom中没有
org.primefaces
时,怎么会出现这个错误?我需要添加什么?链接?除了粘贴所有代码之外,我不知道还能做什么。