Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve WARNING during "mvn package" #41

Closed
romani opened this issue Dec 18, 2016 · 7 comments
Closed

resolve WARNING during "mvn package" #41

romani opened this issue Dec 18, 2016 · 7 comments
Milestone

Comments

@romani
Copy link
Member

romani commented Dec 18, 2016

command "mvn clean package" should pass without WARNINGs.

Some of them:
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[WARNING] JAR will be empty - no content was marked for inclusion!

[WARNING] com.google.guava:guava:jar:10.0.1:compile is provided by SonarQube plugin API and will not be packaged in your plugin
[WARNING] org.slf4j:jcl-over-slf4j:jar:1.7.5:compile is provided by SonarQube plugin API and will not be packaged in your plugin
[WARNING] com.google.code.findbugs:jsr305:jar:1.3.9:compile is provided by SonarQube plugin API and will not be packaged in your plugin
[WARNING] org.slf4j:slf4j-api:jar:1.7.5:compile is provided by SonarQube plugin API and will not be packaged in your plugin
[WARNING] org.picocontainer:picocontainer:jar:2.14.1:compile is provided by SonarQube plugin API and will not be packaged in your plugin

from test:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
@romani
Copy link
Member Author

romani commented Dec 23, 2016

Warnings from sonar-packaging-maven-plugin could not be resolved till : SonarSource/sonar-packaging-maven-plugin#6

@romani
Copy link
Member Author

romani commented Dec 23, 2016

[WARNING] Using platform encoding (UTF-8 actually)

is resolved at 7b73e84

@romani
Copy link
Member Author

romani commented Dec 23, 2016

[WARNING] JAR will be empty

checkstyle-all does not have any sources, so jar is empty, option https://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#skipIfEmpty skip shaded jar generation too.

@romani
Copy link
Member Author

romani commented Dec 23, 2016

Failed to load class "org.slf4j.impl.StaticLoggerBinder"

fixed at 7f9be26

@romani
Copy link
Member Author

romani commented Dec 23, 2016

all, except for warnings from sonar-packaging-maven-plugin are resolved. Issue is reported. we will wait till it is resolved.
Current issue is closed.

@romani romani closed this as completed Dec 23, 2016
@romani romani added this to the 3.1.1 milestone Dec 23, 2016
tsjensen pushed a commit to checkstyle-addons/sonar-checkstyle that referenced this issue Mar 21, 2019
tsjensen pushed a commit to checkstyle-addons/sonar-checkstyle that referenced this issue Mar 21, 2019
@rnveach
Copy link
Member

rnveach commented Nov 15, 2021

@romani Issue in sonar packaging is basically a non-fix for them. They recommend to use shade instead.

@romani
Copy link
Member Author

romani commented Nov 20, 2021

As usually lets wait until our plugin stop working and we will find out a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants