nlloyd / sublimemaven Goto Github PK
View Code? Open in Web Editor NEWSublime Text 2 Plugin providing integration with the Apache Maven build and project management tool
Sublime Text 2 Plugin providing integration with the Apache Maven build and project management tool
Add to the Tools menu the ability to "import" projects, which basically will mean "parse a given directory for all pom files, and add those project roots as directories to the Sublime project config".
Trying to use this on a Linux Machine (Linux Mint). Here is the stack in subl 3
reloading plugin SublimeMaven.config_generator
reloading plugin SublimeMaven.import
Traceback (most recent call last):
File "/home/jcostanzo/bin/sublime_text_3/sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "/home/jcostanzo/bin/sublime_text_3/sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "import in /home/jcostanzo/.config/sublime-text-3/Installed Packages/SublimeMaven.sublime-package", line 26, in
ImportError: No module named 'utils'
reloading plugin SublimeMaven.maven
Traceback (most recent call last):
File "/home/jcostanzo/bin/sublime_text_3/sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "/home/jcostanzo/bin/sublime_text_3/sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "maven in /home/jcostanzo/.config/sublime-text-3/Installed Packages/SublimeMaven.sublime-package", line 288
print self.last_str
^
SyntaxError: invalid syntax
Current sublime text build system configuration doesn't work.
First, great plugin - I use it every day and really enjoy it. Thanks for making it.
Second, is there any way to bind keyboard shortcuts to plugin actions? For example, I would like to bind Maven:Run... to a key combination? I can't seem to find a straightforward way to do this.
I tried to install this with the windows version of sublime text 3, but the plugin did not work.
Has it been tested with windows?
When I try to generate a sublime project from a pom in the folders I got this exception in the sublime console:
Exception in thread Thread-17:
Traceback (most recent call last):
File ".\threading.py", line 532, in bootstrap_inner
File "./utils/mvn/pom.py", line 182, in run
File "./utils/mvn/pom.py", line 216, in gen_project_name
File ".\xml\sax__init.py", line 93, in make_parser
SAXReaderNotAvailable: No parsers found
Using ubuntu 12.04. I could not found a way of making that library available to the plugin. If I just enter a python console and create a sax parser the code works fine.
Any help?
In-editor context menu does not currently execute the maven builds as the side bar context menu does.
Is there a way to make use of MAVEN_OPTS with your plugin?
Add TextCommand class to do intelligent autocomplete of the pom file.
Possibility: separate plugin to do XSD-based autocompletion (would cover a good deal of the functionality desired).
Context menus are great, but we need to add maven build commands to the command palette (and a lot of them, basic lifecycle commands).
Possibly through command menu. Implemented ideally similarly to the Package Control plugin.
I have noticed after installing ST2 on a couple of machines recently that installing SublimeMaven prevents the default build system auto-detect.
E.g,,
In both cases no project is defined. I would expect being able to leave the Build system as "Automatic", and .java files to build with javac as before, and no error produced by the default shortcut.
Traceback (most recent call last):
File ".\sublime_plugin.py", line 337, in run_
File ".\maven.py", line 174, in run
File ".\maven.py", line 189, in on_done
File ".\maven.py", line 84, in init
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 5: ordinal not in range(128)
I am using this package along side with SublimeJava and the maven-android-plugin. Clean Install works fine, however if I use the target android:run which should launch the app's launcher activity on the phone nothing happens. Also, the autocorrect functionality from SublimeJava only works for core java libs, none of my classes or library's are working imports or otherwise.
mvn -version
Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
Maven home: /usr/local/Cellar/maven/3.0.4/libexec
Java version: 1.6.0_37, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.2", arch: "x86_64", family: "mac"
neo.sublime-project:
{
"folders": [
{
"path": "/Users/jazzy/android/neo",
"name": "c.r.n:roqbot-neo:PROJECT"
}
],
"settings": {
"sublimejava_classpath": [
"/Users/jazzy/.m2/repository/org/json/json/20080701/json-20080701.jar",
"/Users/jazzy/.m2/repository/com/nineoldandroids/library/2.4.0/library-2.4.0.jar",
"/Users/jazzy/.m2/repository/com/google/android/support-v4/r7/support-v4-r7.jar",
"/Users/jazzy/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar",
"/Users/jazzy/.m2/repository/org/khronos/opengl-api/gl1.1-android-2.1_r1/opengl-api-gl1.1-android-2.1_r1.jar",
"/Users/jazzy/.m2/repository/com/actionbarsherlock/actionbarsherlock/4.2.0/actionbarsherlock-4.2.0.apklib",
"/Users/jazzy/.m2/repository/org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.jar",
"/Users/jazzy/android/neo/target/classes/*",
"/Users/jazzy/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar",
"/Users/jazzy/android/neo/target/test-classes",
"/Users/jazzy/.m2/repository/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.jar",
"/Users/jazzy/.m2/repository/com/viewpagerindicator/library/2.4.1/library-2.4.1.apklib",
"/Users/jazzy/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar",
"/Users/jazzy/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar",
"/Users/jazzy/.m2/repository/com/google/android/android/4.1.1.4/android-4.1.1.4.jar"
]
}
}
Sublime User Preferences:
{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"font_size": 15,
"ignored_packages":
[
"Vintage"
],
"m2_home": "/usr/local/Cellar/maven/3.0.4/libexec",
"tab_size": 2
}
Also, I installed maven from homebrew.
Let me know how I can help if Android currently isn't supported.
SublimeJava code completion plugin relies on a configured classpath. Good idea to have this plugin check if the SublimeJava plugin exists, and if it does to configure its classpath setting using maven dependencies (all in the repo? all the latest of any given version in the repo? Not yet sure...).
I've tested the plugin with Sublime 3 in Windows and it doesn't work.
The console showed these errors/problems:
reloading plugin Maven.config_generator
reloading plugin Maven.import
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "import in C:\Users\clp\AppData\Roaming\Sublime Text 3\Installed Packages\Maven.sublime-package", line 26, in
ImportError: No module named 'utils'
reloading plugin Maven.maven
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "maven in C:\Users\clp\AppData\Roaming\Sublime Text 3\Installed Packages\Maven.sublime-package", line 281
print self.last_str
^
SyntaxError: invalid syntax
...
Package Control: Skipping automatic upgrade, last run at 2013-07-15 13:29:20, next run at 2013-07-15 14:29:20 or after
Traceback (most recent call last):
File "config_generator in C:\Users\clp\AppData\Roaming\Sublime Text 3\Installed Packages\Maven.sublime-package", line 43, in generate_config
TypeError: 'NoneType' object is not iterable
i integrated
"maven_menu_commands":
[
{ "caption": "Maven: Run test", "command": "maven", "args": {"paths": [], "goals": ["test"]} },
{ "caption": "Maven: Run install", "command": "maven", "args": {"paths": [], "goals": ["install"]} },
{ "caption": "Maven: Run clean test", "command": "maven", "args": {"paths": [], "goals": ["clean", "test"]} },
{ "caption": "Maven: Run clean install", "command": "maven", "args": {"paths": [], "goals": ["clean", "install"]} }
]
into my Preference.sublime-settings but it doesnt had any impact on the sidebarmenu. How do I have to integrate it?
I am using this package along side with SublimeJava and the maven-android-plugin. Clean Install works fine, however if I use the target android:run which should launch the app's launcher activity on the phone nothing happens. Also, the autocorrect functionality from SublimeJava only works for core java libs, none of my classes or library's are working imports or otherwise.
mvn -version
Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
Maven home: /usr/local/Cellar/maven/3.0.4/libexec
Java version: 1.6.0_37, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.2", arch: "x86_64", family: "mac"
neo.sublime-project:
{
"folders": [
{
"path": "/Users/jazzy/android/neo",
"name": "c.r.n:roqbot-neo:PROJECT"
}
],
"settings": {
"sublimejava_classpath": [
"/Users/jazzy/.m2/repository/org/json/json/20080701/json-20080701.jar",
"/Users/jazzy/.m2/repository/com/nineoldandroids/library/2.4.0/library-2.4.0.jar",
"/Users/jazzy/.m2/repository/com/google/android/support-v4/r7/support-v4-r7.jar",
"/Users/jazzy/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar",
"/Users/jazzy/.m2/repository/org/khronos/opengl-api/gl1.1-android-2.1_r1/opengl-api-gl1.1-android-2.1_r1.jar",
"/Users/jazzy/.m2/repository/com/actionbarsherlock/actionbarsherlock/4.2.0/actionbarsherlock-4.2.0.apklib",
"/Users/jazzy/.m2/repository/org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.jar",
"/Users/jazzy/android/neo/target/classes/*",
"/Users/jazzy/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar",
"/Users/jazzy/android/neo/target/test-classes",
"/Users/jazzy/.m2/repository/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.jar",
"/Users/jazzy/.m2/repository/com/viewpagerindicator/library/2.4.1/library-2.4.1.apklib",
"/Users/jazzy/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar",
"/Users/jazzy/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar",
"/Users/jazzy/.m2/repository/com/google/android/android/4.1.1.4/android-4.1.1.4.jar"
]
}
}
Sublime User Preferences:
{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"font_size": 15,
"ignored_packages":
[
"Vintage"
],
"m2_home": "/usr/local/Cellar/maven/3.0.4/libexec",
"tab_size": 2
}
Also, I installed maven from homebrew.
Let me know how I can help if Android currently isn't supported.
It seems like SublimeMaven writes to /Packages/Side Bar.sublime-menu
, and leaves those settings behind after removal of the plugin. This means that the Maven menu options are still there. Solution was to remove them by hand.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.