Skip to content

Instantly share code, notes, and snippets.

@cjac
Created March 5, 2020 20:47
Show Gist options
  • Save cjac/bf956f7029e48f6a05003dddf8064a18 to your computer and use it in GitHub Desktop.
Save cjac/bf956f7029e48f6a05003dddf8064a18 to your computer and use it in GitHub Desktop.
for pkg in automake autoconf libtool openssl perl ninja go cmake libapr1_0 ; do
do
/opt/csw/bin/pkgutil -y -i ${pkg}
done
# unfortunately, ksh93 does not seem to work on my system
ln -sf /bin/bash /bin/sh
cd /usr/src
git clone [email protected]:fusesource/hawtjni.git
cd hawtjni
perl -i -pe 's:<module>hawtjni-example</module>::' pom.xml
mvn clean -e install
cd ..
git clone [email protected]:netty/netty-tcnative.git
cd netty-tcnative
#mkdir -p src/main/resources/repo
#cp $(find ~/.m2/ -name 'maven-hawtjni-plugin-1.11.jar') .
mvn install:install-file -Dfile=$(find ~/.m2/ -name 'maven-hawtjni-plugin-1.11.jar') \
-DgroupId=org.fusesource.hawtjni -DartifactId=maven-hawtjni-plugin -Dversion=1.11 \
-Dpackaging=jar -DlocalRepositoryPath=openssl-dynamic/src/main/resources/repo
# edit pom.xml:
# <repositories>
# <repository>
# <id>local-repository</id>
# <name>local repository</name>
# <url>file://${project.basedir}/src/main/resources/repo</url>
# </repository>
# <repository>
# <id>remote-repository</id>
# <name>remote repository</name>
# <url>https://oss.sonatype.org/content/repositories/snapshots</url>
# </repository>
# </repositories>
# <plugin>
# <groupId>org.fusesource.hawtjni</groupId>
# <artifactId>maven-hawtjni-plugin</artifactId>
# <version>1.11</version>
# <dependencies>
# <dependency>
# <groupId>org.fusesource.hawtjni</groupId>
# <artifactId>maven-hawtjni-plugin</artifactId>
# <version>1.11</version>
# <scope>system</scope>
# <systemPath>${project.basedir}/maven-hawtjni-plugin-1.11.jar</systemPath>
# </dependency>
# </dependencies>
# </plugin>
mvn clean -e install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment