Hi there,
 
how do I add JARs from the repository to my WAR file, using a special
directory (not in WEB-INF/lib)? I tried using the assembly plugin, but I
can't get it to do something.... When using goal "attached", nothing
happens, when using "directory-inline", I get an error message (see
below). Please help someone!

Cheers,

Frank
 
 
Plugin config in my sub-project-pom:

BEGIN_CODEBLOCK
-----------------------------------------------------------------
   <build>
      <plugins>
         <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
               <execution>
                  <phase>package</phase>
                  <goals>
                     <goal>attached</goal>
                  </goals>
               </execution>
            </executions>
            <configuration>
               <descriptors>
                  <descriptor>src/assembly/assembly.xml</descriptor>
               </descriptors>
            </configuration>
         </plugin>
      </plugins>
   </build>
--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--
END_CODEBLOCK

My assembly.xml:

BEGIN_CODEBLOCK
-----------------------------------------------------------------
<assembly>
   <id>janus-jars</id>
   <appendAssemblyId>false</appendAssemblyId>
   <dependencySets>
      <dependencySet>
         <outputDirectory>janus-libs</outputDirectory>
         <includes>
 
<include>commons-collections:commons-collections:3.1:jar</include>
            <include>commons-lang:commons-lang:2.0:jar</include>
            <include>commons-logging:commons-logging:1.0.4:jar</include>
            <include>org.hibernate:hibernate:3.0.5:jar</include>
         </includes>
      </dependencySet>
   </dependencySets>
</assembly>
--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--
END_CODEBLOCK


When using <goal>directory-inline</goal>:

BEGIN_CODEBLOCK
-----------------------------------------------------------------
[INFO] Processing DependencySet (output=janus-libs)
[WARNING] The following patterns were never triggered in this artifact
inclusion filter:
o  'commons-collections:commons-collections:3.1:jar'
o  'commons-lang:commons-lang:2.0:jar'
o  'commons-logging:commons-logging:1.0.4:jar'
o  'org.hibernate:hibernate:3.0.5:jar'

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating assembly: Error creating assembly archive: You
must set at least one file.

END_CODEBLOCK--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--
+--+--

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

Reply via email to