Maven Assembly Plugin - install the created assembly

Posted by Walter White on Stack Overflow See other posts from Stack Overflow or by Walter White
Published on 2010-04-14T17:29:30Z Indexed on 2010/04/14 18:33 UTC
Read the original article Hit count: 694

I have a project that simply consists of files. I want to package those files into a zip and store them in a maven repository. I have the assembly plugin configured to build the zip file and that part works just fine, but I cannot seem to figure out how to install the zip file?

Also, if I want to use this assembly in another artifact, how would I do that? I am intending on calling dependency:unpack, but I don't have an artifact in the repository to unpack.

How can I get a zip file to be in my repository so that I may re-use it in another artifact?

parent pom

<build>
        <plugins>
            <plugin>
                <!--<groupId>org.apache.maven.plugins</groupId>-->
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2-beta-5</version>
                <configuration>
                    <filters>
                        <filter></filter>
                    </filters>
                    <descriptors>
                        <descriptor>../packaging.xml</descriptor>
                    </descriptors>
                </configuration>
            </plugin>
        </plugins>
    </build>

Child POM

<parent>
    <groupId>com. ... .virtualHost</groupId>
    <artifactId>pom</artifactId>
    <version>0.0.1</version>
    <relativePath>../pom.xml</relativePath>
</parent>

<name>Virtual Host - ***</name>
<groupId>com. ... .virtualHost</groupId>
<artifactId>***</artifactId>
<version>0.0.1</version>
<packaging>pom</packaging>

I filtered the name out. Is this POM correct? I just want to bundle files for a particular virtual host together.

Thanks,

Walter

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about maven-plugin