Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » can not create any sample Maven project
can not create any sample Maven project [message #480437] Mon, 17 August 2009 07:16 Go to next message
Eclipse UserFriend
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 #480441 is a reply to message #480437] Mon, 17 August 2009 07:44 Go to previous messageGo to next message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
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 #480606 is a reply to message #480441] Mon, 17 August 2009 20:45 Go to previous messageGo to next message
Larry is currently offline LarryFriend
Messages: 26
Registered: July 2009
Junior Member
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 #480669 is a reply to message #480606] Tue, 18 August 2009 07:40 Go to previous message
Abel Mui is currently offline Abel MuiFriend
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 #570487 is a reply to message #480437] Mon, 17 August 2009 07:44 Go to previous message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
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 20:45 Go to previous message
Larry is currently offline LarryFriend
Messages: 26
Registered: July 2009
Junior Member
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 07:40 Go to previous message
Abel Mui is currently offline Abel MuiFriend
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
Previous Topic:can not create any sample Maven project
Next Topic:Bootstrapping Eclipse
Goto Forum:
  


Current Time: Thu Apr 18 20:57:43 GMT 2024

Powered by FUDForum. Page generated in 0.04415 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top