Fornax-Platform View a printable version of the current page. Export Page as PDF
  M2-Repository
 
 Browse Space
General


Projects


Latest News
Latest News
(The 15 most recent blogposts in space Fornax-Platform.)


Global Reports
Feed for new pages.
Added by Thorsten Kamann, last edited by Darius Jockel on Jan 26, 2011  (view change)

Labels:

fornax fornax Delete
repository repository Delete
maven maven Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Maven2-Repository

The repository has the openArchitectureWare libraries in Version 4.2.0. Now you can use the new version.
If you use the M2 oAW-Plugin you must update the version to 1.1.0 in your POM.

The Fornax-Platform is based on the Maven2 Buildsystem. So we are building an own repository to administrate artifacts produced by the projects hosted on the Fornax-Platform.
Additionally to this we are provide a simple way to access the artifacts provided by the openArchitectureWare project. This is realized with the Maven-Proxy, a tool to collect and cache artifact from the different repositories. You can access and browse the repository here.

Structure of the Fornax M2-Repository

The Fornax M2-Repository is based on Maven-Proxy.  This tool collect and cache artifacts from different repositories. The Fornax M2-Repository uses this external repositories to collect the artifacts:

Usage of the Fornax Artifacts

The usage of the Fornax M2-Repository is very simple. You only have to add the informations about the repository into the project's pom.xml or as profile into your settings.xml. If you choose to add a profile you can decide what level you use to enable the profile. For further informations about profiles and their activitation you can refer the Maven2 documentation about profiles.

Configuring the repository in the project's pom.xml

This is the easiest way if you want to enable only less projects with the Fornax M2-Repository. The only thing you must change is your project's pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<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">
	[...]

	<repositories>
		<repository>
			<id>fornax.repository</id>
			<name>Fornax Repository</name>
			<url>http://www.fornax-platform.org/m2/repository</url>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>fornax.plugin.repository</id>
			<name>Fornax Plugin Repository</name>
			<url>http://www.fornax-platform.org/m2/repository</url>
		</pluginRepository>
	</pluginRepositories>
</project>

This is all you must done. At now you can use the Fornax M2-Repository.

Configuring the repository as profile in the settings.xml

