Re: Maven hangs after lock file

2017-05-03 Thread Daniel Watrous
I updated that question to include a thread dump, but I’m still unsure how to 
track this back to a resolution.

On 5/2/17, 4:40 PM, "Daniel Watrous"  wrote:

Hi,

I posted an issue to stackoverflow, then I thought this list might be the 
best place to get some feedback:

http://stackoverflow.com/questions/43747117/maven-can-create-folders-and-lock-file-but-hangs-while-downloading

Any idea why maven would hang when it tries to download dependencies?

Thanks,
Daniel




Re: Maven hangs while using hsqldb and eclipselink

2012-12-24 Thread Ron Wheeler

It looks like your test is hanging inside your code.

What is your question?

Ron
On 21/12/2012 4:52 PM, Giovanni Azua wrote:

Hello,

  


My pom includes the dependencies and versions shown below. I get Maven
hanging in the middle of a test. When I investigate what's going on using
jps and jstack I get the following results which looks like an issue with
hsqldb .

  


TIA,

Best regards,

Giovanni

  


   dependencies

  dependency

groupIdorg.eclipse.persistence/groupId

artifactIdeclipselink/artifactId

version2.4.0/version

  /dependency

 dependency

   groupIdorg.hsqldb/groupId

   artifactIdhsqldb/artifactId

   version2.2.9/version

   scopetest/scope

 /dependency

   /dependencies

   repositories

   repository

 idEclipseLink/id

 urlhttp://download.eclipse.org/rt/eclipselink/maven.repo/url

   /repository

  


$ jps -mlvV

4824 sun.tools.jps.Jps -mlvV -Denv.class.path=.;C:\Program Files
(x86)\QuickTime\QTSystem\QTJava.zip
-Dapplication.home=C:\PROGRA~1\Java\jdk1.6.0_37 -Xms8m

  


7552
C:\code\perfectjpattern\trunk\perfectjpattern-eclipselink\target\surefire\su
refirebooter2234852984189786639.jar
C:\code\perfectjpattern\trunk\perfectjpattern-eclipselink\target\surefire\su
refire1362040448567741258tmp
C:\code\perfectjpattern\trunk\perfectjpattern-eclipselink\target\surefire\su
refire7579733066270956770tmp

  


1088 org.codehaus.plexus.classworlds.launcher.Launcher clean install
-Xmx2048M -XX:PermSize=1024m -XX:MaxPermSize=2048m -Djava.awt.headless=true
-XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC
-Dclassworlds.conf=C:\etc\maven\3.0.4\/bin/m2.conf
-Dmaven.home=C:\etc\maven\3.0.4\

  


$ jstack 7552

2012-12-21 22:48:53

Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.12-b01 mixed mode):

  


Low Memory Detector daemon prio=6 tid=0x06a19000 nid=0x1e00
runnable [0x]

java.lang.Thread.State: RUNNABLE

  


C2 CompilerThread1 daemon prio=10 tid=0x06a0a800 nid=0x2184
waiting on condition [0x]

java.lang.Thread.State: RUNNABLE

  


C2 CompilerThread0 daemon prio=10 tid=0x069f5000 nid=0x754 waiting
on condition [0x]

java.lang.Thread.State: RUNNABLE

  


Attach Listener daemon prio=10 tid=0x069f3800 nid=0x219c waiting
on condition [0x]

java.lang.Thread.State: RUNNABLE

  


Signal Dispatcher daemon prio=10 tid=0x069a1800 nid=0x2198
runnable [0x]

java.lang.Thread.State: RUNNABLE

  


Finalizer daemon prio=8 tid=0x0699f000 nid=0x2384 in Object.wait()
[0x075ef000]

java.lang.Thread.State: WAITING (on object monitor)

 at java.lang.Object.wait(Native Method)

 - waiting on 0x0007aef280e0 (a
java.lang.ref.ReferenceQueue$Lock)

 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)

 - locked 0x0007aef280e0 (a java.lang.ref.ReferenceQueue$Lock)

 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)

 at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

  


