You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Grzegorz Trzeciak <gt...@gmail.com> on 2018/08/04 21:21:58 UTC

Missing dependency when building Stanbol (org.apache.stanbol.data.opennlp.ner.en:jar:1.2.0)

Hi

While running:
mvn clean package tomcat7:run
on full-war

I got the following error:
[ERROR] Failed to execute goal
org.apache.sling:maven-launchpad-plugin:2.3.2:prepare-package
(prepare-package) on project org.apache.stanbol.launchers.full-war: Unable
to find artifact.: Could not find artifact
org.apache.stanbol:org.apache.stanbol.data.opennlp.ner.en:jar:1.2.0 in
central (https://repo.maven.apache.org/maven2)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR]     mvn install:install-file -DgroupId=org.apache.stanbol
-DartifactId=org.apache.stanbol.data.opennlp.ner.en -Dversion=1.2.0
-Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the
file there:
[ERROR]     mvn deploy:deploy-file -DgroupId=org.apache.stanbol
-DartifactId=org.apache.stanbol.data.opennlp.ner.en -Dversion=1.2.0
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR]
 org.apache.stanbol:org.apache.stanbol.data.opennlp.ner.en:jar:1.2.0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR]   apache.snapshots (https://repository.apache.org/snapshots,
releases=false, snapshots=true),
[ERROR]   central (https://repo.maven.apache.org/maven2, releases=true,
snapshots=false)
[ERROR] -> [Help 1]

I couldn't find anywhere in the mentioned repo correct jar files so any
advice on building and possibly fixing the dependency in the repo would be
welcomed

Best wishes

Grzegorz

Re: Missing dependency when building Stanbol (org.apache.stanbol.data.opennlp.ner.en:jar:1.2.0)

Posted by Grzegorz Trzeciak <gt...@gmail.com>.
Excellent, thank you for such a prompt answer.
mvn clean install    <-  was what I was missing

I was able to build stanbol and full-war so I can finally use with tomcat,
but the main build (on Windows) had also some test failiures (I attach the
error details)  :
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test)
on project org.apache.stanbol.enhancer.engine.topic: There are test
failures.
[ERROR]
[ERROR] Please refer to
E:\LinkedData\apache-stanbol-1.0.0\enhancement-engines\topic\engine\target\surefire-reports
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :org.apache.stanbol.enhancer.engine.topic

sob., 4 sie 2018 o 23:35 Rupert Westenthaler <ru...@gmail.com>
napisał(a):

> Hi Grzegorz,
>
> some data dependencies need to be built locally. You need to call
>
>     min clean install
>
> first so that the data modules are built and installed to your local
> repository
>
> best
> Rupert
>
> On Saturday, August 4, 2018, Grzegorz Trzeciak <gt...@gmail.com>
> wrote:
>
> > Hi
> >
> > While running:
> > mvn clean package tomcat7:run
> > on full-war
> >
> > I got the following error:
> > [ERROR] Failed to execute goal
> > org.apache.sling:maven-launchpad-plugin:2.3.2:prepare-package
> > (prepare-package) on project org.apache.stanbol.launchers.full-war:
> Unable
> > to find artifact.: Could not find artifact
> > org.apache.stanbol:org.apache.stanbol.data.opennlp.ner.en:jar:1.2.0 in
> > central (https://repo.maven.apache.org/maven2)
> > [ERROR]
> > [ERROR] Try downloading the file manually from the project website.
> > [ERROR]
> > [ERROR] Then, install it using the command:
> > [ERROR]     mvn install:install-file -DgroupId=org.apache.stanbol
> > -DartifactId=org.apache.stanbol.data.opennlp.ner.en -Dversion=1.2.0
> > -Dpackaging=jar -Dfile=/path/to/file
> > [ERROR]
> > [ERROR] Alternatively, if you host your own repository you can deploy the
> > file there:
> > [ERROR]     mvn deploy:deploy-file -DgroupId=org.apache.stanbol
> > -DartifactId=org.apache.stanbol.data.opennlp.ner.en -Dversion=1.2.0
> > -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> > [ERROR]
> > [ERROR]
> > [ERROR]
> >  org.apache.stanbol:org.apache.stanbol.data.opennlp.ner.en:jar:1.2.0
> > [ERROR]
> > [ERROR] from the specified remote repositories:
> > [ERROR]   apache.snapshots (https://repository.apache.org/snapshots,
> > releases=false, snapshots=true),
> > [ERROR]   central (https://repo.maven.apache.org/maven2, releases=true,
> > snapshots=false)
> > [ERROR] -> [Help 1]
> >
> > I couldn't find anywhere in the mentioned repo correct jar files so any
> > advice on building and possibly fixing the dependency in the repo would
> be
> > welcomed
> >
> > Best wishes
> >
> > Grzegorz
> >
>
>
> --
> | Rupert Westenthaler             rupert.westenthaler@gmail.com
> | Bodenlehenstraße 11                              ++43-699-11108907
> | A-5500 Bischofshofen
> | REDLINK.CO
> ..........................................................................
> | http://redlink.co/
>

Re: Missing dependency when building Stanbol (org.apache.stanbol.data.opennlp.ner.en:jar:1.2.0)

Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi Grzegorz,

some data dependencies need to be built locally. You need to call

    min clean install

first so that the data modules are built and installed to your local
repository

best
Rupert

On Saturday, August 4, 2018, Grzegorz Trzeciak <gt...@gmail.com> wrote:

> Hi
>
> While running:
> mvn clean package tomcat7:run
> on full-war
>
> I got the following error:
> [ERROR] Failed to execute goal
> org.apache.sling:maven-launchpad-plugin:2.3.2:prepare-package
> (prepare-package) on project org.apache.stanbol.launchers.full-war: Unable
> to find artifact.: Could not find artifact
> org.apache.stanbol:org.apache.stanbol.data.opennlp.ner.en:jar:1.2.0 in
> central (https://repo.maven.apache.org/maven2)
> [ERROR]
> [ERROR] Try downloading the file manually from the project website.
> [ERROR]
> [ERROR] Then, install it using the command:
> [ERROR]     mvn install:install-file -DgroupId=org.apache.stanbol
> -DartifactId=org.apache.stanbol.data.opennlp.ner.en -Dversion=1.2.0
> -Dpackaging=jar -Dfile=/path/to/file
> [ERROR]
> [ERROR] Alternatively, if you host your own repository you can deploy the
> file there:
> [ERROR]     mvn deploy:deploy-file -DgroupId=org.apache.stanbol
> -DartifactId=org.apache.stanbol.data.opennlp.ner.en -Dversion=1.2.0
> -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> [ERROR]
> [ERROR]
> [ERROR]
>  org.apache.stanbol:org.apache.stanbol.data.opennlp.ner.en:jar:1.2.0
> [ERROR]
> [ERROR] from the specified remote repositories:
> [ERROR]   apache.snapshots (https://repository.apache.org/snapshots,
> releases=false, snapshots=true),
> [ERROR]   central (https://repo.maven.apache.org/maven2, releases=true,
> snapshots=false)
> [ERROR] -> [Help 1]
>
> I couldn't find anywhere in the mentioned repo correct jar files so any
> advice on building and possibly fixing the dependency in the repo would be
> welcomed
>
> Best wishes
>
> Grzegorz
>


-- 
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                              ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO
..........................................................................
| http://redlink.co/