SWRL API Project Build Errors

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

SWRL API Project Build Errors

martingrant
Hi there, I'm trying to build the SWRL API project so I can build a Java app
to execute SWRL rules on an ontology. I'm trying to build the API on Linux
following the instructions from the Github repo. It builds the API itself
correctly but fails on Drools-based SWRL Rule Engine. The error is as
follows:

"Failed to execute goal on project swrlapi-drools-engine: Could not resolve
dependencies for project
edu.stanford.swrl:swrlapi-drools-engine:bundle:2.0.5: Failed to collect
dependencies at org.drools:drools-osgi-integration:jar:6.5.0.Final: Failed
to read artifact descriptor for
org.drools:drools-osgi-integration:jar:6.5.0.Final: Could not transfer
artifact org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.5.0.Final
from/to jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public/): extension (10)
should not be presented in server_hello -> [Help 1]"

Does anyone know what I need to fix this error? Thanks.



--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: SWRL API Project Build Errors

Martin O'Connor-2

Have you tried compiling the swrlapi-example project?

https://github.com/protegeproject/swrlapi-example

The POM defined in the project should have the dependencies that will work with the latest SWRLAPI release.

Does the following work for you?

git clone https://github.com/protegeproject/swrlapi-example.git
cd swrlapi-example/
mvn clean install

Martin

