can not create any sample Maven project [message #480437] |
Mon, 17 August 2009 03: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 03:40  |
Eclipse User |
|
|
|
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 #570487 is a reply to message #480437] |
Mon, 17 August 2009 03:44  |
Eclipse User |
|
|
|
L wrote:
> 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 ?
No, this should "just work".
One possible point of failure is that you are using a proxy to access the
maven repository but it has not been properly configured.
> 2. After after manually created the folder, creating Maven project gives
> NPE as enclosed, no clue what to do next. Thanks for any help.
You do not need to create the folder manually (in fact, project creation
will fail if it finds the folder there).
To get more information, please open the Events view before creating the
project, so you can read maven messages and spot the cause for the error.
Let us know how it goes!
--
Abel Muiño
|
|
|
Re: can not create any sample Maven project [message #570544 is a reply to message #480441] |
Mon, 17 August 2009 16:45  |
Eclipse User |
|
|
|
Hi,Abel,
You are right, I changed the proxy setting and it works now!
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 ?
-Larry
|
|
|
Re: can not create any sample Maven project [message #570556 is a reply to message #480606] |
Tue, 18 August 2009 03:40  |
Eclipse User |
|
|
|
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.04847 seconds