Ok, so the noob is getting closer.  I found that the assembly plugin is my best 
bet, but still struggling to get it configured correctly.  I started with the 
'jar-with-dependancies' descriptor but that gave me a jar with all dependancies 
repackaged.  

I really want to see a zip file containing all the jars and scripts.  So I 
created the following assembly.xml starting with the documented 
'jar-with-dependencies'


<assembly>
  <id>jar-with-dependencies</id>
  <formats>
    <format>zip</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <dependencySets>
    <dependencySet>
      <outputDirectory></outputDirectory>
      <outputFileNameMapping></outputFileNameMapping>
      <unpack>false</unpack>
      <scope>runtime</scope>
    </dependencySet>
  </dependencySets>
  <fileSets>
    <fileSet>
      <directory>target/classes</directory>
      <outputDirectory></outputDirectory>
    </fileSet>
  </fileSets>
</assembly>


But this did not help, I only got a zip file with the unpack application 
classes, 
 all the dependencies are missing.  So what am I missing?
 
 For something that is suppose to make builds easier, it sure seems like it is 
 fighting me every step of the way.
 
------------
Dennis Cook <[EMAIL PROTECTED]> wrote: The project that I want to create 
consists of a single application library “relay-mailer.0.0.1.jar” and several 
supporting libraries: log4j, commons-logging, mail, activation, etc.  There a 
couple of launch scripts too. 
  I have two goals that I am trying to reach.  First is to copy the all the 
files (libraries and scripts) to a specified local directory for staging and 
local testing.  Second is to deploy the contents of the local staging directory 
to a remote host using scp.
  My current pom.xml content is:
  
  

    4.0.0
    relay-mailer
    relay-mailer
    0.0.1
    
jar

    
      
        log4j
        log4j
        1.2.14
      
      
        commons-logging
        commons-logging
        1.0.4
      
      
        javax.mail
        mail
        1.4
      
      
        dnsjava
        dnsjava
        2.0.1
      
      
        junit
        junit
        3.8.2
      
    
     
      
        mojo.website
        Mojo Website
        file:/test/
      
    
   
  



Wayne Fay  wrote:  Please describe (specifically) what you are trying to do, 
what end
results you are hoping to achieve, and someone on this list will most
likely reply back with information that may prove helpful.

Wayne

On 5/22/07, Dennis Cook wrote:
> Okay, so adding the element to the POM helped get past the error message, but 
> the result was did not provide what I was looking for. I got a staging 
> directory containing some template html files. Neither the application 
> library nor any of the supporting libraries were present.
>
> How do I get all of the libraries that make up the application into one 
> location?
>
> Dennis Cook wrote:
> I am new to maven2 and trying to convert a project that is using a makefile 
> to maven2. This is a simple java application, one main jar with 3 dependent 
> libraries. I have gotten the build process to work up to the install goal. 
> But I need to progress to the point that the application jar and its 
> supporting libraries are delivered to another directory on the local (and 
> eventually remote) host.
> From the information I can find in the doc I think the site:stage goal is the 
> one I need, but I hit an error from in this goal that I do not understand:
> From the command mvn site:stage
> The error:
> [INFO] Error during site generation
> Embedded error: C:\development\nethaggler\relay-mail\target\staging\Unnamed - 
> relay-mailer:relay-mailer:jar:0.0.1\integration.html (The filename, directory 
> name, or volume label syntax is incorrect)
> My project has has no html files so why is it looking for this 
> integration.html file?
>
>

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



Reply via email to