Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts

Monday, January 14, 2019

mvn-jlink 1.0.0

Java provides some modularity since Java 9 (project Jigsaw) and it provides way to build JDK images containing only needed modules. There are two nice tool in JDK called jdeps and jlink which helps in build new JDK image but I use maven to build my own OSS projects and I wanted some way to automate process. So I have developed and published maven plug-in MVN-JLINK which can call jdeps and jlink (and any tool provided by JDK) and even it can load and unpack OpenJDK builds from Adopt and Bellsoft (Liberica).

Thursday, January 18, 2018

how to create Golang project with maven archetype

I have made small GIF which shows how to make a GoLang project with maven archetype and build it
mvn archetype:generate -B -DarchetypeGroupId=com.igormaznitsa -DarchetypeArtifactId=mvn-golang-hello -DgroupId=HiGo -DartifactId=hello

Thursday, September 21, 2017

JDK 9 + JEP-238 + Maven + Preprocessor

I have made small example project to show how to use Java preprocessor and Maven to build multi-release JAR (as described in JEP-238) which is supported in JDK 9.
https://github.com/raydac/jep-238-jcp-example

Sunday, September 3, 2017

JBBP 1.3.0

Java Binary Block Parser 1.3.0 is out and accessible in the Maven Central. The Main feature of the version - to generate Java class sources from JBBP scripts, the feature allows to use the framework for more or less high-load systems. The Library still has size less than 200 kBt but since the version it needs Java 1.6+ (minimal Android version is still 2.0). Also there are published two plugins for Maven and Gradle which allow to generate Java classes from JBBP scripts on fly during project build phase.
Also of course minor refactoring and bugfixing.
p.s.
The Library is used by Orange for its Datavenue Live Objects service

Sunday, February 12, 2017

JCP 6.1.1 is out

New version of Java Comment Preprocessor 6.1.1 is out. In the New Version mainly improved maven options and improved some text functions to make it more compatible with GoLang.
Now it is possible preprocess GoLang and it is possible to load a binary file and represent it as a byte array through just only line command (see example)
var imageArray = []uint8{/*$binfile("./image.png","uint8[]")$*/}

Monday, November 7, 2016

mvn-golang plugin 2.1.2 is out

Maven plugin to work with GoLang in maven is out and accessible through the Maven central. Also I made some example of project with multiple modules and shared sources, it can be downloaded as zip or investigated in github

Sunday, July 3, 2016

Java Comment Preprocessor 6.1.0

The New 6.1.0 version of Java Comment Preprocessor is out and published in Maven central. From main features of the new version I can distinguish
added option to enable whitespace between comment chars and directive, it 1) makes possible to write in such style
// #local VAR="hello"
also spaces will be allowed in //$$, //$ and /*-*/ directives
2) fixed bug in work with absolute path files
3) added function binfile(STR,STR) which converts binary files into text representation
Example:
byte[] TEXT=byte[]{/*$binfile("./file.bin","byte[]")$*/};
will be converted into
byte[] TEXT=byte[]{(byte)0x89,(byte)0x50,(byte)0x4E,(byte)0x47,(byte)0xD,(byte)0xA,(byte)0x1A,(byte)0xA};
it supports "base64","base64s" (it splits text to 80 char lines), "byte[]" and "byte[]s"

Saturday, May 28, 2016

GoLang maven wrapper 2.1.0 is out

the new 2.1.0 version of the maven golang wrapper has been published in the maven central. Main new feature - support for branches and tags for dependencies and creating of new artifact with packed project folders in local maven repository. Also fixed bug in test command and minor refactoring.

Tuesday, April 19, 2016

"Hello World!" in GoLang with Maven

if you have installed maven on your machine and would like to try GoLang then now it is possible in just two terminal lines:
 
$ mvn archetype:generate -B -DarchetypeGroupId=com.igormaznitsa -DarchetypeArtifactId=mvn-golang-hello -DarchetypeVersion=2.0.0 -DgroupId=com.go.test -DartifactId=gohello -Dversion=1.0-SNAPSHOT
$ mvn -f ./gohello/pom.xml package
 
The First line creates a simple GoLang project from a maven archetype, the project is based on usage of the mvn-golang-wrapper, and the second one build and run the project.
 

Saturday, March 26, 2016

Released mvn-golang-wrapper 1.0.0

I has been published the initial 1.0.0 version of the mvn-golang-wrapper plugin in the maven central. The Example "Hello World" for the plugin can be cloned here.

Thursday, March 24, 2016

GoLang with Maven

I very like the Maven build tool and decided to make some plugin to wrap main GoLang commands and provide possibility to build GoLang applications directly with Maven. For that I have started OSS project https://github.com/raydac/mvnGoLang
It wraps commands:
  • clean
  • get
  • build
  • install
  • test
also it can automatically download needed GoLang SDK and cache it.

Tuesday, June 9, 2015

JBBP 1.2.0 is out

JBBP 1.2.0 (most comfortable way to work with binary data in Java) has been published in Maven central
https://github.com/raydac/java-binary-block-parser

Sunday, June 7, 2015

JUte 1.1.0

JUte 1.1.0 has been published in maven central. The New version includes many improvements and now JUte has special annotation provided by jute-annotations artifact to recognize its tests. Now JUte can be used and without JUnit, also full life-cycle for JUnit tests has been supported, it means that test marked by @JUteTest also will be processed with methods marked by JUnit annotations @BeforeClass..@Before..@After..@AfterClass if they presented.

Sunday, May 31, 2015

Uber-pom

I have developed and published my new maven plugin to merge maven pom models in project hierarchy. It gives opportunity to split a multi-module maven project to standalone modules and publish them separately without publishing of the parent module.

Sunday, May 17, 2015

Isolation of JUnit tests in external processes

I had some needs to test complex legacy code with JUnit but it was very hard to isolate tests from their influence to each other. It was too expensive to find all internal influence points
 so I wrote small Maven plugin called Jute, which allows to start every JUnit test method in external JVM process, also it allows to start test methods  with different JVM and different JVM options.
The Project sources has been published in GitHub and 1.0.0 version has been published in Maven central