You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Immanuel Normann <i....@iu-bremen.de> on 2007/12/30 13:12:36 UTC

Scanning for projects ... hangs

Hello,

I have just installed maven on my Linux (Ubuntu Hardy) machine:

$ mvn -version
Maven version: 2.0.8
Java version: 1.4.2
OS name: "linux" version: "2.6.20-15-generic" arch: "i386" Family:
"unix"

and I have followed the "maven in 5 minutes tutorial"

(http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)
trying to create a project with
$ mvn archetype:create -DgroupId=maven-test -DartifactId=maven-test

but maven hangs with
[INFO] Scanning for projects...

I have searched this mailing list for this problem and already found
some related mails, but nothing that actually solves my problem. 

Any idea why maven hangs? After "maven in 5 hours" ;-) I have no clue
where to look at. May be it would be helpful to know how maven scans for
projects in order to understand how it possibly runs into cycles.

Thanks,
Normann


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Scanning for projects ... hangs

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Hrm, that's interesting. The default settings should work just fine. Are
you able to use maven to build other things?

-----Original Message-----
From: Immanuel Normann [mailto:immanuel.normann@googlemail.com] 
Sent: Sunday, December 30, 2007 1:39 PM
To: Maven Users List
Subject: Re: Scanning for projects ... hangs

Brian,

2007/12/30, Brian E. Fox <br...@reply.infinity.nu>:
>
> Immanuel,
> After printing the "Scanning for Projects..." message, maven is
walking
> down the source tree in the current folder. It is looking for a
pom.xml
> and then processing the modules to find those poms.
>
> In your case, there should be no poms since you are doing a create, so
> it's a little odd that it hangs there. Try adding the -X command to
see
> what you get for output.


This is the result of mvn -X:

 $ mvn -X
+ Error stacktraces are turned on.
Maven version: 2.0.8
Java version: 1.4.2
OS name: "linux" version: "2.6.20-15-generic" arch: "i386" Family:
"unix"
[DEBUG] Building Maven user-level plugin registry from:
'/home/immanuel/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/usr/share/maven2/conf/plugin-registry.xml'
[INFO] Scanning for projects...

in fact the only maven related directories/files I can find on my system
are
at:
$HOME/.m2/
/usr/share/maven2/
/etc/maven2/

May be something should be configured in /etc/maven2/m2.conf or
/etc/maven2/setting.xml?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Scanning for projects ... hangs

Posted by Immanuel Normann <im...@googlemail.com>.
Brian,

2007/12/30, Brian E. Fox <br...@reply.infinity.nu>:
>
> Immanuel,
> After printing the "Scanning for Projects..." message, maven is walking
> down the source tree in the current folder. It is looking for a pom.xml
> and then processing the modules to find those poms.
>
> In your case, there should be no poms since you are doing a create, so
> it's a little odd that it hangs there. Try adding the -X command to see
> what you get for output.


This is the result of mvn -X:

 $ mvn -X
+ Error stacktraces are turned on.
Maven version: 2.0.8
Java version: 1.4.2
OS name: "linux" version: "2.6.20-15-generic" arch: "i386" Family: "unix"
[DEBUG] Building Maven user-level plugin registry from:
'/home/immanuel/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/usr/share/maven2/conf/plugin-registry.xml'
[INFO] Scanning for projects...

in fact the only maven related directories/files I can find on my system are
at:
$HOME/.m2/
/usr/share/maven2/
/etc/maven2/

May be something should be configured in /etc/maven2/m2.conf or
/etc/maven2/setting.xml?

RE: Scanning for projects ... hangs

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Immanuel,
After printing the "Scanning for Projects..." message, maven is walking
down the source tree in the current folder. It is looking for a pom.xml
and then processing the modules to find those poms. 

In your case, there should be no poms since you are doing a create, so
it's a little odd that it hangs there. Try adding the -X command to see
what you get for output.

I tried the exact command you pasted and it's ok for me on 2.0.8:

C:\Users\brianf\temp>mvn archetype:create -DgroupId=maven-test
-DartifactId=mave
n-test
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any
resource loader.
[INFO] Velocimacro : error using  VM library template
VM_global_library.vm : org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates

[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may NOT
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
be  glob
al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: maven-test
[INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart:
checking
 for updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-arc
hetype-quickstart/1.0/maven-archetype-quickstart-1.0.jar
4K downloaded
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Using following parameters for creating Archetype:
maven-archetype-quicks
tart:RELEASE
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Parameter: groupId, Value: maven-test
[INFO] Parameter: packageName, Value: maven-test
[INFO] Parameter: package, Value: maven-test
[INFO] Parameter: artifactId, Value: maven-test
[INFO] Parameter: basedir, Value: C:\Users\brianf\temp
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] ********************* End of debug info from resources from
generated POM
 ***********************
[INFO] Archetype created in dir: C:\Users\brianf\temp\maven-test
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Sun Dec 30 11:50:48 EST 2007
[INFO] Final Memory: 5M/9M
[INFO]
------------------------------------------------------------------------

-----Original Message-----
From: Immanuel Normann [mailto:i.normann@iu-bremen.de] 
Sent: Sunday, December 30, 2007 7:13 AM
To: users@maven.apache.org
Subject: Scanning for projects ... hangs

Hello,

I have just installed maven on my Linux (Ubuntu Hardy) machine:

$ mvn -version
Maven version: 2.0.8
Java version: 1.4.2
OS name: "linux" version: "2.6.20-15-generic" arch: "i386" Family:
"unix"

and I have followed the "maven in 5 minutes tutorial"

(http://maven.apache.org/guides/getting-started/maven-in-five-minutes.ht
ml)
trying to create a project with
$ mvn archetype:create -DgroupId=maven-test -DartifactId=maven-test

but maven hangs with
[INFO] Scanning for projects...

I have searched this mailing list for this problem and already found
some related mails, but nothing that actually solves my problem. 

Any idea why maven hangs? After "maven in 5 hours" ;-) I have no clue
where to look at. May be it would be helpful to know how maven scans for
projects in order to understand how it possibly runs into cycles.

Thanks,
Normann


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Scanning for projects ... hangs

Posted by Kalle Korhonen <ka...@gmail.com>.
Haven't used Hardy, but most Linux distros still ship with GNU Java as the
default, and it has numerous problems (such as parsing XML files). Run java
-version, if you get something like: gij (GNU libgcj) version 4.1.1 20070105,
loosely follow for example these instructions:
http://daveshields.wordpress.com/2007/09/14/how-to-install-a-specific-version-of-java-on-ubuntu/to
get Sun's Java or just get the tar from
java.sun.com and install manually.

Kalle


On 12/30/07, Immanuel Normann <i....@iu-bremen.de> wrote:
>
> Hello,
>
> I have just installed maven on my Linux (Ubuntu Hardy) machine:
>
> $ mvn -version
> Maven version: 2.0.8
> Java version: 1.4.2
> OS name: "linux" version: "2.6.20-15-generic" arch: "i386" Family:
> "unix"
>
> and I have followed the "maven in 5 minutes tutorial"
>
> (http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
> )
> trying to create a project with
> $ mvn archetype:create -DgroupId=maven-test -DartifactId=maven-test
>
> but maven hangs with
> [INFO] Scanning for projects...
>
> I have searched this mailing list for this problem and already found
> some related mails, but nothing that actually solves my problem.
>
> Any idea why maven hangs? After "maven in 5 hours" ;-) I have no clue
> where to look at. May be it would be helpful to know how maven scans for
> projects in order to understand how it possibly runs into cycles.
>
> Thanks,
> Normann
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>