我已经安装了Maven和m2e Eclipse插件.出于某种原因,每当我启动它时Eclipse都会卡住更新索引.单击操作上的链接将显示以下日志.如何停止此操作(停止按钮不起作用)或修复此问题?
14/08/11 11:50:22 CEST: Updating index central|http://repo1.maven.org/maven2
14/08/11 11:50:43 CEST: [WARN] Failure to transfer commons-collections:commons-collections/maven-metadata.xml from http://www.jasperforge.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of jaspersoft has elapsed or updates are forced. Original error: Could not transfer metadata commons-collections:commons-collections/maven-metadata.xml from/to jaspersoft (http://www.jasperforge.org/maven2): HTTP header is larger than 8192 bytes.
14/08/11 11:50:43 CEST: Downloading http://repo1.maven.org/maven2/commons-collections/commons-collections/maven-metadata.xml
14/08/11 11:50:43 CEST: Downloaded http://repo1.maven.org/maven2/commons-collections/commons-collections/maven-metadata.xml
14/08/11 11:50:44 CEST: [WARN] Failure to transfer commons-digester:commons-digester/maven-metadata.xml from http://www.jasperforge.org/maven2 was cached …
Run Code Online (Sandbox Code Playgroud) 操作系统:ubuntu 11.10
Eclipse:面向Web开发人员的Java EE IDE.版本:Indigo Service Release 2构建ID:20120216-1857 Java:jdk1.7.0_03 SDK adb:Android Debug Bridge版本1.0.29
尝试使用m2e android(2.8.4)在eclipse中构建javaocr.它会导致项目在pom.xml中生成错误:
Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.8.4:generate-sources (execution: default-generate-sources, phase: generate-sources) pom.xml /javaocr-sampler line 20 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.8.4:unpack (execution: default-unpack, phase: process-classes) pom.xml /javaocr-sampler line 20 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.5:resources (execution: default-resources, phase: process-resources) pom.xml /javaocr-sampler line 11 …
Run Code Online (Sandbox Code Playgroud) 我在我的maven项目中添加了一个DLL作为依赖,如下所示:
<dependency>
<groupId>com.test.dll</groupId>
<artifactId>myDll</artifactId>
<version>0.1</version>
<type>dll</type>
</dependency>
Run Code Online (Sandbox Code Playgroud)
当我尝试执行时 maven:install
它给了我这个错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-
beta-5:single (jar-with-dependencies) on project testApp: Failed to create
assembly: Error adding file-set for 'com.test.dll:myDll:dll:0.1' to archive: Error
adding archived file-set. PlexusIoResourceCollection not found for: C:\Users\USER\.m2
\repository\com\test\dll\myDll\0.1\myDll-0.1.dll: No such archiver: 'dll'
Run Code Online (Sandbox Code Playgroud)
我在这做错了什么?
更新
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<keystore>src/main/keystore/mykey.keystore</keystore>
<alias>aliasname</alias>
<storepass>passw0rd</storepass>
<verify>true</verify>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>jar-with-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<archive>
<manifest>
</manifest> …
Run Code Online (Sandbox Code Playgroud) 有谁知道在当前工作空间中构建所有Maven项目的任何简单而有效的方法,例如,每个此类项目的maven clean install.
例如,可以选择多个项目并使用类似于$ {project_loc}的东西,或者获取一个弹出窗口,其中包含可能用于运行配置的项目吗?还是其他任何方式?
我正在使用Eclipse Juno.
首先,至少有2个帖子具有相同的问题,但这些解决方案不再起作用,至少在我的安装中不起作用.
我正在使用m2e与Eclipse和Android并尝试通过选择run as-> Android应用程序将该应用程序作为"Android应用程序"运行,但我总是收到此错误:
意外的顶级异常:java.lang.IllegalArgumentException:已添加:Lorg/hamcrest/BaseDescription;
...[2012-09-08 19:50:41 - net.mydomain.project-TRUNK]转换为Dalvik格式失败,错误1
这是工具R14部分中描述的问题.首先,这不能修复,因为我在ADT 20.0.3中遇到了这个问题.其次,我没有这些所谓的"_src"文件夹.我以前从未在Maven项目中见过它们,所以我不知道我现在该做什么.我连两次都没有链接库.至少我在项目中没有看到一些.任何想法如何让这个工作?
这是我的pom.xml,如果这有帮助:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven- v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.devgems.android</groupId>
<artifactId>kurzparkzonewien</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>apk</packaging>
<name>kurzparkzonewien</name>
<properties>
<platform.version>1.6_r2</platform.version>
<android.sdk.path>/opt/android-sdk-linux</android.sdk.path>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>${platform.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.0.1</version>
</dependency>
<!-- Make sure this is below the android dependencies -->
<dependency>
<groupId>com.pivotallabs</groupId>
<artifactId>robolectric</artifactId>
<version>1.0-RC1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<outputDirectory>target/classes</outputDirectory>
<testOutputDirectory>target/test-classes</testOutputDirectory>
<plugins> …
Run Code Online (Sandbox Code Playgroud) 我想知道m2e连接器是什么.除了这个页面,我在互联网上找不到很多描述它们的内容:
http://objectledge.org/confluence/display/TOOLS/M2E+Connectors
所以我的问题是:
我错误地点击了"在Eclipse偏好(实验)中Eclipse构建中忽略的标记目标运行":
在哪里/如何撤消这个?
如果我使用命令行命令如"mvn compile"和"mvn install",我会在目标目录下看到一个jar文件.
但是如果我使用m2e插件从Eclipse构建相同的项目,我看不到jar文件,只看到目标目录下的编译类目录,但它们是空的.对这个问题的任何见解?
如何使用Eclipse处理这个m2e插件问题:
描述资源路径位置类型生命周期映射"org.eclipse.m2e.jdt.JarLifecycleMapping"不可用.要启用完整功能,请安装生命周期映射并运行Maven->更新项目配置.pom.xml/vosao-web line 11 Maven项目构建生命周期映射问题
有人解决了这个问题吗?或者这个插件在Eclipse中根本不受支持?
我在我的系统上安装了eclipse 4.3,最近安装了Maven集成插件.我收到以下错误:
发现完成后未发现任何扩展.请检查您的网络连接,然后重试.
目录网址是 http://download.eclipse.org/technology/m2e/discovery/directory-1.4.xml
注意:没有代理,没有网络问题