Hacker News new | ask | show | jobs
by not_rhodey 4386 days ago
you're kidding me, right?

rhodey@rhodey$ mvn package

rhodey@rhodey$ java -jar <package-name>.jar <command line options>

2 comments

I don't think you read the article. You don't address his certificate issues. Your solution also requires writing a pom.xml which is non-trivial.
Maven can generate one for you:

  mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
Which is not trivial I suppose, but it is pretty easy to do.
::head desk::

A pom.xml at least has a schema and tons of copy/paste examples. Every language sucks in it's own way.

to be fair this wouldn't work unless you have assembly/shade plugin configured.