|
From: Colin D. <co...@ma...> - 2018-05-13 21:49:37
|
I think it depends somewhat on what, if any, Eclipse plug-in you're using, but, try from the command line: mvn eclipse:eclipse and see if that helps. This will generate all the Eclipse project files and classpaths. Then you can just "Import Existing Projects". This is bypassing the Eclipse Maven plugin stuff, so may not be what you want. It works for me. I'm happy (about that, anyway). On 05/13/2018 01:16 PM, Daniel Enders wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > Hi together, > > > I am trying to use QuickFIX/J with Eclipse (version: Oxygen.3A) but Eclipse > shows me the following error: > > ‘Could not find artifact > org.quickfixj:quickfixj-codegenerator:jar:2.1.0-SNAPSHOT’ > Resource: pom.xml > Path: /quickfixj-core > Location: line 1 > Type: Maven pom Loading Problem > > I’ve used the following commands for Installation and Building: > > sudo add-apt-repository ppa:webupd8team/java > sudo apt-get update > sudo apt-get install oracle-java8-installer > sudo apt-get install git > cd /home/{username}/ > git init > cd .git > git clone https://github.com/quickfix-j/quickfixj.git > cd quickfixj > sudo apt-get install maven > mvn package > > From maven I got the following information on the terminal: ‘BUILD SUCCESS’. > Then I’ve selected in Eclipse ‘File/Import/Maven/Existing Maven Projects’. > Then I’ve just selected the directory /home/{username}/.git/quickfixj and > I’ve clicked ‘Finish’. > > My Linux distribution is Ubuntu 16.04.4 LTS (xenial) and my Apache Maven > version is 3.3.9. > > Do you know a solution for this error? > > > Many thanks for your help! > Best regards, > Daniel > > > My /quickfixj-core/pom.xml file contains the following: > > <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> > <parent> > <groupId>org.quickfixj</groupId> > <artifactId>quickfixj-parent</artifactId> > <version>2.1.0-SNAPSHOT</version> > </parent> > > <artifactId>quickfixj-core</artifactId> > <packaging>bundle</packaging> > > <name>QuickFIX/J Core engine</name> > <description>The core QuickFIX/J engine</description> > <url>http://www.quickfixj.org</url> > > <properties> > <acceptance.tests>**/AcceptanceTestSuite.java</acceptance.tests> > <mainClass>org.quickfixj.Version</mainClass> > </properties> > > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>${junit.version}</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.mockito</groupId> > <artifactId>mockito-all</artifactId> > <version>1.10.19</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.hamcrest</groupId> > <artifactId>hamcrest-all</artifactId> > <version>1.1</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>hsqldb</groupId> > <artifactId>hsqldb</artifactId> > <version>1.8.0.10</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>tyrex</groupId> > <artifactId>tyrex</artifactId> > <version>1.0.1</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-jdk14</artifactId> > <version>${slf4j.version}</version> > <scope>test</scope> > </dependency> > > <dependency> > <groupId>org.apache.mina</groupId> > <artifactId>mina-core</artifactId> > <version>2.0.17</version> > </dependency> > <dependency> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-api</artifactId> > <version>${slf4j.version}</version> > </dependency> > > <dependency> > <groupId>com.cloudhopper.proxool</groupId> > <artifactId>proxool</artifactId> > <version>0.9.1</version> > <optional>true</optional> > <exclusions> > > <exclusion> > <groupId>avalon-framework</groupId> > <artifactId>avalon-framework-api</artifactId> > </exclusion> > > <exclusion> > <groupId>commons-logging</groupId> > <artifactId>commons-logging</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>com.cloudhopper.proxool</groupId> > <artifactId>proxool-cglib</artifactId> > <version>0.9.1</version> > <optional>true</optional> > <exclusions> > > <exclusion> > <groupId>avalon-framework</groupId> > <artifactId>avalon-framework-api</artifactId> > </exclusion> > > <exclusion> > <groupId>commons-logging</groupId> > <artifactId>commons-logging</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > > <groupId>org.slf4j</groupId> > <artifactId>jcl-over-slf4j</artifactId> > <version>${slf4j.version}</version> > <scope>runtime</scope> > <optional>true</optional> > </dependency> > <dependency> > <groupId>berkeleydb</groupId> > <artifactId>je</artifactId> > <version>2.1.30</version> > <optional>true</optional> > </dependency> > </dependencies> > > <build> > <resources> > <resource> > > <directory>../quickfixj-messages/quickfixj-messages-fixt11/src/main/resources</directory> > </resource> > <resource> > > <directory>../quickfixj-messages/quickfixj-messages-fix50sp2/src/main/resources</directory> > </resource> > <resource> > > <directory>../quickfixj-messages/quickfixj-messages-fix50sp1/src/main/resources</directory> > </resource> > <resource> > > <directory>../quickfixj-messages/quickfixj-messages-fix50/src/main/resources</directory> > </resource> > <resource> > > <directory>../quickfixj-messages/quickfixj-messages-fix44/src/main/resources</directory> > </resource> > <resource> > > <directory>../quickfixj-messages/quickfixj-messages-fix43/src/main/resources</directory> > </resource> > <resource> > > <directory>../quickfixj-messages/quickfixj-messages-fix42/src/main/resources</directory> > </resource> > <resource> > > <directory>../quickfixj-messages/quickfixj-messages-fix41/src/main/resources</directory> > </resource> > <resource> > > <directory>../quickfixj-messages/quickfixj-messages-fix40/src/main/resources</directory> > </resource> > </resources> > > <testResources> > <testResource> > <directory>src/test/resources</directory> > </testResource> > <testResource> > > <directory>../quickfixj-messages/quickfixj-messages-fixt11/src/main/resources</directory> > </testResource> > <testResource> > > <directory>../quickfixj-messages/quickfixj-messages-fix50sp2/src/main/resources</directory> > </testResource> > <testResource> > > <directory>../quickfixj-messages/quickfixj-messages-fix50sp1/src/main/resources</directory> > </testResource> > <testResource> > > <directory>../quickfixj-messages/quickfixj-messages-fix50/src/main/resources</directory> > </testResource> > <testResource> > > <directory>../quickfixj-messages/quickfixj-messages-fix44/src/main/resources</directory> > </testResource> > <testResource> > > <directory>../quickfixj-messages/quickfixj-messages-fix43/src/main/resources</directory> > </testResource> > <testResource> > > <directory>../quickfixj-messages/quickfixj-messages-fix42/src/main/resources</directory> > </testResource> > <testResource> > > <directory>../quickfixj-messages/quickfixj-messages-fix41/src/main/resources</directory> > </testResource> > <testResource> > > <directory>../quickfixj-messages/quickfixj-messages-fix40/src/main/resources</directory> > </testResource> > <testResource> > <directory>src/main/resources</directory> > </testResource> > </testResources> > > <plugins> > <plugin> > <groupId>org.quickfixj</groupId> > <artifactId>quickfixj-codegenerator</artifactId> > <version>${project.version}</version> > <executions> > <execution> > <id>fixt11</id> > <goals> > <goal>generate</goal> > </goals> > <configuration> > > <dictFile>../quickfixj-messages/quickfixj-messages-fixt11/src/main/resources/FIXT11.xml</dictFile> > <packaging>quickfix.fixt11</packaging> > <fieldPackage>quickfix.field</fieldPackage> > <decimal>${generator.decimal}</decimal> > </configuration> > </execution> > <execution> > <id>fix50sp2</id> > <goals> > <goal>generate</goal> > </goals> > <configuration> > > <dictFile>../quickfixj-messages/quickfixj-messages-fix50sp2/src/main/resources/FIX50SP2.modified.xml</dictFile> > <packaging>quickfix.fix50sp2</packaging> > <fieldPackage>quickfix.field</fieldPackage> > <decimal>${generator.decimal}</decimal> > </configuration> > </execution> > <execution> > <id>fix50sp1</id> > <goals> > <goal>generate</goal> > </goals> > <configuration> > > <dictFile>../quickfixj-messages/quickfixj-messages-fix50sp1/src/main/resources/FIX50SP1.modified.xml</dictFile> > <packaging>quickfix.fix50sp1</packaging> > <fieldPackage>quickfix.field</fieldPackage> > <decimal>${generator.decimal}</decimal> > </configuration> > </execution> > <execution> > <id>fix50</id> > <goals> > <goal>generate</goal> > </goals> > <configuration> > > <dictFile>../quickfixj-messages/quickfixj-messages-fix50/src/main/resources/FIX50.xml</dictFile> > <packaging>quickfix.fix50</packaging> > <fieldPackage>quickfix.field</fieldPackage> > <decimal>${generator.decimal}</decimal> > </configuration> > </execution> > <execution> > <id>fix44</id> > <goals> > <goal>generate</goal> > </goals> > <configuration> > > <dictFile>../quickfixj-messages/quickfixj-messages-fix44/src/main/resources/FIX44.modified.xml</dictFile> > <packaging>quickfix.fix44</packaging> > <fieldPackage>quickfix.field</fieldPackage> > <decimal>${generator.decimal}</decimal> > </configuration> > </execution> > <execution> > <id>fix43</id> > <goals> > <goal>generate</goal> > </goals> > <configuration> > > <dictFile>../quickfixj-messages/quickfixj-messages-fix43/src/main/resources/FIX43.xml</dictFile> > <packaging>quickfix.fix43</packaging> > <fieldPackage>quickfix.field</fieldPackage> > <decimal>${generator.decimal}</decimal> > </configuration> > </execution> > <execution> > <id>fix42</id> > <goals> > <goal>generate</goal> > </goals> > <configuration> > > <dictFile>../quickfixj-messages/quickfixj-messages-fix42/src/main/resources/FIX42.xml</dictFile> > <packaging>quickfix.fix42</packaging> > <fieldPackage>quickfix.field</fieldPackage> > <decimal>${generator.decimal}</decimal> > </configuration> > </execution> > <execution> > <id>fix41</id> > <goals> > <goal>generate</goal> > </goals> > <configuration> > > <dictFile>../quickfixj-messages/quickfixj-messages-fix41/src/main/resources/FIX41.xml</dictFile> > <packaging>quickfix.fix41</packaging> > <fieldPackage>quickfix.field</fieldPackage> > <decimal>${generator.decimal}</decimal> > </configuration> > </execution> > <execution> > <id>fix40</id> > <goals> > <goal>generate</goal> > </goals> > <configuration> > > <dictFile>../quickfixj-messages/quickfixj-messages-fix40/src/main/resources/FIX40.xml</dictFile> > <packaging>quickfix.fix40</packaging> > <fieldPackage>quickfix.field</fieldPackage> > <decimal>${generator.decimal}</decimal> > </configuration> > </execution> > </executions> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-jar-plugin</artifactId> > <version>${maven-jar-plugin-version}</version> > <configuration> > <includes> > <include>quickfix/**</include> > <include>org/**</include> > <include>quickfix/field/converter/*</include> > <include>FIX*.xml</include> > </includes> > <excludes> > <exclude>quickfix/field/*</exclude> > <exclude>quickfix/fix*/**</exclude> > </excludes> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-source-plugin</artifactId> > <configuration> > <includes> > <include>quickfix/**</include> > <include>org/**</include> > <include>quickfix/field/converter/*</include> > <include>FIX*.xml</include> > </includes> > <excludes> > <exclude>quickfix/field/*</exclude> > <exclude>quickfix/fix*/**</exclude> > </excludes> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-javadoc-plugin</artifactId> > <version>${maven-javadoc-plugin-version}</version> > <executions> > <execution> > <id>attach-javadocs</id> > <goals> > <goal>jar</goal> > </goals> > <configuration> > > <additionalparam>-Xdoclint:none</additionalparam> > <maxmemory>3g</maxmemory> > > <includeDependencySources>false</includeDependencySources> > > <sourcepath>src/main/java</sourcepath> > </configuration> > </execution> > </executions> > </plugin> > <plugin> > <groupId>org.apache.felix</groupId> > <artifactId>maven-bundle-plugin</artifactId> > <configuration> > <instructions> > > <Export-Package>quickfix,quickfix.field.*,quickfix.mina.*,org.quickfixj.*</Export-Package> > <Import-Package> > > quickfix.fix40;resolution:=optional, > quickfix.fix41;resolution:=optional, > quickfix.fix42;resolution:=optional, > quickfix.fix43;resolution:=optional, > quickfix.fix44;resolution:=optional, > quickfix.fix50;resolution:=optional, > quickfix.fix50sp1;resolution:=optional, > quickfix.fix50sp2;resolution:=optional, > quickfix.fixt11;resolution:=optional, > > quickfix,quickfix.field,* > </Import-Package> > <Private-Package /> > </instructions> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <configuration> > <argLine>-Xmx512m > -Djava.net.preferIPv4Stack=true</argLine> > <trimStackTrace>false</trimStackTrace> > <includes> > <include>**/*Test.java</include> > <include>${acceptance.tests}</include> > </includes> > <excludes> > <exclude>**/*ForTest.java</exclude> > <exclude>**/Abstract*Test.java</exclude> > <exclude>**/AcceptanceTestSuite$*</exclude> > </excludes> > <systemPropertyVariables> > <atest.heartbeat>5</atest.heartbeat> > <atest.timeout>60000</atest.timeout> > <atest.reconnectDelay>5</atest.reconnectDelay> > <atest.skipslow>false</atest.skipslow> > </systemPropertyVariables> > </configuration> > </plugin> > </plugins> > </build> > > <reporting> > <plugins> > <plugin> > <artifactId>maven-surefire-report-plugin</artifactId> > <version>${maven-surefire-plugin-version}</version> > <reportSets /> > <configuration> > <showSuccess>true</showSuccess> > </configuration> > </plugin> > <plugin> > <artifactId>maven-jxr-plugin</artifactId> > <version>2.5</version> > </plugin> > </plugins> > </reporting> > > <profiles> > > <profile> > <id>skipAT</id> > <activation> > <property> > <name>skipAT</name> > <value>true</value> > </property> > </activation> > <properties> > <acceptance.tests /> > </properties> > </profile> > </profiles> > </project> > > > > > > -- > Sent from: http://quickfix-j.364392.n2.nabble.com/ > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users |