从现在到现在,我的Maven 2开始乱七八糟.
我正在使用SPring STS 2.6.1并且有一个基于Spring 3,Hibernate,DWR,Cometd的项目以及所有这些东西.
今天我刚从Git突然更新mvn,我的项目旁边有一个可怕的感叹号(!).
点击"Project - > Maven - > Update dependencies"后我收到:
24.05.11 15:26:58 MESZ: Missing artifact org.jdom:jdom:jar:1.1:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-common:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-core:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-solrj:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact stax:stax:jar:1.2.0:compile
24.05.11 15:26:58 MESZ: Missing artifact stax:stax-api:jar:1.0.1:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-lucene-analyzers:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-lucene-core:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-lucene-highlighter:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-lucene-queries:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: …Run Code Online (Sandbox Code Playgroud) 我的Maven安装(Windows 7 64位)有一个.cache几乎3.5GB 的目录!它只包含一个m2e目录.(我正在使用m2e运行Eclipse 4.3M7.)目前内部所有内容都不需要,而且我甚至不知道这些东西是什么!我在.cache网上找不到目录的Maven文档.
那么.m2/repository/.cache和.m2/repository/.cache/m2e目录是什么?他们为什么多年前有这么多东西?我如何处理不再需要的所有东西?
每次我在eclipse中更改我的pom.xml时都会收到错误消息.
Build errors for myapp; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project web: Compilation failure
Unable to locate the Javac Compiler in:
C:\Program Files (x86)\Java\jre6\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable
Run Code Online (Sandbox Code Playgroud)
我已经设置了JAVA_HOME环境变量.它是:JAVA_HOME = D:\ Java\jdk1.6.0_23
谢谢.
我尝试在带有ARM处理器的三星Chromebook Series 3上安装Android Studio,但我坚持使用Java.任何帮助,将不胜感激.
Downloaded and extracted Android Studio
Downloaded and extracted Java 1.7.0_21 JDK ARM
Completed the below commands except the javaws commands as they error-ed out doesn't exist
tar xzvf ~/Downloads/jdk-7u21-linux-arm.tar.gz sudo mv jdk1.7.0_21/ /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_21/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_21/bin/javac 1 sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.7.0_21/bin/javaws 1
sudo update-alternatives --config java
sudo update-alternatives --config javaws
Run Code Online (Sandbox Code Playgroud)
我尝试了JAVA_HOME=/usr/lib/jvm/jdk1.7.0_21命令,它仍然会给我错误.