Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Build Jar with a single class and no Main method

$
0
0

I'm building components for Solr which leverages Solr's plugable architecture of just droping in Jar files containing a single class (with no main method in them).

 

Other than using ANT, is there a way in IntelliJ to build a Jar which contains just a single class (with no Main method)?

 

When I follow the on-line documentation, using Project Structure / Artifacts, IntelliJ prevents me from defining an artifact as having only a Java class with no Main method.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>