Can't build example

348 views
Skip to first unread message

Stephen Dennison

unread,
Jun 7, 2013, 4:08:04 PM6/7/13
to jp...@googlegroups.com
I'm unable to run the examples using the details from the README located in the examples folder after doing an svn checkout.
I'm almost entirely new to mvn so I have no idea how to fix this.
Please advise.

Here's what I did:
svn checkout http://jpoxy.googlecode.com/svn/trunk/ jpoxy-read-only
cd jpoxy-read-only/example
mvn jetty:run

And here's the output I get:
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.jpoxy:example:war:1.0.9
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 89, column 21
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:keytool-maven-plugin is missing. @ line 96, column 21
[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] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building jpoxy-example 1.0.9
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.395s
[INFO] Finished at: Fri Jun 07 16:13:12 EDT 2013
[INFO] Final Memory: 3M/59M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'genkey' in plugin org.codehaus.mojo:keytool-maven-plugin:1.3 among available goals generateSecretKey, printCRLFile, printCertificateRequest, generateCertificate, printCertificate, importKeystore, generateCertificateRequest, generateKeyPair, changeStorePassword, clean, changeKeyPassword, deleteAlias, exportCertificate, list, importCertificate, changeAlias, help -> [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:


Stephen Dennison

unread,
Jun 7, 2013, 4:18:34 PM6/7/13
to jp...@googlegroups.com
Looks like the genkey goal was renamed to generateKeyPair.
I edited the pom.xml so that line 111 now says generateKeyPair instead of genkey and it now builds and runs.

Wes Widner

unread,
Jun 7, 2013, 4:21:20 PM6/7/13
to jp...@googlegroups.com
Sweet, thanks! I started writing you back to tell you how to remove all the ssl stuff as that's not necessary for the framework to run.


--
You received this message because you are subscribed to the Google Groups "jpoxy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpoxy+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Stephen Dennison

unread,
Jun 7, 2013, 4:25:42 PM6/7/13
to jp...@googlegroups.com
FYI, it also started up on port 9090 instead of 8080, and the url also doesn't match what the README said.

Instead of:

It's:
Reply all
Reply to author
Forward
0 new messages