I don't understand, in the Java specification it is stated the
Manifest file shoud always be in the META-INF directory so I don't get
what you are trying to achieve there.

On 12/2/05, Jorg Panzer <[EMAIL PROTECTED]> wrote:
> hi,
>
> i generate a jar include a manifest-file with:
>
> [...]
>      <dependencies>
>
>      <dependency>
>        <groupId>com</groupId>
>        <artifactId>db4o</artifactId>
>        <version>5.0</version>
>        <scope>compile</scope>
>      </dependency>
>
>    </dependencies>
>
> [...]
>
>    <build>
>      <plugins>
>
>        <plugin>
>          <groupId>org.apache.maven.plugins</groupId>
>          <artifactId>maven-jar-plugin</artifactId>
>          <configuration>
>            <archive>
>              <manifest>
>                <mainClass>org.fhh.admin.Start</mainClass>
>                <addClasspath>true</addClasspath>
>              </manifest>
>            </archive>
>          </configuration>
>        </plugin>
>
>      </plugins>
>    </build>
>
> [...]
>
>
>
>
> In the generated JAR-File is a META-INF including zu manifest.fm
> (Main-Class and ClassPath is OK), all sources and 3rd party JARs,
> like this:
>
> my.jar
>     |
>     |---class1
>     |
>     |---class...n
>     |
>     |---jar1
>     |
>     |---jar...n
>     |
>     |---META-INF
>                 |
>                 |---manifest.mf
>
>
> The problem is, the JAR isn't executable. The manifest.mf must placed
> a level higher ...
>
> What can i do to create a JAR in the following structure ?
>
> my.jar
>     |
>     |---classe1
>     |
>     |---class...n
>     |
>     |---jar1
>     |
>     |---jar...n
>     |
>     |---manifest.mf
>
>
> Thanks...
>
> mbawa
>


--
Alexandre Poitras
Québec, Canada

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

Reply via email to