Reference Handler daemon prio=10 tid=0x06990800 nid=0x21cc in
Object.wait() [0x074ef000]

java.lang.Thread.State: WAITING (on object monitor)

 at java.lang.Object.wait(Native Method)

 - waiting on 0x0007aef38070 (a java.lang.ref.Reference$Lock)

 at java.lang.Object.wait(Object.java:485)

 at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)

 - locked 0x0007aef38070 (a java.lang.ref.Reference$Lock)

  


main prio=6 tid=0x0022c000 nid=0xbc0 waiting on condition
[0x0220c000]

java.lang.Thread.State: WAITING (parking)

 at sun.misc.Unsafe.park(Native Method)

 - parking to wait for  0x0007acd840a0 (a
java.util.concurrent.CountDownLatch$Sync)

 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)

 at
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(
AbstractQueuedSynchronizer.java:811)

 at
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterru
ptibly(AbstractQueuedSynchronizer.java:969)

 at
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterrupt
ibly(AbstractQueuedSynchronizer.java:1281)

 at
java.util.concurrent.CountDownLatch.await(CountDownLatch.java:207)

 at org.hsqldb.lib.CountUpDownLatch.await(Unknown Source)

 at org.hsqldb.Session.executeCompiledStatement(Unknown Source)

 at org.hsqldb.Session.execute(Unknown Source)

 - locked 0x0007acd83f70 (a org.hsqldb.Session)

 at org.hsqldb.jdbc.JDBCPreparedStatement.fetchResult(Unknown Source)

 at org.hsqldb.jdbc.JDBCPreparedStatement.executeQuery(Unknown
Source)

 - locked 0x0007acdb2518 (a
org.hsqldb.jdbc.JDBCPreparedStatement)

 at

RE: Maven hangs downloading artifacts

2011-12-13 Thread Knut Aksnes-NOR
Sounds like firewall or virus scan problems. I used to have the same kind of 
problems when updating eclipse.
A workaround might be to set up some kind of maven repository/proxy (I use 
Archiva) Manually installing problem files into Archiva if needed. 

-Original Message-
From: Paul Johnston [mailto:paul.johns...@pentest.co.uk] 
Sent: 13. desember 2011 15:40
To: users@maven.apache.org
Subject: Maven hangs downloading artifacts

Hi,

I'm having terrible trouble with Maven hanging while downloading artifacts.

It randomly stops mid-download. Usually, cancelling with ctrl-C and re-running 
results in success, and I often have to do that two or three times to get a 
successful build. Annoying but acceptable. However, sometimes I get completely 
stuck.

If it helps, here's mvn --version:

Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+) Maven home: 
c:\code\apache-maven-3.0.3\bin\..
Java version: 1.7.0, vendor: Oracle Corporation Java home: c:\Program 
Files\Java\jdk1.7.0\jre Default locale: en_US, platform encoding: Cp1252 OS 
name: windows 7, version: 6.1, arch: x86, family: windows

The pom.xml has no repository information, I'm just going to the main Maven 
repos. I am behind a firewall, but no HTTP proxy. If I copy the URLs into my 
web browser, the files download fine.

Having particular problems with these files at the moment:
Downloading: http://repo1.maven.org/maven2/fop/fop/0.20.5/fop-0.20.5.jar
Downloading:
http://repo1.maven.org/maven2/batik/batik-1.5-fop/0.20-5/batik-1.5-fop-0.20-5.jar

Couldn't find any mention of this on the mailing list, am I the only one having 
this problem? It's highly frustrating for me, as it makes an otherwise 
excellent build system feel like endless trial-and-error. Any help greatly 
appreciated!

Paul

--
Pentest - When a tick in the box is not enough

Paul Johnston - IT Security Consultant / Tiger SST Pentest Limited - ISO 9001 
(cert 16055) / ISO 27001 (cert 558982)

