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

git delete all tags matching a regex

this will delete all remote tags containig the "iap-copy" string (more complex cases can be achieved with egrep)git clone myrepourlcd myprojectgit tag --list | grep iap-copy | sort >...

View Article


Nexus and Groovy for Setup Automation

Amazingly few people automate their Nexus administration. I guess the fault lies mostly in the company behind Nexus, who does very little to make their API usable and well documented.This post...

View Article


centos filesystem ntfs not configured in kernel

trying to install an external HD (Windows formatted) on a Centos box...centos@localhost ~]$ sudo fdisk -l /dev/sdc2Disk /dev/sdc2: 4000.7 GB, 4000650887168 bytes, 7813771264 sectorsUnits = sectors of 1...

View Article

Nexus programmatically create Repositories

Nexus API sucks - big time.This https://blog.sonatype.com/automated-setup-of-a-repository-manager is a desperate attempt to automate stuff.git clone...

View Article

Eclipse jee-2018-09 hangs upon restarting

I do a "ps -ef | grep -i eclipse" then a jstack on the process, to find out that:ModalContext" #136 prio=6 os_prio=0 tid=0x00007fbe7885f000 nid=0x2744 waiting for monitor entry [0x00007fbdc980f000]...

View Article


Nexus Groovy scripting

Huge issue in Nexus is that you can't export/import your Users/Groups/Privileges and Repository configuration. All you can do is to take a "backup", which ends of in a folder as a completely...

View Article

More JIRA on Docker

See also https://www.javamonamour.org/2017/11/jira-on-docker-and-integration-with.htmldocker run -d -p 8080:8080 cptactionhank/atlassian-jira:7.7.0 I need to install netstat, but I have no root access...

View Article

Installing JIRA

https://www.atlassian.com/software/jira/downloadLinux 64 bitcd Downloadssudo ./atlassian-jira-software-7.12.3-x64.binUnpacking JRE ...Starting Installer ...This will install JIRA Software 7.12.3 on...

View Article


backing up the Nexus configuration

Using the built-in procedure is risky - to say the least. I was unable to make it work (the restore part, I mean).You can do this (see https://stackoverflow.com/a/45986526/651288 ):java -jar...

View Article


bintray endless redirection for repo.scala-sbt.org

The Scala folks running this repository don't seem to understand the importance of running their stuff behind a Proxy Server, so that all elements come from the same domain.... instead, they send you...

View Article

Getting configuration information from Nexus FOR FREE

One VERY SIMPLE way to log all the Nexus 3 configuration in the nexus.log is to enable debug logging (Administration/Logging/ set the ROOT logger at DEBUG level), then navigate to the...

View Article

Importing and exporting dictionaries in XL-Deploy

XebiaLab XL-Deploy is a great tool, but definitely lacking important features as far as versioning and exporting/importing configuration.If you need to programmatically generate a Dictionary (rather...

View Article

Hammering Nexus 3.14

first, create an entry in your settings.xml for mvn to be able to authenticate in...

View Article


Spring Shell is very cool

If you are fed up with UI-oriented applications (like, say, Messus (a.k.a. Nexus) ) you can always try to embed a Spring-powered shell, so as to have a powerful scripting cli.Just follow this...

View Article

Centos 7 gnome-shell high CPU on VirtualBox

top shows very high CPU usage. and UI is very very slow. googling around, they say it's probably doing "software" rendering. it makes sense because CPU goes higher when I move something on the screenin...

View Article


Jboss CLI, change individual attributes of a security domain without having...

Jboss CLI, change individual attributes of a security domain without having to remove and add the domain from scratchIf you need for instance to update the baseFilter of the AdvancedAdLdap module:In...

View Article

Velocity and rendering JSONObjects or Java Beans

You can use a Velocity template to render either a JsonNode or its corresponding Java bean, without changing the velocity template.Code is available https://github.com/vernetto/velocityjson here (the...

View Article


Java and JGit

The Jgit library makes it REALLY easy to work with Git repositories. https://www.baeldung.com/jgitJust create a basic Spring boot application, add...

View Article

java showSettings

This is a priceless feature to display all the settings of the JVM, together with -XX:+PrintCommandLineFlags it can show a world of hidden stuff.java -XX:+PrintCommandLineFlags...

View Article

Nexus repository location of license

If you move your Nexus repository to a new machine, it's quite annoying to have to reinstall the license file.The trick is to clone the folder ~/.java/.userPrefs, specifically the license is embedded...

View Article
Browsing all 1121 articles
Browse latest View live