Re: How do Archiva Proxied Repositories work?
2007/4/23, nicolas de loof <[EMAIL PROTECTED]>: Archiva downloads artifacts on demand via HTTP using wagon-http. I use a similar config with no issue, but I don't have any proxy to set to access repo1. Ok, I've solved the issue. The problem had nothing to do with archiva, but with our network setup. I had specified a proxy in my maven settings.xml (on my local machine), and access to Archiva was impossible in general. I had to exclude proxy usage for the Archiva host, using in my settings.xml. Best Regards, Matthias
How do Archiva Proxied Repositories work?
Hi there, I've set up Archiva and (almost everything) works fine. I can retrieve artifacts I deployed manually, can deploy artifacts via webdav, but proxied repositories don't seem to work. Now I wanted to ask how Archiva proxies a repository. Somewhere I've read Archiva loads artifacts from demand, so I guess it recognizes a HTTP GET on a directory that doesn't exists and tries to retrieve that artifact from one of the repositories listed under "proxied repositories". Is this correct? If so, how is the proxied repository being accessed? Via http? Or is rsync used in some way? I need to specify a http proxy (which I did in the Archiva settings), but rsync is disabled on the machine that hosts Archiva. Can this be a problem? I'm proxying http://repo1.maven.org/maven2/ but can't get it work. Maven tells me it could not download a dependency via my managed repository and falls back to the default repository. Any ideas? Best Regards, Matthias
Project Reports won't be generated by mvn site:site
Hello, when running mvn site:site a site with the following navigation bar will be generated: Project Documentation Project Information Continuous Integration Dependencies Issue Tracking Mailing Lists Project License Project Team Source Repository However, no section for project reports is generated. My pom.xml contains the following, but seems to have no effect. Even the "excludeDefaults", which I added just for testing later, won't change anything on the generated site: true org.apache.maven.plugins maven-project-info-reports-plugin maven-jdepend-plugin Any help? Best Regards, Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Artifact Antlib profile support for dependencies
2007/3/28, M Wurm <[EMAIL PROTECTED]>: Hello, I am using the Maven Artifact Antlib to use project dependencies specified in a pom.xml. Now I'm struggling with a project the needs different dependencies for jre14 and jre15, hence I specify additional jre14 dependencies in a profile that is triggered on property jre1.4.2: jre1.4.2 jre1.4.2 ... Now I'd like to use the additional dependencies in my Ant build script by using that specific profile. ... Can anyone give me a hint how to get the profile support working? Ok, I'll answer that for the archives: I've discussed this issue with Brett Porter (who made the announcement) and he told me one would have to set the property as a system property, e.g. passing "-Djre1.4.2=true" to the Java VM that is invoking Ant. Setting a system property inside Ant is possible, but unfortunately there are no default Ant tasks that accomplish this (to my knowledge). However, you can write your own Ant task for this, just google for more information. Best Regards, Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Artifact Antlib profile support for dependencies
Hello, I am using the Maven Artifact Antlib to use project dependencies specified in a pom.xml. Now I'm struggling with a project the needs different dependencies for jre14 and jre15, hence I specify additional jre14 dependencies in a profile that is triggered on property jre1.4.2: jre1.4.2 jre1.4.2 ... Now I'd like to use the additional dependencies in my Ant build script by using that specific profile. I've read in the following announcement: http://mail-archives.apache.org/mod_mbox/ant-user/200506.mbox/[EMAIL PROTECTED] that there exists profile support for the Maven Antlib, but I didn't get it working. I've set the property "jre1.4.2" within Ant before loading the dependencies, but it had no effect, only the 'default' dependencies were loaded. Can anyone give me a hint how to get the profile support working? Best Regards, Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Howto create poms for JRE-dependent artifacts
Hello, I'm currently looking for a good way to make a pom / several poms for an artifact that has to be created for JRE1.4 / JRE1.5. The difference: A few class files are excluded in the jre1.4 version and some dependencies are different. Is there a recommended way in Maven to realize such a build. It would be great if other projects could depend on these artifacts by using the classifier element, e.g. using artifact-1.0-jre15.jar or artifact-1.0-jre14.jar. Are there any suggestions on this topic? My idea is to use a parent pom that defines the common dependencies, as well as two child poms where the specific JRE-dependent project settings are defined. In these child poms I would declare the finalName like this: ${pom.artifactId}-${pom.version}-jre14 Is this the right way to do it? Since Maven is about encouraging best practices it would be too bad if I end up with a mediocre solution... Best Regards, Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]