Development System:
Windows 8.1
Eclipse Version: 4.3.1.v20130911-1000
Apache Maven 3.2.1
Create a new OpenIMAJ project using: mvn -DarchetypeCatalog=http://maven.openimaj.org/archetype-catalog.xml archetype:generate
Choose archetype:
1: http://maven.openimaj.org/archetype-catalog.xml -> org.apache.maven.archetype
s:maven-archetype-quickstart (An archetype which contains a sample Maven project
.)
2: http://maven.openimaj.org/archetype-catalog.xml -> org.hibernate:hibernate-va
lidator-quickstart-archetype (-)
3: http://maven.openimaj.org/archetype-catalog.xml -> org.codehaus.mojo.archetyp
es:netbeans-platform-app-archetype (Archetype for sample application based on Ne
tBeans Platform. Creates parent POM with branding and empty NBM project.)
4: http://maven.openimaj.org/archetype-catalog.xml -> org.openimaj:openimaj-quic
kstart-archetype (Maven quickstart archetype for OpenIMAJ)
5: http://maven.openimaj.org/archetype-catalog.xml -> org.openimaj:openimaj-subp
roject-archetype (Maven archetype for creating OpenIMAJ subprojects with the mos
t of the standard configuration completed automatically)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive co
ntains): 1:
Choose org.apache.maven.archetypes:maven-archetype-quickstart version:
1: 1.0
2: 1.1
Choose a number: 2:
.....
cd into new folder "tutorial1"
Assembly
C:\Users\graham\Development\Projects\Java\tutorial01>mvn assembly:single [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea
ded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building tutorial01 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-assembly-plugin:2.2-beta-5:single (default-cli) @ tutorial01 --
- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.013 s [INFO] Finished at: 2014-05-21T18:38:09+01:00 [INFO] Final Memory: 7M/244M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.
2-beta-5:single (default-cli) on project tutorial01: Error reading assemblies: N
o assembly descriptors found. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please rea
d the following articles: [ERROR][Help 1]http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
C:\Users\graham\Development\Projects\Java\tutorial01>
What am I missing?? I'm new to Maven and the available documentation is very limited.
Thanks for for assistance..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You need to choose the "org.openimaj:openimaj-quickstart-archetype (Maven quickstart archetype for OpenIMAJ)" (number 4 in your list), rather than number 1, which is the default maven project archetype.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-05-22
Thanks Jonathan for the fast response. Changing the quickstart type made the difference. Regards..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I trying to evaluate OpenIMAJ: using the basic tutorial as reference.
http://www.openimaj.org/tutorial/index.html
Development System:
Windows 8.1
Eclipse Version: 4.3.1.v20130911-1000
Apache Maven 3.2.1
Choose archetype:
1: http://maven.openimaj.org/archetype-catalog.xml -> org.apache.maven.archetype
s:maven-archetype-quickstart (An archetype which contains a sample Maven project
.)
2: http://maven.openimaj.org/archetype-catalog.xml -> org.hibernate:hibernate-va
lidator-quickstart-archetype (-)
3: http://maven.openimaj.org/archetype-catalog.xml -> org.codehaus.mojo.archetyp
es:netbeans-platform-app-archetype (Archetype for sample application based on Ne
tBeans Platform. Creates parent POM with branding and empty NBM project.)
4: http://maven.openimaj.org/archetype-catalog.xml -> org.openimaj:openimaj-quic
kstart-archetype (Maven quickstart archetype for OpenIMAJ)
5: http://maven.openimaj.org/archetype-catalog.xml -> org.openimaj:openimaj-subp
roject-archetype (Maven archetype for creating OpenIMAJ subprojects with the mos
t of the standard configuration completed automatically)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive co
ntains): 1:
Choose org.apache.maven.archetypes:maven-archetype-quickstart version:
1: 1.0
2: 1.1
Choose a number: 2:
.....
cd into new folder "tutorial1"
Assembly
C:\Users\graham\Development\Projects\Java\tutorial01>mvn assembly:single
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea
ded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building tutorial01 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-5:single (default-cli) @ tutorial01 --
-
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.013 s
[INFO] Finished at: 2014-05-21T18:38:09+01:00
[INFO] Final Memory: 7M/244M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.
2-beta-5:single (default-cli) on project tutorial01: Error reading assemblies: N
o assembly descriptors found. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
C:\Users\graham\Development\Projects\Java\tutorial01>
What am I missing?? I'm new to Maven and the available documentation is very limited.
Thanks for for assistance..
You need to choose the "org.openimaj:openimaj-quickstart-archetype (Maven quickstart archetype for OpenIMAJ)" (number 4 in your list), rather than number 1, which is the default maven project archetype.
Thanks Jonathan for the fast response. Changing the quickstart type made the difference. Regards..
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi Jonathan, wouldn't it better to add this information in the tutorial pdf?
The tutorial already specifically says to choose the "openimaj-quickstart-archetype", but I guess we can make that clearer...