Notice the [ERROR] sections above......and I'm stuck again....phew.
Eventually I want to use eclipse, so I moved on to the next paragraph and did the eclipse lines. I get it loaded in eclipse, but eclipse gives error indicators for the lines that import junit.......
I'm quite lost in what I am actually doing.....
R.
Last edit: spamrefuse 2017-09-01
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You almost certainly selected the wrong archetype from the list after running archetype:generate (probably one the maven-quickstart-archetype, rather than the openimaj-quickstart-archetype). Once you've created the project (using archetype:generate), you should be able to load into a recent eclipse without running mvn eclipse:eclipse by just using the option in eclipse to import an existing maven project (e.g. File->Import...->Maven/Existing Maven Project).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
This is on Ubuntu 17.04, x86_64.
I follow the guidelines from here:
http://openimaj.org/tutorial/getting-started-with-openimaj-using-maven.html
as follows:
I am now stuck with the error message.
Is this a Maven problem or an OpenImagj bug?
Thanks,
R.
Last edit: spamrefuse 2017-09-01
A bit of both. Version 3 of the maven archetype plugin broke support for remote catalogs (see https://issues.apache.org/jira/browse/ARCHETYPE-519). This obviously impacts the tutorial. There is an issue to track this (basically the tutorial needs to be updated with one of the work-arounds) here: https://github.com/openimaj/openimaj/issues/134.
TLDR:
mvn -DarchetypeCatalog=http://maven.openimaj.org/archetype-catalog.xml org.apache.maven.plugins:maven-archetype-plugin:2.4:generateshould workOK; with that I got a few steps further in the process.
At the end of the "getting started" tutorial I create a "target/foobar-1.0-SNAPSHOT.jar". There is no "-jar-with-dependencies.jar":
Notice the [ERROR] sections above......and I'm stuck again....phew.
Eventually I want to use eclipse, so I moved on to the next paragraph and did the eclipse lines. I get it loaded in eclipse, but eclipse gives error indicators for the lines that import junit.......
I'm quite lost in what I am actually doing.....
R.
Last edit: spamrefuse 2017-09-01
You almost certainly selected the wrong archetype from the list after running archetype:generate (probably one the
maven-quickstart-archetype, rather than theopenimaj-quickstart-archetype). Once you've created the project (usingarchetype:generate), you should be able to load into a recent eclipse without runningmvn eclipse:eclipseby just using the option in eclipse to import an existing maven project (e.g. File->Import...->Maven/Existing Maven Project).Bingo! And thank you!!!
The "Hello World" window is now generated with Maven / Eclipse.
Time to get my hands dirty with other OpenImaj stuff...
R.