Hi Matthias. I'm just being a nerd. I know there is a Maven template for an application but as you say that has a main class, etc. A library is just a collection of classes used by other classes. It's not difficult to delete the main class but why do Ant and Gradle get a "class library" project but not Maven? I know it's all syntactic sugar as they say and I can certainly make a java class library but seems like an inconsistency (or discrimination) that Ant and Gradle get a project type but Maven does not....
Thanks for your answer, nevertheless. On Fri, Jan 21, 2022 at 7:41 AM Matthias Bläsing <[email protected]> wrote: > Hi Chuck, > > Am Freitag, dem 21.01.2022 um 06:46 -0800 schrieb Chuck Davis: > > Am I the only one who wants to create a Java class library with > > Maven? > > I see it can be done with Ant or Gradle but not Maven....still. > > what do you mean by "Java class library"? Do you mean a JAR? > > If you mean that, it is trivial: > > 1. Open "File" menu > 2. Choose "New project" > 3. Choose category "Java with Maven" > 4. Choose "Java Application" > 5. Enter the required info and click finished > 6. You are done > > A java application is just a jar, that has a "mainclass" defined in the > manifest and which is invoked when run as "java -jar <jarfile>". > > Greetings > > Matthias > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
