Hi all,
I'm running into a very strange issue that I can't seem to find a solution
for. I'm using the assembly plugin to create a zip with my jar file, all
transitive dependencies, and a few jsp files that get added to an existing
webapp. I have the following directory structure
src/main/java
src/main/config/classes
src/main/config/static-content
src/main/config/web
When I run the following command in the project, the zip file contains
classes, static-content, and web.
mvn clean package
However, when I prepare are release and perform a release, the release only
contains the "classes", not static-content, or the web directory. If I view
the source that has been checked out and perform a recursive diff with my
existing source, only the POM is modified. If I change directories to the
target/checkout and execute the same command, I still only get the classes
directory. Is this some sort of lifecycle problem when I'm not building a
snapshot? Below is my assembly descriptor (bin.xml) and my pom.
Thanks,
Todd
Assembly:
<assembly>
<id>with-configuration</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<includes>
<include>com.purdueefcu.onlinebanking:mortgageware</include>
</includes>
<binaries>
<outputDirectory>modules/${artifactId}</outputDirectory>
<includeDependencies>true</includeDependencies>
<unpack>false</unpack>
</binaries>
</moduleSet>
</moduleSets>
<fileSets>
<fileSet>
<directory>src/main/config</directory>
<outputDirectory>configuration</outputDirectory>
<includes>
<include>**/**</include>
</includes>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
POM
<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">
<parent>
<artifactId>config</artifactId>
<groupId>com.purdueefcu.standards</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.purdueefcu.onlinebanking</groupId>
<artifactId>mortgageware</artifactId>
<packaging>jar</packaging>
<name>OnlineBanking Mortagware Integration</name>
<version>1.0.0-SNAPSHOT</version>
<description>Link to our online account applications</description>
<developers>
<developer>
<name>Todd Nine</name>
<email>[EMAIL PROTECTED]</email>
<organization>
Purdue Employees Federal Credit Union
</organization>
</developer>
</developers>
<scm>
<connection>scm:svn:
http://sourceforge.purdueefcu.com/svn/repos/olb20/mortgages/</connection>
<developerConnection>scm:svn:
http://sourceforge.purdueefcu.com/svn/repos/olb20/mortgages/
</developerConnection>
<url>http://sourceforge.purdueefcu.com/svn/repos/olb20/mortgages/
</url>
</scm>
<organization>
<name>Purdue Employees Federal Credit Untion</name>
<url>http://www.purdueefcu.com</url>
</organization>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assembly:package</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>
src/assemble/bin.xml
</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.summit</groupId>
<artifactId>pathways</artifactId>
<version>2.0.0</version>
</exclusions>
</dependency>
<dependency>
<groupId>com.fiserv.summit</groupId>
<artifactId>eMember</artifactId>
<version>2.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>1.1-beta-9</version>
</dependency>
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
<version>1.2</version>
</dependency>
<!-- override our includes that we only want for compile time-->
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-saaj</artifactId>
<version>1.2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
<version>1.2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>