How to deploy to maven central repo

Yesterday I found dockFX library, when I first try it did not work. Today I manage to upgrade the code to java17 and working with latest javafx21, then I wonder how to deploy this to maven central repository. Took around 3 hours, better to write this down for others. Go login to https://central.sonatype.com/account I used my gmail login and I was in. Go to https://central.sonatype.com/publishing/namespaces to create namespace, you need to create a verification repository on github if you want to use io.github.yourusername as explained here ...

March 10, 2024 · 6 min · Özkan Pakdil

adding jars to maven pom

normally you dont need this but sometime you may need to work with some special products like weblogic. and you may just need to add a dependincy from already installed weblogic. <dependency> <groupId>weblogic</groupId> <artifactId>weblogic</artifactId> <version>1</version> <scope>system</scope> <systemPath>C:\wl12\wlserver\modules\features\weblogic.server.merged.jar</systemPath> </dependency> this is working in windows as you guess :)

November 1, 2015 · 1 min · Özkan Pakdil

mvn disable checkstyle

Let say you are using windows I know most of developers does that. Especially in the company they work for. Anyway I am trying to build some REST client in standalone jdk. And I have not used it before so I am trying to read examples https://maven.java.net/content/repositories/releases/org/glassfish/jersey/bundles/jersey-examples/2.22/ run them, try to understand. But in windows I am getting this error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (verify) on project helloworld-webapp: Failed during checkstyle execution: Unable to find suppressions file at location: etc/config/checkstyle-suppressions.xml: Could not find resource 'etc/config/checkstyle-suppressions.xml'. -> [Help 1] First I check pom xmls but could not find the exact point to disable this maven-checkstyle-plugin. I don’t know which super clever engineer enable this in examples and have not tried it under windows. But this kind of errors actually make people to stop learning java. The java language is easy but this environmental problems very frustrating. ...

October 8, 2015 · 1 min · Özkan Pakdil