Hi,

It's a strange behaviour indeed.

having "Class-path", the entry is added to the manifest, but with duplicate
"Class-Path" entry.

Correcting the capitalization to "Class-Path" it works perfectly!!

thanks guys!! =)


baerrach wrote:
> 
> On Wed, Jul 9, 2008 at 7:44 AM, Wayne Fay <[EMAIL PROTECTED]> wrote:
>> I suspect your problem is due to improper capitalization:
>>>                        <manifestEntries>
>>> <Class-path>resources/</Class-path>
>>>                        </manifestEntries>
>>
>> I believe this should be <Class-Path>.
> 
> This is what I use:
> 
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-jar-plugin</artifactId>
>           <configuration>
>             <archive>
>               <manifestEntries>
>                 <Class-Path>config/</Class-Path>
>               </manifestEntries>
>               <manifest>
>                 <mainClass>fully.qualified.path.to.Main</mainClass>
>                 <addClasspath>true</addClasspath>
>                 <classpathPrefix>lib/</classpathPrefix>
>               </manifest>
>             </archive>
>           </configuration>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/classpath-in-jar-manifest-tp4295266p18368538.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to