You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dennis Cook <dj...@yahoo.com> on 2007/05/22 07:08:17 UTC

How to create site with just jar files?

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?

Re: How to create site with just jar files?

Posted by Dennis Cook <dj...@yahoo.com>.
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 <dj...@yahoo.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




Re: How to create site with just jar files?

Posted by Dennis Cook <dj...@yahoo.com>.
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:
  <?xml version="1.0" encoding="UTF-8"?>
  <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>relay-mailer</groupId>
    <artifactId>relay-mailer</artifactId>
    <version>0.0.1</version>
    <packaging>jar</packaging>
    <dependencies>
      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.14</version>
      </dependency>
      <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.0.4</version>
      </dependency>
      <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>mail</artifactId>
        <version>1.4</version>
      </dependency>
      <dependency>
        <groupId>dnsjava</groupId>
        <artifactId>dnsjava</artifactId>
        <version>2.0.1</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.2</version>
      </dependency>
    </dependencies>
     <!--distributionManagement>
      <site>
        <id>mojo.website</id>
        <name>Mojo Website</name>
        <url>file:/test/</url>
      </site>
    </distributionManagement-->
   
  </project>


Wayne Fay <wa...@gmail.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



Re: How to create site with just jar files?

Posted by Wayne Fay <wa...@gmail.com>.
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 <dj...@yahoo.com> wrote:
> Okay, so adding the <distributionManagement> 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 <dj...@yahoo.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to create site with just jar files?

Posted by Dennis Cook <dj...@yahoo.com>.
Okay, so adding the <distributionManagement> 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 <dj...@yahoo.com> 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?