highsource / jaxb2-basics

Useful plugins and tools for JAXB2.
BSD 2-Clause "Simplified" License
109 stars 54 forks source link

0.9.2 and later versions has error: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBind #30

Open sahkalit opened 9 years ago

sahkalit commented 9 years ago

With 0.9.2 and later versions I have

<plugin> 
<groupId>org.jvnet.jaxb2_commons</groupId> 
<artifactId>jaxb2-basics</artifactId> 
<version>0.9.2</version> 
</plugin> 

I have got error: Using java.util.ServiceLoader

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. 

Wth 0.9.1 all is ok.

<profiles> 
<profile> 
<id>generateResources</id> 
<build> 
<plugins> 
<plugin> 
<groupId>org.jvnet.jaxb2.maven2</groupId> 
<artifactId>maven-jaxb2-plugin</artifactId> 
<version>${maven-jaxb2-plugin.version}</version> 
<configuration> 
<generatePackage>com.rsa.eosago.platform.dto</generatePackage> 
<generateDirectory>src/main/java</generateDirectory> 
<schemaDirectory>src/main/resources/dto/xsd</schemaDirectory> 
<schemaIncludes> 
<schemaInclude>*.xsd</schemaInclude> 
</schemaIncludes> 
<extension>true</extension> 
<strict>false</strict> 
<episode>false</episode> 
<verbose>true</verbose> 
<bindingDirectory>src/main/resources/dto</bindingDirectory> 
<bindingIncludes> 
<include>binding.xjb</include> 
</bindingIncludes> 
<args> 
<arg>-Xannotate</arg> 
<arg>-Xinheritance</arg> 
</args> 
<plugins> 
<plugin> 
<groupId>org.jvnet.jaxb2_commons</groupId> 
<artifactId>jaxb2-basics</artifactId> 
<version>0.9.2</version> 
</plugin> 
<plugin> 
<groupId>org.jvnet.jaxb2_commons</groupId> 
<artifactId>jaxb2-basics-annotate</artifactId> 
<version>1.0.1</version> 
</plugin> 
</plugins> 
</configuration> 
<executions> 
<execution> 
<goals> 
<goal>generate</goal> 
</goals> 
</execution> 
</executions> 
</plugin> 
</plugins> 
</build> 
</profile> 
</profiles>
highsource commented 9 years ago

Please try the latest 0.9.4.

sahkalit commented 9 years ago

I've tried: "0.9.2 and later versions" This warning or error do no appear in the 0.9.1 version and less.

highsource commented 8 years ago

Reproduced. See also:

http://stackoverflow.com/questions/26314151/how-to-implement-unified-logging-for-a-maven-ant-command-line-tool

highsource commented 8 years ago

See also:

http://jira.highsource.org/browse/JIIB-56