Why am I running into org.codehaus.mojo:exec-maven-plugin:1.2.1:exec error?

I have the following simple pom.xml. When I run the application it runs into following error, I read many answers for this problem but they did not work out.

    ClientConfig config = new DefaultClientConfig();
    Client client = Client.create(config);
    WebResource resource = client.resource("Query Request Goes Here");
    List<Output> allOutputs = resource.get(new GenericType<List<Output>>(){});

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project eBaytest: 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.


<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/xsd/maven-4.0.0.xsd">






It looks like you're trying to set up a new Jersey project using Jersey 1.x. My first recommendation would be to use the latest 2.5.1. Also, you'll definitely want to be able to run Maven from the command line, so install that first. When you have that, follow these instructions to set up a new Jersey project, basically:

mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-grizzly2 \
-DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false \
-DgroupId=com.example -DartifactId=simple-service -Dpackage=com.example \

After that, make your changes and run:

mvn -e compile exec:java

If you get any errors then, you can come back here and share them with us.

Need Your Help

Facebook Graph API - Get all pages and APP manages

facebook facebook-graph-api

Is there a way to query for all access_tokens or page_ids that an app has access to? Instinctively I thought I could do me/accounts?access_token= but it looks like it returns all the pages I have ...

Illegal override of UIMovieClip in mx.flash.UIMovieClip

apache-flex flash runtime-error

I have no clue how to fix this problem... Please help.