java - Build Path Issue with Maven Dependencies (jconsole-jdk.jar) -
this question has answer here:
i switched wildfly 8.1 , can not resolve build (path) problem, somehow influenced arquillian test framework.
pom.xml:
<properties> <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> <project.build.sourceencoding>utf-8</project.build.sourceencoding> <version.org.jboss.arquillian>1.1.5.final</version.org.jboss.arquillian> <version.org.wildfly>8.1.0.final</version.org.wildfly> <version.junit>4.11</version.junit> </properties> <profiles> <profile> <id>arquillian-jbossas-remote</id> <dependencies> <dependency> <groupid>org.wildfly</groupid> <artifactid>wildfly-arquillian-container-remote</artifactid> <version>${version.org.wildfly}</version> <scope>test</scope> </dependency> </dependencies> </profile> </profiles> <dependencymanagement> <dependencies> <dependency> <groupid>org.jboss.arquillian</groupid> <artifactid>arquillian-bom</artifactid> <version>${version.org.jboss.arquillian}</version> <scope>import</scope> <type>pom</type> </dependency> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>${version.junit}</version> </dependency> </dependencies> </dependencymanagement> <dependencies> <dependency> <groupid>org.jboss.logging</groupid> <artifactid>jboss-logging</artifactid> <version>3.1.4.ga</version> <scope>provided</scope> </dependency> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> </dependency> <dependency> <groupid>org.jboss.arquillian.junit</groupid> <artifactid>arquillian-junit-container</artifactid> <scope>test</scope> </dependency> <dependency> <groupid>org.jboss.arquillian.protocol</groupid> <artifactid>arquillian-protocol-servlet</artifactid> <scope>test</scope> </dependency> </dependencies> <build> <pluginmanagement> <plugins> <plugin> <artifactid>maven-surefire-plugin</artifactid> <version>2.17</version> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-compiler-plugin</artifactid> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> <compilerarguments> <endorseddirs>${endorsed.dir}</endorseddirs> </compilerarguments> </configuration> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-ejb-plugin</artifactid> <version>2.3</version> <configuration> <ejbversion>3.1</ejbversion> </configuration> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-dependency-plugin</artifactid> <version>2.6</version> <executions> <execution> <phase>validate</phase> <goals> <goal>copy</goal> </goals> <configuration> <outputdirectory>${endorsed.dir}</outputdirectory> <silent>true</silent> <artifactitems> <artifactitem> <groupid>javax</groupid> <artifactid>javaee-endorsed-api</artifactid> <version>7.0</version> <type>jar</type> </artifactitem> </artifactitems> </configuration> </execution> </executions> </plugin> <!--this plugin's configuration used store eclipse m2e settings only. has no influence on maven build itself. --> <plugin> <groupid>org.eclipse.m2e</groupid> <artifactid>lifecycle-mapping</artifactid> <version>1.0.0</version> <configuration> <lifecyclemappingmetadata> <pluginexecutions> <pluginexecution> <pluginexecutionfilter> <groupid> org.apache.maven.plugins </groupid> <artifactid> maven-dependency-plugin </artifactid> <versionrange> [2.6,) </versionrange> <goals> <goal>copy</goal> </goals> </pluginexecutionfilter> <action> <ignore></ignore> </action> </pluginexecution> </pluginexecutions> </lifecyclemappingmetadata> </configuration> </plugin> </plugins> </pluginmanagement> </build>
errormessage (eclipse):
the container 'maven dependencies' references non existing library 'c:\users\user.m2\repository\sun\jdk\jconsole\jdk\jconsole-jdk.jar'
hope can me.
solution change eclipse vm jdk. eclipse used jre - configured jdk.
if else has same problem, add following in eclipse.ini:
-vm c:\program files\java\jdk1.7.0_60\bin\javaw.exe
important:
the entry has placed in first 2 lines - posted - in eclipse.ini !!! (eclipse luna , possibly others)
Comments
Post a Comment