Can't resolve libraries.
Hello, I imported a maven project, but it can't resolve the following libraries. I have local Nexus installed and connected to the internet. 11-6-22 下午05时17分09秒: Unable to update index for local|http://localhost:8081/nexus/content/groups/public 11-6-22 下午05时17分05秒: Updating index local|http://localhost:8081/nexus/content/groups/public 11-6-22 下午05时17分23秒: Refreshing [/ixsystems-registration/pom.xml] 11-6-22 下午05时17分46秒: Missing artifact easyconf:easyconf:jar:0.9.0:compile 11-6-22 下午05时17分46秒: Missing artifact struts:struts:jar:1.1:compile 11-6-22 下午05时17分46秒: Missing artifact commons-beanutils:commons-beanutils:jar:1.6.1:compile 11-6-22 下午05时17分46秒: Missing artifact struts:struts-legacy:jar:1.1:compile 11-6-22 下午05时17分46秒: Missing artifact commons-validator:commons-validator:jar:1.1.4:compile 11-6-22 下午05时17分46秒: Missing artifact oro:oro:jar:2.0.7:compile 11-6-22 下午05时17分46秒: Missing artifact javax.sql:jdbc-stdext:jar:2.0:compile 11-6-22 下午05时17分46秒: Missing artifact commons-configuration:commons-configuration:jar:1.1:compile 11-6-22 下午05时17分46秒: Missing artifact commons-collections:commons-collections:jar:3.1:compile 11-6-22 下午05时17分46秒: Missing artifact commons-lang:commons-lang:jar:2.0:compile 11-6-22 下午05时17分46秒: Missing artifact dom4j:dom4j:jar:1.4:compile 11-6-22 下午05时17分46秒: Missing artifact jaxen:jaxen:jar:1.0-FCS:compile 11-6-22 下午05时17分46秒: Missing artifact saxpath:saxpath:jar:1.0-FCS:compile 11-6-22 下午05时17分46秒: Missing artifact msv:msv:jar:20020414:compile 11-6-22 下午05时17分46秒: Missing artifact relaxngDatatype:relaxngDatatype:jar:20020414:compile 11-6-22 下午05时17分46秒: Missing artifact isorelax:isorelax:jar:20020414:compile 11-6-22 下午05时17分46秒: Missing artifact commons-digester:commons-digester:jar:1.6:compile 11-6-22 下午05时17分46秒: Missing artifact xerces:xercesImpl:jar:2.2.1:compile 11-6-22 下午05时17分46秒: Missing artifact xml-apis:xml-apis:jar:1.0.b2:compile 11-6-22 下午05时17分46秒: Missing artifact commons-beanutils:commons-beanutils-core:jar:1.7.0:compile 11-6-22 下午05时17分46秒: Missing artifact commons-beanutils:commons-beanutils-bean-collections:jar:1.7.0:compile 11-6-22 下午05时17分46秒: Missing artifact mx4j:mx4j-jmx:jar:2.1.1:compile 11-6-22 下午05时17分46秒: Missing artifact mx4j:mx4j-impl:jar:2.1.1:compile 11-6-22 下午05时17分46秒: Missing artifact portlet-api:portlet-api:jar:1.0:provided 11-6-22 下午05时17分46秒: Missing artifact org.aspectj:aspectjrt:jar:1.6.6:compile 11-6-22 下午05时17分46秒: Missing artifact javax.servlet:servlet-api:jar:2.5:provided 11-6-22 下午05时17分46秒: Missing artifact javax.portlet:portlet-api:jar:2.0:provided 11-6-22 下午05时17分46秒: Missing artifact javax.servlet:jstl:jar:1.2:compile 11-6-22 下午05时17分46秒: Missing artifact junit:junit:jar:4.7:test 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-core:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-asm:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-jdbc:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-beans:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-test:jar:3.0.2.RELEASE:test 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-context:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-expression:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-webmvc-portlet:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-web:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-webmvc:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-aop:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact aopalliance:aopalliance:jar:1.0:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-aspects:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-context-support:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-tx:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.hsqldb:hsqldb:jar:1.8.0.10:compile 11-6-22 下午05时17分46秒: Missing artifact org.hibernate:hibernate-annotations:jar:3.3.1.GA:compile 11-6-22 下午05时17分46秒: Missing artifact org.hibernate:hibernate:jar:3.2.6.ga:compile 11-6-22 下午05时17分46秒: Missing artifact net.sf.ehcache:ehcache:jar:1.2.3:compile 11-6-22 下午05时17分46秒: Missing artifact asm:asm-attrs:jar:1.5.3:compile 11-6-22 下午05时17分46秒: Missing artifact antlr:antlr:jar:2.7.6:compile 11-6-22 下午05时17分46秒: Missing artifact cglib:cglib:jar:2.1_3:compile 11-6-22 下午05时17分46秒: Missing artifact asm:asm:jar:1.5.3:compile 11-6-22 下午05时17分46秒: Missing artifact org.hibernate:hibernate-commons-annotations:jar:3.0.0.ga:compile 11-6-22 下午05时17分46秒: Missing artifact org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile 11-6-22 下午05时17分46秒: Missing artifact
Re: how to clean up all generated files under target directory
Hi all, Am 22.06.2011 04:18, schrieb Barrie Treloar: I recommend reading some of the books http://maven.apache.org/articles.html If you are doing anything besides just building a plain old jar file, then you need to up skill a bit to make sure you do things right. There is too much complexity in your build to read a of couple pages and hack away and get a correctly working build. I'm new to maven. Is there any Maven3 documentation out yet? Specifically I need to create a few new packaging types and I didn't find good resources on how to do that with Maven3 (I read somewhere that one can now use Java annotations instead of Javadoc ones. Any pointer would be really appreciated (even pointers to source code, I already looked into maven-jar, maven-ear and maven-war but they are all using the old? Javadoc annotations Greetings -Sascha- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: how to clean up all generated files under target directory
Only run mvn clean. -Original Message- From: Sascha Vogt [mailto:sascha.v...@gmail.com] Sent: Wednesday, 22 June 2011 15:31 To: users@maven.apache.org Subject: Re: how to clean up all generated files under target directory Hi all, Am 22.06.2011 04:18, schrieb Barrie Treloar: I recommend reading some of the books http://maven.apache.org/articles.html If you are doing anything besides just building a plain old jar file, then you need to up skill a bit to make sure you do things right. There is too much complexity in your build to read a of couple pages and hack away and get a correctly working build. I'm new to maven. Is there any Maven3 documentation out yet? Specifically I need to create a few new packaging types and I didn't find good resources on how to do that with Maven3 (I read somewhere that one can now use Java annotations instead of Javadoc ones. Any pointer would be really appreciated (even pointers to source code, I already looked into maven-jar, maven-ear and maven-war but they are all using the old? Javadoc annotations Greetings -Sascha- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how to clean up all generated files under target directory
On Wed, Jun 22, 2011 at 5:00 PM, Sascha Vogt sascha.v...@gmail.com wrote: I'm new to maven. Is there any Maven3 documentation out yet? Specifically I need to create a few new packaging types and I didn't find good resources on how to do that with Maven3 (I read somewhere that one can now use Java annotations instead of Javadoc ones. Any pointer would be really appreciated (even pointers to source code, I already looked into maven-jar, maven-ear and maven-war but they are all using the old? Javadoc annotations Start a new thread, as this is different than the original post. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3.0.3 out of memory error, version ranges, lots of maven meta downloads
Thanks for that. Out of interest if I remove the snapshot repository and change my version ranges to [8.0.0,9.0.0) instead of [8.0.0.SNAPSHOT,9.0.0.SNAPSHOT) all works fine again even in eclipse. For now we will live without snapshots. On 22/06/2011 06:21, Kristian Rosenvold wrote: From what I can understand this issue is almost certainly some kind of combinatorial explosion caused in the calculation of the dependencies. Sample project/and or heap dumps will be required here as far as I can understand. As for the embedded building, you might want to take note that plexus-utils 2.1 fixes a memory leak wrt embedding. This has been released in surefire 2.9. maven-scm and the xAR plugins also have the same problem and can be fixed by upgrading the plexus-utils dependency to 2.1 in these plugins. Kristian - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Documentation for Maven3
Hi all, as requested by Barrie starting a new thread. I'm new to maven and currently looking for some good reading. Is there any Maven3 documentation out yet? I already read Maven in 5 minutes, Getting started, Your first mojo and a couple of blogs. Now I specifically need to create a few new packaging types and I didn't find good resources on how to do that with Maven3 (I read somewhere that one can now use Java annotations instead of Javadoc ones). I currently have a first prototype using the Javadoc annotations and a copied/modified version of a plexus/components.xml which should resemble the JAR plugin instead of the packaging phase. Maybe I'm missing something, I hoped that there would be a more unintrusive way to hook oneself in the build-lifecycle. I for example didn't find any components.xml for the maven-jar-plugin (or I'm looking at the wrong places...). Any pointer would be really appreciated (even pointers to source code, I already looked into maven-jar, maven-ear and maven-war but they are all using the old? Javadoc annotations Greetings -Sascha- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3.0.3 out of memory error, version ranges, lots of maven meta downloads
humm, maybe the resolution mechanism sniffs _all_ snapshot timeshot versions and not only the last one? Could you please re-add the snapshot repo and set the version ranges to [8.0.0,9.0.0)? The question is if this is related to the fact that the snapshot repo just has lots of artifacts (due to the timestamping) or if it's related to the -SNAPSHOT in the version range. txs and LieGrue, strub --- On Wed, 6/22/11, Paul French paul.fre...@kirona.com wrote: From: Paul French paul.fre...@kirona.com Subject: Re: maven 3.0.3 out of memory error, version ranges, lots of maven meta downloads To: users@maven.apache.org Cc: Ian Jones ian.jo...@kirona.com Date: Wednesday, June 22, 2011, 8:26 AM Thanks for that. Out of interest if I remove the snapshot repository and change my version ranges to [8.0.0,9.0.0) instead of [8.0.0.SNAPSHOT,9.0.0.SNAPSHOT) all works fine again even in eclipse. For now we will live without snapshots. On 22/06/2011 06:21, Kristian Rosenvold wrote: From what I can understand this issue is almost certainly some kind of combinatorial explosion caused in the calculation of the dependencies. Sample project/and or heap dumps will be required here as far as I can understand. As for the embedded building, you might want to take note that plexus-utils 2.1 fixes a memory leak wrt embedding. This has been released in surefire 2.9. maven-scm and the xAR plugins also have the same problem and can be fixed by upgrading the plexus-utils dependency to 2.1 in these plugins. Kristian - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can't resolve libraries.
Hi, from your logs, it looks like access to the Internet is not working or at least not for Maven, since most of the missing dependencies are available on central. Would you have a proxy/firewall set up somewhere and forgot to put that in your settings? Or do you have a local firewall that would block all connections? Also, it looks like your Nexus installation is not working either, because it seems that the index cannot be found (or again, it cannot be reached by Maven). A few URL you can try that should work: http://repo1.maven.org/maven2/easyconf/easyconf/0.9.0/easyconf-0.9.0.jar http://localhost:8081/nexus/content/groups/public/easyconf/easyconf/0.9.0/easyconf-0.9.0.jar Hard to say more without your settings. Guillaume Le 22/06/2011 9:24, samwun a écrit : Hello, I imported a maven project, but it can't resolve the following libraries. I have local Nexus installed and connected to the internet. 11-6-22 下午05时17分09秒: Unable to update index for local|http://localhost:8081/nexus/content/groups/public 11-6-22 下午05时17分05秒: Updating index local|http://localhost:8081/nexus/content/groups/public 11-6-22 下午05时17分23秒: Refreshing [/ixsystems-registration/pom.xml] 11-6-22 下午05时17分46秒: Missing artifact easyconf:easyconf:jar:0.9.0:compile 11-6-22 下午05时17分46秒: Missing artifact struts:struts:jar:1.1:compile 11-6-22 下午05时17分46秒: Missing artifact commons-beanutils:commons-beanutils:jar:1.6.1:compile 11-6-22 下午05时17分46秒: Missing artifact struts:struts-legacy:jar:1.1:compile 11-6-22 下午05时17分46秒: Missing artifact commons-validator:commons-validator:jar:1.1.4:compile 11-6-22 下午05时17分46秒: Missing artifact oro:oro:jar:2.0.7:compile 11-6-22 下午05时17分46秒: Missing artifact javax.sql:jdbc-stdext:jar:2.0:compile 11-6-22 下午05时17分46秒: Missing artifact commons-configuration:commons-configuration:jar:1.1:compile 11-6-22 下午05时17分46秒: Missing artifact commons-collections:commons-collections:jar:3.1:compile 11-6-22 下午05时17分46秒: Missing artifact commons-lang:commons-lang:jar:2.0:compile 11-6-22 下午05时17分46秒: Missing artifact dom4j:dom4j:jar:1.4:compile 11-6-22 下午05时17分46秒: Missing artifact jaxen:jaxen:jar:1.0-FCS:compile 11-6-22 下午05时17分46秒: Missing artifact saxpath:saxpath:jar:1.0-FCS:compile 11-6-22 下午05时17分46秒: Missing artifact msv:msv:jar:20020414:compile 11-6-22 下午05时17分46秒: Missing artifact relaxngDatatype:relaxngDatatype:jar:20020414:compile 11-6-22 下午05时17分46秒: Missing artifact isorelax:isorelax:jar:20020414:compile 11-6-22 下午05时17分46秒: Missing artifact commons-digester:commons-digester:jar:1.6:compile 11-6-22 下午05时17分46秒: Missing artifact xerces:xercesImpl:jar:2.2.1:compile 11-6-22 下午05时17分46秒: Missing artifact xml-apis:xml-apis:jar:1.0.b2:compile 11-6-22 下午05时17分46秒: Missing artifact commons-beanutils:commons-beanutils-core:jar:1.7.0:compile 11-6-22 下午05时17分46秒: Missing artifact commons-beanutils:commons-beanutils-bean-collections:jar:1.7.0:compile 11-6-22 下午05时17分46秒: Missing artifact mx4j:mx4j-jmx:jar:2.1.1:compile 11-6-22 下午05时17分46秒: Missing artifact mx4j:mx4j-impl:jar:2.1.1:compile 11-6-22 下午05时17分46秒: Missing artifact portlet-api:portlet-api:jar:1.0:provided 11-6-22 下午05时17分46秒: Missing artifact org.aspectj:aspectjrt:jar:1.6.6:compile 11-6-22 下午05时17分46秒: Missing artifact javax.servlet:servlet-api:jar:2.5:provided 11-6-22 下午05时17分46秒: Missing artifact javax.portlet:portlet-api:jar:2.0:provided 11-6-22 下午05时17分46秒: Missing artifact javax.servlet:jstl:jar:1.2:compile 11-6-22 下午05时17分46秒: Missing artifact junit:junit:jar:4.7:test 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-core:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-asm:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-jdbc:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-beans:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-test:jar:3.0.2.RELEASE:test 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-context:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-expression:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-webmvc-portlet:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-web:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-webmvc:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-aop:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact aopalliance:aopalliance:jar:1.0:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-aspects:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-context-support:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact org.springframework:spring-tx:jar:3.0.2.RELEASE:compile 11-6-22 下午05时17分46秒: Missing artifact
Re: Documentation for Maven3
Hi Sascha, Now I specifically need to create a few new packaging types and I didn't find good resources on how to do that with Maven3 (I read somewhere that one can now use Java annotations instead of Javadoc ones). I currently have a first prototype using the Javadoc annotations and a copied/modified version of a plexus/components.xml which should resemble the JAR plugin instead of the packaging phase. Maybe I'm missing something, I hoped that there would be a more unintrusive way to hook oneself in the build-lifecycle. I for example didn't find any components.xml for the maven-jar-plugin (or I'm looking at the wrong places...). Not entirely sure what you are looking for (should resemble the JAR plugin instead of the packaging phase). But maybe the following plexus/components.xml is useful to you: https://bitbucket.org/scalabench/dacapo-benchmark-maven-plugin/src/3bcdb24c0c95/src/main/resources/META-INF/plexus/components.xml It is part of a Maven plugin I wrote to assemble so-called DaCapo benchmarks (used by JVM researchers for experiments), which are basically pimped JARs. It's just a couple of extra goals bound to various lifecycle phases: http://www.plugins.scalabench.org/modules/dacapo-benchmark-maven-plugin/lifecycle.html. That being said, if you don't use the dacapo-benchmark packaging defined in plexus/components.xml, you can still bind the plugin's goals manually to lifecycle phases (that's when the @phase annotation takes effect if present). Any pointer would be really appreciated (even pointers to source code, I already looked into maven-jar, maven-ear and maven-war but they are all using the old? Javadoc annotations AFAIK, Java-5-style annotations are not there yet. Hope this helps. Andreas Sewe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Documentation for Maven3
Hi Sascha, probably it's a good start for you to read documentation about Maven (2/3) in general, particularly what are Maven's concepts, and how/where you can configure the build respectively single plug-ins. For instance, Sonatype's free books as well as Brett Porter's book are great. Regarding annotations, maybe you mean that you need to configure Maven to set the compiler level to Java 5+ to work with Java Annotations? You'll have to configure your project model with XML, unless you're going a Maven 3 multilingual way, e.g. scripting your POMs with Groovy, or you're working with OSGi, that case is a bit different too. Regards Michael -- Michael Hüttermann Java Champion Author of Agile ALM 0049(0)173.5373629 http://huettermann.net Am Mittwoch, den 22.06.2011, 10:35 +0200 schrieb Sascha Vogt sascha.v...@gmail.com: Hi all, as requested by Barrie starting a new thread. I'm new to maven and currently looking for some good reading. Is there any Maven3 documentation out yet? I already read Maven in 5 minutes, Getting started, Your first mojo and a couple of blogs. Now I specifically need to create a few new packaging types and I didn't find good resources on how to do that with Maven3 (I read somewhere that one can now use Java annotations instead of Javadoc ones). I currently have a first prototype using the Javadoc annotations and a copied/modified version of a plexus/components.xml which should resemble the JAR plugin instead of the packaging phase. Maybe I'm missing something, I hoped that there would be a more unintrusive way to hook oneself in the build-lifecycle. I for example didn't find any components.xml for the maven-jar-plugin (or I'm looking at the wrong places...). Any pointer would be really appreciated (even pointers to source code, I already looked into maven-jar, maven-ear and maven-war but they are all using the old? Javadoc annotations - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Release only updated modules
Hi, We have a large multi module project. In the development branch all modules have SNAPSHOT versions. When we release the project we would only like to release the modules that is updated (in the SCM system). Do we manually need to: 1) Make a diff with the SCM tool 2) Revert back the unmodified modules to the previous release version 3) Execute Maven release Or is there a better soultion? Maybe multi module projects are ment to be released all together? Thanks, Mattias
Re: Can't resolve libraries.
Hi, Thank you very much for your suggestion. Now I somehow manage to reduce the the errors to 5 jar files. The error is: sam@sam-PC /cygdrive/c/ixsystems-registration $ mvn compile war:war [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] Unrecognised tag: 'repositories' (position: START_TAG seen .../profile\r\n--\r\n\t\r\n\trepositories... @248:16) @ C:\apache-maven-3.0.3\conf\settings.xml, line 248, column 16 [WARNING] 'mirrors.mirror.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ C:\Users\sam\.m2\settings.xml [WARNING] [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for ixsystems:ixsystems-registration:war:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 293, column 21 [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead. [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead. [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building iXSystems Portal Products and Services Registration 1.0-SNAPSHOT [INFO] [WARNING] The POM for com.liferay:util-java:jar:5.2.8 is missing, no dependency information available [WARNING] The POM for com.liferay:util-bridges:jar:5.2.8 is missing, no dependency information available [WARNING] The POM for com.liferay:portal-kernel:jar:5.2.8 is missing, no dependency information available [WARNING] The POM for com.liferay:portal-impl:jar:5.2.8 is missing, no dependency information available [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.559s [INFO] Finished at: Wed Jun 22 19:50:35 EST 2011 [INFO] Final Memory: 4M/55M [INFO] [ERROR] Failed to execute goal on project ixsystems-registration: Could not resolve dependencies for project ixsystems:ixsystems-registration:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.liferay:util-java:jar:5.2.8, com.liferay:util-bridges:jar:5.2.8, com.liferay:portal-kernel:jar:5.2.8, com.liferay:portal-impl:jar:5.2.8: Failure to find com.liferay:util-java:jar:5.2.8 in http://localhost:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of local has elapsed or updates are forced - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException I have created Remote URL: http://oss.sonatype.org/content/groups/public/ in Nexus. I don't understand why mvn/nexus doesn't fetch the jar files from Remote URL: http://oss.sonatype.org/content/groups/public/ Here is my nexus.xml configuration file: ?xml version=1.0 encoding=UTF-8? nexusConfiguration version1.4.5/version globalConnectionSettings connectionTimeout2/connectionTimeout retrievalRetryCount3/retrievalRetryCount queryString/queryString /globalConnectionSettings restApi uiTimeout6/uiTimeout /restApi httpProxy enabledtrue/enabled port8082/port proxyPolicystrict/proxyPolicy /httpProxy routing resolveLinkstrue/resolveLinks /routing repositories repository idcentral/id nameMaven Central/name providerRoleorg.sonatype.nexus.proxy.repository.Repository/providerRole providerHintmaven2/providerHint localStatusIN_SERVICE/localStatus notFoundCacheActivetrue/notFoundCacheActive notFoundCacheTTL1440/notFoundCacheTTL userManagedtrue/userManaged exposedtrue/exposed browseabletrue/browseable writePolicyREAD_ONLY/writePolicy indexabletrue/indexable searchabletrue/searchable localStorage providerfile/provider /localStorage remoteStorage providerapacheHttpClient3x/provider
Re: Can't resolve libraries.
On Wed, Jun 22, 2011 at 7:35 PM, samwun leiwun2...@gmail.com wrote: Hi, Thank you very much for your suggestion. Now I somehow manage to reduce the the errors to 5 jar files. The error is: sam@sam-PC /cygdrive/c/ixsystems-registration $ mvn compile war:war [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] Unrecognised tag: 'repositories' (position: START_TAG seen .../profile\r\n --\r\n\t\r\n\trepositories... @248:16) @ C:\apache-maven-3.0.3\conf\settings.xml, line 248, column 16 [WARNING] 'mirrors.mirror.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ C:\Users\sam\.m2\settings.xml [WARNING] [INFO] Scanning for projects... Did you fix the errors listed above in c$MAVEN_HOME/conf/settings.xml? p.s you should not be touching this file - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can't resolve libraries.
Thank you very much for othe suggestion I have removed the error in $MAVEN_HOME/conf/settings.xml. Here is the error: $ mvn compile war:war [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] 'mirrors.mirror.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ C:\Users\sam\.m2\settings.xml [WARNING] [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for ixsystems:ixsystems-registration:war:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 293, column 21 [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead. [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead. [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building iXSystems Portal Products and Services Registration 1.0-SNAPSHOT [INFO] [WARNING] The POM for com.liferay:util-java:jar:5.2.8 is missing, no dependency information available [WARNING] The POM for com.liferay:util-bridges:jar:5.2.8 is missing, no dependency information available [WARNING] The POM for com.liferay:portal-kernel:jar:5.2.8 is missing, no dependency information available [WARNING] The POM for com.liferay:portal-impl:jar:5.2.8 is missing, no dependency information available [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 5.426s [INFO] Finished at: Wed Jun 22 20:48:16 EST 2011 [INFO] Final Memory: 5M/88M [INFO] [ERROR] Failed to execute goal on project ixsystems-registration: Could not resolve dependencies for project ixsystems:ixsystems-registration:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.liferay:util-java:jar:5.2.8, com.liferay:util-bridges:jar:5.2.8, com.liferay:portal-kernel:jar:5.2.8, com.liferay:portal-impl:jar:5.2.8: Failure to find com.liferay:util-java:jar:5.2.8 in http://localhost:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of local has elapsed or updates are forced - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException Thanks Sam -- View this message in context: http://maven.40175.n5.nabble.com/Can-t-resolve-libraries-tp4513191p4513627.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can't resolve libraries.
On Wed, Jun 22, 2011 at 8:20 PM, samwun leiwun2...@gmail.com wrote: Thank you very much for othe suggestion I have removed the error in $MAVEN_HOME/conf/settings.xml. Here is the error: $ mvn compile war:war [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] 'mirrors.mirror.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ C:\Users\sam\.m2\settings.xml What about this error? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Can't resolve libraries.
please read this brief description of mirrors: !-- mirrors | This is a list of mirrors to be used in downloading artifacts from remote repositories. | It works like this: a POM may declare a repository to use in resolving certain artifacts. | However, this repository may have problems with heavy traffic at times, so people have mirrored | it to several places. | | That repository definition will have a unique id, so we can create a mirror reference for that | repository, to be used as an alternate download site. The mirror site will be the preferred | server for that repository. |-- mirrors !-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | -- /mirror Martin -- Date: Wed, 22 Jun 2011 20:48:35 +0930 Subject: Re: Can't resolve libraries. From: baerr...@gmail.com To: users@maven.apache.org On Wed, Jun 22, 2011 at 8:20 PM, samwun leiwun2...@gmail.com wrote: Thank you very much for othe suggestion I have removed the error in $MAVEN_HOME/conf/settings.xml. Here is the error: $ mvn compile war:war [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] 'mirrors.mirror.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ C:\Users\sam\.m2\settings.xml What about this error? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can't resolve libraries.
Thank you for another suggestion. I have also remove local definition in the settings.xml and now it has downloaded some more files before hitting another errors. $ mvn compile war:war [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for ixsystems:ixsystems-registration:war:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 293, column 21 [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead. [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead. [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] ... [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 13.474s [INFO] Finished at: Wed Jun 22 21:38:41 EST 2011 [INFO] Final Memory: 5M/87M [INFO] [ERROR] Failed to execute goal on project ixsystems-registration: Could not resolve dependencies for project ixsystems:ixsystems-registration:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.liferay:util-java:jar:5.2.8, com.liferay:util-bridges:jar:5.2.8, com.liferay:portal-kernel:jar:5.2.8, com.liferay:portal-impl:jar:5.2.8: Failure to find com.liferay:util-java:jar:5.2.8 in http://localhost:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException I guess there i s no liferay 5.2.8 files in the remote repositories. Thanks. Sam -- View this message in context: http://maven.40175.n5.nabble.com/Can-t-resolve-libraries-tp4513191p4513753.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release only updated modules
On Wed, Jun 22, 2011 at 5:31 AM, Mattias Borgkvist nightz...@hotmail.com wrote: We have a large multi module project. In the development branch all modules have SNAPSHOT versions. When we release the project we would only like to release the modules that is updated (in the SCM system). Do we manually need to: 1) Make a diff with the SCM tool 2) Revert back the unmodified modules to the previous release version 3) Execute Maven release Or is there a better soultion? Maybe multi module projects are ment to be released all together? Generally, yes, it's a decision you make when you set up your project structure. There are tradeoffs. One one hand it's easier to press a few buttons and release the entire thing, even if only parts of it have changed. You know that it's all been built and tested together. One option might be to drop into the sub-module that needs releasing and just do that one, perhaps as a 2.3.4.1 'patch release' then put the version back to 2.3.4-SNAPSHOT to match the rest of the project. (You'll have to set the parent to a released version before doing this, as well as any dependencies where you're using ${project.version}.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can't resolve libraries.
On Wed, Jun 22, 2011 at 9:17 PM, samwun leiwun2...@gmail.com wrote: [ERROR] Failed to execute goal on project ixsystems-registration: Could not resolve dependencies for project ixsystems:ixsystems-registration:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.liferay:util-java:jar:5.2.8, com.liferay:util-bridges:jar:5.2.8, com.liferay:portal-kernel:jar:5.2.8, com.liferay:portal-impl:jar:5.2.8: Failure to find com.liferay:util-java:jar:5.2.8 in How did you work out the groupId:artifactId:versionId? You can't just make these up. Did you search for it? http://search.maven.org/#search|ga|1|liferay e.g. com.liferay.portal portal-impl 6.0.6 more (5) - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can't resolve libraries.
Thank you for the suggestion. I have removed my own liferay repositories definition in the pom.xml file, and changed liferay.version to 6.0.6. But it still cant find liferay 6.0.6 Here is the error: $ mvn compile war:war [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for ixsystems:ixsystems-registration:war:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 286, column 21 [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead. [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead. [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building iXSystems Portal Products and Services Registration 1.0-SNAPSHOT [INFO] [WARNING] The POM for com.liferay:util-java:jar:6.0.6 is missing, no dependency information available [WARNING] The POM for com.liferay:util-bridges:jar:6.0.6 is missing, no dependency information available [WARNING] The POM for com.liferay:portal-kernel:jar:6.0.6 is missing, no dependency information available [WARNING] The POM for com.liferay:portal-impl:jar:6.0.6 is missing, no dependency information available [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.318s [INFO] Finished at: Thu Jun 23 00:05:54 EST 2011 [INFO] Final Memory: 5M/88M [INFO] [ERROR] Failed to execute goal on project ixsystems-registration: Could not resolve dependencies for project ixsystems:ixsystems-registration:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.liferay:util-java:jar:6.0.6, com.liferay:util-bridges:jar:6.0.6, com.liferay:portal-kernel:jar:6.0.6, com.liferay:portal-impl:jar:6.0.6: Failure to find com.liferay:util-java:jar:6.0.6 in http://localhost:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException Nexus thrown some exceptions as well: jvm 1| 2011-06-22 23:29:25 INFO [pool-1-thread-2] - org.sonatype.nexus.feeds.DefaultFeedRecorder - Updating repository group index Liferay EE SP4 Local from path null and below. : Process started on Wed Jun 22 23:29:21 EST 2011, finished successfully on Wed Jun 22 23:29:25 EST 2011 jvm 1| 2011-06-23 00:03:29 ERROR [tp-512243268-45] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Got Storage Exception while storing remote artifact, will attempt next mirror, cause: org.sonatype.nexus.proxy.RemoteStorageException: The method execution returned result code 502. [repositoryId=google, requestPath=/com/liferay/util-bridges/6.0.6/util-bridges-6.0.6.pom, remoteUrl=http://google-maven-repository.googlecode.com/svn/repository/com/liferay/util-bridges/6.0.6/util-bridges-6.0.6.pom;] jvm 1| 2011-06-23 00:03:47 ERROR [tp-512243268-45] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Got Storage Exception while storing remote artifact, will attempt next mirror, cause: org.sonatype.nexus.proxy.RemoteStorageException: The method execution returned result code 502. [repositoryId=google, requestPath=/com/liferay/portal-kernel/6.0.6/portal-kernel-6.0.6.pom, remoteUrl=http://google-maven-repository.googlecode.com/svn/repository/com/liferay/portal-kernel/6.0.6/portal-kernel-6.0.6.pom;] jvm 1| 2011-06-23 00:04:01 ERROR [tp-512243268-45] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Got Storage Exception while storing remote artifact, will attempt next mirror, cause: org.sonatype.nexus.proxy.RemoteStorageException: The method execution returned result code 502. [repositoryId=google, requestPath=/com/liferay/portal-kernel/6.0.6/portal-kernel-6.0.6.pom,
Re: Can't resolve libraries.
On Wed, Jun 22, 2011 at 8:09 AM, samwun leiwun2...@gmail.com wrote: Thank you for the suggestion. I have removed my own liferay repositories definition in the pom.xml file, and changed liferay.version to 6.0.6. But it still cant find liferay 6.0.6 Here is the error: could not be resolved: com.liferay:util-java:jar:6.0.6, com.liferay:util-bridges:jar:6.0.6, com.liferay:portal-kernel:jar:6.0.6, com.liferay:portal-impl:jar:6.0.6: Failure to find com.liferay:util-java:jar:6.0.6 in The groupId is still wrong. com.liferay.portal not just com.liferay http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.liferay.portal%22 -- Larry - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Adding WebDriver client tests
I seem to remember a post asking for a separate WebDriver mailing list? Forgive me if I'm posting this in the wrong place. I just started a simple WebDriver tests and am not able to find import org.openqa.selenium.firefox.FirefoxDriver; webdriver-common is resolved, but the webdriver-firefox repository appear to be empty? Does anyone have a good Maven repo for those? I'm using the following dependency/ in Maven dependency groupIdorg.seleniumhq.webdriver/groupId artifactIdwebdriver-firefox/artifactId version0.9.7376/version typepom/type /dependency -- Greg Akins http://twitter.com/akinsgre - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Setting pom properties from Maven Plugin for resource filtering
I have a conf file in a java app that contains an IP address parameter. I want to be able to put in this parameter the local ip address automatically at build time. I used maven resources-plugin as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId version2.5/version executions execution idcopy-resources/id phasevalidate/phase goals goalcopy-resources/goal /goals configuration outputDirectory/home/user/config/outputDirectory resources resource directoryconfig/directory filteringtrue/filtering includes include**/*.xml/include include**/*.properties/include /includes /resource /resources /configuration /execution /executions Next, I've created a property that contains the parameter properties gateway.ip${local.ip}/gateway.ip /properties Then, I've created a Maven plugin that gets the local ip address and sets the above parameter: final Properties props = mavenProject.getProperties(); props.put(local.ip, resultAddress.getHostAddress()); lastly, I define my custom plugin in the pom.xml: plugin groupIdcom.applango/groupId artifactIdget-local-ip-plugin/artifactId version0.0.1-SNAPSHOT/version executions execution idget-local-ip/id phasevalidate/phase goals goalget-local-ip/goal /goals configuration localIp${local.ip}/localIp /configuration /execution /executions /plugin The problem is that this doesn't work and I get ${local.ip} in the resulting file instead of xxx.xxx.xxx.xxx ip address. Any suggestions?
Re: Invoker-Plugin not using correct settings-file
I just tried this with a settings-file that should have stopped my build (because it doesn't point to my inhouse-repository) and has no reference to '@localRepositoryUrl@', but it is actually copying the artifacts from the original localRepo. This means the usage of '-Dinvoker.settingsFile' is NOT overriding the configuration in the POM! So not a Jenkins issue, but one with Maven itself! I'm running Maven 2.2.1 and am using m-invoker-p 1.5. Any ideas/suggestions? Roland On 21.06.2011 19:57, Asmann, Roland wrote: I have to admit: no, not yet. I have to put a settings-file somewhere that throws me an error, otherwise I'll never know if it works. I'll give that a try tomorrow, and update this thread according. Roland On 21-06-11 19:11, Anders Hammar wrote: Have you tried executing your Maven build specifying -Dinvoker.settingsFile=my-settings-file from command line on your pc. If it works the issue is related to Jenkins. It should work as it should override the pom configured value. /Anders On Tue, Jun 21, 2011 at 18:56, Asmann, Rolandroland.asm...@adesso.atwrote: Hi all, I configured the invoker-plugin in my POM to use the settings-file in ${maven.home}/conf/settings.xml -- which works fine for local development. However, when running my Projects on Jenkins, I have configured the project with a different settings-file, since the Maven on the server uses the default file that came with the Maven-Install. I told Jenkins to run the job with '-smy-settings-file' and added '-Dinvoker.settingsFile=my-settings-file' to let the invoker now as well. The problem is, the invoker is still trying to open '${maven.home}/conf/settings.xml' on which Jenkins apparently has no read-access (don't ask me why other builds work, I am not allowed to access the server directly). Can it be that the configuration given with '-D' does not override the configuration in the POM? Is there a way to get around this problem and get my build running on both Jenkins and a developer-machine? Thanks. -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3.0.3 out of memory error, version ranges, lots of maven meta downloads
Added the snapshot repo back in and it now has major problems. A build that was fine before now fails with out of memory. - all version ranges set to [8.0.0,9.0.0) On 22/06/2011 09:39, Mark Struberg wrote: humm, maybe the resolution mechanism sniffs _all_ snapshot timeshot versions and not only the last one? Could you please re-add the snapshot repo and set the version ranges to [8.0.0,9.0.0)? The question is if this is related to the fact that the snapshot repo just has lots of artifacts (due to the timestamping) or if it's related to the -SNAPSHOT in the version range. txs and LieGrue, strub --- On Wed, 6/22/11, Paul Frenchpaul.fre...@kirona.com wrote: From: Paul Frenchpaul.fre...@kirona.com Subject: Re: maven 3.0.3 out of memory error, version ranges, lots of maven meta downloads To: users@maven.apache.org Cc: Ian Jonesian.jo...@kirona.com Date: Wednesday, June 22, 2011, 8:26 AM Thanks for that. Out of interest if I remove the snapshot repository and change my version ranges to [8.0.0,9.0.0) instead of [8.0.0.SNAPSHOT,9.0.0.SNAPSHOT) all works fine again even in eclipse. For now we will live without snapshots. On 22/06/2011 06:21, Kristian Rosenvold wrote: From what I can understand this issue is almost certainly some kind of combinatorial explosion caused in the calculation of the dependencies. Sample project/and or heap dumps will be required here as far as I can understand. As for the embedded building, you might want to take note that plexus-utils 2.1 fixes a memory leak wrt embedding. This has been released in surefire 2.9. maven-scm and the xAR plugins also have the same problem and can be fixed by upgrading the plexus-utils dependency to 2.1 in these plugins. Kristian - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to stop embedded Tomcat server?
Que memória, heim? Sim, era eu mesmo! :) I didn't know about this plugin, thanks for the pointer. []'s Daniel Serodio Aldrin Leal wrote: Você era o Daniel Serodio da Altconn? btw, tenta isso: https://github.com/t7mp/t7mp -- -- Aldrin Leal,ald...@leal.eng.br / http://www.leal.eng.br/mnemetica/ On Tue, Jun 21, 2011 at 4:23 PM, Daniel Serodio (lists) daniel.lis...@xxx.com.br wrote: I'm using the maven-tomcat-plugin to run an embedded, forked Tomcat server which is then used by the maven-failsafe-plugin to run tests on. I'd like to stop this embedded Tomcat after the tests finish, but the tomcat:stop goal needs the Tomcat Manager application, which is not included in the embedded Tomcat. How can I stop this embedded Tomcat server from within Maven? Thanks in advance, Daniel Serodio --**--**- To unsubscribe, e-mail: users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Adding WebDriver client tests
Hello, Selenium folks has changed groupId for the 2.0 release train. So have a look http://repo1.maven.org/maven2/org/seleniumhq/selenium/selenium-firefox-driver/ HTH, -- Olivier Lamy http://twitter.com/olamy | http://www.linkedin.com/in/olamy 2011/6/22 Greg Akins angryg...@gmail.com: I seem to remember a post asking for a separate WebDriver mailing list? Forgive me if I'm posting this in the wrong place. I just started a simple WebDriver tests and am not able to find import org.openqa.selenium.firefox.FirefoxDriver; webdriver-common is resolved, but the webdriver-firefox repository appear to be empty? Does anyone have a good Maven repo for those? I'm using the following dependency/ in Maven dependency groupIdorg.seleniumhq.webdriver/groupId artifactIdwebdriver-firefox/artifactId version0.9.7376/version typepom/type /dependency -- Greg Akins http://twitter.com/akinsgre - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Invoker-Plugin not using correct settings-file
ahh. you have configured the plugin directly. to get what you want you need to configure the property in your pom rather than define the value in your configuration section (the default if unspecified is to use the property, but by specifying it, the property is ignored) - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 22 Jun 2011 17:33, Asmann, Roland roland.asm...@adesso.at wrote:
Dependency transitivity - compilation vs. packaging
As far as I've found, currently it is not possible to specify a dependency scope which will cause a dependency normally packaged along with its compile scope dependencies in a final product like EAR, but will not resolve its compile scope dependencies when compiling the project which includes it as dependency. That's it, I would like to use the APIs provided by a given dependency, but I don't want to allow compiling against APIs provided by its implementation dependencies (unless given as dependencies explicitly), and then I want those implementation dependencies packaged automatically in a final product. I hope I've explained it good enough. Is what I'm after currently possible? If not, has this been thought about before? -- Stanimir - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Dependency transitivity - compilation vs. packaging
Use a dependency to the api with provided scope on jar or whatever code projects you have. And then use the implementation of the api as dependency on the ear. manfred As far as I've found, currently it is not possible to specify a dependency scope which will cause a dependency normally packaged along with its compile scope dependencies in a final product like EAR, but will not resolve its compile scope dependencies when compiling the project which includes it as dependency. That's it, I would like to use the APIs provided by a given dependency, but I don't want to allow compiling against APIs provided by its implementation dependencies (unless given as dependencies explicitly), and then I want those implementation dependencies packaged automatically in a final product. I hope I've explained it good enough. Is what I'm after currently possible? If not, has this been thought about before? -- Stanimir - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can't resolve libraries.
On Thu, Jun 23, 2011 at 12:09 AM, Larry Shatzer, Jr. lar...@gmail.com wrote: [del] could not be resolved: com.liferay:util-java:jar:6.0.6, com.liferay:util-bridges:jar:6.0.6, com.liferay:portal-kernel:jar:6.0.6, com.liferay:portal-impl:jar:6.0.6: Failure to find com.liferay:util-java:jar:6.0.6 in The groupId is still wrong. com.liferay.portal not just com.liferay http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.liferay.portal%22 I assume that liferay 5.2.8 is your local instance version so you want to stick with that unless you plan to upgrade everything... So have you thought about why you are now using version 6.0.6? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Dependency transitivity - compilation vs. packaging
Wed, 22 Jun 2011 15:07:02 -0700, /Manfred Moser/: Use a dependency to the api with provided scope on jar or whatever code projects you have. And then use the implementation of the api as dependency on the ear. Yeah, that's exactly what I'm currently doing, but it easily becomes a nightmare with a larger project with large amount of modules, with even larger amount of dependencies - tracking and declaring explicitly the dependencies of these dependencies for packaging. I want to avoid specifying implementation detail dependencies for packaging (which may change in a next version of the main dependency). As far as I'm aware Maven encourages the practice of don't repeat yourself and the given solution obviously involves a lot of repetitions (in terms of dependency declarations). Say I have an EJB module which depends on the X dependency which itself depends on DOM4J for certain parts of its implementation. I don't want to allow my EJB module using DOM4J APIs, but I want this dependency automatically packaged in an EAR which packages my EJB module. I think this is quite important part of the dependency transitivity for it to be useful. -- Stanimir - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven Changes Plugin 2.6 released
The Maven team is pleased to announce the release of the Maven Changes Report Plugin, version 2.6 Creates a release history for inclusion into the site and assists in generating an announcement mail. http://maven.apache.org/plugins/maven-changes-plugin You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.6/version /plugin Release Notes - Maven Changes Report Plugin - Version 2.6 Bug * [MCHANGES-254] Example doesn't work - spaces not allowed in statusIds and resolutionIds after a comma * [MCHANGES-253] Documentation bug - Closed is not a resolutionID * [MCHANGES-249] The jira downloaded used for announcements only supports 'closed' * [MCHANGES-168] Jira Report (jira-report.html) scrambles encoding of Jira Issues when their summary is written in Non Latin Characters Improvement * [MCHANGES-260] Add pt_BR localization * [MCHANGES-259] Create modularity for supporting multiple issue management systems * [MCHANGES-250] ccAddresses and bccAddresses should not be 'required' * [MCHANGES-248] Support custom jira status ids, please * [MCHANGES-246] Create an issue link template for Trackplus New Feature * [MCHANGES-245] Custom mapping of IMS issue types to action types for announcements Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can't resolve libraries.
Hi, thank you for your patient for answering my question. I tried to use 6.0.6 because I found that Maven central has liferay 6.0.6 libraries, I want to make sure my path to the repositories is right, so I want to try out 6.0.6, and it mostly works by changing the com.liferay to com.liferay.portal. But there still 2 jar files are missing there: 11-6-23 上午08时52分43秒: Refreshing [/ixsystems-registration/pom.xml] 11-6-23 上午08时52分50秒: Downloading http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-java/6.0.6/util-java-6.0.6.pom 11-6-23 上午08时52分50秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-java/6.0.6/util-java-6.0.6.pom 11-6-23 上午08时52分52秒: Downloading http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-bridges/6.0.6/util-bridges-6.0.6.pom 11-6-23 上午08时52分52秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-bridges/6.0.6/util-bridges-6.0.6.pom 11-6-23 上午08时53分03秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/portal-kernel/6.0.6/portal-kernel-6.0.6.pom 11-6-23 上午08时53分03秒: [WARN] The POM for com.liferay.portal:portal-kernel:jar:6.0.6 is missing, no dependency information available 11-6-23 上午08时53分04秒: Downloading http://localhost:8081/nexus/content/groups/public/com/liferay/portal/portal-impl/6.0.6/portal-impl-6.0.6.pom 11-6-23 上午08时53分04秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/portal-impl/6.0.6/portal-impl-6.0.6.pom 11-6-23 上午08时53分09秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/portal-kernel/6.0.6/portal-kernel-6.0.6.jar 11-6-23 上午08时53分19秒: Downloading http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-bridges/6.0.6/util-bridges-6.0.6.jar 11-6-23 上午08时53分19秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-bridges/6.0.6/util-bridges-6.0.6.jar 11-6-23 上午08时54分04秒: Downloading http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-java/6.0.6/util-java-6.0.6.jar 11-6-23 上午08时54分04秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-java/6.0.6/util-java-6.0.6.jar 11-6-23 上午08时54分06秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/portal-impl/6.0.6/portal-impl-6.0.6.jar 11-6-23 上午08时54分07秒: Missing artifact com.liferay.portal:portal-kernel:jar:6.0.6:provided 11-6-23 上午08时54分07秒: Missing artifact com.liferay.portal:portal-impl:jar:6.0.6:provided liferay 5.2.8 is not in Maven Central. 5.2.8 is liferay EE version, Perhaps Maven Central doesn't haven EE version of libraries. The 6.0.6 is only for Community version of liferay. When I change back to 5.2.8, I got the same error: 11-6-23 上午08时55分14秒: Refreshing [/ixsystems-registration/pom.xml] 11-6-23 上午08时55分25秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-java/5.2.8/util-java-5.2.8.pom 11-6-23 上午08时55分25秒: [WARN] The POM for com.liferay.portal:util-java:jar:5.2.8 is missing, no dependency information available 11-6-23 上午08时55分29秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-bridges/5.2.8/util-bridges-5.2.8.pom 11-6-23 上午08时55分29秒: [WARN] The POM for com.liferay.portal:util-bridges:jar:5.2.8 is missing, no dependency information available 11-6-23 上午08时55分32秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/portal-kernel/5.2.8/portal-kernel-5.2.8.pom 11-6-23 上午08时55分32秒: [WARN] The POM for com.liferay.portal:portal-kernel:jar:5.2.8 is missing, no dependency information available 11-6-23 上午08时55分35秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/portal-impl/5.2.8/portal-impl-5.2.8.pom 11-6-23 上午08时55分35秒: [WARN] The POM for com.liferay.portal:portal-impl:jar:5.2.8 is missing, no dependency information available 11-6-23 上午08时55分37秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-java/5.2.8/util-java-5.2.8.jar 11-6-23 上午08时55分38秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/portal-impl/5.2.8/portal-impl-5.2.8.jar 11-6-23 上午08时55分41秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/util-bridges/5.2.8/util-bridges-5.2.8.jar 11-6-23 上午08时55分41秒: Downloaded http://localhost:8081/nexus/content/groups/public/com/liferay/portal/portal-kernel/5.2.8/portal-kernel-5.2.8.jar 11-6-23 上午08时55分41秒: Missing artifact com.liferay.portal:util-java:jar:5.2.8:provided 11-6-23 上午08时55分41秒: Missing artifact com.liferay.portal:util-bridges:jar:5.2.8:provided 11-6-23 上午08时55分41秒: Missing artifact com.liferay.portal:portal-kernel:jar:5.2.8:provided 11-6-23 上午08时55分41秒: Missing artifact com.liferay.portal:portal-impl:jar:5.2.8:provided 11-6-23 上午08时55分42秒: Maven Builder: AUTO_BUILD Thanks Sam -- View this message in context:
Re: Can't resolve libraries.
However, I have my local liferay libraries files for 5.2.8, how can I deploy to Nexus local repositories? eg. here is the path of 5.2.8 portal-kernel I have created in my local nexus server: C:\Nexus\sonatype-work\nexus\storage\liferay-ee-sp4\com\liferay\portal-kernel\5.2.8 How to make this path valid to be used by pom.xml? Thanks Sam -- View this message in context: http://maven.40175.n5.nabble.com/Can-t-resolve-libraries-tp4513191p4515805.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can't resolve libraries.
On Thu, Jun 23, 2011 at 8:34 AM, samwun leiwun2...@gmail.com wrote: However, I have my local liferay libraries files for 5.2.8, how can I deploy to Nexus local repositories? eg. here is the path of 5.2.8 portal-kernel I have created in my local nexus server: C:\Nexus\sonatype-work\nexus\storage\liferay-ee-sp4\com\liferay\portal-kernel\5.2.8 How to make this path valid to be used by pom.xml? If you have purchased the EE versions of liferay then you can manually install them into your nexus repository. Central will only contain Open Source (or free) libraries. Talk to you Nexus administrator or read up on the docs. Installing individual jars is as easy as uploading them to the Nexus repository - you should have a separate repository location for third party jars You will need * Deployment rights to upload the file * The correct groupId, artifactId, version for each file (I would follow the 6.0.6 example of groupId = com.liferay.portal artifactId = from the jar version = 5.2.8 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org