You can also use mvn -o for offline building... Then it won't fail when it can't connect to a server.
Wayne On 5/2/06, Arik Kfir <[EMAIL PROTECTED]> wrote:
I don't remember the number, but there's an open issue on that.... On 5/3/06, Charles Harvey III <[EMAIL PROTECTED]> wrote: > > I checked. It was my server that was down. So... why did it keep > trying like that? > Shouldn't it skip over anything that it isn't connecting to? Isn't that > the point > of having your own repository or configuring mirrors? > > What seems to be happening is that if it cannot even connect to the last > server in > the line, it is failing. Whereas I think the ideal setup would be to > keep going > and just act as if the jar/pom was not there. > > Is this possible? Should I create an issue for it? > > > Charlie > > > > Brett Porter said the following on 5/2/2006 5:58 PM: > > Oh, and I'm assuming the connectio refused is on your server, not > > repo1, since it was the last line output. > > > > - Brett > > > > On 5/3/06, Brett Porter <[EMAIL PROTECTED]> wrote: > >> It doesn't say its not found - it says there was an error transferring. > >> > >> I think Carlos filed a bug just today about the build not failing when > >> this happens though - you are correct, it should continue on as if it > >> were not there. > >> > >> - Brett > >> > >> On 5/3/06, Charles Harvey III <[EMAIL PROTECTED]> wrote: > >> > Here is the crux of it: > >> > > >> > Caused by: java.net.ConnectException: Connection refused: connect > >> > > >> > > >> > But I can ping repo1.maven.org. So I'm not sure why it is saying > >> that. > >> > But, even if it could connect, say the .pom file doesn't exist > >> remotely? > >> > Shouldn't it still compile? > >> > > >> > Or, if it at least connected, than it would skip that step and then > >> forget > >> > about the .pom file? > >> > > >> > It is using port 80 correct? So frustrating. I swear this used to > >> not > >> > happen before. Guess I have to check with my admin about any > firewall > >> > changes. > >> > > >> > > >> > > >> > Charlie > >> > > >> > > >> > > >> > Brett Porter said the following on 5/2/2006 5:48 PM: > >> > > As the output suggests, can you run with -e for more details? > >> > > > >> > > - Brett > >> > > > >> > > On 5/3/06, Arik Kfir <[EMAIL PROTECTED]> wrote: > >> > >> Do other items from that repository get downloaded ok? > >> > >> > >> > >> On 5/3/06, Charles Harvey III <[EMAIL PROTECTED]> wrote: > >> > >> > > >> > >> > I'll try doing the "mvn install:install-file". I've never > >> actually > >> > >> done > >> > >> > that > >> > >> > before. I had just been dropping jars into place. Sounds cool. > >> > >> > > >> > >> > But that still doesn't explain why maven just stops when a .pom > >> > >> file is > >> > >> > missing. > >> > >> > > >> > >> > > >> > >> > Charlie > >> > >> > > >> > >> > > >> > >> > > >> > >> > Wayne Fay said the following on 5/2/2006 4:32 PM: > >> > >> > > I'm assuming these are 3rd party jars that you've installed > >> > >> "manually"? > >> > >> > > > >> > >> > > If so, you probably need to re-install those 3rd party jars, > >> > >> using the > >> > >> > > same mvn install:install-file command but add the option > >> > >> > > -generatePom=true along with the other parameters. > >> > >> > > > >> > >> > > If not, I'm not sure what's going on to be honest. > >> > >> > > > >> > >> > > Wayne > >> > >> > > > >> > >> > > > >> > >> > > On 5/2/06, Charles Harvey III <[EMAIL PROTECTED]> wrote: > >> > >> > >> > mvn package > >> > >> > >> [INFO] Scanning for projects... > >> > >> > >> [INFO] > >> > >> > >> > >> > >> > > >> > >> > >> > ---------------------------------------------------------------------------- > >> > >> > >> > >> > >> > >> > >> > >> > >> [INFO] Building Alloy Inc. Commons Velocity > >> > >> > >> [INFO] task-segment: [package] > >> > >> > >> [INFO] > >> > >> > >> > >> > >> > > >> > >> > >> > ---------------------------------------------------------------------------- > >> > >> > >> > >> > >> > >> > >> > >> > >> [INFO] [resources:resources] > >> > >> > >> [INFO] Using default encoding to copy filtered resources. > >> > >> > >> Downloading: > >> > >> > >> > >> > >> > > >> > >> > >> > http://192.168.195.9/maven2/acegisecurity/acegi-security/1.0.0-RC2/acegi-security-1.0.0-RC2.pom > >> > >> > >> > >> > >> > >> > >> > >> > >> [INFO] > >> > >> > >> > >> > >> > > >> > >> > >> > ---------------------------------------------------------------------------- > >> > >> > >> > >> > >> > >> > >> > >> > >> [ERROR] BUILD ERROR > >> > >> > >> [INFO] > >> > >> > >> > >> > >> > > >> > >> > >> > ---------------------------------------------------------------------------- > >> > >> > >> > >> > >> > >> > >> > >> > >> [INFO] Error building POM (may not be this project's POM). > >> > >> > >> > >> > >> > >> > >> > >> > >> Project ID: acegisecurity:acegi-security > >> > >> > >> > >> > >> > >> Reason: Error getting POM for 'acegisecurity:acegi-security' > >> > >> from the > >> > >> > >> repository: Error transferring file > >> > >> > >> acegisecurity:acegi-security:pom:1.0.0-RC2 > >> > >> > >> > >> > >> > >> from the specified remote repositories: > >> > >> > >> central (http://repo1.maven.org/maven2), > >> > >> > >> alloy.local.repo (http://192.168.195.9/maven2), > >> > >> > >> maven2 (http://repo1.maven.org/maven2) > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> [INFO] > >> > >> > >> > >> > >> > > >> > >> > >> > ---------------------------------------------------------------------------- > >> > >> > >> > >> > >> > >> > >> > >> > >> [INFO] For more information, run Maven with the -e switch > >> > >> > >> [INFO] > >> > >> > >> > >> > >> > > >> > >> > >> > ---------------------------------------------------------------------------- > >> > >> > >> > >> > >> > >> > >> > >> > >> [INFO] Total time: 1 second > >> > >> > >> [INFO] Finished at: Tue May 02 16:13:13 EDT 2006 > >> > >> > >> [INFO] Final Memory: 2M/5M > >> > >> > >> [INFO] > >> > >> > >> > >> > >> > > >> > >> > >> > ---------------------------------------------------------------------------- > >> > >> > >> > >> > >> > >> > >> > >> > >> > > >> > >> > >> > >> > >> > >> > >> > >> > >> Let me know if that looks correct. I'm pretty sure it is. > >> And its > >> > >> > >> driving me > >> > >> > >> a little batty that I can't compile (and, it happens with > >> 2.0.2 as > >> > >> > well, > >> > >> > >> not just > >> > >> > >> 2.0.4 - I'm pretty sure its a 2.0 thing). > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> Charlie > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> Arik Kfir said the following on 5/2/2006 4:09 PM: > >> > >> > >> > it shouldn't fail - could you post the output? (along > >> with the > >> > >> > command > >> > >> > >> > you > >> > >> > >> > executed) > >> > >> > >> > > >> > >> > >> > On 5/2/06, Charles Harvey III <[EMAIL PROTECTED]> wrote: > >> > >> > >> >> > >> > >> > >> >> Hello. > >> > >> > >> >> Ever since I upgraded to 2.0.4 Maven will not run unless > >> all the > >> > >> > .pom > >> > >> > >> >> files > >> > >> > >> >> are in place. What gives? Sometimes I have to download > >> > >> projects > >> > >> > >> like > >> > >> > >> >> JCaptcha and it has no .pom files. I have to manually > >> place > >> > >> them > >> > >> > >> >> into my > >> > >> > >> >> repository. Do I have to also make up a .pom file for > >> it? The > >> > >> > >> jar is > >> > >> > >> >> there. > >> > >> > >> >> Therefore it should compile. Is there a command I can > >> put in > >> > >> at the > >> > >> > >> >> command > >> > >> > >> >> line that tells it to compile even if the .pom file for a > >> > >> > >> particular jar > >> > >> > >> >> is > >> > >> > >> >> not in the repository? > >> > >> > >> >> > >> > >> > >> >> Thanks for the help. > >> > >> > >> >> > >> > >> > >> >> > >> > >> > >> >> Charlie > >> > >> > >> >> > >> > >> > >> >> > >> > >> > >> >> > >> > >> > > >> --------------------------------------------------------------------- > >> > >> > >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > >> > >> >> For additional commands, e-mail: > >> [EMAIL PROTECTED] > >> > >> > >> >> > >> > >> > >> >> > >> > >> > >> > > >> > >> > >> > > >> > >> > >> > -- > >> > >> > >> > ______________________________________ > >> > >> > >> > Cheers, > >> > >> > >> > Arik Kfir > >> > >> [EMAIL PROTECTED] > >> > >> > >> > Linux user, number 415067 - http://counter.li.org/ > >> > >> > >> > http://corleon.dnsalias.org > >> > >> > >> > >> > >> > >> > >> > >> > >> --------------------------------------------------------------------- > >> > >> > >> 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] > >> > >> > > >> > >> > > >> > >> > >> > >> > >> > >> -- > >> > >> ______________________________________ > >> > >> Cheers, > >> > >> Arik Kfir > >> [EMAIL PROTECTED] > >> > >> Linux user, number 415067 - http://counter.li.org/ > >> > >> http://corleon.dnsalias.org > >> > >> > >> > > > >> > > > >> --------------------------------------------------------------------- > >> > > 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] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- ______________________________________ Cheers, Arik Kfir [EMAIL PROTECTED] Linux user, number 415067 - http://counter.li.org/ http://corleon.dnsalias.org
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]