How to keep Ubuntu systemctl process alive after disconnecting from shell?

I’m new to Ubuntu, and I want to run a (java maven) command which starts a web server embedded with my web application, on a remote Ubuntu server. I can run it with following bash command (typed directly to remote console): #!/bin/bash cd /path/to/mywebapp-dir mvn exec:java >> /opt/mywebapp.log My web application keeps alive UNTIL I … Read more

Maven local repo in a common global directory for multiple parallel execution

I have a machine in which multiple parallel maven execution happen. Each execution executes the below command in a separate workspace directory mvn -f main/pom.xml clean package -DskipTests -T 6 Can someone let me know should I use a separate maven local repo path (-Dmaven.repo.local=$MAVEN_REPO) for each execution or I can use a common .m2 … Read more

we are performing mysql crawling on 4 different client environments which has centos7 by upgrading maven dependecy jar version from 5.1.6 to 8.0.2

we are performing crawling on our four different client environments by upgrading maven dependecy jar version from 5.1.6 to 8.0.2. As per below mysql link connection should be established to mysql server from client environment using ssl(i.e through SSL Handshake.)after upgrading to maven dependency jar version 8.0.2. https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-using-ssl.html it is performing ssl handshake by using … Read more

Jenkins pipeline using docker agent can’t push on artifactory due to jvm cacert

I need to push some jar files obtained during a Jenkins pipeline, to Jfrog; below the code: stage (‘Artifactory configuration’) { when { expression { params.runDelivery } } steps { rtServer ( id: “artifactory”, url: “https://jfroglocal/artifactory”, credentialsId: “jfrog” ) rtMavenDeployer ( id: “MAVEN_DEPLOYER”, serverId: “artifactory”, releaseRepo: “example-repo-local”, snapshotRepo: “example-repo-local” ) } } here the error: … Read more

Build pipeline to upload .jar package to AWS Lambda

So far according to the documentation at https://docs.aws.amazon.com/lambda/latest/dg/java-package.html, the only way to upload .jar code to an AWS Lambda function would be to manually upload the file over their web interface. Is there a way to upload the file in the Maven build or another pipeline? Answer AttributionSource : Link , Question Author : Glorious … Read more

Maven release plugin throwing Hostname Not found exception?

I am trying to release a project in jenkins and getting a host not found exception. Caused by: java.lang.RuntimeException: java.net.UnknownHostException: XXXXXXXXXXXXXXX: nodename nor servname provided, or not known at org.apache.maven.scm.provider.perforce.PerforceScmProvider.generateDefaultClientspecName(PerforceScmProvider.java:420) at org.apache.maven.scm.provider.perforce.PerforceScmProvider.getClientspecName(PerforceScmProvider.java:395) at org.apache.maven.scm.provider.perforce.command.checkout.PerforceCheckOutCommand.executeCheckOutCommand(PerforceCheckOutCommand.java:75) at org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.executeCommand(AbstractCheckOutCommand.java:82) at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59) Reading through the source it looks like the exception is thrown on this line: InetAddress.getLocalHost().getHostName(); Since I … Read more

Jenkins maven java 7 permission issue

I’m getting this error when attempting a Maven build in Jenkins, Building in workspace /var/lib/jenkins/workspace/xxxxprojectnamedeletedforprivacyxxxx java.nio.file.AccessDeniedException: /usr/share/maven/lib/maven-settings-3.x.jar at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1079) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.Util.deleteFile(Util.java:247) at hudson.FilePath.deleteRecursive(FilePath.java:1202) at hudson.FilePath.deleteContentsRecursive(FilePath.java:1211) at hudson.FilePath.deleteRecursive(FilePath.java:1193) at hudson.FilePath.deleteContentsRecursive(FilePath.java:1211) at hudson.FilePath.deleteRecursive(FilePath.java:1193) at hudson.FilePath.access$1000(FilePath.java:191) at hudson.FilePath$14.invoke(FilePath.java:1172) at … Read more