BUILD FAILURE...could not resolve depedencies

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

BUILD FAILURE...could not resolve depedencies

OntoBLW
Hi,
I am developing a plugin. All was working fine until a build failure was raised. Is it related to a network problem? how can I fix it? In what follows the message appended in my IDE:
------------------------------------------------------------------------
Building OWLChanges 1.0.1-SNAPSHOT
------------------------------------------------------------------------
The metadata C:\Users\g50\.m2\repository\org\eclipse\equinox\common\maven-metadata-central.xml is invalid: attribute value must start with quotation or apostrophe not C (position: TEXT seen <html><head>\n<meta http-equiv=C... @2:19)
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 1.798s
Finished at: Mon Feb 06 17:37:22 GMT+01:00 2017
Final Memory: 6M/15M
------------------------------------------------------------------------
Failed to execute goal on project protege.plugin.owlchanges: Could not resolve dependencies for project edu.stanford.protege:protege.plugin.owlchanges:bundle:1.0.1-SNAPSHOT: Failure to find org.eclipse.equinox:common:jar:3.3.0-v20070426 in https://repository.sonatype.org/content/groups/forge/ was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-forge has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILURE...could not resolve depedencies

Josef Hardi
Hi,

please check if this solution may work for you

Best,
Josef

On Feb 6, 2017, at 9:08 AM, OntoBLW <[hidden email]> wrote:

Hi,
I am developing a plugin. All was working fine until a build failure was
raised. Is it related to a network problem? how can I fix it? In what
follows the message appended in my IDE:
------------------------------------------------------------------------
Building OWLChanges 1.0.1-SNAPSHOT
------------------------------------------------------------------------
The metadata
C:\Users\g50\.m2\repository\org\eclipse\equinox\common\maven-metadata-central.xml
is invalid: attribute value must start with quotation or apostrophe not C
(position: TEXT seen <html><head>\n<meta http-equiv=C... @2:19)
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 1.798s
Finished at: Mon Feb 06 17:37:22 GMT+01:00 2017
Final Memory: 6M/15M
------------------------------------------------------------------------
Failed to execute goal on project protege.plugin.owlchanges: Could not
resolve dependencies for project
edu.stanford.protege:protege.plugin.owlchanges:bundle:1.0.1-SNAPSHOT:
Failure to find org.eclipse.equinox:common:jar:3.3.0-v20070426 in
https://repository.sonatype.org/content/groups/forge/ was cached in the
local repository, resolution will not be reattempted until the update
interval of sonatype-forge has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read
the following articles:
[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException



--
View this message in context: http://protege-project.136.n4.nabble.com/BUILD-FAILURE-could-not-resolve-depedencies-tp4667439.html
Sent from the Protege Developer mailing list archive at Nabble.com.
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILURE...could not resolve depedencies

Simon Spero-2
In reply to this post by OntoBLW
On Mon, Feb 6, 2017 at 12:08 PM, OntoBLW <[hidden email]> wrote:
 
------------------------------------------------------------------------
Building OWLChanges 1.0.1-SNAPSHOT
------------------------------------------------------------------------
The metadata
C:\Users\g50\.m2\repository\org\eclipse\equinox\common\maven-metadata-central.xml
is invalid: attribute value must start with quotation or apostrophe not C
(position: TEXT seen <html><head>\n<meta http-equiv=C... @2:19)

Let's break this down: you are attempting to resolve the artifact 'org.eclipse.equinox:common:jar:3.3.0-v20070426'

That breaks down to group: "org.eclipse.equinox", name: "common" , version: "3.3.0-v20070426"  

The error message suggests a problem in a fetch from maven central, since the content looks like html. 

Had this been the actual maven-metadata.xml file from central, it would have looked like this:

  <metadata>
<groupId>org.eclipse.equinox</groupId>
<artifactId>common</artifactId>
<versioning>
<latest>3.6.200-v20130402-1505</latest>
<release>3.6.200-v20130402-1505</release>
<versions>
<version>3.6.200-v20130402-1505</version>
</versions>
<lastUpdated>20131105141827</lastUpdated>
</versioning>
</metadata>
Note that the versions listed here don't include any 3.3.0 version (although the contents do exist). That usually indicates a disfavored version. 
his 
This dependency has been part of  many different maven groups, with different artifact names .

compile group: 'org.eclipse.equinox', name: 'org.eclipse.equinox.common', version: '3.6.0.v20100503'
(which is, oddly, older than the version listed above 

The current version is 3.8.0 

This is available at:

<dependency>
    <groupId>org.eclipse.platform</groupId>
    <artifactId>org.eclipse.equinox.common</artifactId>
    <version>3.8.0</version>
</dependency>

However, the official groupId found in the equinox SDK bundle is "org.eclipse.equinox

Simon
 
 
------------------------------------------------------------------------
Failed to execute goal on project protege.plugin.owlchanges: Could not
resolve dependencies for project
edu.stanford.protege:protege.plugin.owlchanges:bundle:1.0.1-SNAPSHOT:
Failure to find org.eclipse.equinox:common:jar:3.3.0-v20070426 in
https://repository.sonatype.org/content/groups/forge/ was cached in the
local repository, resolution will not be reattempted until the update
interval of sonatype-forge has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read
the following articles:
[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException



--
View this message in context: http://protege-project.136.n4.nabble.com/BUILD-FAILURE-could-not-resolve-depedencies-tp4667439.html
Sent from the Protege Developer mailing list archive at Nabble.com.
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: BUILD FAILURE...could not resolve depedencies

OntoBLW
Hi,
Thanks all.
Today, the error disappeared without doing any efforts. Could I do any solution to prevent this failure next time (all my yesterday was spent on just trying resolving this error)?
Thanks in advance.