Martin Cooper-2 wrote:
> 
> On 4/10/06, Eric S. <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>>
>> you can use the war dependency like this :
>>
>> web framework POM :
>> <project>
>>     <groupId>sample</groupId>
>>     <modelVersion>4.0.0</modelVersion>
>>     <artifactId>web-fwk</artifactId>
>>     <packaging>war</packaging>
>>     <version>0.9-SNAPSHOT</version>
>>     <name>Web Framework</name>
>> </project>
>>
>> web final POM
>> <project>
>>     <groupId>sample</groupId>
>>     <modelVersion>4.0.0</modelVersion>
>>     <artifactId>web</artifactId>
>>     <packaging>war</packaging>
>>     <version>0.9-SNAPSHOT</version>
>>     <name>Web</name>
>>     <dependencies>
>>         <dependency>
>>             <groupId>sample</groupId>
>>             <artifactId>web-fwk</artifactId>
>>             <version>0.9-SNAPSHOT</version>
>>             <type>war</type>
>>             <scope>compile</scope>
>>         </dependency>
> 
> 
> Does this really work? Maven will compile against all the jars in
> WEB-INF/lib and the classes in WEB-INF/classes? Is this documented
> somewhere?
> 
> This will copy the classes of web-fwk in the target/web/WEB-INF/classes
> directory.
> All the dependent lib (depend of the scope) in the target/web/WEB-INF/lib
> directory.
> 
>     </dependencies>
>>     <build>
>>     <finalName>${project.artifactId}</finalName>
>>       <plugins>
>>         <plugin>
>>           <groupId>org.apache.maven.plugins</groupId>
>>           <artifactId>maven-war-plugin</artifactId>
>>           <version>2.0-beta-3-SNAPSHOT</version>
>>           <executions>
>>             <execution>
>>               <phase>generate-sources</phase>
>>               <goals>
>>                 <goal>exploded</goal>
> 
> 
> The 'exploded' goal will try to *build* the exploded war, though, not just
> explode it. I doubt that's what you'd want. More likely, you'd want to use
> the dependency plugin to unpack the war. See:
> 
> http://mojo.codehaus.org/dependency-maven-plugin/unpack-mojo.html
> 
> --
> Martin Cooper
> 
> 
>               </goals>
>>             </execution>
>>           </executions>
>>         </plugin>
>>       </plugins>
>>   </build>
>> </project>
>>
>> This will exploded all war dependencies into your target directory and
>> classes of all war will be in the classpath.
>>
>> Eric
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Setting-up-complex-webapp-t1425211.html#a3844842
>> Sent from the Maven - Users forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
--
View this message in context: 
http://www.nabble.com/Setting-up-complex-webapp-t1425211.html#a3858770
Sent from the Maven - Users forum at Nabble.com.


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

Reply via email to