Reputation: 5671
I generate jar file with maven-assembly-plugin
plugin. I use java -jar
to execute jar. I got error message:
log4j: WARN JmDNS or serviceInfo not found
I tried to use path to jar in -classpath
, but got same error.
Plugin configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<mainClass>test.LeanFTest</mainClass>
</manifest>
</archive>
<finalName>${project.artifactId}-fatjar-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/leanft-assembly.xml</descriptor>
</descriptors>
</configuration>
</plugin>
Upvotes: 0
Views: 571
Reputation: 140457
Most likely, this boils down to:
Upvotes: 1