Office: +44 (0) 161 233 0100
Mobile: +44 (0) 7817 219 072

Email policy: http://www.pentest.co.uk/legal.shtml#emailpolicy
Registered Number: 4217114 England  Wales Registered Office: 26a The Downs, 
Altrincham, Cheshire, WA14 2PU, UK


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


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



Re: Maven hangs downloading artifacts

2011-12-13 Thread Ron Wheeler

Get yourself a repo system.
Working with Maven without a repo is a really tedious way to work.

We got Nexus a few years ago and it really improved our use of Maven and 
speeded up our builds tremendously.


It also allows you to fix licensing problems with some common libraries.


Ron


On 13/12/2011 9:40 AM, Paul Johnston wrote:

Hi,

I'm having terrible trouble with Maven hanging while downloading artifacts.

It randomly stops mid-download. Usually, cancelling with ctrl-C and
re-running results in success, and I often have to do that two or three
times to get a successful build. Annoying but acceptable. However,
sometimes I get completely stuck.

If it helps, here's mvn --version:

Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+)
Maven home: c:\code\apache-maven-3.0.3\bin\..
Java version: 1.7.0, vendor: Oracle Corporation
Java home: c:\Program Files\Java\jdk1.7.0\jre
Default locale: en_US, platform encoding: Cp1252
OS name: windows 7, version: 6.1, arch: x86, family: windows

The pom.xml has no repository information, I'm just going to the main
Maven repos. I am behind a firewall, but no HTTP proxy. If I copy the
URLs into my web browser, the files download fine.

Having particular problems with these files at the moment:
Downloading: http://repo1.maven.org/maven2/fop/fop/0.20.5/fop-0.20.5.jar
Downloading:
http://repo1.maven.org/maven2/batik/batik-1.5-fop/0.20-5/batik-1.5-fop-0.20-5.jar

Couldn't find any mention of this on the mailing list, am I the only one
having this problem? It's highly frustrating for me, as it makes an
otherwise excellent build system feel like endless trial-and-error. Any
help greatly appreciated!

Paul




--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102



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

Re: Maven hangs downloading artifacts

2011-12-13 Thread Paul Johnston
Hi,

It was AVG anti-virus! Disabled that and it works fine.

BTW, I had been experimenting with a local Artifactory repository, and
was still having the same problem.

Now I just need to work out how to have Maven work, without exposing
myself to viruses!

Thanks for your help,

Paul


On 13/12/2011 14:45, Knut Aksnes-NOR wrote:
 Sounds like firewall or virus scan problems. I used to have the same kind of 
 problems when updating eclipse.
 A workaround might be to set up some kind of maven repository/proxy (I use 
 Archiva) Manually installing problem files into Archiva if needed. 
-- 
Pentest - When a tick in the box is not enough

Paul Johnston - IT Security Consultant / Tiger SST
Pentest Limited - ISO 9001 (cert 16055) / ISO 27001 (cert 558982)

Office: +44 (0) 161 233 0100
Mobile: +44 (0) 7817 219 072

Email policy: http://www.pentest.co.uk/legal.shtml#emailpolicy
Registered Number: 4217114 England  Wales
Registered Office: 26a The Downs, Altrincham, Cheshire, WA14 2PU, UK


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



RE: Maven hangs during multiproject site generation - no error messages

2004-07-16 Thread Marcin Werla
 is it attempting to prompt for user input? Maybe running SSH or CVS?
 

No - it is not attempting for user input. I'm starting maven remotely
through ssh session on my build server. May this be a cause?

-
Marcin Werla


smime.p7s
Description: S/MIME cryptographic signature


Re: Maven hangs during multiproject site generation - no error messages

