Re: Suck, cannot build, repository down??

2009-11-09 Thread David C. Hicks
For this very reason, I've set up my builds to only build the full
dependency report when I specify it - normally for nightly and release
builds.  It keeps my development and continuous integration builds short
and sweet.  It's a simple thing to activate a profile for the longer
builds to produce this report when I feel like it's more appropriate.

Just a thought for anyone else who feels like this is a serious problem
for them.


Brian Fox wrote:
> Yes, the dependency report does completely bypass the normal
> repository mechanism and thus Nexus. This needs to be fixed, but noone
> has attempted it yet that I know of.
>
>
>   

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



Re: Suck, cannot build, repository down??

2009-11-09 Thread Brian Fox
Yes, the dependency report does completely bypass the normal
repository mechanism and thus Nexus. This needs to be fixed, but noone
has attempted it yet that I know of.

On Thu, Nov 5, 2009 at 9:56 PM, Stevo Slavić  wrote:
> Using Nexus already. Any advices what needs to be configured (differently)?
> Currently in .m2/settings.xml a nexus repository is configured to be mirror
> of central, while another project specific repository (group) is defined in
> projects aggregator/parent pom.
>
> Nevertheless, dependencies report plugin messes up metadata in my local
> repository. It seems to query directly (not via repository manager) all the
> repositories (project's own and from dependencies) for existence of
> dependencies on them (hanging build, single very small module took about
> 18min to build a site with only project info reports - index, summary,
> dependencies, dependency convergence, dependency management, and plugin
> management reports); temporary workaround was to set
> dependencyLocationsEnabled to false.
>
> Not sure why does dependencies report plugin even use these repositories
> defined in dependencies pom's; I'm guessing because of transitive
> dependencies, as they probably might be resolved from repository defined in
> dependency. Since build of a module wouldn't pass validate phase if
> dependencies weren't resolved, IMO it would be more efficient if
> dependencies report instead of querying repositories again would just reuse
> dependency resolution info, from where given dependency was resolved from,
> assuming these info are available and shareable between dependency plugin
> and dependencies report plugin. If it's not available and/or shareable, then
> maybe dependencies report could just use same strategy to resolve
> dependencies location as dependency plugin uses to resolve dependencies,
> instead of "query all repositories" strategy.
>
> Regards,
> Stevo.
>
> On Thu, Nov 5, 2009 at 8:56 PM, Brian Fox  wrote:
>
>> You need a repository manager.
>>
>> On Thu, Nov 5, 2009 at 4:22 AM, Stevo Slavić  wrote:
>> > I'm experiencing similar issue. maven2-repository.dev.java.netrepository is
>> > not defined in any of my project modules, but it is in project's 3rd
>> party
>> > dependencies. These dependencies were uploaded on central repo with rule,
>> > that dependencies on central aren't allowed to reference external
>> > repositories, not obeyed (create
>> > issuefor this). When I
>> > install project Maven seems to generate these
>> > maven-metadata-%external-repo%.xml files. But if build includes site
>> > generation with maven-project-info-reports-plugin:dependencies:2.1.2
>> report
>> > generation, these metadata files seem to be updated in a way which makes
>> > every next build to fail with "Reason: Error getting POM for...", "Unable
>> to
>> > read local copy of metadata: Cannot read metadata from ..." error
>> messages.
>> >
>> > Regards,
>> > Stevo.
>> >
>> > On Wed, Aug 12, 2009 at 8:03 PM, Brian Fox  wrote:
>> >
>> >> Actually it looks like you're using a bad url to the repository. You
>> >> should instead use:
>> >> http://download.java.net/maven/2
>> >>
>> >> On Wed, Aug 12, 2009 at 1:51 PM, Arrowx7 wrote:
>> >> >
>> >> > Ok I reached something that I feared with maven: unable to get
>> >> dependency.
>> >> >
>> >> > When I try to build my project, i get this:
>> >> >
>> >> > Project ID: org.apache.maven.plugins:maven-site-plugin
>> >> >
>> >> > Reason: Error getting POM for
>> >> 'org.apache.maven.plugins:maven-site-plugin'
>> >> > from the repository: Unable to read local copy of metadata: Cannot
>> read
>> >> > metadata from
>> >> >
>> >>
>> '/home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml':
>> >> > end tag name  must match start tag name  from line 7
>> >> (position:
>> >> > TEXT seen ...\n... @9:8)
>> >> >  org.apache.maven.plugins:maven-site-plugin:pom:LATEST
>> >> >
>> >> >  for project org.apache.maven.plugins:maven-site-plugin
>> >> >
>> >> > I checked
>> >> >
>> >>
>> /home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml
>> >> > file and it gives me:
>> >> >
>> >> > 
>> >> > 
>> >> > 301 Moved Permanently
>> >> > 
>> >> > Moved Permanently
>> >> > The document has moved
>> >> >
>> >>
>> http://download.java.net/maven/2/org/apache/maven/plugins/maven-site-plugin/maven-metadata.xml
>> >> > here .
>> >> > 
>> >> > Apache Server at maven2-repository.dev.java.net Port
>> >> 443
>> >> > 
>> >> >
>> >> >
>> >> > If I go to the specified link it says "Page cannot be found".  Am I
>> >> > permanently stuck?  I searched my project for maven-site-plugin and
>> did
>> >> not
>> >> > find anything.  Why is it trying to get that anyway?  Is the
>> repository
>> >> down
>> >> > and I can NOT compile until it reopens?  Please advise me how to fix
>> it.
>> >>  I
>> >> > am a maven newbie.  However, I do know 

Re: Suck, cannot build, repository down??

2009-11-05 Thread Stevo Slavić
Using Nexus already. Any advices what needs to be configured (differently)?
Currently in .m2/settings.xml a nexus repository is configured to be mirror
of central, while another project specific repository (group) is defined in
projects aggregator/parent pom.

Nevertheless, dependencies report plugin messes up metadata in my local
repository. It seems to query directly (not via repository manager) all the
repositories (project's own and from dependencies) for existence of
dependencies on them (hanging build, single very small module took about
18min to build a site with only project info reports - index, summary,
dependencies, dependency convergence, dependency management, and plugin
management reports); temporary workaround was to set
dependencyLocationsEnabled to false.

Not sure why does dependencies report plugin even use these repositories
defined in dependencies pom's; I'm guessing because of transitive
dependencies, as they probably might be resolved from repository defined in
dependency. Since build of a module wouldn't pass validate phase if
dependencies weren't resolved, IMO it would be more efficient if
dependencies report instead of querying repositories again would just reuse
dependency resolution info, from where given dependency was resolved from,
assuming these info are available and shareable between dependency plugin
and dependencies report plugin. If it's not available and/or shareable, then
maybe dependencies report could just use same strategy to resolve
dependencies location as dependency plugin uses to resolve dependencies,
instead of "query all repositories" strategy.

Regards,
Stevo.

On Thu, Nov 5, 2009 at 8:56 PM, Brian Fox  wrote:

> You need a repository manager.
>
> On Thu, Nov 5, 2009 at 4:22 AM, Stevo Slavić  wrote:
> > I'm experiencing similar issue. maven2-repository.dev.java.netrepository is
> > not defined in any of my project modules, but it is in project's 3rd
> party
> > dependencies. These dependencies were uploaded on central repo with rule,
> > that dependencies on central aren't allowed to reference external
> > repositories, not obeyed (create
> > issuefor this). When I
> > install project Maven seems to generate these
> > maven-metadata-%external-repo%.xml files. But if build includes site
> > generation with maven-project-info-reports-plugin:dependencies:2.1.2
> report
> > generation, these metadata files seem to be updated in a way which makes
> > every next build to fail with "Reason: Error getting POM for...", "Unable
> to
> > read local copy of metadata: Cannot read metadata from ..." error
> messages.
> >
> > Regards,
> > Stevo.
> >
> > On Wed, Aug 12, 2009 at 8:03 PM, Brian Fox  wrote:
> >
> >> Actually it looks like you're using a bad url to the repository. You
> >> should instead use:
> >> http://download.java.net/maven/2
> >>
> >> On Wed, Aug 12, 2009 at 1:51 PM, Arrowx7 wrote:
> >> >
> >> > Ok I reached something that I feared with maven: unable to get
> >> dependency.
> >> >
> >> > When I try to build my project, i get this:
> >> >
> >> > Project ID: org.apache.maven.plugins:maven-site-plugin
> >> >
> >> > Reason: Error getting POM for
> >> 'org.apache.maven.plugins:maven-site-plugin'
> >> > from the repository: Unable to read local copy of metadata: Cannot
> read
> >> > metadata from
> >> >
> >>
> '/home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml':
> >> > end tag name  must match start tag name  from line 7
> >> (position:
> >> > TEXT seen ...\n... @9:8)
> >> >  org.apache.maven.plugins:maven-site-plugin:pom:LATEST
> >> >
> >> >  for project org.apache.maven.plugins:maven-site-plugin
> >> >
> >> > I checked
> >> >
> >>
> /home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml
> >> > file and it gives me:
> >> >
> >> > 
> >> > 
> >> > 301 Moved Permanently
> >> > 
> >> > Moved Permanently
> >> > The document has moved
> >> >
> >>
> http://download.java.net/maven/2/org/apache/maven/plugins/maven-site-plugin/maven-metadata.xml
> >> > here .
> >> > 
> >> > Apache Server at maven2-repository.dev.java.net Port
> >> 443
> >> > 
> >> >
> >> >
> >> > If I go to the specified link it says "Page cannot be found".  Am I
> >> > permanently stuck?  I searched my project for maven-site-plugin and
> did
> >> not
> >> > find anything.  Why is it trying to get that anyway?  Is the
> repository
> >> down
> >> > and I can NOT compile until it reopens?  Please advise me how to fix
> it.
> >>  I
> >> > am a maven newbie.  However, I do know for a fact that this same build
> >> > worked a month ago!  Please advise me on what to do.
> >> > --
> >> > View this message in context:
> >>
> http://www.nabble.com/Suck%2C-cannot-build%2C-repository-down---tp24941611p24941611.html
> >> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >> >
> >> >
> >> > -

Re: Suck, cannot build, repository down??

2009-11-05 Thread Brian Fox
You need a repository manager.

On Thu, Nov 5, 2009 at 4:22 AM, Stevo Slavić  wrote:
> I'm experiencing similar issue. maven2-repository.dev.java.net repository is
> not defined in any of my project modules, but it is in project's 3rd party
> dependencies. These dependencies were uploaded on central repo with rule,
> that dependencies on central aren't allowed to reference external
> repositories, not obeyed (create
> issuefor this). When I
> install project Maven seems to generate these
> maven-metadata-%external-repo%.xml files. But if build includes site
> generation with maven-project-info-reports-plugin:dependencies:2.1.2 report
> generation, these metadata files seem to be updated in a way which makes
> every next build to fail with "Reason: Error getting POM for...", "Unable to
> read local copy of metadata: Cannot read metadata from ..." error messages.
>
> Regards,
> Stevo.
>
> On Wed, Aug 12, 2009 at 8:03 PM, Brian Fox  wrote:
>
>> Actually it looks like you're using a bad url to the repository. You
>> should instead use:
>> http://download.java.net/maven/2
>>
>> On Wed, Aug 12, 2009 at 1:51 PM, Arrowx7 wrote:
>> >
>> > Ok I reached something that I feared with maven: unable to get
>> dependency.
>> >
>> > When I try to build my project, i get this:
>> >
>> > Project ID: org.apache.maven.plugins:maven-site-plugin
>> >
>> > Reason: Error getting POM for
>> 'org.apache.maven.plugins:maven-site-plugin'
>> > from the repository: Unable to read local copy of metadata: Cannot read
>> > metadata from
>> >
>> '/home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml':
>> > end tag name  must match start tag name  from line 7
>> (position:
>> > TEXT seen ...\n... @9:8)
>> >  org.apache.maven.plugins:maven-site-plugin:pom:LATEST
>> >
>> >  for project org.apache.maven.plugins:maven-site-plugin
>> >
>> > I checked
>> >
>> /home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml
>> > file and it gives me:
>> >
>> > 
>> > 
>> > 301 Moved Permanently
>> > 
>> > Moved Permanently
>> > The document has moved
>> >
>> http://download.java.net/maven/2/org/apache/maven/plugins/maven-site-plugin/maven-metadata.xml
>> > here .
>> > 
>> > Apache Server at maven2-repository.dev.java.net Port
>> 443
>> > 
>> >
>> >
>> > If I go to the specified link it says "Page cannot be found".  Am I
>> > permanently stuck?  I searched my project for maven-site-plugin and did
>> not
>> > find anything.  Why is it trying to get that anyway?  Is the repository
>> down
>> > and I can NOT compile until it reopens?  Please advise me how to fix it.
>>  I
>> > am a maven newbie.  However, I do know for a fact that this same build
>> > worked a month ago!  Please advise me on what to do.
>> > --
>> > View this message in context:
>> http://www.nabble.com/Suck%2C-cannot-build%2C-repository-down---tp24941611p24941611.html
>> > Sent from the Maven - Users mailing list archive at Nabble.com.
>> >
>> >
>> > -
>> > 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
>>
>>
>

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



Re: Suck, cannot build, repository down??

2009-08-12 Thread Brian Fox
Actually it looks like you're using a bad url to the repository. You
should instead use:
http://download.java.net/maven/2

On Wed, Aug 12, 2009 at 1:51 PM, Arrowx7 wrote:
>
> Ok I reached something that I feared with maven: unable to get dependency.
>
> When I try to build my project, i get this:
>
> Project ID: org.apache.maven.plugins:maven-site-plugin
>
> Reason: Error getting POM for 'org.apache.maven.plugins:maven-site-plugin'
> from the repository: Unable to read local copy of metadata: Cannot read
> metadata from
> '/home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml':
> end tag name  must match start tag name  from line 7 (position:
> TEXT seen ...\n... @9:8)
>  org.apache.maven.plugins:maven-site-plugin:pom:LATEST
>
>  for project org.apache.maven.plugins:maven-site-plugin
>
> I checked
> /home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml
> file and it gives me:
>
> 
> 
> 301 Moved Permanently
> 
> Moved Permanently
> The document has moved
> http://download.java.net/maven/2/org/apache/maven/plugins/maven-site-plugin/maven-metadata.xml
> here .
> 
> Apache Server at maven2-repository.dev.java.net Port 443
> 
>
>
> If I go to the specified link it says "Page cannot be found".  Am I
> permanently stuck?  I searched my project for maven-site-plugin and did not
> find anything.  Why is it trying to get that anyway?  Is the repository down
> and I can NOT compile until it reopens?  Please advise me how to fix it.  I
> am a maven newbie.  However, I do know for a fact that this same build
> worked a month ago!  Please advise me on what to do.
> --
> View this message in context: 
> http://www.nabble.com/Suck%2C-cannot-build%2C-repository-down---tp24941611p24941611.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> 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: Suck, cannot build, repository down??

2009-08-12 Thread Brian Fox
This is a major problem it looks like with the dev.java.net
repository, it's returning garbage in the form of html instead of
simply nacking the existence of that file.

On Wed, Aug 12, 2009 at 1:51 PM, Arrowx7 wrote:
>
> Ok I reached something that I feared with maven: unable to get dependency.
>
> When I try to build my project, i get this:
>
> Project ID: org.apache.maven.plugins:maven-site-plugin
>
> Reason: Error getting POM for 'org.apache.maven.plugins:maven-site-plugin'
> from the repository: Unable to read local copy of metadata: Cannot read
> metadata from
> '/home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml':
> end tag name  must match start tag name  from line 7 (position:
> TEXT seen ...\n... @9:8)
>  org.apache.maven.plugins:maven-site-plugin:pom:LATEST
>
>  for project org.apache.maven.plugins:maven-site-plugin
>
> I checked
> /home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml
> file and it gives me:
>
> 
> 
> 301 Moved Permanently
> 
> Moved Permanently
> The document has moved
> http://download.java.net/maven/2/org/apache/maven/plugins/maven-site-plugin/maven-metadata.xml
> here .
> 
> Apache Server at maven2-repository.dev.java.net Port 443
> 
>
>
> If I go to the specified link it says "Page cannot be found".  Am I
> permanently stuck?  I searched my project for maven-site-plugin and did not
> find anything.  Why is it trying to get that anyway?  Is the repository down
> and I can NOT compile until it reopens?  Please advise me how to fix it.  I
> am a maven newbie.  However, I do know for a fact that this same build
> worked a month ago!  Please advise me on what to do.
> --
> View this message in context: 
> http://www.nabble.com/Suck%2C-cannot-build%2C-repository-down---tp24941611p24941611.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> 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



Suck, cannot build, repository down??

2009-08-12 Thread Arrowx7

Ok I reached something that I feared with maven: unable to get dependency.  

When I try to build my project, i get this:

Project ID: org.apache.maven.plugins:maven-site-plugin

Reason: Error getting POM for 'org.apache.maven.plugins:maven-site-plugin'
from the repository: Unable to read local copy of metadata: Cannot read
metadata from
'/home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml':
end tag name  must match start tag name  from line 7 (position:
TEXT seen ...\n... @9:8) 
  org.apache.maven.plugins:maven-site-plugin:pom:LATEST

 for project org.apache.maven.plugins:maven-site-plugin

I checked
/home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml
file and it gives me:



301 Moved Permanently

Moved Permanently
The document has moved 
http://download.java.net/maven/2/org/apache/maven/plugins/maven-site-plugin/maven-metadata.xml
here .

Apache Server at maven2-repository.dev.java.net Port 443



If I go to the specified link it says "Page cannot be found".  Am I
permanently stuck?  I searched my project for maven-site-plugin and did not
find anything.  Why is it trying to get that anyway?  Is the repository down
and I can NOT compile until it reopens?  Please advise me how to fix it.  I
am a maven newbie.  However, I do know for a fact that this same build
worked a month ago!  Please advise me on what to do.
-- 
View this message in context: 
http://www.nabble.com/Suck%2C-cannot-build%2C-repository-down---tp24941611p24941611.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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