安装工件时* zip文件没有出现在本地仓库中

时间:2013-10-30 08:51:44

标签: maven

我有一些配置文件的项目,在运行maven install之后,我在目标目录中获得了* .zip存档。但是在我的本地回购中我只有pom文件。我认为这是因为pom.xml中有<packaging>pom</packaging>。我怎样才能在本地仓库获得* .zip文件?

这是pom

<?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>
    <parent>
        <groupId>com.mycomp.name</groupId>
        <artifactId>saas-parent</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <relativePath>../saas-parent/pom.xml</relativePath>
    </parent>
    <!-- TEST -->
    <artifactId>htdocs</artifactId>
    <name>htdocs</name>
    <packaging>pom</packaging>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <id>assembly</id>
                        <goals><goal>single</goal></goals>
                        <phase>package</phase>
                    </execution>
                </executions>
                <configuration>
                    <appendAssemblyId>false</appendAssemblyId>
                    <descriptors>
                        <descriptor>${project.basedir}/src/main/assembly/assembly.xml</descriptor>
                    </descriptors>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>

0 个答案:

没有答案