2004-06-03 Thread Jerome Lacoste
On Thu, 2004-06-03 at 02:49, Marcin Werla wrote:
 Hi,
 
 I have a mavenized project which consists of seven subprojects. During
 multiproject:site generation (started on RedHat 9.0) maven quite often hangs
 while generating one of subprojects site. It happens in different
 subprojects, so it is not fault of one of subprojects. What more - when I
 generate sites manually and then run multiproject:site with modified
 property maven.multiproject.site.goals set to java:compile for example, all
 is ok. 
 
 When maven hags, it's process is still active, but it takes 0% of processor
 time and no error message is displayed.
 
 Can someone tell me what can be the reason of this? I've tried to increase
 memory available for maven in MAVEN_OPTS, but it does not help.

Have you tried to run maven -X to see where the problem happens?

Jerome


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven hangs

2003-06-26 Thread Ben Walding
It's overloaded.

Probably...  there is about a 3-4M / project leak in the reactor.  Jason 
has fixed it, but the changes aren't checked in yet.  It is the major 
blocker which is holding up rc1.

What do the reactor memory read outs look like?

(That all being said, it shouldn't hang... can you get the thread dump 
of the jvm?   ctrl-break on windows will produce it)

Kristine Weissbarth wrote:

hi,

my projects structure looks something like that with a lot of
subprojects:
project
|
|--subproject 1
|
|--subproject 2
||--subsubproject 2.1
||--subsubprojects 2.2
|
|--subproject 3
|
|--subproject 4
||--subsubproject 4.1
|...
using the reactor I'm generating the maven documentation website and if
I don't process all the subprojects this works fine. But if I try to run
the reactor for all the subprojects it hangs somewhere (after having
processed most of the subprojects) and doesn't 'move' any further. It
seems as if it was overloaded or something.
Does anybody know where the problem is?
Thanks.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: maven hangs

2003-06-26 Thread Kristine Weissbarth
Thanks for the reply. 

But what exactly are the reactor memory read outs? Where can I find
them? And how can I get the thread dump of the jvm under Linux? I tried
ctrl \ but nothing happened.

Thanks.




Am Don, 2003-06-26 um 11.32 schrieb Ben Walding:
 It's overloaded.
 
 Probably...  there is about a 3-4M / project leak in the reactor.  Jason 
 has fixed it, but the changes aren't checked in yet.  It is the major 
 blocker which is holding up rc1.
 
 What do the reactor memory read outs look like?
 
 (That all being said, it shouldn't hang... can you get the thread dump 
 of the jvm?   ctrl-break on windows will produce it)
 
 Kristine Weissbarth wrote:
 
 hi,
 
 my projects structure looks something like that with a lot of
 subprojects:
 
 project
 |
 |--subproject 1
 |
 |--subproject 2
 ||--subsubproject 2.1
 ||--subsubprojects 2.2
 |
 |--subproject 3
 |
 |--subproject 4
 ||--subsubproject 4.1
 |...
 
 using the reactor I'm generating the maven documentation website and if
 I don't process all the subprojects this works fine. But if I try to run
 the reactor for all the subprojects it hangs somewhere (after having
 processed most of the subprojects) and doesn't 'move' any further. It
 seems as if it was overloaded or something.
 Does anybody know where the problem is?
 
 Thanks.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven hangs

2003-06-26 Thread Kristine Weissbarth
hi,

thanks, but I already grouped goals together in my maven.xml, like this:

maven:reactor
  ..
  goals=clean,jar:install,site:deploy
  ..
/

Is that what you meant?



