Discussion:
How to disable Maven build in Eclipse?
youhaodeyi
2008-07-21 11:49:01 UTC
Permalink
When I clean a Maven Project in eclipse, it will invoke maven build process
which would be pretty slow. How can I disable this function?
--
View this message in context: http://www.nabble.com/How-to-disable-Maven-build-in-Eclipse--tp18567030p18567030.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.
Eugene Kuleshov
2008-07-21 15:12:23 UTC
Permalink
Post by youhaodeyi
When I clean a Maven Project in eclipse, it will invoke maven build process
which would be pretty slow. How can I disable this function?
The goals that runs on the full project build can be configured from
the Maven page in project preferences.

Note that if you do that some stuff might not work as you want. You
may want to look at your build and remove bindings that are unnecessary
in IDE, e.g. if generation of javadocs is bound to the "package" build
phase. It would hard to suggest more without looking at the log from
Maven console shown during project clean build.

regards,
Eugene
youhaodeyi
2008-07-22 01:33:20 UTC
Permalink
I don't find the goals in Maven page. Could you tell me how to set it?
Post by Eugene Kuleshov
Post by youhaodeyi
When I clean a Maven Project in eclipse, it will invoke maven build process
which would be pretty slow. How can I disable this function?
The goals that runs on the full project build can be configured from
the Maven page in project preferences.
Note that if you do that some stuff might not work as you want. You
may want to look at your build and remove bindings that are unnecessary
in IDE, e.g. if generation of javadocs is bound to the "package" build
phase. It would hard to suggest more without looking at the log from
Maven console shown during project clean build.
regards,
Eugene
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
View this message in context: http://www.nabble.com/How-to-disable-Maven-build-in-Eclipse--tp18567030p18580718.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.
Eugene Kuleshov
2008-07-22 01:42:20 UTC
Permalink
It is in project project popup menu. Properties / Maven.
http://docs.codehaus.org/display/M2ECLIPSE/Dependency+Management

regards,
Eugene
Post by youhaodeyi
I don't find the goals in Maven page. Could you tell me how to set it?
Post by Eugene Kuleshov
Post by youhaodeyi
When I clean a Maven Project in eclipse, it will invoke maven build process
which would be pretty slow. How can I disable this function?
The goals that runs on the full project build can be configured from
the Maven page in project preferences.
Note that if you do that some stuff might not work as you want. You
may want to look at your build and remove bindings that are unnecessary
in IDE, e.g. if generation of javadocs is bound to the "package" build
phase. It would hard to suggest more without looking at the log from
Maven console shown during project clean build.
regards,
Eugene
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
youhaodeyi
2008-07-22 02:56:25 UTC
Permalink
I didn't use Maven project setting. I setup the output folder to classes. Is
this the problem?
Post by Eugene Kuleshov
It is in project project popup menu. Properties / Maven.
http://docs.codehaus.org/display/M2ECLIPSE/Dependency+Management
regards,
Eugene
Post by youhaodeyi
I don't find the goals in Maven page. Could you tell me how to set it?
Post by Eugene Kuleshov
Post by youhaodeyi
When I clean a Maven Project in eclipse, it will invoke maven build process
which would be pretty slow. How can I disable this function?
The goals that runs on the full project build can be configured from
the Maven page in project preferences.
Note that if you do that some stuff might not work as you want. You
may want to look at your build and remove bindings that are unnecessary
in IDE, e.g. if generation of javadocs is bound to the "package" build
phase. It would hard to suggest more without looking at the log from
Maven console shown during project clean build.
regards,
Eugene
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
View this message in context: http://www.nabble.com/How-to-disable-Maven-build-in-Eclipse--tp18567030p18581444.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.
Eugene Kuleshov
2008-07-22 15:56:43 UTC
Permalink
We don't expect you to configure any folders. You should be using
"Maven / Update project configuration" action from the project popup
menu to bring Eclipse project configuration up to date with pom.xml

regards,
Eugene
Post by youhaodeyi
I didn't use Maven project setting. I setup the output folder to classes. Is
this the problem?
Post by Eugene Kuleshov
It is in project project popup menu. Properties / Maven.
http://docs.codehaus.org/display/M2ECLIPSE/Dependency+Management
regards,
Eugene
Post by youhaodeyi
I don't find the goals in Maven page. Could you tell me how to set it?
youhaodeyi
2008-07-23 02:41:24 UTC
Permalink
There is one problem when using Maven project configuration. It puts test
classes and java classes into separate directories. If I run the test code
which import classes from java classes, it will prompt cannot find class.
Post by Eugene Kuleshov
We don't expect you to configure any folders. You should be using
"Maven / Update project configuration" action from the project popup
menu to bring Eclipse project configuration up to date with pom.xml
regards,
Eugene
Post by youhaodeyi
I didn't use Maven project setting. I setup the output folder to classes. Is
this the problem?
Post by Eugene Kuleshov
It is in project project popup menu. Properties / Maven.
http://docs.codehaus.org/display/M2ECLIPSE/Dependency+Management
regards,
Eugene
Post by youhaodeyi
I don't find the goals in Maven page. Could you tell me how to set it?
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
View this message in context: http://www.nabble.com/How-to-disable-Maven-build-in-Eclipse--tp18567030p18602848.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.
Eugene Kuleshov
2008-07-23 03:34:22 UTC
Permalink
m2eclipse is always uses information from pom.xml You can verify that
your Maven configuration is correct by launching Maven "package" either
from Eclipse or using command line Maven, and you should see that your
tests are compiled and executed there.

Once you get Maven working, you can bring your Eclipse project up to
date with pom.xml using Maven / Update Project configuration and after
that launching Maven tests using "Run as... / JUnit test" should also work.

If that doesn't resolve it for your project, please open new JIRA
issue and attach test project that would allow us to reproduce it.

Thanks

Eugene
Post by youhaodeyi
There is one problem when using Maven project configuration. It puts test
classes and java classes into separate directories. If I run the test code
which import classes from java classes, it will prompt cannot find class.
Post by Eugene Kuleshov
We don't expect you to configure any folders. You should be using
"Maven / Update project configuration" action from the project popup
menu to bring Eclipse project configuration up to date with pom.xml
regards,
Eugene
Post by youhaodeyi
I didn't use Maven project setting. I setup the output folder to classes.
Is this the problem?
Post by Eugene Kuleshov
It is in project project popup menu. Properties / Maven.
http://docs.codehaus.org/display/M2ECLIPSE/Dependency+Management
regards,
Eugene
Loading...