aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorheroxbd <heroxbd@gmail.com>2016-10-06 00:31:59 +0900
committerWilliam L. Thomson Jr <wlt@o-sinc.com>2016-10-05 11:31:59 -0400
commit96d9679d0a19f3bbaf404005465b924eb3018e08 (patch)
treec84fd23f96b485b64b3e702baf946bdf8a00e98f /README
parentadded some comments useful for generation of ebuild from multiple projects (diff)
downloadjava-ebuilder-96d9679d0a19f3bbaf404005465b924eb3018e08.tar.gz
java-ebuilder-96d9679d0a19f3bbaf404005465b924eb3018e08.tar.bz2
java-ebuilder-96d9679d0a19f3bbaf404005465b924eb3018e08.zip
Major updates to resolve dependency (#8)
* MavenEbuilder: mavenProject targetversion is not an array. * MavenVersion: expand regex. 1. match 3.1.4.GA (org.jboss.logging:jboss-logging) 2. match 2.0b6 (org.apache-extras.beanshell:bsh) * MavenCache: artifactId may not be identical to gentoo package. * MavenCache: give explicit error messages as place holders when dependency is missing. * script/meta.sh: auxiliary script to relate gentoo repo to maven repo metadata. * Specify the default jre version. * tree.sh: recursively call java-ebuilder. * meta.sh: use maven to enumerate child modules. * meta.sh: add more exceptions. * MavenEbuilder.java: handle SLOT dependency according to ebuild styles. If SLOT=0, no SLOT is used in CLASSPATH. * MavenEbuilder.java: remove JAVA_SRC_DIR. Not needed. The default is enough. Because we have one ebuild per child module. * MavenParser.java: mvn timeout to 10minutes. When something cannot be downloaded, maven could use several minutes to finish. * MavenParser.java: let scope default to "compile". It is interpreted as common dependencies. Some poms does not specify scopes of their dependencies. * MavenParser.java: remove maven build instructions. They are not used at all. Parsing them can cause error in some poms. The side effect is that testdependencies are not triggered. * MavenProject.java: remove system dependencies. They are deprecated: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#System_Dependencies They are satisfied by virtual/jdk. * MavenProject.java: source encoding default to UTF-8. * PortageParser.java: consider dev-java/ant-* ebuilds. * MavenParser.java: parse opengl-api version from pom.
Diffstat (limited to 'README')
-rw-r--r--README23
1 files changed, 23 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..e74f482
--- /dev/null
+++ b/README
@@ -0,0 +1,23 @@
+Java team tool for semi-automatic creation of ebuilds from pom.xml.
+
+Use example:
+
+1. Generate cache of java related packages from portage tree.
+java-ebuilder --refresh-cache -t /usr/portage
+
+2. Find corresponding maven groupId, artifactId and version in the cache.
+cd $HOME/.java-ebuilder
+mv cache cache.raw0
+( echo 1.0; tail -n +2 cache.raw0 | parallel -j -2 scripts/meta.sh; ) > cache.0
+
+3. Generate cache of java related packages from java overaly.
+java-ebuilder --refresh-cache -t /var/lib/layman/java
+
+4. Find corresponding maven groupId, artifactId and version in the cache.
+cd $HOME/.java-ebuilder
+mv cache cache.raw1
+( echo 1.0; tail -n +2 cache.raw1 | parallel -j -2 scripts/meta.sh; ) > cache.1
+
+5. Create ebuild recursively.
+script/tree.sh org.apache.spark:spark-core_2.11:2.0.0
+