You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Levitt, David, Bookspan" <Da...@bookspan.com> on 2005/08/17 16:14:38 UTC

Maven 1.0.2, uberjar and properties problem

I'm getting started with Maven [1.0.2] on a simple project.

I'm trying to bundle the complete application [my three classes + twelve
jar files + properties files] into an 'uberjar'.

'maven uberjar' builds an output file, with the classworld files, my
classes and the library files - but does not include the property files
needed by log4j or my program.

This is similar to an open bug
http://jira.codehaus.org/browse/CLASSWORLDS-6 

Does anyone have a recipe that yield a working 'uberjar'?

[project.xml excerpt --------------------]

The <build> element contains this resource declaration:

<resources>
    <resource>
        <directory>${basedir}/src</directory>
	  <targetPath>/</targetPath>
        <includes>
          <include>*.properties</include>
        </includes>
   </resource>
   <resource>
       <directory>${basedir}/props</directory>
       <targetPath>/</targetPath>
       <includes>
          <include>*.properties</include>
       </includes>
   </resource>
</resources>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org