Am Don, 2003-06-26 um 11.36 schrieb Vipul Vij:
 Hi Kristine,
 
 I have found this true with my projects. I found the way around was to NOT
 to execute each goal separately but group a few together. E.g.. generate
 Artefacts task in maven.xml included jar:install and war:install. I don't
 know why, but it seemed to work. I think this was the problem, I will try to
 confirm this; I haven't looked at this for a long time.
 
 Regards,
 
 Vipul
 - Original Message -
 From: Kristine Weissbarth [EMAIL PROTECTED]
 To: Maven Users List [EMAIL PROTECTED]
 Sent: Thursday, June 26, 2003 10:31 AM
 Subject: maven hangs
 
 
  hi,
 
  my projects structure looks something like that with a lot of
  subprojects:
 
  project
  |
  |--subproject 1
  |
  |--subproject 2
  ||--subsubproject 2.1
  ||--subsubprojects 2.2
  |
  |--subproject 3
  |
  |--subproject 4
  ||--subsubproject 4.1
  |...
 
  using the reactor I'm generating the maven documentation website and if
  I don't process all the subprojects this works fine. But if I try to run
  the reactor for all the subprojects it hangs somewhere (after having
  processed most of the subprojects) and doesn't 'move' any further. It
  seems as if it was overloaded or something.
  Does anybody know where the problem is?
 
  Thanks.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven hangs

2003-06-26 Thread Kristine Weissbarth
I think I got the thread dump of the jvm, I just had to wait. But it
doesn't tell me anything I understand either that help me. 
What do you think?



---start

Full thread dump Java HotSpot(TM) Client VM (1.4.0_03-b04 mixed mode):
 
process forker daemon prio=1 tid=0x0x857e6f0 nid=0x39a waiting on
monitor [be7ff000..be7ff87c]
at java.lang.Object.wait(Native Method)
- waiting on 0x45d82580 (a java.lang.Object)
at java.lang.UNIXProcessForker.run(Native Method)
at java.lang.Thread.run(Thread.java:536)
 
process reaper daemon prio=1 tid=0x0x857e358 nid=0x399 runnable
[be9ff000..be9ff87c]
at java.lang.UNIXProcessReaper.run(Native Method)
at java.lang.Thread.run(Thread.java:536)
 
Signal Dispatcher daemon prio=1 tid=0x0x8082ae8 nid=0x397 waiting on
monitor [0..0]
 
Finalizer daemon prio=1 tid=0x0x807cb28 nid=0x394 waiting on monitor
[bf3ff000..bf3ff87c]
at java.lang.Object.wait(Native Method)
- waiting on 0x455cea48 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
- locked 0x455cea48 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
 
Reference Handler daemon prio=1 tid=0x0x807bf58 nid=0x393 runnable
[bf5ff000..bf5ff87c]
at java.lang.Object.wait(Native Method)
- waiting on 0x455ceab0 (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:426)
at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:113)
- locked 0x455ceab0 (a java.lang.ref.Reference$Lock)
 
main prio=1 tid=0x0x8051d10 nid=0x390 runnable [bfffb000..bfffd428]
at java.lang.String.toCharArray(String.java:2159)
at
org.apache.tools.ant.types.selectors.SelectorUtils.match(SelectorUtils.java:361)
at
org.apache.tools.ant.types.selectors.SelectorUtils.matchPath(SelectorUtils.java:258)
at
org.apache.tools.ant.DirectoryScanner.matchPath(DirectoryScanner.java:327)
at
org.apache.tools.ant.DirectoryScanner.isExcluded(DirectoryScanner.java:773)
at
org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:710)
at
org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:571)
at
org.apache.commons.jelly.tags.ant.FileIterator.setNextObject(FileIterator.java:164)
at
org.apache.commons.jelly.tags.ant.FileIterator.hasNext(FileIterator.java:127)
at
org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:137)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:113)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at
org.apache.commons.jelly.tags.util.AvailableTag.doTag(AvailableTag.java:110)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at
com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:116)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at
com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
at
com.werken.werkz.jelly.AttainGoalTag.doTag(AttainGoalTag.java:106)
at
org.apache.maven.jelly.tags.werkz.LazyAttainGoalTag.doTag(LazyAttainGoalTag.java:107)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at
com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:116)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
at com.werken.werkz.Goal.attain(Goal.java:573)
at
com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
at
com.werken.werkz.jelly.AttainGoalTag.doTag(AttainGoalTag.java:106)
at
org.apache.maven.jelly.tags.werkz.LazyAttainGoalTag.doTag(LazyAttainGoalTag.java:107)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at
com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:116)
at