On 8/25/2014 8:52 AM, Paul Pathiakis wrote: > ------------------------------------------------------------------------ > [ERROR] No goals have been specified for this build. You must specify > a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> > or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. > Available lifecycle phases are: validate, initialize, > generate-sources, process-sources, generate-resources, > process-resources, compile, process-classes, generate-test-sources, > process-test-sources, generate-test-resources, process-test-resources, > test-compile, process-test-classes, test, prepare-package, package, > pre-integration-test, integration-test, post-integration-test, verify, > install, deploy, pre-site, site, post-site, site-deploy, pre-clean, > clean, post-clean. -> [Help 1] > org.apache.maven.lifecycle.NoGoalSpecifiedException: No goals have > been specified for this build. You must specify a valid lifecycle > phase or a goal in the format <plugin-prefix>:<goal> or > <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. > Available lifecycle phases are: validate, initialize, > generate-sources, process-sources, generate-resources, > process-resources, compile, process-classes, generate-test-sources, > process-test-sources, generate-test-resources, process-test-resources, > test-compile, process-test-classes, test, prepare-package, package, > pre-integration-test, integration-test, post-integration-test, verify, > install, deploy, pre-site, site, post-site, site-deploy, pre-clean, > clean, post-clean. at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:104) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at > org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at > org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at > org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:606) at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > [ERROR] [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/NoGoalSpecifiedException > Hmmmm.... that wasn't much help (at least to the maven noob) > either..... Running it with the -X switch gave the same output.... > *grr* :-) P. > ------------------------------------------------------------------------------ > > Slashdot TV. Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ Please read the > OpenNMS Mailing List FAQ: > http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel > mailing list To *unsubscribe* or change your subscription options, see > the bottom of this page: > https://lists.sourceforge.net/lists/listinfo/opennms-devel Tangential hijack question: Does anyone know why Thunderbird likes to eat a message formatting and change it to something like the above?
> [ERROR] No goals have been specified for this build. You must specify > a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> > or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal> You need to run "mvn -e install" or one of the other available flags for maven to get it started. Maven downloads a house and around 3 gigs of naughty pictures of Jeff that someone packaged into a jar file to see if anyone was paying attention (they weren't). The default commands that are run by compile.pl and assemble.pl are shown on lines that say "[INFO] running: " On my system, an example looks like this: compile.pl: [INFO] running: /home/rdrake/opennms/maven/bin/mvn -Dbuild.profile=default -Droot.dir=/home/rdrake/opennms -Dmaven.metadata.legacy=true -Djava.awt.headless=true -Dmaven.test.skip.exec=true install I think your best bet is to find out why the perl scripts don't work and find a way around that, rather than trying to do the maven stuff by hand. If you're lucky the problem is in opennms and can be patched. If you're unlucky it's going to be an upstream problem and that might be a nightmare to fix properly. Looking at your original problem, I think this is the crucial error line: [INFO] jarsigner error: java.lang.RuntimeException: keystore load: /var/ports/basejail/usr/ports/net-mgmt/opennms-12/work/opennms-1.12.9-1/opennms-assemblies/jmx-config-generator-onejar/target/build-generated-keystore.ks (No such file or directory) I don't know why it's doing that. I built the 1.12.9 branch to make sure I didn't see the same issue, but I wasn't trying in the FreeBSD build environment. If you can get FreeBSD to extract the source into the "basejail" thing, then cd into "opennms-assemblies/jmx-config-generator-onejar" then run the above mvn command (edited so that it's using the correct build root.dir) This is what you should see if things are working correctly: > [INFO] --- onejar-maven-plugin:1.4.4:one-jar (default) @ > org.opennms.assemblies.jmx-config-generator-onejar --- > [INFO] Using One-Jar to create a single-file distribution > [INFO] Implementation Version: 1.12.9 > [INFO] Using One-Jar version: 0.96 > [INFO] More info on One-Jar: http://one-jar.sourceforge.net/ > [INFO] License for One-Jar: > http://one-jar.sourceforge.net/one-jar-license.txt > [INFO] One-Jar file: > /home/rdrake/opennms/opennms-assemblies/jmx-config-generator-onejar/target/org.opennms.assemblies.jmx-config-generator-onejar-1.12.9.one-jar.jar > [INFO] > [INFO] --- maven-jarsigner-plugin:1.2:sign (default) @ > org.opennms.assemblies.jmx-config-generator-onejar --- > [INFO] Processing > /home/rdrake/opennms/opennms-assemblies/jmx-config-generator-onejar/target/org.opennms.assemblies.jmx-config-generator-onejar-1.12.9.one-jar.jar > [INFO] updating: META-INF/MANIFEST.MF > [INFO] adding: META-INF/OPENNMS-.SF > [INFO] adding: META-INF/OPENNMS-.DSA > [INFO] signing: > main/org.opennms.assemblies.jmx-config-generator-onejar-1.12.9.jar > [INFO] signing: lib/jmxconfiggenerator-1.12.9.jar > [INFO] signing: lib/org.opennms.features.name-cutter-1.12.9.jar > [INFO] signing: lib/commons-lang-2.6.jar > [INFO] signing: lib/velocity-1.7.jar > [INFO] signing: lib/commons-collections-3.2.1.jar > [INFO] signing: lib/args4j-2.0.16.jar > [INFO] signing: lib/jmxremote_optional-1.0_01-ea.jar > [INFO] signing: lib/commons-lang3-3.1.jar > [INFO] signing: lib/commons-io-2.4.jar > [INFO] signing: lib/slf4j-api-1.7.2.jar > [INFO] signing: lib/logback-classic-1.0.6.jar > [INFO] signing: lib/logback-core-1.0.6.jar > [INFO] adding: com/ > [INFO] adding: com/simontuffs/ > [INFO] adding: com/simontuffs/onejar/ > [INFO] signing: com/simontuffs/onejar/Boot$1.class > [INFO] signing: com/simontuffs/onejar/Boot$2.class > [INFO] signing: com/simontuffs/onejar/Boot$3.class > [INFO] signing: com/simontuffs/onejar/Boot.class > [INFO] signing: com/simontuffs/onejar/Handler$1.class > [INFO] signing: com/simontuffs/onejar/Handler.class > [INFO] signing: com/simontuffs/onejar/IProperties.class > [INFO] signing: com/simontuffs/onejar/JarClassLoader$1.class > [INFO] signing: com/simontuffs/onejar/JarClassLoader$ByteCode.class > [INFO] signing: com/simontuffs/onejar/JarClassLoader.class > [INFO] signing: com/simontuffs/onejar/Boot.java > [INFO] signing: com/simontuffs/onejar/Handler.java > [INFO] signing: com/simontuffs/onejar/IProperties.java > [INFO] signing: com/simontuffs/onejar/JarClassLoader.java > [INFO] jar signed. ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel