Done, also set my project packaging to pom (to avoid the jar artifact), for future reference of another newbie:



pom.xml:
------------------------------
<plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <descriptors>
            <descriptor>src/assembly/static-content.xml</descriptor>
          </descriptors>
        </configuration>
        <executions>
          <execution>
            <id>make-assembly</id>
            <phase>package</phase>
            <goals>
              <goal>attached</goal>
            </goals>
          </execution>
        </executions>
      </plugin>



assembly (static-content.xml):
----------------------------------
<assembly>
    <id></id>
    <formats>
        <format>zip</format>
    </formats>
    <fileSets>
        <fileSet>
            <directory>target/site</directory>
            <outputDirectory></outputDirectory>
        </fileSet>
    </fileSets>
</assembly>




Manos Batsis wrote:

Hello,

Essentially i need to make my POM's generated artifact to be a zip file with a folder containing the generated website:

zip
+ ${project.name}-${project.version} (directory)
  + Contents of ${project.reporting.outputDirectory}, i.e. target/site


My understanding is i need to use the assembly plugin? Does anyone have anything close to what i am after?

Many thanks,

Manos



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to