Changeset 13807
- Timestamp:
- 01/25/12 13:34:03 (12 years ago)
- Location:
- trunk/abcl/contrib/abcl-asdf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/contrib/abcl-asdf/abcl-asdf.asd
r13806 r13807 21 21 (defsystem :abcl-asdf-test 22 22 :author "Mark Evenson" 23 :depends-on (abcl abcl-test-lisp)23 :depends-on (abcl) 24 24 :components 25 25 ((:module tests :components … … 27 27 (:file "maven"))))) 28 28 29 #+nil FIXME 29 30 (defmethod perform ((o test-op) (c (eql (find-system 'abcl-asdf)))) 30 31 "Invoke tests with (asdf:test-system 'abcl-asdf)." 32 (asdf:load-system 'abcl) 33 (asdf:load-system 'abcl-test-lisp) 31 34 (asdf:load-system 'abcl-asdf-test) 32 35 (funcall (intern (symbol-name 'run) 'abcl-asdf-test))) -
trunk/abcl/contrib/abcl-asdf/maven-embedder.lisp
r13804 r13807 14 14 (resolve-dependencies "org.slf4j" "slf4j-api" "1.6.1") 15 15 16 (resolve-dependencies "org.apache.maven" "maven-aether-provider" "3.0. 3")16 (resolve-dependencies "org.apache.maven" "maven-aether-provider" "3.0.4") 17 17 |# 18 18 … … 21 21 22 22 (defun find-mvn () 23 "Attempt to find a suitable Maven ('mvn') executable on the hosting operating system." 23 24 (dolist (mvn-path *mavens*) 24 25 (let ((mvn … … 76 77 77 78 (defun init () 79 "Run the initialization strategy to bootstrap a Maven dependency node." 78 80 (unless *mvn-libs-directory* 79 81 (setf *mvn-libs-directory* (find-mvn-libs))) 80 82 (unless (probe-file *mvn-libs-directory*) 81 (error "You must download maven-3.0.3 from http://maven.apache.org/download.html, then set ABCL-ASDF:*MVN-DIRECTORY* appropiately."))83 (error "You must download maven-3.0.3 or later from http://maven.apache.org/download.html, then set ABCL-ASDF:*MVN-DIRECTORY* appropiately.")) 82 84 (unless (ensure-mvn-version) 83 85 (error "We need maven-3.0.3 or later.")) … … 86 88 87 89 (defparameter *http-wagon-implementations* 88 `("org.apache.maven.wagon.providers.http.HttpWagon" ;; introduced as default with maven-3.0.3 89 "org.apache.maven.wagon.providers.http.LightweightHttpWagon")) 90 `("org.apache.maven.wagon.providers.http.HttpWagon" ;; introduced as default with maven-3.0.4 91 "org.apache.maven.wagon.providers.http.LightweightHttpWagon") 92 "A list of possible candidate implementations that provide access to http and https resources. 93 94 Supposedly configurable with the java.net.protocols (c.f. reference maso2000 in the Manual.") 90 95 91 96 (defun make-wagon-provider () 97 "Returns an implementation of the org.sonatype.aether.connector.wagon.WagonProvider contract. 98 99 The implementation is specified as Lisp closures. Currently, it only 100 specializes the lookup() method if passed an 'http' role hint." 92 101 (unless *init* (init)) 93 102 (java:jinterface-implementation … … 138 147 139 148 (defun resolve-artifact (group-id artifact-id &optional (version "LATEST" versionp)) 140 "D ynamically resolve Maven dependencies for item with GROUP-ID and ARTIFACT-ID at VERSION.149 "Directly resolve Maven dependencies for item with GROUP-ID and ARTIFACT-ID at VERSION, ignoring dependencies. 141 150 142 151 Declared dependencies are not attempted to be located. -
trunk/abcl/contrib/abcl-asdf/packages.lisp
r13806 r13807 5 5 #:resolve-dependencies 6 6 7 #:find-mvn 8 9 #:*mvn-directory* 10 11 #:init 12 7 13 ;;; "Internal" API 14 15 ;;;; Maven 16 #:*mvn-libs-directory* 17 8 18 #:satisfy 9 19 #:as-classpath … … 18 28 19 29 (defpackage #:abcl-asdf-test 20 (:use :cl :abcl-rt)30 (:use :cl #+nil :abcl-test-lisp) ;;; FIXME 21 31 (:export #:run))
Note: See TracChangeset
for help on using the changeset viewer.