Some of the Libraries and Extensions depend on artifacts that are not deployed in central, you’ll need to add other repositories to your build scripts accordingly.
Release artifacts, including sources and javadoc, are deployed to Maven Central:
http://repo1.maven.org/maven2/ (US)
http://uk.maven.org/maven2/ (Europe)
Snapshot artifacts, including sources and javadoc, are built against the develop
branch and deployed weekly to the Apache SNAPSHOTS repository:
http://repository.apache.org/snapshots/
If you don’t rely on your build scripts dependency resolution mechanism you should download the SDK distribution.
You simply declare dependencies on Polygene™ artifacts:
<dependencies> <dependency> <groupId>org.apache.polygene.core</groupId> <artifactId>org.apache.polygene.core.bootstrap</artifactId> <version>POLYGENE_VERSION</version> </dependency> <dependency> <groupId>org.apache.polygene.core</groupId> <artifactId>org.apache.polygene.core.runtime</artifactId> <version>POLYGENE_VERSION</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.polygene.core</groupId> <artifactId>org.apache.polygene.core.testsupport</artifactId> <version>POLYGENE_VERSION</version> <scope>test</scope> </dependency> </dependencies>
Where POLYGENE_VERSION
is the Polygene™ version you want to use.
If you want to use -SNAPSHOT
versions, you need to register the Apache Snapshots repository:
<repositories> <repository> <id>apache-snapshots</id> <url>https://repository.apache.org/snapshots/</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories>
You simply declare dependencies on Polygene™ artifacts:
dependencies { compile "org.apache.polygene.core:org.apache.polygene.core.bootstrap:POLYGENE_VERSION" runtime "org.apache.polygene.core:org.apache.polygene.core.runtime:POLYGENE_VERSION" testCompile "org.apache.polygene.core:org.apache.polygene.core.testsupport:POLYGENE_VERSION" }
Where POLYGENE_VERSION
is the Polygene™ version you want to use.
If you want to use -SNAPSHOT
versions, you need to register the Apache Snapshots repository:
repositories { maven { name 'apache-snapshots'; url "https://repository.apache.org/snapshots/" } }
You simply declare dependencies on Polygene™ artifacts:
compile.with 'org.apache.polygene.core:org.apache.polygene.core.bootstrap:POLYGENE_VERSION' package(:war).with :libs => 'org.apache.polygene.core:org.apache.polygene.core.runtime:POLYGENE_VERSION' test.with 'org.apache.polygene.core:org.apache.polygene.core.testsupport:POLYGENE_VERSION'
Where POLYGENE_VERSION
is the Polygene™ version you want to use.
If you want to use -SNAPSHOT
versions, you need to register the Apache Snapshots repository:
repositories.remote << 'https://repository.apache.org/snapshots/'
You simply declare dependencies on Polygene™ artifacts:
libraryDependencies += \ "org.apache.polygene.core" % "org.apache.polygene.core.bootstrap" % "POLYGENE_VERSION" \ withSources() withJavadoc() libraryDependencies += \ "org.apache.polygene.core" % "org.apache.polygene.core.runtime" % "POLYGENE_VERSION" % "runtime" \ withSources() withJavadoc() libraryDependencies += \ "org.apache.polygene.core" % "org.apache.polygene.core.testsupport" % "POLYGENE_VERSION" % "test" \ withSources() withJavadoc()
Where POLYGENE_VERSION
is the Polygene™ version you want to use.
If you want to use -SNAPSHOT
versions, you need to register the Apache Snapshots repository:
resolvers += "apache-snapshots" at "https://repository.apache.org/snapshots/"
You simply declare dependencies on Polygene™ artifacts:
<ivy-module> <dependencies> <dependency org="org.apache.polygene.core" name="org.apache.polygene.core.bootstrap" rev="POLYGENE_VERSION" conf="default" /> <dependency org="org.apache.polygene.core" name="org.apache.polygene.core.runtime" rev="POLYGENE_VERSION" conf="runtime" /> <dependency org="org.apache.polygene.core" name="org.apache.polygene.core.testsupport" rev="POLYGENE_VERSION" conf="test" /> </dependencies> </ivy-module>
Where POLYGENE_VERSION
is the Polygene™ version you want to use.
If you want to use -SNAPSHOT
versions, you need to register the Apache Snapshots repository in a ivysettings.xml
file:
<ivysettings> <settings defaultResolver="chain"/> <resolvers> <chain name="chain"> <ibiblio name="apache-snapshots" m2compatible="true" root="https://repository.apache.org/snapshots/"/> </chain> </resolvers> </ivysettings>