You'll have to generate your own manifest and not have jar generate it for
you
2008/11/24 youhaodeyi <[EMAIL PROTECTED]>
>
> But what I want to do is to use maven assembly to deliver a release version
> then put it on other machines where may not have such dependency. How can I
> add it to the manifest file?
>
>
> Stephen Connolly-2 wrote:
> >
> > system scope implies that the dependency is already on the system
> > classpath, so maven does not need to add it
> >
> > Sent from my iPod
> >
> > On 24 Nov 2008, at 04:34, youhaodeyi <[EMAIL PROTECTED]> wrote:
> >
> >>
> >> I use maven-jar-plugin to handle the manifest file, see below
> >> configuration:
> >>
> >> <manifest>
> >> <addClasspath>true</addClasspath>
> >> ...
> >>
> >> And I have a dependency with system scope:
> >> <dependency>
> >> <groupId>protocol</groupId>
> >> <artifactId>protocol</artifactId>
> >> <version>1.0</version>
> >> <scope>system</scope>
> >> <systemPath>${basedir}/src/main/libs/protocol.jar</
> >> systemPath>
> >> </dependency>
> >>
> >> But when run the command "mvn package" and the manifest file in the
> >> jar
> >> doesn't contain this dependency.
> >> How can I fix this?
> >>
> >> thanks.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/A-problem-about-MANIFEST-in-maven-tp20654786p20654786.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]
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/A-problem-about-MANIFEST-in-maven-tp20654786p20656135.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]
>
>