Created
January 11, 2018 10:59
-
-
Save gdegani/786f19fa40e40f4c560165f2698ca1e9 to your computer and use it in GitHub Desktop.
Output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building imagga 0.1.0 | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- build-helper-maven-plugin:3.0.0:add-source (add_sources) @ imagga --- | |
[INFO] Source directory: /Users/giancarlo/Downloads/cancellami/Imagga-java/src/main/java added. | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imagga --- | |
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! | |
[INFO] skip non existing resourceDirectory /Users/giancarlo/Downloads/cancellami/Imagga-java/src/main/resources | |
[INFO] | |
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ imagga --- | |
[INFO] Nothing to compile - all classes are up to date | |
[INFO] | |
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ imagga --- | |
Calling endpoint: categorize | |
ApiException caught: {"status": "error", "message": "The api credentials you have provided are not valid.", "type": "invalid_api_credentials"} | |
Calling endpoint: croppings | |
ApiException caught: {"status": "error", "message": "The api credentials you have provided are not valid.", "type": "invalid_api_credentials"} | |
Calling endpoint: extract_colors | |
ApiException caught: {"status": "error", "message": "The api credentials you have provided are not valid.", "type": "invalid_api_credentials"} | |
Calling endpoint: list_categorizers | |
ApiException caught: {"status": "error", "message": "The api credentials you have provided are not valid.", "type": "invalid_api_credentials"} | |
Calling endpoint: tagging | |
ApiException caught: {"status": "error", "message": "The api credentials you have provided are not valid.", "type": "invalid_api_credentials"} | |
Calling endpoint: upload |
Thin about Netbeans as a wrapper around Maven, if the app works with maven it should work even in Netbeans.
So, my suggestion is to test the file using maven from the command line as suggested in the example:
After the command mvn install, run the command
// Run this file:
// cd Imagga-java
// mvn compile exec:java -Dexec.mainClass="com.imagga.api.imagga.ImaggaTest"
mvn compile exec:java -Dexec.mainClass="com.imagga.api.imagga.ImaggaTest"
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.imagga.api:imagga:jar:0.1.0
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 68, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[WARNING] The project com.imagga.api:imagga:jar:0.1.0 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building imagga 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:add-source (add_sources) @ imagga ---
[INFO] Source directory: C:\cygwin64\home\fatto\Imagga-java\src\main\java added.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imagga ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\cygwin64\home\fatto\Imagga-java\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ imagga ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ imagga ---
[WARNING]
java.lang.ClassNotFoundException: com.imagga.api.imagga.ImaggaTest
at java.net.URLClassLoader.findClass (URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass (ClassLoader.java:424)
at java.lang.ClassLoader.loadClass (ClassLoader.java:357)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:270)
at java.lang.Thread.run (Thread.java:748)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.317 s
[INFO] Finished at: 2018-01-11T14:37:22+03:00
[INFO] Final Memory: 12M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project imagga: An exception occured while executing the Java class. com.imagga.api.imagga.ImaggaTest -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
unfortunately the same result I got. How can I run maven with -e ?
It is really strange... try installing maven directly on windows, without Cygwin
I tried to modify things and now this is what I got
cd C:\Users\fatto\Documents\NetBeansProjects\mavenproject2; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_151" cmd /c "\"\"C:\\Program Files\\NetBeans 8.2\\java\\maven\\bin\\mvn.bat\" -Dexec.args=\"-classpath %classpath com.imagga.api.mavenproject2.Main\" -Dexec.executable=\"C:\\Program Files\\Java\\jdk1.8.0_151\\bin\\java.exe\" -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec\""
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
Scanning for projects...
------------------------------------------------------------------------
Building mavenproject2 0.1.0
------------------------------------------------------------------------
--- exec-maven-plugin:1.2.1:exec (default-cli) @ mavenproject2 ---
Calling endpoint: categorize
class CategorizationResponse {
results: [class CategorizationResult {
categories: [class Category {
confidence: 99.32
name: sunrises sunsets
}
, class Category {
confidence: 0.62
name: beaches seaside
}
]
image: http://playground.imagga.com/static/img/example_photo.jpg
}
]
unsuccessful: []
}
Calling endpoint: croppings
class CroppingsResponse {
results: []
unsuccessful: [class UnsuccessfulResult {
image: http://imagga.com/static/images/tagging/wind-farm-538576_640.jpg
info: list index out of range
}
]
}
Calling endpoint: extract_colors
class ColorsResponse {
results: [class ColorsResult {
image: http://imagga.com/static/images/tagging/wind-farm-538576_640.jpg
info: class Info {
background_colors: [class BackgroundColor {
b: 146
closest_palette_color: larkspur
closest_palette_color_html_code: #6e7e99
closest_palette_color_parent: blue
closest_palette_distance: 6.6073017
g: 121
html_code: #527992
percentage: 48.55
r: 82
}
, class BackgroundColor {
b: 46
closest_palette_color: light bronze
closest_palette_color_html_code: #8c5e37
closest_palette_color_parent: skin
closest_palette_distance: 1.8990713
g: 91
html_code: #8a5b2e
percentage: 39.9
r: 138
}
, class BackgroundColor {
b: 37
closest_palette_color: brownie
closest_palette_color_html_code: #584039
closest_palette_color_parent: brown
closest_palette_distance: 6.0269537
g: 55
html_code: #553725
percentage: 11.54
r: 85
}
]
color_percent_threshold: 1.75
color_variance: 29
foreground_colors: [class ForegroundColor {
b: 50
closest_palette_color: latte
closest_palette_color_html_code: #5d473a
closest_palette_color_parent: brown
closest_palette_distance: 2.7458117
g: 69
html_code: #604532
percentage: 48.72
r: 96
}
, class ForegroundColor {
b: 145
closest_palette_color: champagne
closest_palette_color_html_code: #baaa91
closest_palette_color_parent: light brown
closest_palette_distance: 3.8954647
g: 164
html_code: #bca491
percentage: 33.44
r: 188
}
, class ForegroundColor {
b: 39
closest_palette_color: wild berry
closest_palette_color_html_code: #582147
closest_palette_color_parent: plum
closest_palette_distance: 12.883718
g: 4
html_code: #380427
percentage: 17.85
r: 56
}
]
image_colors: [class ImageColor {
b: 44
closest_palette_color: medium brown
closest_palette_color_html_code: #7c5a2c
closest_palette_color_parent: skin
closest_palette_distance: 4.336374
g: 82
html_code: #7d522c
percent: 50.53
r: 125
}
, class ImageColor {
b: 146
closest_palette_color: cerulean
closest_palette_color_html_code: #0074a8
closest_palette_color_parent: blue
closest_palette_distance: 5.940798
g: 113
html_code: #397192
percent: 31.23
r: 57
}
, class ImageColor {
b: 143
closest_palette_color: pewter
closest_palette_color_html_code: #84898c
closest_palette_color_parent: grey
closest_palette_distance: 3.3608043
g: 135
html_code: #7a878f
percent: 18.14
r: 122
}
]
object_percentage: 2.01
}
}
]
unsuccessful: []
}
Calling endpoint: list_categorizers
[class CategorizersList {
id: food289
labels: [winesap, collards, jonathan, plumcot, sugar beet, hubbard squash, ceriman, red delicious, pineapple, sorb, lentil, rome beauty, beach plum, kohlrabi, sultana, mangel-wurzel, jaboticaba, boston lettuce, mango, papaw, stayman winesap, soursop, pomegranate, black-eyed pea, peach, fig, parsnip, casaba, red cabbage, bok choy, cortland, feijoa, cox's orange pippin, persimmon, durian, pitahaya, greengage, catawba, fordhooks, radicchio, loquat, kentucky wonder, apricot, melon ball, bartlett, prickly pear, elderberry, french fries, uruguay potato, pattypan squash, buttercup squash, turnip greens, belgian endive, pulasan, globe pepper, jacket potato, beefsteak tomato, amarelle, lemon, pimento, huckleberry, leaf lettuce, spinach, raspberry, french sorrel, cauliflower, sapote, gherkin, satsuma, capulin, sugar snap pea, prune, frijole, bean sprout, lamb's-quarter, marrowfat pea, saskatoon, granny smith, rose apple, home fries, plum tomato, pinto bean, cajan pea, tomatillo, red currant, string bean, jaffa orange, pulse, bramley's seedling, dewberry, asparagus, morello, snap bean, butternut squash, muscat, carrot, bermuda onion, potherb, mangosteen, medlar, gooseberry, haricot vert, mashed potato, spaghetti squash, bitter orange, flageolet, net melon, pascal celery, marrow, scuppernong, mamey, chickpea, quandong, truffle, valencia orange, navel orange, vidalia onion, sorrel, julienne, split-pea, cranberry, scarlet runner, snow pea, bilberry, anjou, pumpkin, ackee, dried apricot, chipotle, baldwin, green onion, crisphead lettuce, litchi, hog plum, navy bean, chard, victoria plum, sieva bean, watercress, gumbo, bibb lettuce, tamarind, damson, garden cress, pond apple, seedless raisin, cocozelle, lane's prince albert, acerola, cayenne, green soybean, bamboo shoot, chinese cabbage, empire, currant, yam, salad burnet, scorzonera, savoy cabbage, alfalfa sprout, loganberry, jujube, guava, macoun, winter crookneck squash, fava bean, cardoon, canistel, brussels sprouts, granadilla, radish, mustard, tangelo, oyster plant, cherimoya, nectarine, northern spy, green pepper, bell pepper, field soybean, blueberry, ribier, persian melon, cushaw, longanberry, key lime, carissa plum, field pea, pomelo, plantain, dandelion green, sweet calabash, grimes' golden, kiwi, mombin, date, wax bean, taro, celeriac, cling, anchovy pear, kumquat, marang, honeydew, beet green, artichoke heart, rambutan, golden delicious, boysenberry, crookneck, jerusalem artichoke, wild spinach, tangerine, eggplant, concord grape, zucchini, sloe, buttercrunch, genip, watermelon, flame tokay, sweetsop, grapefruit, kai apple, wintergreen, stayman, strawberry, emperor, broccoli rabe, pearmain, freestone, leek, crab apple, bosc, papaya, black currant, jackfruit, shallot, acorn squash, celtuce, blackberry, sapodilla, rutabaga, black bean, seeded raisin, ketembilla, artichoke, quince, lingonberry, goa bean, windfall, winter cress, avocado, banana, bing cherry, seckel, cos, white turnip, mulberry, carambola, breadfruit, kidney bean, citron, fennel, raw vegetable, citrange, bell apple, clementine, pieplant, cantaloup, mushroom, tabasco, chop-suey greens, purple onion, broccoli, thompson seedless, prima]
title: Food 289
}
, class CategorizersList {
id: personal_photos
labels: [interior objects, nature landscape, beaches seaside, events parties, food drinks, paintings art, pets animals, text visuals, sunrises sunsets, cars vehicles, macro flowers, streetview architecture, people portraits]
title: Personal Photos Categorizer
}
, class CategorizersList {
id: nsfw_beta
labels: [nsfw, safe, underwear]
title: NSFW Categorizer (beta v2)
}
, class CategorizersList {
id: food101
labels: [apple pie, baby back ribs, baklava, beef carpaccio, beef tartare, beet salad, beignets, bibimbap, bread pudding, breakfast burrito, bruschetta, caesar salad, cannoli, caprese salad, carrot cake, ceviche, cheese plate, cheesecake, chicken curry, chicken quesadilla, chicken wings, chocolate cake, chocolate mousse, churros, clam chowder, club sandwich, crab cakes, creme brulee, croque madame, cup cakes, deviled eggs, donuts, dumplings, edamame, eggs benedict, escargots, falafel, filet mignon, fish and chips, foie gras, french fries, french onion soup, french toast, fried calamari, fried rice, frozen yogurt, garlic bread, gnocchi, greek salad, grilled cheese sandwich, grilled salmon, guacamole, gyoza, hamburger, hot and sour soup, hot dog, huevos rancheros, hummus, ice cream, lasagna, lobster bisque, lobster roll sandwich, macaroni and cheese, macarons, miso soup, mussels, nachos, omelette, onion rings, oysters, pad thai, paella, pancakes, panna cotta, peking duck, pho, pizza, pork chop, poutine, prime rib, pulled pork sandwich, ramen, ravioli, red velvet cake, risotto, samosa, sashimi, scallops, seaweed salad, shrimp and grits, spaghetti bolognese, spaghetti carbonara, spring rolls, steak, strawberry shortcake, sushi, tacos, takoyaki, tiramisu, tuna tartare, waffles]
title: Food 101
}
]
Calling endpoint: tagging
class TaggingResponse {
results: [class TaggingResult {
image: http://imagga.com/static/images/tagging/wind-farm-538576_640.jpg
tags: [class Tag {
confidence: 100.0
tag: turbine
}
, class Tag {
confidence: 45.382034
tag: electricity
}
, class Tag {
confidence: 44.894882
tag: sky
}
, class Tag {
confidence: 42.92415
tag: energy
}
, class Tag {
confidence: 42.23602
tag: wind
}
, class Tag {
confidence: 40.346558
tag: power
}
, class Tag {
confidence: 39.52731
tag: environment
}
, class Tag {
confidence: 38.719112
tag: landscape
}
, class Tag {
confidence: 37.750652
tag: generator
}
, class Tag {
confidence: 34.513214
tag: alternative
}
, class Tag {
confidence: 34.40305
tag: windmill
}
, class Tag {
confidence: 31.442001
tag: mill
}
, class Tag {
confidence: 29.059772
tag: electric
}
, class Tag {
confidence: 28.582226
tag: farm
}
, class Tag {
confidence: 28.518984
tag: renewable
}
, class Tag {
confidence: 26.918673
tag: generation
}
, class Tag {
confidence: 25.958
tag: field
}
, class Tag {
confidence: 24.788574
tag: industry
}
, class Tag {
confidence: 22.240519
tag: net
}
, class Tag {
confidence: 21.78788
tag: conservation
}
, class Tag {
confidence: 21.682463
tag: generate
}
, class Tag {
confidence: 20.059883
tag: technology
}
, class Tag {
confidence: 19.787273
tag: environmental
}
, class Tag {
confidence: 19.269493
tag: ecology
}
, class Tag {
confidence: 18.79309
tag: turbines
}
, class Tag {
confidence: 18.678587
tag: rotate
}
, class Tag {
confidence: 17.678236
tag: rotation
}
, class Tag {
confidence: 17.642515
tag: spin
}
, class Tag {
confidence: 16.877367
tag: hill
}
, class Tag {
confidence: 16.640265
tag: innovation
}
, class Tag {
confidence: 16.617989
tag: grass
}
, class Tag {
confidence: 16.359089
tag: industrial
}
, class Tag {
confidence: 16.270723
tag: road
}
, class Tag {
confidence: 16.131561
tag: tower
}
, class Tag {
confidence: 16.073004
tag: clouds
}
, class Tag {
confidence: 15.828141
tag: wind turbine
}
, class Tag {
confidence: 15.798395
tag: sustainable
}
, class Tag {
confidence: 15.77296
tag: propeller
}
, class Tag {
confidence: 15.5688925
tag: ecological
}
, class Tag {
confidence: 14.894577
tag: equipment
}
, class Tag {
confidence: 14.247268
tag: mountain
}
, class Tag {
confidence: 13.324145
tag: development
}
, class Tag {
confidence: 13.282914
tag: desert
}
, class Tag {
confidence: 12.99536
tag: plant
}
, class Tag {
confidence: 12.92716
tag: cloud
}
, class Tag {
confidence: 12.787532
tag: efficiency
}
, class Tag {
confidence: 12.775217
tag: global
}
, class Tag {
confidence: 12.686594
tag: travel
}
, class Tag {
confidence: 12.681247
tag: pole
}
, class Tag {
confidence: 12.647154
tag: blade
}
, class Tag {
confidence: 12.552059
tag: supply
}
, class Tag {
confidence: 12.341322
tag: climate
}
, class Tag {
confidence: 12.2741375
tag: tree
}
, class Tag {
confidence: 11.863659
tag: generating
}
, class Tag {
confidence: 11.72077
tag: antenna
}
, class Tag {
confidence: 11.715128
tag: horizon
}
, class Tag {
confidence: 11.619413
tag: station
}
, class Tag {
confidence: 11.58773
tag: sand
}
, class Tag {
confidence: 11.278644
tag: metal
}
, class Tag {
confidence: 10.943838
tag: summer
}
, class Tag {
confidence: 10.8949
tag: nobody
}
, class Tag {
confidence: 10.77486
tag: meadow
}
, class Tag {
confidence: 10.584682
tag: pollution
}
, class Tag {
confidence: 10.5825
tag: rural
}
, class Tag {
confidence: 10.546558
tag: country
}
, class Tag {
confidence: 10.035142
tag: clean
}
, class Tag {
confidence: 9.966163
tag: weather
}
, class Tag {
confidence: 9.890351
tag: windmills
}
, class Tag {
confidence: 9.885654
tag: sustainability
}
, class Tag {
confidence: 9.83418
tag: resource
}
, class Tag {
confidence: 9.766967
tag: warming
}
, class Tag {
confidence: 9.73562
tag: production
}
, class Tag {
confidence: 9.6727705
tag: fields
}
, class Tag {
confidence: 9.670009
tag: sun
}
, class Tag {
confidence: 9.158127
tag: friendly
}
, class Tag {
confidence: 8.871066
tag: rod
}
, class Tag {
confidence: 8.782345
tag: agriculture
}
, class Tag {
confidence: 8.780486
tag: line
}
, class Tag {
confidence: 8.663635
tag: scene
}
, class Tag {
confidence: 8.59495
tag: empty
}
, class Tag {
confidence: 8.430178
tag: sport
}
, class Tag {
confidence: 8.404203
tag: ocean
}
, class Tag {
confidence: 8.243218
tag: park
}
, class Tag {
confidence: 8.220142
tag: outdoors
}
, class Tag {
confidence: 8.0793705
tag: beach
}
, class Tag {
confidence: 7.9126077
tag: rotating
}
, class Tag {
confidence: 7.8973384
tag: blades
}
, class Tag {
confidence: 7.825399
tag: sea
}
, class Tag {
confidence: 7.775442
tag: fence
}
, class Tag {
confidence: 7.763333
tag: hills
}
, class Tag {
confidence: 7.715435
tag: fuel
}
, class Tag {
confidence: 7.7037606
tag: change
}
, class Tag {
confidence: 7.2212663
tag: scenery
}
, class Tag {
confidence: 7.1963243
tag: sunset
}
]
}
]
unsuccessful: null
}
Calling endpoint: upload
Exception in thread "main" com.sun.jersey.api.client.ClientHandlerException: java.io.FileNotFoundException: \path\to\file (The system cannot find the path specified)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
at com.sun.jersey.api.client.Client.handle(Client.java:648)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:563)
at com.imagga.api.client.ApiInvoker.invokeAPI(ApiInvoker.java:229)
at com.imagga.api.imagga.api.ContentApi.upload(ContentApi.java:74)
at com.imagga.api.mavenproject2.Main.testUploadContent(Main.java:122)
at com.imagga.api.mavenproject2.Main.main(Main.java:171)
Caused by: java.io.FileNotFoundException: \path\to\file (The system cannot find the path specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.sun.jersey.core.impl.provider.entity.FileProvider.writeTo(FileProvider.java:101)
at com.sun.jersey.core.impl.provider.entity.FileProvider.writeTo(FileProvider.java:64)
at com.sun.jersey.multipart.impl.MultiPartWriter.writeTo(MultiPartWriter.java:224)
at com.sun.jersey.multipart.impl.MultiPartWriter.writeTo(MultiPartWriter.java:71)
at com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:311)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:204)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:147)
... 8 more
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 18.751s
Finished at: Thu Jan 11 21:52:12 AST 2018
Final Memory: 5M/155M
------------------------------------------------------------------------
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project mavenproject2: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Thanks brother the path I provided was wrong and I corrected it. Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mr.gdegani please I want to make sure abou the steps you did.
I'm a beginner in maven and using Imagga web service. Let me explain what I did from that tutorial.
I used cygwin after I download maven to execute the commands:
{
wget https://s3-us-west-1.amazonaws.com/files1.restunited.com/libraries/imagga/beta/0/1/0/sw/Imagga-beta-0.1.0-java.tar.gz
tar mzxvf Imagga-beta-0.1.0-java.tar.gz
cd Imagga-java
mvn install
}
and it works fine with me.
Then the next steps is the one that I'm not sure about. please tell me the exact steps to approach it using netbeans. should I create a new project or import existing project? I'm not sure about that