delete .jar without version using repo:delete()
Thursday, 18 January 2018 · 3 messages · last reply 19 Jan 2018
WB
Wissemann, Bodo18 Jan 2018 11:58 #
Hello everybody,
I’m trying to uninstall a jar which has no version using the repo-module.
The jar is the „BaseX-EMail-module" which I didn’t modify. When it is installed, there is none of the described errors raised:
"not-found:
a package does not exist.
descriptor: the package descriptor is invalid.
installed: the module contained in the package to be installed is already installed as part of another package.
parse: an error occurred while parsing the package.
version: the package version is not supported.“
When I check
repo:list() it shows this entry:
"<package name="org.basex.modules.email.EMail" version="-" type="Internal“/>“
As you can see, no Version is found. I’ve tried to include a "Version=1.0“ in the MANIFEST.MF, but that didn’t change anything.
How is the Version set if there’s no package-descriptor? Or is that not possible and I have to use a package-descriptor?
Can I delete packages without versions?
Thx a lot
Bodo Wissemann--
Bodo Wissemann
adesso AG
Rotherstr. 19
10245 Berlin
Email bodo.wissemann at adesso.de
-------------------------------------------------------
Quoted text · 1 line
>>> business. people. technology. <<<
-------------------------------------------------------
adesso AG mit Sitz in Dortmund
Vorstand: Michael Kenfenheuer (Vors.), Christoph Junge, Andreas Prenneis Vorsitzender des Aufsichtsrates: Prof. Dr. Volker Gruhn
Amtsgericht Dortmund HRB 20663
CG
Christian Grün18 Jan 2018 12:12 #
Hi Bodo,
Right now, versioning is only suppoted by the EXPath packaging mechanism. With BaseX packaging, there will always be a single module instance in your repository.
In line with this, when deleting such modules, there is no need to specify a version number.
Hope this helps,
Christian
Quoted text · Bodo · 105 lines
On Thu, Jan 18, 2018 at 11:58 AM, Wissemann, Bodo <Bodo.Wissemann at adesso.de> wrote: > Hello everybody, > > > > > > I’m trying to uninstall a jar which has no version using the repo-module. > > > > The jar is the „BaseX-EMail-module" which I didn’t modify. When it is > installed, there is none of the described errors raised: > > > > "*not-found <http://docs.basex.org/wiki/Repository_Module#Errors>*: a > package does not exist. > > *descriptor <http://docs.basex.org/wiki/Repository_Module#Errors>*: the > package descriptor is invalid. > *installed <http://docs.basex.org/wiki/Repository_Module#Errors>*: the > module contained in the package to be installed is already installed as > part of another package. > *parse <http://docs.basex.org/wiki/Repository_Module#Errors>*: an error > occurred while parsing the package. > *version <http://docs.basex.org/wiki/Repository_Module#Errors>*: the > package version is not supported.“ > > > > > > When I check repo:list() it shows this entry: > > > > "<package name="org.basex.modules.email.EMail" *version="-"* type=" > Internal“/>“ > > > > As you can see, no Version is found. I’ve tried to include a "Version=1.0“ > in the MANIFEST.MF, but that didn’t change anything. > > > > > > How is the Version set if there’s no package-descriptor? Or is that not > possible and I have to use a package-descriptor? > > > > > > Can I delete packages without versions? > > > > > > > > Thx a lot > > > > > > Bodo Wissemann > > > > > > -- > > Bodo Wissemann > > adesso AG > > Rotherstr. 19 > <https://maps.google.com/?q=Rotherstr.+19%0D+10245+Berlin&entry=gmail&source=g> > > 10245 Berlin > <https://maps.google.com/?q=Rotherstr.+19%0D+10245+Berlin&entry=gmail&source=g> > > > > Email bodo.wissemann at adesso.de <Sumit.Kapoor at adesso.de> > > ------------------------------------------------------- > >>> business. people. technology. <<< > ------------------------------------------------------- > > adesso AG mit Sitz in Dortmund > Vorstand: Michael Kenfenheuer (Vors.), Christoph Junge, Andreas Prenneis > Vorsitzender des Aufsichtsrates: Prof. Dr. Volker Gruhn > Amtsgericht Dortmund HRB 20663 > > > <https://www.adesso.de/de/impulse/customer-experience/index.jsp?utm_source=E-Mail-Signatur&utm_medium=Banner&utm_campaign=Customer> >
WB
Wissemann, Bodo19 Jan 2018 09:53 #
Thank you Christian, i’ll try again!
But the documentation says:
Signatures
repo:delete($pkg as xs:string) as empty-sequence()Summary
Deletes a package. The parameter $pkg indicates either the package name as specified in the package descriptor (which I don’t have) or the name, suffixed with a hyphen and the package version (which I also don’t have)
Maybe this documentation could be extended by the information you gave me here?
What do you think?
All the best, Bodo
--
Bodo Wissemann
adesso AG
Rotherstr. 19
10245 Berlin
Email bodo.wissemann at adesso.de
Von:
Christian Grün <christian.gruen at gmail.com>
Datum: Donnerstag, 18. Januar 2018 um 12:12
An: "Wissemann, Bodo" <Bodo.Wissemann at adesso.de>
Cc: "basex-talk at mailman.uni-konstanz.de" <basex-talk at mailman.uni-konstanz.de>
Betreff: Re: [basex-talk] delete .jar without version using
repo:delete()
Hi Bodo,
Right now, versioning is only suppoted by the EXPath packaging mechanism. With BaseX packaging, there will always be a single module instance in your repository.
In line with this, when deleting such modules, there is no need to specify a version number.
Hope this helps,
ChristianQuoted text · Bodo · 102 lines
On Thu, Jan 18, 2018 at 11:58 AM, Wissemann, Bodo <Bodo.Wissemann at adesso.de> wrote: > Hello everybody, > > > > > > I’m trying to uninstall a jar which has no version using the repo-module. > > > > The jar is the „BaseX-EMail-module" which I didn’t modify. When it is installed, there is none of the described errors raised: > > > > "not-found: > a package does not exist. > > descriptor: > the package descriptor is invalid. > > installed: the module contained in the package to be > installed is already installed as part of another package. > > parse: an error occurred while parsing the package. > > version: the package version is not supported.“ > > > > > > When I check repo:list() it shows this entry: > > > > "<package name="org.basex.modules.email.EMail" version="-" type="Internal“/>“ > > > > As you can see, no Version is found. I’ve tried to include a "Version=1.0“ in the MANIFEST.MF, but that didn’t change anything. > > > > > > How is the Version set if there’s no package-descriptor? Or is that not possible and I have to use a package-descriptor? > > > > > > Can I delete packages without versions? > > > > > > > > Thx a lot > > > > > > Bodo Wissemann > > > > > > -- > > Bodo Wissemann > > > adesso AG > > Rotherstr. 19 > > 10245 Berlin > > > > Email bodo.wissemann at adesso.de > > > > ------------------------------------------------------- > > >>> business. people. technology. <<< > > ------------------------------------------------------- > > adesso AG mit Sitz in Dortmund > > Vorstand: Michael Kenfenheuer (Vors.), Christoph Junge, Andreas Prenneis > > Vorsitzender des Aufsichtsrates: Prof. Dr. Volker Gruhn > > Amtsgericht Dortmund HRB 20663
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery