Jar export in IntelliJ IDEA vs Eclipse built-in method
Answered
I used IntelliJ IDEA to generate jar file with maven-assembly-plugin.
<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>
</configuration>
</plugin>
It was not worked, was unable to use jar file, so I imported project to Eclipse and used built-in jar export option. This jar is working fine. I couldn't find, what is difference between these jar files.
Please sign in to leave a comment.
This has nothing to do with IntelliJ IDEA as you are generating the jar with Maven. Compare the jars to see what's the difference.