maven-war-plugin抱怨缺少汇编描述符

时间:2011-12-23 18:47:01

标签: java maven maven-war-plugin

我目前没有在pom.xml中使用任何程序集插件,但是我收到了这个错误:

[INFO] Reading assembly descriptor: src/main/assembly/assembly.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error reading assemblies: Error locating assembly descriptor:           src/main/assembly/assembly.xml

[1] [INFO] Searching for file location:     C:\Users\yue\Documents\idgar_project\src\idgarsec_war\src\main\assembly\assembly.xml

[2] [INFO] File: C:\Users\yue\Documents\idgar_project\src\idgarsec_war\src\main\assembly\assembly.xml does not exist.

[3] [INFO] File: C:\Users\yue\Documents\idgar_project\src\idgarsec_war\src\main\assembly\assembly.xml does not exist.

[INFO] ------------------------------------------------------------------------

目前我在src / main / webapp目录中没有任何内容,相反,此内容可以在其他目录中找到。当我在pom.xml中没有使用它时,为什么会抱怨汇编?

原始的pom.xml相当长,这里是使用maven-war-plugin的部分

<build>
        <finalName>idgarsec</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.1.1</version>
                <configuration>
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                    <packagingExcludes>WEB-INF/classes/**,WEB-INF/jsscripts/**,WEB-INF/themes/**</packagingExcludes>
                    <webResources>
                        <resource>
                            <directory>../idgarsec/webapp/WEB-INF/jsscripts/</directory>
                            <targetPath></targetPath>
                            <filtering>true</filtering>
                        </resource>
                        <resource>
                            <directory>../idgarsec/webapp/WEB-INF/themes/</directory>
                            <targetPath>themes</targetPath>
                            <filtering>true</filtering>
                        </resource>
                        <resource>
                            <directory>../idgarsec/webapp/WEB-INF/</directory>
                            <targetPath>WEB-INF</targetPath>
                            <filtering>true</filtering>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
        </plugins>
    </build>

0 个答案:

没有答案