Archive for September, 2009

Ivy and Sun’s Maven repo

I want to use Sun’s Maven repo with Ivy, and this is not documented well anywhere.

In ivysettings.xml (Ivy will automatically use it) put:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ivysettings>
  <settings defaultResolver="chained" />
  <property name=""
    value="[organisation]/jars/[module]-[revision].[ext]" />
    <chain name="chained" returnFirst="true">
      <ibiblio name="ibiblio" m2compatible="true" />
      <ibiblio name="java-net-maven2"
        m2compatible="true" />
      <ibiblio name="java-net-maven1"
        m2compatible="false" />

Now you can make an ivy.xml with dependencies like <dependency org="com.sun.grizzly" name="grizzly-http" rev="2.0.0-SNAPSHOT"/> and have it work right.

Secure Glassfish v3 Admin Console

By default, the admin console can be accessed by the outside world. I prefer to have it accessible to localhost only (so I can ssh tunnel it only).

Open the admin console, and on the menu, Configuration -> Network Config -> Network Listeners -> admin-listener, and edit the IP to state, hit save, then restart Glassfish.