A quick guess is that as the type is 'bundle' you need to specify an extension to handle that. If not, Maven will try to download the artifact with the .bundle extension which doesn't exist. There is a .jar file.
If you look at your old projects you probably have an extension defined in the pom. /Anders On Fri, Sep 4, 2020 at 8:01 AM Erwin Müller <[email protected]> wrote: > Hello, > I have a problem that I didn't had before. I was testing and developed > some OSGi bundles. But now I have a project that is just Java and not OSGi > anymore. > I want to use my developed OSGi bundles in my Java project. It should work > without any problems. But I have this error: > > --- > [ERROR] Failed to execute goal on project dwarfhustle-heightmap-anl: Could > not resolve dependencies for project > com.anrisoftware.dwarfhustle:dwarfhustle-heightmap-anl:jar:0.0.1-SNAPSHOT: > The following artifacts could not be resolved: > com.anrisoftware.globalpom:globalpom-log:bundle:4.5.2, > com.anrisoftware.globalpom:globalpomutils-threads:bundle:4.5.2, > com.anrisoftware.propertiesutils:propertiesutils-contextproperties:bundle:4.5.2: > Failure to find com.anrisoftware.globalpom:globalpom-log:bundle:4.5.2 in > https://repo.maven.apache.org/maven2 was cached in the local repository, > resolution will not be reattempted until the update interval of central has > elapsed or updates are forced -> [Help 1] > --- > > I'm 100% certain that my libraries are at Maven Central. Also, it doesn't > complain about globalpomutils-exec, which is also a bundle. Why it > complains only about those? > > The globalpomutils-exec is a bundle and contains other bundles as > dependencies. > > <dependency> > <groupId>com.anrisoftware.globalpom</groupId> > <artifactId>globalpomutils-threads</artifactId> > <type>bundle</type> > </dependency> > > mvn -version > Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on > -Dswing.aatext=true > Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; > 2018-10-24T20:41:47+02:00) > Maven home: /opt/apache-maven-3.6.0 > Java version: 11.0.8, vendor: Ubuntu, runtime: > /usr/lib/jvm/java-11-openjdk-amd64 > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "5.7.1-050701-generic", arch: "amd64", family: > "unix" > > The pom.xml is: > > --- > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > > <modelVersion>4.0.0</modelVersion> > > <parent> > <groupId>com.anrisoftware.dwarfhustle</groupId> > <artifactId>dwarfhustle-heightmap</artifactId> > <version>0.0.1-SNAPSHOT</version> > </parent> > > <artifactId>dwarfhustle-heightmap-anl</artifactId> > <name>Dwarf Hustle :: heightmap :: ANL</name> > <description>Wrapper around accidental-noise-library. Generates the > terrain and returns the heightmap as value array.</description> > <inceptionYear>2019</inceptionYear> > > <dependencies> > <dependency> > <groupId>com.anrisoftware.globalpom</groupId> > <artifactId>globalpom-groovytestutils</artifactId> > <scope>test</scope> > </dependency> > <dependency> > <groupId>com.anrisoftware.dwarfhustle</groupId> > <artifactId>dwarfhustle-heightmap-core</artifactId> > <version>0.0.1-SNAPSHOT</version> > </dependency> > <dependency> > <groupId>org.json</groupId> > <artifactId>json</artifactId> > </dependency> > <dependency> > <groupId>com.anrisoftware.globalpom</groupId> > <artifactId>globalpomutils-exec</artifactId> > </dependency> > <dependency> > <groupId>org.codehaus.groovy</groupId> > <artifactId>groovy</artifactId> > </dependency> > <dependency> > <groupId>com.google.inject.extensions</groupId> > <artifactId>guice-assistedinject</artifactId> > </dependency> > </dependencies> > > </project> > --- > > Regards, Erwin Müller. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
