Skip to content

[fix#12257][Data Quality] Fix no main class set in JAR #12310

Closed
pandong2011 wants to merge 13 commits intoapache:devfrom
pandong2011:fix-no-main-class
Closed

[fix#12257][Data Quality] Fix no main class set in JAR #12310
pandong2011 wants to merge 13 commits intoapache:devfrom
pandong2011:fix-no-main-class

Conversation

@pandong2011
Copy link
Contributor

@pandong2011 pandong2011 commented Oct 11, 2022

Purpose of the pull request

close #12257

Brief change log

Verify this pull request

Manually verified the change by testing locally

@taizilongxu
Copy link

How about set main class in maven build

@taizilongxu
Copy link

Quick fix:

  1. find ./ -name 'dolphinscheduler-data-quality-*'
  2. and open vim dolphinscheduler-data-quality-3.1.0.jar
  3. edit META-INF/MANIFEST.MF
  4. add line: Main-Class: org.apache.dolphinscheduler.data.quality.DataQualityApplication

@pandong2011
Copy link
Contributor Author

Quick fix:

  1. find ./ -name 'dolphinscheduler-data-quality-*'
  2. and open vim dolphinscheduler-data-quality-3.1.0.jar
  3. edit META-INF/MANIFEST.MF
  4. add line: Main-Class: org.apache.dolphinscheduler.data.quality.DataQualityApplication

I don't recommend doing this, because if you rebuild, you have to change this file every time. If you want to use maven, I recommend overwriting shade or jar plug-ins in the pom.xml and adding the corresponding configuration, but this implementation is not readable or maintainable

@taizilongxu
Copy link

Yes, this is not a good idea. Just use in case the release not public

@SbloodyS SbloodyS added the bug Something isn't working label Oct 22, 2022
@SbloodyS SbloodyS added this to the 3.0.2 milestone Oct 22, 2022
@EricGao888 EricGao888 modified the milestones: 3.0.2, 3.0.3 Nov 7, 2022
@zhongjiajie
Copy link
Member

Hi @pandong2011 are this issue in version 3.0.x or version 3.1.x?

@zhongjiajie zhongjiajie modified the milestones: 3.0.3, 3.0.4 Dec 19, 2022
@zhongjiajie
Copy link
Member

@pandong2011 can you test latest code? it should work

@ruanwenjun
Copy link
Member

Close by #13360

@ruanwenjun ruanwenjun closed this Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [Data Quality] No main class set in JAR

6 participants