Quantcast
Channel: Java mon amour
Browsing all 1121 articles
Browse latest View live
↧

Swagger Editor and generation of a Java API for REST Nexus API

first, let's run a docker container for swagger editor:https://hub.docker.com/r/swaggerapi/swagger-editor/docker run -d --rm --name swaggereditor -p 9080:8080...

View Article


Nexus OrientDB self-upgrading versions when run as root

this is VERY weird..... be VERY careful not to run Nexus 3.10 NXRM as root, unless you have set the "run_as_user="centos" in nexus.rc org.sonatype.nexus.upgrade.internal.UpgradeServiceImpl - The...

View Article


JSON to Java, Java to JSON

I am extremely lazy, and I want to model JSON, or Java, but not both at the same time.In case you want to write JSON first, and then generate Java:https://github.com/astav/JsonToJavagit clone...

View Article

Jenkins Pipeline and OWASP dependency check

a) in Jenkins, configure a M3 instance in your "Global Tools" configuration sectionb) make sure you have installed the OWASP dependency check pluginc) create a Pipeline Jenkins project, name...

View Article

Spring Integration Sucks

Here the whole tutorials site https://github.com/eugenp/tutorials to git cloneIf you use Eclipse, better to "git clone" separately and then Import, Existing Maven Project, and give the tutorials...

View Article


Spring Cloud, getting started

http://www.baeldung.com/spring-cloud-bootstrapping generate your starter zip from http://start.spring.io/...

View Article

Scala, sbt and Nexus Repositories

https://github.com/travelaudience/kubernetes-nexus/blob/master/docs/usage/using-nexus-with-sbt.mdfirst, install sbt:curl https://bintray.com/sbt/rpm/rpm > bintray-sbt-rpm.reposudo mv...

View Article

sudo systemctl hibernate

on Centos, I was trying to hibernate my machine:sudo systemctl hibernateA dependency job for hibernate.target failed. See 'journalctl -xe' for details.journalctl -xeFailed to write mode to...

View Article


Testcontainers, using Docker containers in JUnit tests

Junit sucks, use at least 5.0 or better switch to TestNG (see http://www.baeldung.com/junit-vs-testng for comparison)...

View Article


Nginx with LUA and Java handlers

https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7sudo yum install epel-releasesudo yum install nginxsudo systemctl start nginxnginx should now be running, enter...

View Article

Spring Boot 2 and Primefaces 6..... JoinFaces

http://joinfaces.org/ and https://github.com/joinfaces/joinfacesgit clone https://github.com/joinfaces/joinfaces-maven-jar-example.gitcd joinfaces-maven-jar-examplemvn clean install(there are some test...

View Article

Eclipse says server workload limit exceeded, please try later

I always enable error reporting in Eclipse, although I am pretty confident that in the House of Chaos that Eclipse must be, nobody is seriously looking at them - they are too many, there is no sign of...

View Article

systemctl start service on boot with specific user

see https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-unitssudo vi...

View Article


Nexus Firewall

http://www.javamonamour.org/2017/09/software-vulnerability-control-with.htmlAs usual, Sonatype scatters his product documentation across the 5 Oceans, in the most disparate formats (blogs, videos,...

View Article

Sanity check on a Nexus 2 Maven Proxy repo

The task is: verify that all the JARs in a Nexus 2 repo are still in Maven Central.I did a find /path/to/nexusdata/central -name "*.jar"> alljarsfiltered.txtand then run this Java...

View Article


Eclipse for Docker

To install: Help/Eclipse Marketplace, search for Docker Tools, installShow View / Docker Exploreryou get by default this one:unix:///var/run/docker.sockbut you can also work with remote docker via TCP...

View Article

Nexus proxy to npm registry

https://nodejs.org/en/https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-a-centos-7-serverInstall node.jscd ~wget...

View Article


Spring Boot 2 actuator ... priceless!

in application.properties, add thismanagement.endpoints.web.exposure.include=*management.endpoint.shutdown.enabled=trueand restart. hit this:http://localhost:8080/actuator/beansYou can see the...

View Article

Spring Boot and H2

https://dzone.com/articles/spring-boot-and-spring-jdbc-with-h2Example code is here:https://github.com/in28minutes/spring-boot-examples/tree/master/spring-boot-2-jdbc-with-h2you must add...

View Article

Browsermob as a whitelisting/blacklisting Proxy

http://bmp.lightbody.net/https://github.com/lightbody/browsermob-proxyIt's based on our friend Littleproxy. Its latest release it 2.1.6. It seems not much going on recently... no commits in last 8...

View Article
Browsing all 1121 articles
Browse latest View live