Tuesday, 13 November 2018

macOS Mojave and Git - Borked No More

*UPDATE*

I've just saw this again on macOS 11 Big Sur : -

sw_vers

ProductName: macOS
ProductVersion: 11.0.1
BuildVersion: 20B29

I was trying to clone a repository: -

but got this: -

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Thankfully an easy solution: -

xcode-select --install ( note that's a double-hyphen )

xcode-select: note: install requested for command line developer tools

Now it's a-workin' 

Cloning into 'java-helloworld'...
remote: Enumerating objects: 121, done.
remote: Total 121 (delta 0), reused 0 (delta 0), pack-reused 121
Receiving objects: 100% (121/121), 61.47 KiB | 340.00 KiB/s, done.
Resolving deltas: 100% (46/46), done.


cd java-helloworld/

ls

CONTRIBUTING.md LICENSE README.md manifest.yml pom.xml src target

mvn clean install

[INFO] Scanning for projects...
[INFO] 
[INFO] --------------< net.wasdev.wlp.sample:JavaHelloWorldApp >---------------
[INFO] Building Liberty Profile Sample - Servlet 1.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ JavaHelloWorldApp ---
[INFO] Deleting /Users/davidhay/java-helloworld/target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (default) @ JavaHelloWorldApp ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @ JavaHelloWorldApp ---
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ JavaHelloWorldApp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/davidhay/java-helloworld/src/main/resources
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ JavaHelloWorldApp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/davidhay/java-helloworld/target/classes
[WARNING] bootstrap class path not set in conjunction with -source 1.7
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ JavaHelloWorldApp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/davidhay/java-helloworld/src/test/resources
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ JavaHelloWorldApp ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ JavaHelloWorldApp ---
[INFO] 
[INFO] --- maven-war-plugin:2.2:war (default-war) @ JavaHelloWorldApp ---
[INFO] Packaging webapp
[INFO] Assembling webapp [JavaHelloWorldApp] in [/Users/davidhay/java-helloworld/target/JavaHelloWorldApp-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/Users/davidhay/java-helloworld/src/main/webapp]
[INFO] Webapp assembled in [25 msecs]
[INFO] Building war: /Users/davidhay/java-helloworld/target/JavaHelloWorldApp.war
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ JavaHelloWorldApp ---
[INFO] Installing /Users/davidhay/java-helloworld/target/JavaHelloWorldApp.war to /Users/davidhay/.m2/repository/net/wasdev/wlp/sample/JavaHelloWorldApp/1.0-SNAPSHOT/JavaHelloWorldApp-1.0-SNAPSHOT.war
[INFO] Installing /Users/davidhay/java-helloworld/pom.xml to /Users/davidhay/.m2/repository/net/wasdev/wlp/sample/JavaHelloWorldApp/1.0-SNAPSHOT/JavaHelloWorldApp-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.032 s
[INFO] Finished at: 2018-11-13T16:04:07Z
[INFO] ————————————————————————————————————


mvn liberty:run-server

[INFO] Scanning for projects...
Downloading from ibm-maven-repo: http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/net/wasdev/wlp/maven/plugins/liberty-maven-plugin/1.2.1/liberty-maven-plugin-1.2.1.pom
Downloading from central: https://repo.maven.apache.org/maven2/net/wasdev/wlp/maven/plugins/liberty-maven-plugin/1.2.1/liberty-maven-plugin-1.2.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/net/wasdev/wlp/maven/plugins/liberty-maven-plugin/1.2.1/liberty-maven-plugin-1.2.1.pom (4.4 kB at 18 kB/s)
Downloading from ibm-maven-repo: http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/net/wasdev/wlp/maven/liberty-maven/1.2.1/liberty-maven-1.2.1.pom
Downloading from central: https://repo.maven.apache.org/maven2/net/wasdev/wlp/maven/liberty-maven/1.2.1/liberty-maven-1.2.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/net/wasdev/wlp/maven/liberty-maven/1.2.1/liberty-maven-1.2.1.pom (2.0 kB at 53 kB/s)
Downloading from ibm-maven-repo: http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/net/wasdev/wlp/maven/plugins/liberty-maven-plugin/1.2.1/liberty-maven-plugin-1.2.1.jar
Downloading from central: https://repo.maven.apache.org/maven2/net/wasdev/wlp/maven/plugins/liberty-maven-plugin/1.2.1/liberty-maven-plugin-1.2.1.jar
Downloaded from central: https://repo.maven.apache.org/maven2/net/wasdev/wlp/maven/plugins/liberty-maven-plugin/1.2.1/liberty-maven-plugin-1.2.1.jar (109 kB at 1.3 MB/s)
[INFO] 
[INFO] --------------< net.wasdev.wlp.sample:JavaHelloWorldApp >---------------
[INFO] Building Liberty Profile Sample - Servlet 1.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] --- liberty-maven-plugin:1.2.1:run-server (default-cli) @ JavaHelloWorldApp ---
Downloading from ibm-maven-repo: http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/net/wasdev/wlp/ant/wlp-anttasks/1.2.1/wlp-anttasks-1.2.1.pom
Downloading from central: https://repo.maven.apache.org/maven2/net/wasdev/wlp/ant/wlp-anttasks/1.2.1/wlp-anttasks-1.2.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/net/wasdev/wlp/ant/wlp-anttasks/1.2.1/wlp-anttasks-1.2.1.pom (5.2 kB at 141 kB/s)
Downloading from ibm-maven-repo: http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/net/wasdev/wlp/ant/wlp-anttasks/1.2.1/wlp-anttasks-1.2.1.jar
Downloading from ibm-maven-repo: http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
Downloading from central: https://repo.maven.apache.org/maven2/net/wasdev/wlp/ant/wlp-anttasks/1.2.1/wlp-anttasks-1.2.1.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar (169 kB at 1.1 MB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/net/wasdev/wlp/ant/wlp-anttasks/1.2.1/wlp-anttasks-1.2.1.jar (85 kB at 513 kB/s)
[INFO] CWWKM2102I: Using installDirectory : /Users/davidhay/java-helloworld/target/liberty/wlp.
[INFO] CWWKM2102I: Using serverName : defaultServer.
[INFO] CWWKM2102I: Using serverDirectory : /Users/davidhay/java-helloworld/target/liberty/wlp/usr/servers/defaultServer.
[INFO] Getting: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/downloads/wlp/index.yml
[INFO] To: /Users/davidhay/.m2/repository/wlp-cache/index.yml
[INFO] Getting: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/downloads/wlp/18.0.0.3/wlp-webProfile7-18.0.0.3.zip
[INFO] To: /Users/davidhay/.m2/repository/wlp-cache/18.0.0_03/wlp-webProfile7-18.0.0.3.zip
[INFO] Copying 1 file to /Users/davidhay/java-helloworld/target/liberty/wlp/usr/servers/defaultServer
[INFO] CWWKM2144I: Update server configuration file server.xml from /Users/davidhay/java-helloworld/src/main/wlp/server.xml.
[INFO] CWWKM2144I: Update server configuration file bootstrap.properties from inlined configuration.
[INFO] CWWKM2001I: server.config.dir is /Users/davidhay/java-helloworld/target/liberty/wlp/usr/servers/defaultServer.
[INFO] CWWKM2001I: server.output.dir is /Users/davidhay/java-helloworld/target/liberty/wlp/usr/servers/defaultServer.
[INFO] CWWKM2001I: Invoke command is [/Users/davidhay/java-helloworld/target/liberty/wlp/bin/server, run, defaultServer].
[INFO] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[INFO] Launching defaultServer (WebSphere Application Server 18.0.0.3/wlp-1.0.22.cl180320180905-2337) on Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_181-b13 (en_GB)
[INFO] [AUDIT   ] CWWKE0001I: The server defaultServer has been launched.
[INFO] [AUDIT   ] CWWKE0100I: This product is licensed for development, and limited production use. The full license terms can be viewed here: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/license/base_ilan/ilan/18.0.0.3/lafiles/en.html
[INFO] [AUDIT   ] CWWKZ0058I: Monitoring dropins for applications.
[INFO] [ERROR   ] CWWKO0221E: TCP Channel defaultHttpEndpoint initialization did not succeed.  The socket bind did not succeed for host * and port 9080.  The port might already be in use.
[INFO] [AUDIT   ] CWWKZ0001I: Application JavaHelloWorldApp started in 0.231 seconds.
[INFO] [AUDIT   ] CWWKF0012I: The server installed the following features: [servlet-3.1].
[INFO] [AUDIT   ] CWWKF0011I: The server defaultServer is ready to run a smarter planet.

No comments:

Reminder - installing podman and skopeo on Ubuntu 22.04

This follows on from: - Lest I forget - how to install pip on Ubuntu I had reason to install podman  and skopeo  on an Ubuntu box: - lsb_rel...