TimHedger schrieb:
Tim - Now another repository is missing I guess - where do find this one?
jdom is available on central (http://repo1.maven.org/maven2/jdom/jdom/1.0/). So your setup
should be ok. Sometimes the central repo times out due to heavy load. Have you tried
building a second time?
You should use a mirror instead of connecting directly to central. I use this
one:
<mirrors>
<mirror>
<id>sateh.com</id>
<name>Mirror of http://repo1.maven.org/maven2/</name>
<url>http://maven.sateh.com/repository</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
It's quite fast and speeds up the download process considerably. See here for the
announcement:
http://www.mail-archive.com/[email protected]/msg42969.html
See here for a list of other mirrors:
http://maven.apache.org/guides/mini/guide-mirror-settings.html
-Tim
(And how do I work out which repositories I need for the build? I thought
the whole point of maven was that the sufficient information to build
something would be included in its pom.xml?)
Normally should only need central. It's the repository for all normal libraries, maven
artifacts and the plugins maintained by the maven team. Also the mojo plugins not in the
sandbox are published there.
If you use a snapshot version of a plugin, build a plugin from source or use plugins from
the mojo sandbox you will need a few other repositories:
svn.apache.org/maven-snapshot-repository/
Is the snaphost repository for apache (and therefore maven) snapshot artifacts
http://snapshots.maven.codehaus.org/maven2
Is/Was the snapshot repository and repository for the sandbox plugins for the
codehaus/mojo projects. I think they are migrating to the two repositories below, but I'm
not sure about that (no announcement was made).
http://repository.codehaus.org/
Is the (probably the new) release repository for codehaus projects (just my
guess).
http://snapshots.repository.codehaus.org/
Is the (probably the new) snapshot repository for codehaus projects (just my
guess).
This is my repositories section from my settings.xml (is it correct?)
<profiles>
<profile>
<id>Snapshots</id>
<repositories>
<repository>
<id>Maven Snapshots</id>
<url>http://snapshots.maven.codehaus.org/maven2</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
<repository>
<id>Mojo Repository</id>
<url>http://repository.codehaus.org</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>Maven Snapshots</id>
<url>http://snapshots.maven.codehaus.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>Codehaus Snapshots</id>
<url>http://snapshots.repository.codehaus.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>Snapshots</activeProfile>
</activeProfiles>
When I build I get this:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: jdom:jdom
Reason: Error getting POM for 'jdom:jdom' from the repository: Error
transferring file
jdom:jdom:pom:1.0
from the specified remote repositories:
Mojo Repository (http://repository.codehaus.org),
Maven Snapshots (http://snapshots.maven.codehaus.org/maven2),
central (http://repo1.maven.org/maven2),
codehaus (http://repository.codehaus.org),
snapshots (http://snapshots.maven.codehaus.org/maven2)
--
View this message in context:
http://www.nabble.com/Can%27t-get-jni-working-based-on-example-configuration-t1825144.html#a5032190
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]