I still experience this same problem with 1.3, and also with 1.2.1. I'm attaching a patch file that creates a minimal multi-project build. When I run 'mvn install', the .war file is not present in the resulting JSW build.

Index: mss-service/pom.xml
===================================================================
— mss-service/pom.xml (revision 0)
+++ mss-service/pom.xml (working copy)
@@ -0,0 +1,111 @@
+<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>
+
+ <groupId>com.tsg.mss</groupId>
+ <artifactId>mss-service</artifactId>
+ <packaging>jar</packaging>
+ <version>0.2</version>
+ <name>Test Servic</name>
+ <url>http://www.syntegritygroup.com</url>
+
+ <parent>
+ <groupId>com.tsg.mss</groupId>
+ <artifactId>mss-multi</artifactId>
+ <version>0.2</version>
+ </parent>
+
+ <properties>
+ </properties>
+
+ <build>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>appassembler-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <configuration>
+ <!-- Annoyingly, this appears to have no ability to incorporate .war dependencies. -->
+ <useAllDependencies>true</useAllDependencies>
+ <useAllProjectDependencies>true</useAllProjectDependencies>
+ <useAllProjectDependencies2>true</useAllProjectDependencies2>
+
+ <generateRepository>false</generateRepository>
+ <repositoryLayout>flat</repositoryLayout>
+
+ <daemons>
+ <daemon>
+ <id>mss</id>
+ <mainClass>com.tsg.mss.service.FssService</mainClass>
+ <commandLineArguments>
+ <commandLineArgument>start</commandLineArgument>
+ </commandLineArguments>
+ <platforms>
+ <platform>jsw</platform>
+ </platforms>
+ <generatorConfigurations>
+ <generatorConfiguration>
+ <generator>jsw</generator>
+ <configuration>
+ <property>
+ <name>wrapper.java.command.loglevel</name>
+ <value>INFO</value>
+ </property>
+ </configuration>
+ </generatorConfiguration>
+ </generatorConfigurations>
+ </daemon>
+ </daemons>
+ </configuration>
+ <executions>
+ <execution>
+ <id>generate-jsw-scripts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>generate-daemons</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+
+ <resources>
+ </resources>
+
+ </build>
+
+
+ <dependencies>
+
+ <dependency>
+ <groupId>com.tsg.mss</groupId>
+ <artifactId>mss-web</artifactId>
+ <version>0.2</version>
+ <type>war</type>
+ <!-- <scope>runtime</scope> -->
+ </dependency>
+
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-server</artifactId>
+ <version>7.6.10.v20130312</version>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-webapp</artifactId>
+ <version>7.6.10.v20130312</version>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-plus</artifactId>
+ <version>7.6.10.v20130312</version>
+ </dependency>
+
+ </dependencies>
+
+</project>
Index: mss-service/src/main/java/com/tsg/fss/service/FssService.java
===================================================================
— mss-service/src/main/java/com/tsg/fss/service/FssService.java (revision 0)
+++ mss-service/src/main/java/com/tsg/fss/service/FssService.java (working copy)
@@ -0,0 +1,34 @@
+package com.tsg.fss.service;
+
+import org.apache.commons.dbcp.BasicDataSource;
+import org.eclipse.jetty.server.Server;
+import org.eclipse.jetty.webapp.WebAppContext;
+import org.eclipse.jetty.plus.jndi.Resource;
+
+public class FssService {
+ public static void main(String[] args) throws Exception

{ + + Server server = new Server(8080); + + WebAppContext webapp = new WebAppContext(); + + BasicDataSource ds = new BasicDataSource(); + ds.setUrl("jdbc:hsqldb:database/fss"); + ds.setDriverClassName("org.hsqldb.jdbcDriver"); + ds.setUsername("sa"); + ds.setPassword(""); + + // this line actually registers object in jetty jndi + new Resource("java:comp/env/jdbc/development", ds); + + webapp.setInitParameter("datasource.name", + "java:comp/env/jdbc/development"); + + webapp.setContextPath("/"); + webapp.setWar("war/fss-web.war"); + server.setHandler(webapp); + + server.start(); + server.join(); + }

+}
Index: mss-web/pom.xml
===================================================================
— mss-web/pom.xml (revision 0)
+++ mss-web/pom.xml (working copy)
@@ -0,0 +1,49 @@
+<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>
+
+ <groupId>com.tsg.mss</groupId>
+ <artifactId>mss-web</artifactId>
+ <packaging>war</packaging>
+ <version>0.2</version>
+ <name>Facilitator Support System</name>
+ <url>http://www.syntegritygroup.com</url>
+
+ <parent>
+ <groupId>com.tsg.mss</groupId>
+ <artifactId>mss-multi</artifactId>
+ <version>0.2</version>
+ </parent>
+
+ <build>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.1.1</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.7</source>
+ <target>1.7</target>
+ </configuration>
+ </plugin>
+
+ </plugins>
+
+ </build>
+
+
+ <dependencies>
+
+ </dependencies>
+
+</project>
Index: mss-web/src/main/webapp/WEB-INF/web.xml
===================================================================
— mss-web/src/main/webapp/WEB-INF/web.xml (revision 0)
+++ mss-web/src/main/webapp/WEB-INF/web.xml (working copy)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+ <display-name>Test Application</display-name>
+
+</web-app>
\ No newline at end of file
Index: pom.xml
===================================================================
— pom.xml (revision 0)
+++ pom.xml (working copy)
@@ -0,0 +1,55 @@
+<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>
+
+ <groupId>com.tsg.mss</groupId>
+ <artifactId>mss-multi</artifactId>
+ <packaging>pom</packaging>
+ <version>0.2</version>
+ <name>Facilitator Support System</name>
+ <url>http://www.syntegritygroup.com</url>
+
+ <modules>
+ <module>mss-web</module>
+ <module>mss-service</module>
+ </modules>
+
+ <prerequisites>
+ <maven>2.2.1</maven>
+ </prerequisites>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.7</source>
+ <target>1.7</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>commons-dbcp</groupId>
+ <artifactId>commons-dbcp</artifactId>
+ <version>1.2.2</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>2.2.9</version>
+ </dependency>
+
+ </dependencies>
+
+</project>

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to