To add the configuration as profile is a very useful pattern. With a profile you can use a special configuration for a great number of projects without changing the project's pom.xml. You have 4 locations you can store a profile:

  1. In the project's pom.xml as profile (another way as described above)
  2. Per User - Defined in the Maven-settings (%USER_HOME%/.m2/settings.xml)
  3. Global - Defined in the global maven-settings {{(%M2_HOME%/conf/settings.xml)
  4. Profile Descriptor - a descriptor located in project basedir (profiles.xml)

For the profile configuration you can use this snippet:

<?xml version="1.0" encoding="iso-8859-1"?>

<settings 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/settings-1.0.0.xsd">

	[...]
	<profiles>
		[...]
		<profile>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<id>fornax</id>
			<pluginRepositories>
				<pluginRepository>
					<id>fornax.plugin.repository</id>
					<name>Fornax Plugin Repository</name>
					<url>
						http://www.fornax-platform.org/m2/repository
					</url>
				</pluginRepository>
			</pluginRepositories>
			<repositories>
				<repository>
					<id>fornax.repository</id>
					<name>Fornax Repository</name>
					<url>
						http://www.fornax-platform.org/m2/repository
					</url>
				</repository>
			</repositories>
		</profile>
	</profiles>
</settings>

 After adding this snippet to your settings you can use the Fornax M2-Repository.

I just have a question. as far as I learnt from the article found by http://rapid4me.com SE, there is now a google-maven-repository for google projects and all google projects are free to use it. Istill, it seems that even with the maven repository we have, a release is still manual, as I
need to upload to the google code site, so that it will be available in the
"Download" tab, plus set the "Feature", "Deprecated" tags, so that it will show up in
the home page etc.
Any plans to support an automated process here?

Posted by Anonymous at Feb 24, 2010 13:47

People deserve good life time and <a href="http://bestfinance-blog.com/topics/personal-loans">personal loans</a> or just financial loan will make it much better. Just because freedom depends on money state.

Posted by Anonymous at Sep 08, 2010 02:50

Hi, I seem to be having recurrent issues downloading artifacts from the repository @ http://www.fornax-platform.org/archiva/repository/release

It's been just pausing for days. It works once or twice out of several attempts.

$ mvn clean install -P fornax
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Business tier project for csc-test
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean

Unknown macro: {execution}
]
[INFO] Deleting file-set: src/generated (included: [**/*.java, **/*.xml, **/*.properties, **/*.dot], excluded: [**/.svn/*])
[INFO] Deleting file-set: src/test/generated (included: [**/*.java, **/*.xml, **/*.properties], excluded: [**/.svn/*])
Downloading: http://www.fornax-platform.org/archiva/repository/releases//org/mongodb/mongo-java-driver/1.4/mongo-java-driver-1.4.pom

<sit and wait for 5 minutes, nothing happens>
^C

$ wget http://www.fornax-platform.org/archiva/repository/releases//org/mongodb/mongo-java-driver/1.4/mongo-java-driver-1.pom
-2010-12-26 00:18:24- http://www.fornax-platform.org/archiva/repository/releases//org/mongodb/mongo-java-driver/1.4/mongo-java-driver-1.4.pom
Resolving www.fornax-platform.org... 217.160.176.204
Connecting to www.fornax-platform.org|217.160.176.204|:80... connected.
HTTP request sent, awaiting response...

<sit and wait for 5 minutes, nothing happens>
^C

removing the double slash in there does not help. It was working ok for a bit earlier. Trying to connect from eastern united states. Can someone please check the logs/health/responsiveness of the server? thanks

Posted by Anonymous at Dez 26, 2010 06:22

i can wget the index.html for any of those parent directories 200 OK, just the download of the .pom itself is never responding.

$ wget --timeout=4 http://www.fornax-platform.org/archiva/repository/releases/org/mongodb/mongo-java-driver/1.4
-2010-12-26 00:28:39- http://www.fornax-platform.org/archiva/repository/releases/org/mongodb/mongo-java-driver/1.4
Resolving www.fornax-platform.org... 217.160.176.204
Connecting to www.fornax-platform.org|217.160.176.204|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://www.fornax-platform.org/archiva/repository/releases/org/mongodb/mongo-java-driver/1.4/ [following]
-2010-12-26 00:28:39- http://www.fornax-platform.org/archiva/repository/releases/org/mongodb/mongo-java-driver/1.4/
Reusing existing connection to www.fornax-platform.org:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `1.4'

[ <=> ] 1,503 --.-K/s in 0s

$ wget --timeout=4 http://www.fornax-platform.org/archiva/repository/releases/org/mongodb/mongo-java-driver/1.4/mongo-java-driver-1.4.pom
-2010-12-26 00:28:57- http://www.fornax-platform.org/archiva/repository/releases/org/mongodb/mongo-java-driver/1.4/mongo-java-driver-1.4.pom
Resolving www.fornax-platform.org... 217.160.176.204
Connecting to www.fornax-platform.org|217.160.176.204|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Retrying.

-2010-12-26 00:29:02- (try: 2) http://www.fornax-platform.org/archiva/repository/releases/org/mongodb/mongo-java-driver/1.4/mongo-java-driver-1.4.pom
Connecting to www.fornax-platform.org|217.160.176.204|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Retrying.

-2010-12-26 00:29:08- (try: 3) http://www.fornax-platform.org/archiva/repository/releases/org/mongodb/mongo-java-driver/1.4/mongo-java-driver-1.4.pom
Connecting to www.fornax-platform.org|217.160.176.204|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Retrying.

Posted by Anonymous at Dez 26, 2010 06:31