can not create any sample Maven project [message #480437] |
Mon, 17 August 2009 07:16 |
Eclipse User |
|
|
|
Originally posted by: ls-test1.hotmail.com
I tried many times to create a sample maven project using sample architype
(quick start) or sample customized archtype. Two issues:
1. The latest IAM requires me to create the folder (or it will complain no
folder found). is this expected ?
2. After after manually created the folder, creating Maven project gives
NPE
as enclosed, no clue what to do next. Thanks for any help.
====================================
java.lang.NullPointerException
at
org.eclipse.iam.core.embedder.exception.handler.internal.Pro jectBuildingExceptionHandler.handle(Unknown
Source)
at
org.eclipse.iam.core.embedder.exception.handler.internal.Mav enExceptionHandlerChain.doHandle(Unknown
Source)
at
org.eclipse.iam.core.embedder.exception.handler.internal.Unr ecognizedExceptionHandler.handle(Unknown
Source)
at
org.eclipse.iam.core.embedder.exception.handler.internal.Mav enExceptionHandlerChain.doHandle(Unknown
Source)
at
org.eclipse.iam.core.embedder.exception.handler.internal.Unr ecognizedExceptionHandler.handle(Unknown
Source)
at
org.eclipse.iam.core.embedder.exception.handler.internal.Mav enExceptionHandlerChain.doHandle(Unknown
Source)
at
org.eclipse.iam.core.embedder.exception.handler.internal.Unr ecognizedExceptionHandler.handle(Unknown
Source)
at
org.eclipse.iam.core.embedder.exception.handler.internal.Mav enExceptionHandlerChain.doHandle(Unknown
Source)
at
org.eclipse.iam.core.embedder.exception.MavenExceptionHandle r.doHandle(Unknown
Source)
at
org.eclipse.iam.core.embedder.exception.MavenExceptionHandle r.handle(Unknown
Source)
at org.eclipse.iam.core.embedder.MavenExecutionStatus.<init>(Unknown
Source)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.r un(Unknown
Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
|
|
|
|
|
Re: can not create any sample Maven project [message #480669 is a reply to message #480606] |
Tue, 18 August 2009 07:40 |
Abel Mui Messages: 247 Registered: July 2009 |
Senior Member |
|
|
Larry wrote:
> Hi,Abel,
> You are right, I changed the proxy setting and it works now!
Good!
> One more question need your help: I've installed Maven 2.0 and 2.2, and
> when I installing IAM, it installed Maven 2.1, is there a way(and how) to
> configure IAM let it use Maven 2.2 instead ?
IAM will always work with the embedded maven version for tight integration.
You can still launch maven as a separate process for specific goals
through Eclipse's external tool support.
- Run > External Tools > External Tools Configurations...
- In the window that opens,
- Double click "Program" on the tree (left side)
- Fill in the name (for instance "mvn jetty:run")
- Fill in the location (browse to your mvn launcher in
"$MAVEN_HOME/bin")
- Fill in the working directory (you can use "${project_loc}" to
always launch from the selected resource project root)
- Fill in the arguments (for instance "jetty:run", or any other option
just as in the command line)
- You probably would like to refresh the "Project containing the
selected resource", so eclipse sees any changes done by maven
Hope that helps!
--
Abel Muiño
|
|
|
|
|
Re: can not create any sample Maven project [message #570556 is a reply to message #480606] |
Tue, 18 August 2009 07:40 |
Abel Mui Messages: 247 Registered: July 2009 |
Senior Member |
|
|
Larry wrote:
> Hi,Abel,
> You are right, I changed the proxy setting and it works now!
Good!
> One more question need your help: I've installed Maven 2.0 and 2.2, and
> when I installing IAM, it installed Maven 2.1, is there a way(and how) to
> configure IAM let it use Maven 2.2 instead ?
IAM will always work with the embedded maven version for tight integration.
You can still launch maven as a separate process for specific goals
through Eclipse's external tool support.
- Run > External Tools > External Tools Configurations...
- In the window that opens,
- Double click "Program" on the tree (left side)
- Fill in the name (for instance "mvn jetty:run")
- Fill in the location (browse to your mvn launcher in
"$MAVEN_HOME/bin")
- Fill in the working directory (you can use "${project_loc}" to
always launch from the selected resource project root)
- Fill in the arguments (for instance "jetty:run", or any other option
just as in the command line)
- You probably would like to refresh the "Project containing the
selected resource", so eclipse sees any changes done by maven
Hope that helps!
--
Abel Muiño
|
|
|
Powered by
FUDForum. Page generated in 0.10682 seconds