You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Eric Norman (Jira)" <ji...@apache.org> on 2022/12/27 00:17:00 UTC

[jira] [Commented] (OAK-10051) META-INF/MANIFEST.MF is missing the Main-Class entry

    [ https://issues.apache.org/jira/browse/OAK-10051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17652067#comment-17652067 ] 

Eric Norman commented on OAK-10051:
-----------------------------------

FYI: I noticed the same thing.  It looks like a bigger problem than just the missing Main-Class entry.  The new oak-run.jar file is now much smaller (~500k vs ~50mb) as well.

Perhaps related to what was done for: OAK-10032 by [~kwin] and [~reschke] 

It looks to me that the maven-assembly-plugin is now moving the original (smaller) jar out of the way (under target/archive-tmp) before producing the uber (big) jar file with the same filename.  However,  later on it looks like the install goal attaches the original (smaller) jar that was moved out of the way instead of the uber (big) jar that now lives at the target/oak-run-1.46.0.jar location.

This is what I see in the build output for the 1.46.0 tag:

 
{noformat}
...
[INFO] 
[INFO] --- maven-assembly-plugin:3.2.0:single (create-oak) @ oak-run ---
[INFO] Reading assembly descriptor: src/main/assembly/oak-run.xml
[WARNING] Artifact: org.apache.jackrabbit:oak-run:jar:1.46.0 references the same file as the assembly destination file. Moving it to a temporary location for inclusion.
[INFO] Building jar: /home/enorman/projects/jackrabbit-oak/oak-run/target/oak-run-1.46.0.jar
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-file-size) @ oak-run ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.8:check (default-check) @ oak-run ---
[INFO] Skipping JaCoCo execution due to missing execution data file:/home/enorman/projects/jackrabbit-oak/oak-run/target/coverage-reports/jacoco-ut.exec
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ oak-run ---
[INFO] Installing /home/enorman/projects/jackrabbit-oak/oak-run/target/archive-tmp/oak-run-1.46.0.jar to /home/enorman/.m2/repository/org/apache/jackrabbit/oak-run/1.46.0/oak-run-1.46.0.jar
[INFO] Installing /home/enorman/projects/jackrabbit-oak/oak-run/pom.xml to /home/enorman/.m2/repository/org/apache/jackrabbit/oak-run/1.46.0/oak-run-1.46.0.pom
[INFO] Installing /home/enorman/projects/jackrabbit-oak/oak-run/target/oak-run-1.46.0-tests.jar to /home/enorman/.m2/repository/org/apache/jackrabbit/oak-run/1.46.0/oak-run-1.46.0-tests.jar
[INFO] ------------------------------------------------------------------------
 {noformat}
 

 

> META-INF/MANIFEST.MF is missing the Main-Class entry
> ----------------------------------------------------
>
>                 Key: OAK-10051
>                 URL: https://issues.apache.org/jira/browse/OAK-10051
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: run, upgrade
>    Affects Versions: 1.46.0
>            Reporter: Torsten Stolpmann
>            Priority: Major
>
> This is a regression from 1.44.0 and previous versions, where the entry was still present.
>  
> Without this entry it is no longer possible to use
> {{java - jar oak-run.jar}}
> and
> {{java - jar oak-upgrade.jar}}
> CLI invocations directly.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)