Page 1 of 1

No goals have been specified for this build?

Posted: Sun Sep 28, 2014 12:16 am
by gowthamgutha
I have done the following to configure spring loaded.

Run -> Run Configurations -> Maven Build -> site -> JRE -> VM Arguments -> -Djavaagent:C:\springloaded-1.2.0.RELEASE.jar

and I tried to click on Run, but I got
[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-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]

How to solve this? What are the goals that I need to give which does exactly the same thing as site -> jetty-demo

Thanks in advance. Hope you will reply as soon as possible.

Re: No goals have been specified for this build?

Posted: Sun Sep 28, 2014 5:34 pm
by phillipuniverse
You can open the build.xml to see the maven goals it invokes. This is the jetty-demo target:

Code: Select all

<target name="jetty-demo" depends="start-db">
    <delete dir="war/WEB-INF/lib"/>
    <artifact:mvn mavenHome="${maven.home}" fork="true">
        <jvmarg value="-XX:MaxPermSize=256M" />
        <jvmarg value="-Xmx512M" />
        <jvmarg value="-Xdebug" />
        <jvmarg value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" />
        <jvmarg value="-javaagent:${spring.instrument.path}" />
        <jvmarg value="-Druntime.environment=${runtime.environment}" /> 
        <arg value="compile"/>
        <arg value="war:exploded"/>
        <arg value="jetty:run"/>
    </artifact:mvn>
</target>


So the Maven goals that are invoked are compile, war:exploded, jetty:run.

Re: No goals have been specified for this build?

Posted: Mon Sep 29, 2014 5:22 am
by gowthamgutha
I am getting the following error when I include this in the Goals.

compile war:exploded jetty:run

Reference to undefined variable spring.instrument.path

Re: No goals have been specified for this build?

Posted: Mon Sep 29, 2014 6:14 am
by gowthamgutha
It worked, but actually I the classes are not reloaded automatically when they are modified. Is there any solution for this?

Thanks.

Re: No goals have been specified for this build?

Posted: Mon Sep 29, 2014 3:38 pm
by phillipuniverse
We have not tested anything with Spring Loaded so I can't comment on how effective it is. Jrebel is what we use internally and it works fine. Let us know what you find out about spring loaded, we are definitely interested to hear if you get it working.