| Summary: | Unable to resolve an existing maven project. | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Sean Campbell <scampb3ll> |
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | igor |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
closing old/stale bugreports |
Build Identifier: 20110615-0604 m2e - Maven Integration for Eclipse 1.0.0.20110607-2117 I am attempting to use the Materialize Maven Project from SCM feature on an ear project that exists in our local maven repo. Other projects work but seemingly the ear ones don't( not 100 percent sure if thats a clue.) I added some debugging into MavenProjectPomScanner where the exception was being caught to get the following stack trace: org.eclipse.core.runtime.CoreException: Could not resolve artifact vwc-dynamic:v wc-core-services-ear:pom:3.7.0-SNAPSHOT at org.eclipse.m2e.core.internal.embedder.MavenImpl.resolve(MavenImpl.ja va:624) at org.eclipse.m2e.scm.MavenProjectPomScanner.resolveModel(MavenProjectP omScanner.java:203) at org.eclipse.m2e.scm.MavenProjectPomScanner.run(MavenProjectPomScanner .java:78) at org.eclipse.m2e.scm.internal.wizards.MavenMaterializePomWizard$2.getP rojects(MavenMaterializePomWizard.java:137) at org.eclipse.m2e.scm.internal.wizards.MavenMaterializePomWizard$2.getP rojects(MavenMaterializePomWizard.java:1) at org.eclipse.m2e.scm.internal.wizards.MavenProjectCheckoutJob.runInWor kspace(MavenProjectCheckoutJob.java:108) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Internal WorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Contains: Missing vwc-dynamic:vwc-core-services-ear:pom:3.7.0-SNAPSHOT The pom file for the project in question: <?xml version="1.0"?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>vwc-dynamic</groupId> <artifactId>vwc-core-services-ear</artifactId> <packaging>ear</packaging> <name>vwc-core-services-ear</name> <url>http://maven.apache.org</url> <parent> <groupId>vwc-pom</groupId> <artifactId>vwc-parent-pom</artifactId> <version>3.7.0-SNAPSHOT</version> </parent> <scm> <connection>scm:svn:http://svnserv.vwc.state.va.us/tapdev/trunk/core/business/vwc-core-services-ear</connection> <tag>HEAD</tag> </scm> <dependencies> <dependency> <groupId>vwc-dynamic</groupId> <artifactId>vwc-core-service</artifactId> </dependency> <dependency> <groupId>vwc-dynamic</groupId> <artifactId>vwc-core-system-service</artifactId> </dependency> <dependency> <groupId>vwc-dynamic</groupId> <artifactId>vwc-aspects</artifactId> <scope>provided</scope> </dependency> <dependency> <artifactId>vwc-core-schema</artifactId> <groupId>vwc-dynamic</groupId> <scope>provided</scope> </dependency> <dependency> <artifactId>stax-api</artifactId> <groupId>stax</groupId> <version>[0.01,100]</version> <scope>provided</scope> </dependency> <dependency> <artifactId>vwc-imaging-client</artifactId> <groupId>vwc-dynamic</groupId> <scope>provided</scope> </dependency> <dependency> <artifactId>vwc-print-client</artifactId> <groupId>vwc-dynamic</groupId> <scope>provided</scope> </dependency> <dependency> <artifactId>vwc-print-service</artifactId> <groupId>vwc-dynamic</groupId> <scope>provided</scope> </dependency> <dependency> <artifactId>vwc-workevent-schema</artifactId> <groupId>vwc-dynamic</groupId> <scope>provided</scope> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-ear-plugin</artifactId> <version>2.4.2</version> <configuration> <version>5</version> <finalName>${artifactId}</finalName> <defaultLibBundleDir>lib</defaultLibBundleDir> <earSourceDirectory>${basedir}</earSourceDirectory> <earSourceIncludes>core-cache-config-service.xml,ldap-cache-config-service.xml</earSourceIncludes> <modules> <jarModule> <groupId>vwc-dynamic</groupId> <artifactId>vwc-core-service</artifactId> <bundleFileName>vwc-core-service.jar</bundleFileName> <bundleDir>/</bundleDir> <includeInApplicationXml>true</includeInApplicationXml> </jarModule> <jarModule> <groupId>vwc-dynamic</groupId> <artifactId>vwc-core-system-service</artifactId> <bundleFileName>vwc-core-system-service.jar</bundleFileName> <bundleDir>/</bundleDir> <includeInApplicationXml>true</includeInApplicationXml> </jarModule> </modules> </configuration> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.4.3</version> <executions> <execution> <id>copy-resources</id> <phase>validate</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/${project.build.finalName}/META-INF</outputDirectory> <resources> <resource> <directory>${basedir}/META-INF</directory> <includes> <include>jboss-app.xml</include> </includes> <filtering>true</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin> </plugins> </build> </project> Reproducible: Always Steps to Reproduce: 1. Open Indigo with latest m2e( But also tried Helios with an older version of m2e) 2. Import ->Maven->Materialize Maven Project from SCM 3. Click Add 4. Search for and select the ear project mentioned. 5. Error is displayed in console and the "import maven projects" panel is empty.