> On Nov 30, 2018, at 1:57 PM, martingrant <[hidden email]> wrote:
>
> Hi there, I'm trying to build the SWRL API project so I can build a Java app
> to execute SWRL rules on an ontology. I'm trying to build the API on Linux
> following the instructions from the Github repo. It builds the API itself
> correctly but fails on Drools-based SWRL Rule Engine. The error is as
> follows:
>
> "Failed to execute goal on project swrlapi-drools-engine: Could not resolve
> dependencies for project
> edu.stanford.swrl:swrlapi-drools-engine:bundle:2.0.5: Failed to collect
> dependencies at org.drools:drools-osgi-integration:jar:6.5.0.Final: Failed
> to read artifact descriptor for
> org.drools:drools-osgi-integration:jar:6.5.0.Final: Could not transfer
> artifact org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.5.0.Final
> from/to jboss-public-repository-group
> (https://repository.jboss.org/nexus/content/groups/public/): extension (10)
> should not be presented in server_hello -> [Help 1]"
>
> Does anyone know what I need to fix this error? Thanks.
>
>
>
> --
> Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
> _______________________________________________
> 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: SWRL API Project Build Errors

martingrant
Hi Martin,

Thanks for your reply. Yeah I’ve tried the example project, the build project and the individual components.

I tried specifying older versions in the POM files just in case there was a problem with the most up to date version but I still get the same build errors.

Any help you can provide is appreciated.
Thanks

> On 30 Nov 2018, at 17:31, Martin O'Connor <[hidden email]> wrote:
>
>
> Have you tried compiling the swrlapi-example project?
>
> https://github.com/protegeproject/swrlapi-example
>
> The POM defined in the project should have the dependencies that will work with the latest SWRLAPI release.
>
> Does the following work for you?
>
> git clone https://github.com/protegeproject/swrlapi-example.git
> cd swrlapi-example/
> mvn clean install
>
> Martin
>
>> On Nov 30, 2018, at 1:57 PM, martingrant <[hidden email]> wrote:
>>
>> Hi there, I'm trying to build the SWRL API project so I can build a Java app
>> to execute SWRL rules on an ontology. I'm trying to build the API on Linux
>> following the instructions from the Github repo. It builds the API itself
>> correctly but fails on Drools-based SWRL Rule Engine. The error is as
>> follows:
>>
>> "Failed to execute goal on project swrlapi-drools-engine: Could not resolve
>> dependencies for project
>> edu.stanford.swrl:swrlapi-drools-engine:bundle:2.0.5: Failed to collect
>> dependencies at org.drools:drools-osgi-integration:jar:6.5.0.Final: Failed
>> to read artifact descriptor for
>> org.drools:drools-osgi-integration:jar:6.5.0.Final: Could not transfer
>> artifact org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.5.0.Final
>> from/to jboss-public-repository-group
>> (https://repository.jboss.org/nexus/content/groups/public/): extension (10)
>> should not be presented in server_hello -> [Help 1]"
>>
>> Does anyone know what I need to fix this error? Thanks.
>>
>>
>>
>> --
>> Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
>> _______________________________________________
>> 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
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: SWRL API Project Build Errors

Martin O'Connor-2
Sorry - not following your response. Did the 2.0.5 version of the example project build successfully for you?

Martin

> On Nov 30, 2018, at 7:35 PM, Martin Grant <[hidden email]> wrote:
>
> Hi Martin,
>
> Thanks for your reply. Yeah I’ve tried the example project, the build project and the individual components.
>
> I tried specifying older versions in the POM files just in case there was a problem with the most up to date version but I still get the same build errors.
>
> Any help you can provide is appreciated.
> Thanks
>
>> On 30 Nov 2018, at 17:31, Martin O'Connor <[hidden email]> wrote:
>>
>>
>> Have you tried compiling the swrlapi-example project?
>>
>> https://github.com/protegeproject/swrlapi-example
>>
>> The POM defined in the project should have the dependencies that will work with the latest SWRLAPI release.
>>
>> Does the following work for you?
>>
>> git clone https://github.com/protegeproject/swrlapi-example.git
>> cd swrlapi-example/
>> mvn clean install
>>
>> Martin
>>
>>> On Nov 30, 2018, at 1:57 PM, martingrant <[hidden email]> wrote:
>>>
>>> Hi there, I'm trying to build the SWRL API project so I can build a Java app
>>> to execute SWRL rules on an ontology. I'm trying to build the API on Linux
>>> following the instructions from the Github repo. It builds the API itself
>>> correctly but fails on Drools-based SWRL Rule Engine. The error is as
>>> follows:
>>>
>>> "Failed to execute goal on project swrlapi-drools-engine: Could not resolve
>>> dependencies for project
>>> edu.stanford.swrl:swrlapi-drools-engine:bundle:2.0.5: Failed to collect
>>> dependencies at org.drools:drools-osgi-integration:jar:6.5.0.Final: Failed
>>> to read artifact descriptor for
>>> org.drools:drools-osgi-integration:jar:6.5.0.Final: Could not transfer
>>> artifact org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.5.0.Final
>>> from/to jboss-public-repository-group
>>> (https://repository.jboss.org/nexus/content/groups/public/): extension (10)
>>> should not be presented in server_hello -> [Help 1]"
>>>
>>> Does anyone know what I need to fix this error? Thanks.
>>>
>>>
>>>
>>> --
>>> Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
>>> _______________________________________________
>>> 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
> _______________________________________________
> 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: SWRL API Project Build Errors

martingrant
Hi Martin,

No it doesn't build, the error message I get is the one in my original post. It fails to retrieve some dependencies.

Thanks

From: protege-dev <[hidden email]> on behalf of Martin O'Connor <[hidden email]>
Sent: 01 December 2018 17:11
To: Developer support for WebProtege and Protege Desktop
Subject: Re: [protege-dev] SWRL API Project Build Errors
 
Sorry - not following your response. Did the 2.0.5 version of the example project build successfully for you?

Martin

> On Nov 30, 2018, at 7:35 PM, Martin Grant <[hidden email]> wrote:
>
> Hi Martin,
>
> Thanks for your reply. Yeah I’ve tried the example project, the build project and the individual components.
>
> I tried specifying older versions in the POM files just in case there was a problem with the most up to date version but I still get the same build errors.
>
> Any help you can provide is appreciated.
> Thanks
>
>> On 30 Nov 2018, at 17:31, Martin O'Connor <[hidden email]> wrote:
>>
>>
>> Have you tried compiling the swrlapi-example project?
>>
>> https://github.com/protegeproject/swrlapi-example
>>
>> The POM defined in the project should have the dependencies that will work with the latest SWRLAPI release.
>>
>> Does the following work for you?
>>
>> git clone https://github.com/protegeproject/swrlapi-example.git
>> cd swrlapi-example/
>> mvn clean install
>>
>> Martin
>>
>>> On Nov 30, 2018, at 1:57 PM, martingrant <[hidden email]> wrote:
>>>
>>> Hi there, I'm trying to build the SWRL API project so I can build a Java app
>>> to execute SWRL rules on an ontology. I'm trying to build the API on Linux
>>> following the instructions from the Github repo. It builds the API itself
>>> correctly but fails on Drools-based SWRL Rule Engine. The error is as
>>> follows:
>>>
>>> "Failed to execute goal on project swrlapi-drools-engine: Could not resolve
>>> dependencies for project
>>> edu.stanford.swrl:swrlapi-drools-engine:bundle:2.0.5: Failed to collect
>>> dependencies at org.drools:drools-osgi-integration:jar:6.5.0.Final: Failed
>>> to read artifact descriptor for
>>> org.drools:drools-osgi-integration:jar:6.5.0.Final: Could not transfer
>>> artifact org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.5.0.Final
>>> from/to jboss-public-repository-group
>>> (https://repository.jboss.org/nexus/content/groups/public/): extension (10)
>>> should not be presented in server_hello -> [Help 1]"
>>>
>>> Does anyone know what I need to fix this error? Thanks.
>>>
>>>
>>>
>>> --
>>> Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
>>> _______________________________________________
>>> 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
> _______________________________________________
> 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

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

Re: SWRL API Project Build Errors

martingrant
In reply to this post by Martin O'Connor-2
The example project (https://github.com/protegeproject/swrlapi-example)
outside of the build project
(https://github.com/protegeproject/swrlapi-project) fails to build. I'm
following the instructions on the repo as they are written. The error is:

[ERROR] Failed to execute goal on project swrlapi-example: Could not resolve
dependencies for project edu.stanford.swrl:swrlapi-example:jar:2.0.5: Failed
to collect dependencies at edu.stanford.swrl:swrlapi-drools-engine:jar:2.0.5
-> org.drools:drools-osgi-integration:jar:6.5.0.Final: Failed to read
artifact descriptor for org.drools:drools-osgi-integration:jar:6.5.0.Final:
Could not transfer artifact
org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.5.0.Final from/to
jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public/): extension (10)
should not be presented in server_hello -> [Help 1]




--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: SWRL API Project Build Errors

Martin O'Connor-2

I am not sure what is going on. The artifact you mentioned is accessible here so should be resolved by Maven:

https://repository.jboss.org/nexus/content/groups/public/org/jboss/dashboard-builder/dashboard-builder-bom/6.5.0.Final/dashboard-builder-bom-6.5.0.Final.pom

The only things I can think of to try (and they are longshots):

. Are you using an older version of Maven?
. Do you have a custom Maven settings file (in ~/.m2/settings.xml) that might be causing resolution issues?

Martin

On Dec 3, 2018, at 6:11 PM, martingrant <[hidden email]> wrote:

The example project (https://github.com/protegeproject/swrlapi-example)
outside of the build project
(https://github.com/protegeproject/swrlapi-project) fails to build. I'm
following the instructions on the repo as they are written. The error is:

[ERROR] Failed to execute goal on project swrlapi-example: Could not resolve
dependencies for project edu.stanford.swrl:swrlapi-example:jar:2.0.5: Failed
to collect dependencies at edu.stanford.swrl:swrlapi-drools-engine:jar:2.0.5
-> org.drools:drools-osgi-integration:jar:6.5.0.Final: Failed to read
artifact descriptor for org.drools:drools-osgi-integration:jar:6.5.0.Final:
Could not transfer artifact
org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.5.0.Final from/to
jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public/): extension (10)
should not be presented in server_hello -> [Help 1]




--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
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: SWRL API Project Build Errors

martingrant
Hi Martin,

Thanks for your reply. Apologies for duplicating my issue on the Github
page, I was getting very frustrated and looking for additional suggestions.
The problem is solved so I'll close the issue there.

Your suggestion made me look at the version of Maven, which was fine.
However Maven was using Java 11 while my Java compiler was on 8. I'm running
Ubuntu and using a terminal app which switches which version of Java is
used, however it seemed it was not doing it by editing the JAVA_HOME
variable. Really tricky problem to spot and I would have got no where
without your suggestion. So the project now builds fine for me, so thank you
greatly for your help. I can finally move on!

Thanks



--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: SWRL API Project Build Errors

Martin O'Connor-2
Great. Thanks for reporting the solution.

Martin

> On Dec 6, 2018, at 15:03, martingrant <[hidden email]> wrote:
>
> Hi Martin,
>
> Thanks for your reply. Apologies for duplicating my issue on the Github
> page, I was getting very frustrated and looking for additional suggestions.
> The problem is solved so I'll close the issue there.
>
> Your suggestion made me look at the version of Maven, which was fine.
> However Maven was using Java 11 while my Java compiler was on 8. I'm running
> Ubuntu and using a terminal app which switches which version of Java is
> used, however it seemed it was not doing it by editing the JAVA_HOME
> variable. Really tricky problem to spot and I would have got no where
> without your suggestion. So the project now builds fine for me, so thank you
> greatly for your help. I can finally move on!
>
> Thanks
>
>
>
> --
> Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
> _______________________________________________
> 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