--- a/maven-central.el Sat Jul 26 02:15:16 2014 +0300
+++ b/maven-central.el Tue Jul 29 00:25:00 2014 +0300
@@ -108,7 +108,7 @@
(interactive)
(pp (maven-central.parse-pom-dependency)) )
-;;;###autoload
+;;;###autoload
(defun maven-central.last-version-from-pom ()
(interactive)
(let (dependency groupId artifactId)
@@ -119,7 +119,7 @@
(maven-central.last-version groupId artifactId))
))
-;;;###autoload
+;;;###autoload
(defun maven-central.versions-from-pom ()
(interactive)
(let (dependency groupId artifactId)
@@ -185,11 +185,12 @@
(let (pkg cls)
(re-search-forward "package +\\([[:alnum:]_.]+\\) *;" nil t)
(setq pkg (match-string-no-properties 1))
- (re-search-forward "class +\\([[:alnum:]_]+\\)\s *" nil t)
+ (re-search-forward "class\\s +\\([[:alnum:]_]+\\)\\(\\s \\|\n\\|implements [^{]*\\|extents [^{]*\\)*{" nil t)
(setq cls (match-string-no-properties 1))
(when (and pkg cls)
(concat pkg "." cls))) ))
+;;;###autoload
(defun maven.run-file ()
"Run exec:java for current file."
(interactive)
@@ -199,6 +200,7 @@
(compilation-start
(format "%s exec:java -Dexec.mainClass=%s" maven.command (maven.file-package))))))
+;;;###autoload
(defun maven.run-test ()
"Run test -Dtest=... for current file."
(interactive)