And I think to add custom entries, you need to write them in a base
manifest file wich you specify to be added to the generated manifest
file.
You just need to add this line to your plugin configuration :

            <manifest>
              <manifestFile>/path/to/MANIFEST.MF</manifestFile>
            </manifest>


On 12/30/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> From your example, I am guessing you are looking for a way to specify
> the classpath.
> If that the case, you work too hard. Maven is all about laziness and
> of course it can generate the class path for you :
>
> <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-jar-plugin</artifactId>
>         <configuration>
>           <archive>
>             <manifest>
>               <addClasspath>true</addClasspath>
>             </manifest>
>           </archive>
>         </configuration>
>       </plugin>
>     </plugins>
>
> Voilà, everything is always in sync with your dependencies. I like the
> magic of Maven :)
> I hope it help!
>
> On 12/30/05, Jochen Wiedmann <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > how do I add manifest entries to the generated Jar file? I have tried
> > various things in the style of
> >
> >        <plugin>
> >          <artifactId>maven-jar-plugin</artifactId>
> >          <configuration>
> >            <archive>
> >              <manifest>
> >                <manifestEntries>
> >                  <manifestEntry>
> >                    <key>Name</key>
> >                    <value>org/apache/xmlrpc/</value>
> >                  </manifestEntry>
> >                </manifestEntries>
> >              </manifest>
> >            </archive>
> >          </configuration>
> >        </plugin>
> >
> > none of which seem to be working?
> >
> >
> > Regards,
> >
> > Jochen
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Alexandre Poitras
> Québec, Canada
>


--
Alexandre Poitras
Québec, Canada

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

Reply via email to