Menu
  • HOME
  • TAGS

Maven Central: POM is available but not JAR

java,maven,maven-central

Some organizations prevent publishing of binary content on public forums. For example, Oracle prevents publishing of JAR files containing its JDBC drivers on online forums, which includes Maven Central. See this as an example. For some time, JAVAX JARs were similarly not published to Maven Central. You could change your...

Releasing to Maven Central

maven,maven-3,sonatype,maven-central

Your credentials are likely fine, you'd be getting a 401 error if they weren't. You're getting 403 (forbidden). This means the credentials were accepted, but you don't have permission to publish the artifacts. The most common cause of this is that you are using a different Maven group ID than...

Including a synthetic file as javadoc artifact in a Maven build

java,maven,shade,maven-central

Of course, there is a plugin for this task, the build-helper-maven-plugin.

Maven artifact benchmarking

maven,statistics,benchmarking,maven-shade-plugin,maven-central

It is of not that size that you should be worrying about, for example: see this artifact's size 18M, You can browse around randomly or you can script it out on your local maven cache to determine average, max and min size, I don't know of any site which does...

SBT with Maven Central - get rid of Scala version in artifact url

scala,sbt,dependency-management,maven-central

Yes, use % instead of %% before the artifact specifier for your dependency. The %% notation indicates that the library is dependent on the Scala runtime version, yours is not.

Multi-module projects and maven central

java,maven,packaging,maven-central

This looks like a typical scenario for multi-module build. . ├── mod-a │   └── pom.xml ├── mod-b │ └── pom.xml └── pom.xml (parent) The parent contains simply a list of module (two) which looks similar like this: <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent>...

Android Studio - MavenCentral dependency sync ok, but symbol cannot be resolved

android,android-studio,gradle,maven-central

Oh, and the answer to actually being able to use the library, was to add @aar to the dependency so that it now reads dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.3' compile 'no.hyper:libdateintervalpicker:[email protected]' //note the magic @aar } Edit: Removing the block configurations { archives { extendsFrom configurations.default...

Change Gradle mavenCentral URL to My repo

android,gradle,maven-central

The easiest way to apply this change for all projects is to use an gradle init script that forces the use of the oschina repository instead of mavenCentral. you can put this: allprojects{ repositories { all { ArtifactRepository repo -> println repo.url.toString() if ((repo instanceof MavenArtifactRepository) && repo.url.toString().startsWith("https://repo1.maven.org/maven2")) { project.logger.warn...

Is there an alternative maven repository for spring-data-neo4j to MavenCentral (it's broken)?

neo4j,spring-data-neo4j,maven-central

The file is not broken on central, when I download it from here it comes down with size of 865743, and the zip file is valid: http://search.maven.org/#search|ga|1|a%3A%22neo4j-server%22%20AND%20v%3A%222.1.6%22 Check the contents of the downloaded file, you'll likely find that your corporate firewall has blocked the download for some reason, and the...

Package (org.json) not importing after Gradle build — no errors or feedback

java,gradle,dependency-management,org.json,maven-central

(In Netbeans) Right-clicking the project and selecting 'Reload Project' did the trick.

Publishing OSS library release to jcenter and maven-central

gradle,maven-central,gradle-plugin,bintray,jcenter

JCenter is a super-set of Maven-Central and it syncs automatically with the package published to Maven-Central, so essentially artifacts published to Maven-Central will be automatically synced and available in JCenter as well. Gradle has two plugins supporting publishing to several repositories types, including Maven-Central and JCenter: (1) A "legacy"...

Android studio - internally search for dependencies in jcenter or maven central

plugins,intellij-idea,android-studio,maven-central,jcenter

In Project Structure > Dependencies > + button > Library dependency, there's a search function.