Opened 7 years ago

Closed 7 years ago

#418 closed defect (invalid)

maven-embedder needs maven on classpath in order to compile

Reported by: Mark Evenson Owned by:
Priority: major Milestone: 1.5.0
Component: abcl-contrib Version: 1.5.0-dev
Keywords: github-issue abcl-asdf Cc:
Parent Tickets:


From Alan <>:

[…] maven-embedder.lisp needs to be recompiled when abcl-asdf is required. Periodically I tear my hair out trying to figure out how to make an initial test run of abcl.jar how to know that.

What do you think of wrapping the first part (up until init is defined) and then calling init inside an eval-when?

Might be nice to add a build target that installs maven if mvn isn't on PATH.

@@ -41,6 +41,7 @@ Test:
+(eval-when (:compile-toplevel  :load-toplevel :execute)
 (defparameter *maven-verbose* t
   "Stream to send output from the Maven Aether subsystem to, or NIL to muffle output")

@@ -222,7 +224,10 @@ of the mvn executable with an explicit value."
     (error "Please obtain and install maven-3.0.3 or later locally from <>, then set ABCL-ASDF:*MVN-LIBS-DIRECTORY* to the directory containing maven-core-3.*.jar et. al."))
   (unless (ensure-mvn-version)
     (error "We need maven-3.0.3 or later."))  (add-directory-jars-to-class-path *mvn-libs-directory* nil)
-    (setf *init* t))
+  (setf *init* t))

Change History (3)

comment:1 Changed 7 years ago by Mark Evenson

I don't have this issue as far as I know, but I will test on a new machine without Maven.

Adding a local Maven install under <file:///abcl/ext/> like the JUnit install <> is definitely a good idea.

A future direction will be to include Maven in abcl-aio.jar in a loadable manner ala either Shade <> or One-JAR <>. I don't fully understand the ramifications of combining all the difference licensing, so we may never be able to redistribute such an abcl-aio.jar but we can certainly distribute a build recipe for individual uses to accept the licenses at build-time.

comment:2 Changed 7 years ago by Mark Evenson

Unfortunately, this seems to be a side-effect of the work on the precompiler <>. Without <> applied, this behavior doesn't exist.

comment:3 Changed 7 years ago by Mark Evenson

Resolution: invalid
Status: newclosed
Version: 1.5.0-dev

Confirmed as arising from work on precompiler. Closing.

Note: See TracTickets for help on using tickets.