Documentation fix
Hello! I think there's a minor doc flaw in the pom introduction page: http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Example_2 The relativePath attribute in the second example should begin with ../ (not with .../): project parent groupIdcom.mycompany.app/groupId artifactIdmy-app/artifactId version1/version relativePath.../parent/pom.xml/relativePath /parent modelVersion4.0.0/modelVersion artifactIdmy-module/artifactId /project -- Best Regards Thank you for maven!
How to use aol properties from different location
Hi, I need use the customized aol properties during build. I can’t modify the aol properties in default location since the same maven is used for building different projects. Could you please help me in using aol properties from different location during build. Regards, Kalai -- View this message in context: http://maven.40175.n5.nabble.com/How-to-use-aol-properties-from-different-location-tp4684707p4684707.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: Documentation fix
Please create a ticket for this [1]. The users list is not a good way of reporting bugs. /Anders [1] http://jira.codehaus.org/browse/MNGSITE On Wed, Aug 10, 2011 at 09:13, Dmitry Voronov d...@retn.net wrote: Hello! I think there's a minor doc flaw in the pom introduction page: http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Example_2 The relativePath attribute in the second example should begin with ../ (not with .../): project parent groupIdcom.mycompany.app/groupId artifactIdmy-app/artifactId version1/version relativePath.../parent/pom.xml/relativePath /parent modelVersion4.0.0/modelVersion artifactIdmy-module/artifactId /project -- Best Regards Thank you for maven!
Artifacts not getting installed in local repository.
I have a multimodule project and when I do a clean install from root directory, the artifact jars are created in the target directory of the submodule, but not getting copied to localrepository. The issue is there even if I skip the test cases using -DskipTests=true option. But the same artifacts will be copied to local repository, if i do a clean install from individual modules. -- Manu -- View this message in context: http://maven.40175.n5.nabble.com/Artifacts-not-getting-installed-in-local-repository-tp4684962p4684962.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: Artifacts not getting installed in local repository.
I very much doubt this. When build, check the console output for the install plugin. It will say where it is installing the artifacts. I've never heard of a case where this would not work (unless you get some very clear error in the console). /Anders On Wed, Aug 10, 2011 at 09:46, manukm07 manuk...@gmail.com wrote: I have a multimodule project and when I do a clean install from root directory, the artifact jars are created in the target directory of the submodule, but not getting copied to localrepository. The issue is there even if I skip the test cases using -DskipTests=true option. But the same artifacts will be copied to local repository, if i do a clean install from individual modules. -- Manu -- View this message in context: http://maven.40175.n5.nabble.com/Artifacts-not-getting-installed-in-local-repository-tp4684962p4684962.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: Artifacts not getting installed in local repository.
There is only one way I could see of this happening... If some ***idiot*** has decided that the parent project being installed in the local repo is a bad plan and configured the install plugin in the parent to skip... which then gets picked up by all the children... never mind that you then cannot build them independently if your local repo gets wiped... and the local repo would probably have the old version before the install skip was turned on... which could explain why a single module installs correctly (as it would be resolving the old parent from the local repo and not the one with skip from the reactor) -Stephen On 10 August 2011 09:38, Anders Hammar and...@hammar.net wrote: I very much doubt this. When build, check the console output for the install plugin. It will say where it is installing the artifacts. I've never heard of a case where this would not work (unless you get some very clear error in the console). /Anders On Wed, Aug 10, 2011 at 09:46, manukm07 manuk...@gmail.com wrote: I have a multimodule project and when I do a clean install from root directory, the artifact jars are created in the target directory of the submodule, but not getting copied to localrepository. The issue is there even if I skip the test cases using -DskipTests=true option. But the same artifacts will be copied to local repository, if i do a clean install from individual modules. -- Manu -- View this message in context: http://maven.40175.n5.nabble.com/Artifacts-not-getting-installed-in-local-repository-tp4684962p4684962.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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANN] DBUpgade Maven Plugin 1.0-beta-1 release
On 08/10/2011 06:13 AM, Dan Tran wrote: Hi, The Mojo team is pleased to announce the release of the DBUpgrade Maven Plugin version 1.0-beta-1 Site : http://mojo.codehaus.org/dbupgade-maven-plugin/ 404 but this works: http://mojo.codehaus.org/dbupgrade/dbupgrade-maven-plugin/ hth, Manos - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Release plugin information required
Hi, When i run release:prepare on the maven-release-plugin then it prompt for the release verion, tag version. Is there is any way or configuration, that i can do in the pom.xml, so that the release plugin don't prompt for the release version and run by taking the default values. Any help will be greatly appreciated -- View this message in context: http://maven.40175.n5.nabble.com/Release-plugin-information-required-tp4685181p4685181.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
wsdl packaging existing ?
Hello all, I have a first project with just /src/main/resources/mywsdl.wsdl in the project I have following lines in this first project pom.xml: groupIdcom.myworld/groupId artifactIdshared-wsdl/artifactId nameshared-wsdl/name version0-SNAPSHOT/version build plugins plugin artifactIdmaven-jar-plugin/artifactId configuration classifierwsdl/classifier /configuration /plugin /plugins /build And I have a second project with following dependency: dependency groupIdcom.myworld/groupId artifactIdshared-wsdl/artifactId version0-SNAPSHOT/version classifierwsdl/classifier /dependency The wsdl mywsdl.wsdl is stored in shared-wsdl.jar, but I need just the wsdl file out of the jar ... Do you have an idea ? Thank Adrien Ruffié - Ingénieur de recherches et développements - Scrum Team member - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release plugin information required
Hello, Use batch mode. try with adding -B in the command line. The plugin will use default value (removing -SNAPSHOT from your current version). 2011/8/10 anamika gupta anam...@hcl.com: Hi, When i run release:prepare on the maven-release-plugin then it prompt for the release verion, tag version. Is there is any way or configuration, that i can do in the pom.xml, so that the release plugin don't prompt for the release version and run by taking the default values. Any help will be greatly appreciated -- View this message in context: http://maven.40175.n5.nabble.com/Release-plugin-information-required-tp4685181p4685181.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 -- Olivier Lamy Talend : http://talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release plugin information required
Hi, I am not running the maven command from command prompt. We have hudson and Maven integration. So, Hudson triggers the maven to make the build. I need an option in the pom.xml, so that release plugin run with the default values. Can you please suggest me any configuration for this plugin, so that it doesnot prompt for the release verions. -- View this message in context: http://maven.40175.n5.nabble.com/Release-plugin-information-required-tp4685181p4685247.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: Execution of plugin in child poms and not in current pom
Hi Conny, what about this idea: 1. Create a properties file 'something.properties' in Your parent POM module directory and set the 'skip' property for the enforcer plugin in there: enforcer.skip=true 2. Configure the Properties Plugin in the build section of Your parent POM: plugin groupIdorg.codehaus.mojo/groupId artifactIdproperties-maven-plugin/artifactId version1.0-alpha-2/version executions execution goals goalread-project-properties/goal /goals !-- Bind the execution to the validate phase so that it is executed BEFORE the enforcer plugin -- phasevalidate/phase configuration !-- The execution should not fail if the properties file cannot be found -- quiettrue/quiet files filesomething.properties/file /files /configuration /execution /executions /plugin With this, the execution of the Enforcer plugin should be skipped only in modules that contain the 'something.properties' with the property 'enforcer.skip=true'. I only tested it briefly, but it seems to work. Hope that helps Marc - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: wsdl packaging existing ?
I ended up writing a custom wsdl packaging type (along with a plugin to handle it) for a similar customer use case. If there's interest I could most likely convince the customer to donate it to some open source org. /Anders On Wed, Aug 10, 2011 at 11:23, Adrien Ruffie - Petals Link adrien.ruf...@petalslink.com wrote: Hello all, I have a first project with just /src/main/resources/mywsdl.**wsdl in the project I have following lines in this first project pom.xml: groupIdcom.myworld/groupId artifactIdshared-wsdl/**artifactId nameshared-wsdl/name version0-SNAPSHOT/version build plugins plugin artifactIdmaven-jar-plugin/**artifactId configuration classifierwsdl/classifier /configuration /plugin /plugins /build And I have a second project with following dependency: dependency groupIdcom.myworld/groupId artifactIdshared-wsdl/**artifactId version0-SNAPSHOT/version classifierwsdl/classifier /dependency The wsdl mywsdl.wsdl is stored in shared-wsdl.jar, but I need just the wsdl file out of the jar ... Do you have an idea ? Thank Adrien Ruffié - Ingénieur de recherches et développements - Scrum Team member - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Help:Calling plugin from a remote repository
Hi, Usually we call a plugin(ex:maven project with a mojo) using command mvn groupid:artifactid:version:goal which is in local repository. What is the command which specifies it to look in my nexus repository? Thank you in advance -Goutham -- View this message in context: http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4685594.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: Help:Calling plugin from a remote repository
Short answer: it's the same command somewhat longer answer: Maven will first look in your local repo. If not found there, it will look in the configured remote repos (and download to your local repo if found). Maybe reading some of the first chapters in some Maven book will give you a better idea on how Maven works. You'll find two free books here [1]. /Anders [1] http://www.sonatype.com/Support/Books On Wed, Aug 10, 2011 at 14:10, goutham goutham.vasire...@gmail.com wrote: Hi, Usually we call a plugin(ex:maven project with a mojo) using command mvn groupid:artifactid:version:goal which is in local repository. What is the command which specifies it to look in my nexus repository? Thank you in advance -Goutham -- View this message in context: http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4685594.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: When is the best phase to generate javadocs?
Cool - I did not notice that in the preferences - thanks! Cheers, Eric On 2011-08-09 7:31 AM, Jeff Jensen wrote: Using m2eclipse and turning on its feature to automatically download dependency source and JavaDoc, it will automatically configure what you seek... :-) On Tue, Aug 9, 2011 at 9:18 AM, Eric Kolotyluk eric.koloty...@gmail.com mailto:eric.koloty...@gmail.com wrote: Yes exactly! I do have my Eclipse setup to display the javadoc when I hover my cursor over a class name or method name - I have been doing that for years. It is great! However, this new project I have built is the first time anyone on my team has actually written any overview and package comments. In the past we have relied too much (IMHO) on external documentation that is not as easy to find or access. I am trying develop a new culture where we keep the documentation closer to the source code where people work routinely. Some day I need to find some better tools for creating HTML that just the Eclipse HTML editors. I am very good at writing raw HTML, but my productivity is not very good doing things in such a manual way. Eventually I want to learn how better access the javadoc some people deploy with their Maven artifacts as it is still the case I import something from Maven, but cannot see the javadocs from Eclipse, yet I know they are in the distribution. Cheers, Eric On Tue, Aug 9, 2011 at 6:47 AM, Mark H. Wood mw...@iupui.edu mailto:mw...@iupui.edu wrote: Yes, you *could* rely on your IDE to show you the Javadoc *for the class or method you're currently focused on*. But then you'd miss seeing that you forgot to write the overview, you forgot to write most of the package comments, or that 80% of your classes and methods have either no topic sentence, a useless one, or one that is bizarrely formatted and unreadable. Or the amount of material that doesn't really say anything which would help someone not already intimately familiar with the code. Documentation should be generated and reviewed regularly. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Asking whether markets are efficient is like asking whether people are smart. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Help:Calling plugin from a remote repository
I want it to restrict to the remote repo only. It should not look into local repo , at least first it have to look in remote and then go for local On Wed, Aug 10, 2011 at 6:02 PM, Anders Hammar [via Maven] ml-node+4685646-210393254-220...@n5.nabble.com wrote: Short answer: it's the same command somewhat longer answer: Maven will first look in your local repo. If not found there, it will look in the configured remote repos (and download to your local repo if found). Maybe reading some of the first chapters in some Maven book will give you a better idea on how Maven works. You'll find two free books here [1]. /Anders [1] http://www.sonatype.com/Support/Books On Wed, Aug 10, 2011 at 14:10, goutham [hidden email]http://user/SendEmail.jtp?type=nodenode=4685646i=0 wrote: Hi, Usually we call a plugin(ex:maven project with a mojo) using command mvn groupid:artifactid:version:goal which is in local repository. What is the command which specifies it to look in my nexus repository? Thank you in advance -Goutham -- View this message in context: http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4685594.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4685646i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4685646i=2 -- If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4685646.html To unsubscribe from Help:Calling plugin from a remote repository, click herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4685594code=Z291dGhhbS52YXNpcmVkZGlAZ21haWwuY29tfDQ2ODU1OTR8MTY3OTUzMTU3NQ==. -- View this message in context: http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4686013.html Sent from the Maven - Users mailing list archive at Nabble.com.
Problem adding hibernate-jbosscache2 to my project
If I try to add a dependency to org.hibernate:hibernate-jbosscache2:jar:3.3.2.GA:compile to my project, I get: /10/08/11 16:09:46 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:09:47 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 16:09:47 CEST: [WARN] 10/08/11 16:09:47 CEST: [WARN] Some problems were encountered while building the effective model for com.ordiges.jump:jump.business:jar:0.0.1-SNAPSHOT 10/08/11 16:09:47 CEST: [WARN] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.hibernate:hibernate:pom - duplicate declaration of version 3.5.4-Final @ com.ordiges.jump:jump:0.0.1-SNAPSHOT, C:\java\workspaces\jump\jump\pom.xml, line 127, column 16 10/08/11 16:09:47 CEST: [WARN] 10/08/11 16:09:47 CEST: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 10/08/11 16:09:47 CEST: [WARN] 10/08/11 16:09:47 CEST: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 10/08/11 16:09:47 CEST: [WARN] 10/08/11 16:09:48 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:09:48 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:09:48 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:09:48 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:23:17 CEST: Missing artifact org.hibernate:hibernate-jbosscache2:jar:3.3.2.GA:compile 10/08/11 16:23:55 CEST: Downloaded http://repo1.maven.org/maven2/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.pom 10/08/11 16:23:55 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available 10/08/11 16:23:55 CEST: Downloaded http://repo1.maven.org/maven2/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.jar 10/08/11 16:23:55 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:23:55 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:23:55 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:23:55 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:16 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:16 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:16 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:16 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:24:33 CEST: Refreshing [/jump/pom.xml] 10/08/11 16:24:35 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:24:35 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:25:00 CEST: Refreshing [/jump/pom.xml] 10/08/11 16:25:02 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:25:02 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:25:15 CEST: Refreshing [/jump/pom.xml] 10/08/11 16:25:16 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available 10/08/11 16:25:41 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:41 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:41 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:41 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:27 CEST: Refreshing [/jump/pom.xml] 10/08/11 16:25:40 CEST: Refreshing [/jump/pom.xml] 10/08/11 16:25:41 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available / and a lot of Missing artifact lines I have the following repositories in my settings.xml repositories repository idcodehausSnapshots/id nameCodehaus Snapshots/name releases enabledfalse/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots enabledtrue/enabled updatePolicynever/updatePolicy checksumPolicyfail/checksumPolicy /snapshots urlhttp://snapshots.maven.codehaus.org/maven2/url layoutdefault/layout /repository repository
Re: [ANN] DBUpgade Maven Plugin 1.0-beta-1 release
thank you for the correction -D On Wed, Aug 10, 2011 at 2:01 AM, Manos Batsis manos_li...@geekologue.com wrote: On 08/10/2011 06:13 AM, Dan Tran wrote: Hi, The Mojo team is pleased to announce the release of the DBUpgrade Maven Plugin version 1.0-beta-1 Site : http://mojo.codehaus.org/dbupgade-maven-plugin/ 404 but this works: http://mojo.codehaus.org/dbupgrade/dbupgrade-maven-plugin/ hth, Manos - 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: Problem adding hibernate-jbosscache2 to my project
It says that you are calling up 2 versions not that any of them are missing. duplicate declaration of version 3.5.4-Final http://repo1.maven.org/maven2/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.jar It looks like you need to clean up your dependency tree to exclude older versions of artifacts. Ron On 10/08/2011 10:30 AM, ccc wrote: If I try to add a dependency to org.hibernate:hibernate-jbosscache2:jar:3.3.2.GA:compile to my project, I get: /10/08/11 16:09:46 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:09:47 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 16:09:47 CEST: [WARN] 10/08/11 16:09:47 CEST: [WARN] Some problems were encountered while building the effective model for com.ordiges.jump:jump.business:jar:0.0.1-SNAPSHOT 10/08/11 16:09:47 CEST: [WARN] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.hibernate:hibernate:pom - duplicate declaration of version 3.5.4-Final @ com.ordiges.jump:jump:0.0.1-SNAPSHOT, C:\java\workspaces\jump\jump\pom.xml, line 127, column 16 10/08/11 16:09:47 CEST: [WARN] 10/08/11 16:09:47 CEST: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 10/08/11 16:09:47 CEST: [WARN] 10/08/11 16:09:47 CEST: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 10/08/11 16:09:47 CEST: [WARN] 10/08/11 16:09:48 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:09:48 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:09:48 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:09:48 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:23:17 CEST: Missing artifact org.hibernate:hibernate-jbosscache2:jar:3.3.2.GA:compile 10/08/11 16:23:55 CEST: Downloaded http://repo1.maven.org/maven2/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.pom 10/08/11 16:23:55 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available 10/08/11 16:23:55 CEST: Downloaded http://repo1.maven.org/maven2/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.jar 10/08/11 16:23:55 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:23:55 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:23:55 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:23:55 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:16 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:16 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:16 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:16 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:24:33 CEST: Refreshing [/jump/pom.xml] 10/08/11 16:24:35 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:24:35 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:25:00 CEST: Refreshing [/jump/pom.xml] 10/08/11 16:25:02 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:25:02 CEST: Maven Builder: INCREMENTAL_BUILD 10/08/11 16:25:15 CEST: Refreshing [/jump/pom.xml] 10/08/11 16:25:16 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available 10/08/11 16:25:41 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:41 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:41 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:41 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 16:25:27 CEST: Refreshing [/jump/pom.xml] 10/08/11 16:25:40 CEST: Refreshing [/jump/pom.xml] 10/08/11 16:25:41 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available / and a lot of Missing artifact lines I have the following repositories in my settings.xml repositories repository idcodehausSnapshots/id nameCodehaus Snapshots/name releases enabledfalse/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots enabledtrue/enabled updatePolicynever/updatePolicy checksumPolicyfail/checksumPolicy
Re: Problem adding hibernate-jbosscache2 to my project
My mistake - I copied too much from the console and included some older messages from when I was trying different solutions for my problem. I have now removed ALL dependencies from my pom. I get no errors. But as soon as I add just this dependency (nothing else): dependency groupIdorg.hibernate/groupId artifactIdhibernate-jbosscache2/artifactId version3.3.2.GA/version typejar/type scopecompile/scope /dependency I get: 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 1 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Refreshing [/jump/pom.xml] 10/08/11 17:04:34 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile -- View this message in context: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4686132.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: Problem adding hibernate-jbosscache2 to my project
Someone else has a dependency on org.jboss.cache:jbosscache-core:jar:3.1.0.GA You need to look at your dependency tree and exclude this from the package that is trying to add it in. Ron On 10/08/2011 11:08 AM, ccc wrote: My mistake - I copied too much from the console and included some older messages from when I was trying different solutions for my problem. I have now removed ALL dependencies from my pom. I get no errors. But as soon as I add just this dependency (nothing else): dependency groupIdorg.hibernate/groupId artifactIdhibernate-jbosscache2/artifactId version3.3.2.GA/version typejar/type scopecompile/scope /dependency I get: 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 1 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Refreshing [/jump/pom.xml] 10/08/11 17:04:34 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile -- View this message in context: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4686132.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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem adding hibernate-jbosscache2 to my project
There is absolutely nothing else. I am just trying to add ONE dependency: hibernate-jbosscache2 I can not control its dependencies, and I have NOTHING else in my pom.xml As I said, the previous error you pointed out was from another test. Now, with an empty pom with just one dependency, it just complains about missing artifacts, even if they're in the repository. In fact, when trying to download the jar and pom, what I get in maven\repository\org\jboss\cache\jbosscache-core\3.1.0.GA is 2 files: jbosscache-core-3.1.0.GA.jar.lastUpdated and jbosscache-core-3.1.0.GA.pom.lastUpdated This is their content: #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235355 AND #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235105 Have you got any idea other than duplicate dependency, since that's surely not the issue here ? Thank you. On Wed, Aug 10, 2011 at 5:18 PM, Ron Wheeler [via Maven] ml-node+4686181-505830615-240...@n5.nabble.com wrote: Someone else has a dependency on org.jboss.cache:jbosscache-core:jar:3.1.0.GA You need to look at your dependency tree and exclude this from the package that is trying to add it in. Ron On 10/08/2011 11:08 AM, ccc wrote: My mistake - I copied too much from the console and included some older messages from when I was trying different solutions for my problem. I have now removed ALL dependencies from my pom. I get no errors. But as soon as I add just this dependency (nothing else): dependency groupIdorg.hibernate/groupId artifactIdhibernate-jbosscache2/artifactId version3.3.2.GA/version typejar/type scopecompile/scope /dependency I get: 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 1 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Refreshing [/jump/pom.xml] 10/08/11 17:04:34 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile -- View this message in context: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4686132.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686181i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686181i=1 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686181i=2 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686181i=3 -- If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4686181.html To unsubscribe from Problem adding hibernate-jbosscache2 to my project, click herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4685996code=Y2FsaW5jb3NtYUBnbWFpbC5jb218NDY4NTk5NnwtODMyNDk5MTY1. -- Best regards, Calin Cosma -- View this message in context:
Re: Problem adding hibernate-jbosscache2 to my project
If you look at the dependency tree, where is the reference to jbosscache-core-3.1.0. You appear to be adding just 3.3.2.GA, so 3.1.0.GA has to be coming from somewhere else. Parent POM? See where it is in the dependency tree. Maven is not making this up. Ron GA On 10/08/2011 11:24 AM, ccc wrote: There is absolutely nothing else. I am just trying to add ONE dependency: hibernate-jbosscache2 I can not control its dependencies, and I have NOTHING else in my pom.xml As I said, the previous error you pointed out was from another test. Now, with an empty pom with just one dependency, it just complains about missing artifacts, even if they're in the repository. In fact, when trying to download the jar and pom, what I get in maven\repository\org\jboss\cache\jbosscache-core\3.1.0.GA is 2 files: jbosscache-core-3.1.0.GA.jar.lastUpdated and jbosscache-core-3.1.0.GA.pom.lastUpdated This is their content: #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235355 AND #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235105 Have you got any idea other than duplicate dependency, since that's surely not the issue here ? Thank you. On Wed, Aug 10, 2011 at 5:18 PM, Ron Wheeler [via Maven] ml-node+4686181-505830615-240...@n5.nabble.com wrote: Someone else has a dependency on org.jboss.cache:jbosscache-core:jar:3.1.0.GA You need to look at your dependency tree and exclude this from the package that is trying to add it in. Ron On 10/08/2011 11:08 AM, ccc wrote: My mistake - I copied too much from the console and included some older messages from when I was trying different solutions for my problem. I have now removed ALL dependencies from my pom. I get no errors. But as soon as I add just this dependency (nothing else): dependency groupIdorg.hibernate/groupId artifactIdhibernate-jbosscache2/artifactId version3.3.2.GA/version typejar/type scopecompile/scope /dependency I get: 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 1 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Refreshing [/jump/pom.xml] 10/08/11 17:04:34 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile -- View this message in context: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4686132.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686181i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686181i=1 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686181i=2 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686181i=3 -- If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4686181.html To unsubscribe from Problem adding hibernate-jbosscache2 to my project, click
Re: Problem adding hibernate-jbosscache2 to my project
I am adding: *hibernate-**jbosscache2*:jar:3.3.2.GA which has a dependency on *jbosscache-core*-3.1.0.GA They are 2 different things, not 2 versions of the same thing. It seems to me the problem is that Maven can't find the jbosscache-core project. In order to solve this I tried a bunch of repositories from jboss as well as mirrors of jboss. Nothing worked. On Wed, Aug 10, 2011 at 5:34 PM, Ron Wheeler [via Maven] ml-node+4686247-508618805-240...@n5.nabble.com wrote: If you look at the dependency tree, where is the reference to jbosscache-core-3.1.0. You appear to be adding just 3.3.2.GA, so 3.1.0.GA has to be coming from somewhere else. Parent POM? See where it is in the dependency tree. Maven is not making this up. Ron GA On 10/08/2011 11:24 AM, ccc wrote: There is absolutely nothing else. I am just trying to add ONE dependency: hibernate-jbosscache2 I can not control its dependencies, and I have NOTHING else in my pom.xml As I said, the previous error you pointed out was from another test. Now, with an empty pom with just one dependency, it just complains about missing artifacts, even if they're in the repository. In fact, when trying to download the jar and pom, what I get in maven\repository\org\jboss\cache\jbosscache-core\3.1.0.GA is 2 files: jbosscache-core-3.1.0.GA.jar.lastUpdated and jbosscache-core-3.1.0.GA.pom.lastUpdated This is their content: #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235355 AND #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235105 Have you got any idea other than duplicate dependency, since that's surely not the issue here ? Thank you. On Wed, Aug 10, 2011 at 5:18 PM, Ron Wheeler [via Maven] [hidden email] http://user/SendEmail.jtp?type=nodenode=4686247i=0 wrote: Someone else has a dependency on org.jboss.cache:jbosscache-core:jar:3.1.0.GA You need to look at your dependency tree and exclude this from the package that is trying to add it in. Ron On 10/08/2011 11:08 AM, ccc wrote: My mistake - I copied too much from the console and included some older messages from when I was trying different solutions for my problem. I have now removed ALL dependencies from my pom. I get no errors. But as soon as I add just this dependency (nothing else): dependency groupIdorg.hibernate/groupId artifactIdhibernate-jbosscache2/artifactId version3.3.2.GA/version typejar/type scopecompile/scope /dependency I get: 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 1 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Refreshing [/jump/pom.xml] 10/08/11 17:04:34 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile -- View this message in context: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4686132.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=4686181i=0 For additional commands, e-mail: [hidden email]
Re: Help:Calling plugin from a remote repository
I want it to restrict to the remote repo only. It should not look into local repo , at least first it have to look in remote and then go for local Maven always tries to use the local repo first when resolving things. So if you want to use version 1.2.3 of a plugin, and it is available locally, it will not check the remote repo no matter what you want it to do. The only way you can force the plugin to look remote would be: 1) delete the local copy of the plugin before running the build 2) use a snapshot version of the plugin and specify the update policy for the remote repo to always Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to use aol properties from different location
I need use the customized aol properties during build. I can’t modify the aol properties in default location since the same maven is used for building different projects. What are aol properties? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem adding hibernate-jbosscache2 to my project
Googling jbosscache-core maven turned up this lnk as the number 1 hit. http://www.mvnbrowser.com/artifact-details.html?groupId=org.jboss.cacheartifactId=jbosscache-core Does that help? On 10/08/2011 11:39 AM, ccc wrote: I am adding: *hibernate-**jbosscache2*:jar:3.3.2.GA which has a dependency on *jbosscache-core*-3.1.0.GA They are 2 different things, not 2 versions of the same thing. It seems to me the problem is that Maven can't find the jbosscache-core project. In order to solve this I tried a bunch of repositories from jboss as well as mirrors of jboss. Nothing worked. On Wed, Aug 10, 2011 at 5:34 PM, Ron Wheeler [via Maven] ml-node+4686247-508618805-240...@n5.nabble.com wrote: If you look at the dependency tree, where is the reference to jbosscache-core-3.1.0. You appear to be adding just 3.3.2.GA, so 3.1.0.GA has to be coming from somewhere else. Parent POM? See where it is in the dependency tree. Maven is not making this up. Ron GA On 10/08/2011 11:24 AM, ccc wrote: There is absolutely nothing else. I am just trying to add ONE dependency: hibernate-jbosscache2 I can not control its dependencies, and I have NOTHING else in my pom.xml As I said, the previous error you pointed out was from another test. Now, with an empty pom with just one dependency, it just complains about missing artifacts, even if they're in the repository. In fact, when trying to download the jar and pom, what I get in maven\repository\org\jboss\cache\jbosscache-core\3.1.0.GA is 2 files: jbosscache-core-3.1.0.GA.jar.lastUpdated and jbosscache-core-3.1.0.GA.pom.lastUpdated This is their content: #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235355 AND #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235105 Have you got any idea other than duplicate dependency, since that's surely not the issue here ? Thank you. On Wed, Aug 10, 2011 at 5:18 PM, Ron Wheeler [via Maven] [hidden email]http://user/SendEmail.jtp?type=nodenode=4686247i=0 wrote: Someone else has a dependency on org.jboss.cache:jbosscache-core:jar:3.1.0.GA You need to look at your dependency tree and exclude this from the package that is trying to add it in. Ron On 10/08/2011 11:08 AM, ccc wrote: My mistake - I copied too much from the console and included some older messages from when I was trying different solutions for my problem. I have now removed ALL dependencies from my pom. I get no errors. But as soon as I add just this dependency (nothing else): dependency groupIdorg.hibernate/groupId artifactIdhibernate-jbosscache2/artifactId version3.3.2.GA/version typejar/type scopecompile/scope /dependency I get: 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 1 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Refreshing [/jump/pom.xml] 10/08/11 17:04:34 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile 10/08/11 17:04:34 CEST: Missing artifact org.jboss.cache:jbosscache-core:jar:3.1.0.GA:compile -- View this message in context: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4686132.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=4686181i=0 For additional commands,
Re: Problem adding hibernate-jbosscache2 to my project
Actually, the repository they tell you to add in that link repository idJBOSS/id nameJBoss Repository/name urlhttp://repository.jboss.org/maven2//url /repository is the old JBoss repo. I have added the new one (see my initial message), but even with that one, it doesn't work. Could you maybe try to just create an empty maven project in eclipse, add the good jboss repo in settings.xml and try to add the dependency to hibernate-jbosscache2 ? Here is the jboss page with their repos: http://community.jboss.org/wiki/MavenGettingStarted-Developers Just to see if you get the same error. Thanks anyway for trying to help. It's a very frustrating issue, to be honest, as it's the 1st time this happens, and I've been using Maven for a few years already. On Wed, Aug 10, 2011 at 6:25 PM, Ron Wheeler [via Maven] ml-node+4686438-2114658445-240...@n5.nabble.com wrote: Googling jbosscache-core maven turned up this lnk as the number 1 hit. http://www.mvnbrowser.com/artifact-details.html?groupId=org.jboss.cacheartifactId=jbosscache-core Does that help? On 10/08/2011 11:39 AM, ccc wrote: I am adding: *hibernate-**jbosscache2*:jar:3.3.2.GA which has a dependency on *jbosscache-core*-3.1.0.GA They are 2 different things, not 2 versions of the same thing. It seems to me the problem is that Maven can't find the jbosscache-core project. In order to solve this I tried a bunch of repositories from jboss as well as mirrors of jboss. Nothing worked. On Wed, Aug 10, 2011 at 5:34 PM, Ron Wheeler [via Maven] [hidden email] http://user/SendEmail.jtp?type=nodenode=4686438i=0 wrote: If you look at the dependency tree, where is the reference to jbosscache-core-3.1.0. You appear to be adding just 3.3.2.GA, so 3.1.0.GA has to be coming from somewhere else. Parent POM? See where it is in the dependency tree. Maven is not making this up. Ron GA On 10/08/2011 11:24 AM, ccc wrote: There is absolutely nothing else. I am just trying to add ONE dependency: hibernate-jbosscache2 I can not control its dependencies, and I have NOTHING else in my pom.xml As I said, the previous error you pointed out was from another test. Now, with an empty pom with just one dependency, it just complains about missing artifacts, even if they're in the repository. In fact, when trying to download the jar and pom, what I get in maven\repository\org\jboss\cache\jbosscache-core\3.1.0.GA is 2 files: jbosscache-core-3.1.0.GA.jar.lastUpdated and jbosscache-core-3.1.0.GA.pom.lastUpdated This is their content: #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235355 AND #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235105 Have you got any idea other than duplicate dependency, since that's surely not the issue here ? Thank you. On Wed, Aug 10, 2011 at 5:18 PM, Ron Wheeler [via Maven] [hidden email]http://user/SendEmail.jtp?type=nodenode=4686247i=0 wrote: Someone else has a dependency on org.jboss.cache:jbosscache-core:jar:3.1.0.GA You need to look at your dependency tree and exclude this from the package that is trying to add it in. Ron On 10/08/2011 11:08 AM, ccc wrote: My mistake - I copied too much from the console and included some older messages from when I was trying different solutions for my problem. I have now removed ALL dependencies from my pom. I get no errors. But as soon as I add just this dependency (nothing else): dependency groupIdorg.hibernate/groupId artifactIdhibernate-jbosscache2/artifactId version3.3.2.GA/version typejar/type scopecompile/scope /dependency I get: 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 1 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 0 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to date 10/08/11 17:04:33 CEST: [WARN] Using
git scm
I'm trying to use the release plugin with git. The git scm plugin seems to get hung up when applying the tag. If you look at the Working directory messages below, when it tries to apply the tag it goes up 1 directory such that the command executes outside of my git repository. Is there something I need to define differently for the tag to work? [INFO] Executing: /bin/sh -c cd /Users/demianneidetcher/code/tw/video-services git commit --verbose -F /var/folders/gt/gtxEeKivHniLmkebNhA1Ak+++TI/-Tmp-/maven-scm-1819129561.commit service/pom.xml webservice/pom.xml pom.xml *[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services *[INFO] Executing: /bin/sh -c cd /Users/demianneidetcher/code/tw/video-services git symbolic-ref HEAD *[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services *[INFO] Executing: /bin/sh -c cd /Users/demianneidetcher/code/tw/video-services git push ssh://gito...@code.webapps.rr.com/video-services.git master:master *[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services *[INFO] Tagging release with the label video-parent-pom-3.0.5... [DEBUG] ScmTagPhase :: scmTagParameters remotingTag true [DEBUG] ScmTagPhase :: scmTagParameters scmRevision null [INFO] Executing: /bin/sh -c cd /Users/demianneidetcher/code/tw git tag -F /var/folders/gt/gtxEeKivHniLmkebNhA1Ak+++TI/-Tmp-/maven-scm-150875144.commit video-parent-pom-3.0.5 *[INFO] Working directory: /Users/demianneidetcher/code/tw * ... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project video-parent-pom: Unable to tag SCM [ERROR] Provider message: [ERROR] The git-tag command failed. [ERROR] Command output: *[ERROR] fatal: Not a git repository (or any of the parent directories): .git *[ERROR] - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project video-parent-pom: Unable to tag SCM Provider message: The git-tag command failed. Command output: fatal: Not a git repository (or any of the parent directories): .git -- View this message in context: http://maven.40175.n5.nabble.com/git-scm-tp4686535p4686535.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: Problem adding hibernate-jbosscache2 to my project
I don't have a lot of time to test things and I don't actually do any development work without my staff's permission. They let me set policy, set priorities and do high level design but find my coding contributions incomplete and almost always untested. They will admit, if pressed, that my code would be elegant if I ever finished it and tested it. I just wanted to keep the conversation going to see if anyone has already hit that. We don't use jboss so I can not go to my development team for answers. You might try to get an answer in the JBoss forum since this is more of a JBoss issue than a Maven problem I suspect that many people there would likely have solved this already since most of them use Maven. Ron On 10/08/2011 12:32 PM, ccc wrote: Actually, the repository they tell you to add in that link repository idJBOSS/id nameJBoss Repository/name urlhttp://repository.jboss.org/maven2//url /repository is the old JBoss repo. I have added the new one (see my initial message), but even with that one, it doesn't work. Could you maybe try to just create an empty maven project in eclipse, add the good jboss repo in settings.xml and try to add the dependency to hibernate-jbosscache2 ? Here is the jboss page with their repos: http://community.jboss.org/wiki/MavenGettingStarted-Developers Just to see if you get the same error. Thanks anyway for trying to help. It's a very frustrating issue, to be honest, as it's the 1st time this happens, and I've been using Maven for a few years already. On Wed, Aug 10, 2011 at 6:25 PM, Ron Wheeler [via Maven] ml-node+4686438-2114658445-240...@n5.nabble.com wrote: Googling jbosscache-core maven turned up this lnk as the number 1 hit. http://www.mvnbrowser.com/artifact-details.html?groupId=org.jboss.cacheartifactId=jbosscache-core Does that help? On 10/08/2011 11:39 AM, ccc wrote: I am adding: *hibernate-**jbosscache2*:jar:3.3.2.GA which has a dependency on *jbosscache-core*-3.1.0.GA They are 2 different things, not 2 versions of the same thing. It seems to me the problem is that Maven can't find the jbosscache-core project. In order to solve this I tried a bunch of repositories from jboss as well as mirrors of jboss. Nothing worked. On Wed, Aug 10, 2011 at 5:34 PM, Ron Wheeler [via Maven] [hidden email]http://user/SendEmail.jtp?type=nodenode=4686438i=0 wrote: If you look at the dependency tree, where is the reference to jbosscache-core-3.1.0. You appear to be adding just 3.3.2.GA, so 3.1.0.GA has to be coming from somewhere else. Parent POM? See where it is in the dependency tree. Maven is not making this up. Ron GA On 10/08/2011 11:24 AM, ccc wrote: There is absolutely nothing else. I am just trying to add ONE dependency: hibernate-jbosscache2 I can not control its dependencies, and I have NOTHING else in my pom.xml As I said, the previous error you pointed out was from another test. Now, with an empty pom with just one dependency, it just complains about missing artifacts, even if they're in the repository. In fact, when trying to download the jar and pom, what I get in maven\repository\org\jboss\cache\jbosscache-core\3.1.0.GA is 2 files: jbosscache-core-3.1.0.GA.jar.lastUpdated and jbosscache-core-3.1.0.GA.pom.lastUpdated This is their content: #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235355 AND #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Wed Aug 10 16:23:55 CEST 2011 http\://repo1.maven.org/maven2/.error= http\://repo1.maven.org/maven2/.lastUpdated=1312986235105 Have you got any idea other than duplicate dependency, since that's surely not the issue here ? Thank you. On Wed, Aug 10, 2011 at 5:18 PM, Ron Wheeler [via Maven] [hidden email]http://user/SendEmail.jtp?type=nodenode=4686247i=0 wrote: Someone else has a dependency on org.jboss.cache:jbosscache-core:jar:3.1.0.GA You need to look at your dependency tree and exclude this from the package that is trying to add it in. Ron On 10/08/2011 11:08 AM, ccc wrote: My mistake - I copied too much from the console and included some older messages from when I was trying different solutions for my problem. I have now removed ALL dependencies from my pom. I get no errors. But as soon as I add just this dependency (nothing else): dependency groupIdorg.hibernate/groupId artifactIdhibernate-jbosscache2/artifactId version3.3.2.GA/version typejar/type scopecompile/scope /dependency I get: 10/08/11 17:04:33 CEST: Maven Builder: INCREMENTAL_BUILD requireFullBuild 10/08/11 17:04:33 CEST: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 10/08/11 17:04:33 CEST: [INFO] Copying 1 resource 10/08/11 17:04:33 CEST: [INFO] Nothing to compile - all classes are up to
Re: Problem adding hibernate-jbosscache2 to my project
Looks like Sonatype's repository has it: https://oss.sonatype.org/index.html#nexus-search;quick~hibernate-jbosscache2 Best, Laird
Re: Problem adding hibernate-jbosscache2 to my project
More info from an actual resolution: [INFO] maven-dependency-plugin:2.2:go-offline (default-cli) @ my-project Downloading: http://download.java.net/maven/glassfish/org/hibernate/hibernate-jbosscache2/3.3.2.GA/hibernate-jbosscache2-3.3.2.GA.pom Downloading: http://maven.glassfish.org/content/groups/glassfish/org/hibernate/hibernate-jbosscache2/3.3.2.GA/hibernate-jbosscache2-3.3.2.GA.pom Downloaded: http://maven.glassfish.org/content/groups/glassfish/org/hibernate/hibernate-jbosscache2/3.3.2.GA/hibernate-jbosscache2-3.3.2.GA.pom(7 KB at 0.1 KB/sec) Downloading: http://download.java.net/maven/glassfish/org/hibernate/hibernate-parent/3.3.2.GA/hibernate-parent-3.3.2.GA.pom Downloading: http://maven.glassfish.org/content/groups/glassfish/org/hibernate/hibernate-parent/3.3.2.GA/hibernate-parent-3.3.2.GA.pom Downloaded: http://maven.glassfish.org/content/groups/glassfish/org/hibernate/hibernate-parent/3.3.2.GA/hibernate-parent-3.3.2.GA.pom(16 KB at 8.0 KB/sec) Downloading: http://download.java.net/maven/glassfish/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.pom Downloading: http://maven.glassfish.org/content/groups/glassfish/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.pom Downloaded: http://maven.glassfish.org/content/groups/glassfish/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.pom(22 KB at 7.8 KB/sec) Downloading: http://download.java.net/maven/glassfish/jgroups/jgroups/2.6.7.GA/jgroups-2.6.7.GA.pom Downloading: http://maven.glassfish.org/content/groups/glassfish/jgroups/jgroups/2.6.7.GA/jgroups-2.6.7.GA.pom Downloaded: http://maven.glassfish.org/content/groups/glassfish/jgroups/jgroups/2.6.7.GA/jgroups-2.6.7.GA.pom(3 KB at 1.0 KB/sec) Downloading: http://download.java.net/maven/glassfish/org/jboss/jboss-common-core/2.2.10.GA/jboss-common-core-2.2.10.GA.pom Downloading: http://maven.glassfish.org/content/groups/glassfish/org/jboss/jboss-common-core/2.2.10.GA/jboss-common-core-2.2.10.GA.pom Downloaded: http://maven.glassfish.org/content/groups/glassfish/org/jboss/jboss-common-core/2.2.10.GA/jboss-common-core-2.2.10.GA.pom(3 KB at 1.3 KB/sec) Downloading: http://download.java.net/maven/glassfish/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.jar Downloading: http://download.java.net/maven/glassfish/org/hibernate/hibernate-jbosscache2/3.3.2.GA/hibernate-jbosscache2-3.3.2.GA.jar Downloading: http://download.java.net/maven/glassfish/jgroups/jgroups/2.6.7.GA/jgroups-2.6.7.GA.jar Downloading: http://download.java.net/maven/glassfish/org/jboss/jboss-common-core/2.2.10.GA/jboss-common-core-2.2.10.GA.jar Downloading: http://maven.glassfish.org/content/groups/glassfish/org/hibernate/hibernate-jbosscache2/3.3.2.GA/hibernate-jbosscache2-3.3.2.GA.jar Downloading: http://maven.glassfish.org/content/groups/glassfish/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.jar Downloading: http://maven.glassfish.org/content/groups/glassfish/jgroups/jgroups/2.6.7.GA/jgroups-2.6.7.GA.jar Downloading: http://maven.glassfish.org/content/groups/glassfish/org/jboss/jboss-common-core/2.2.10.GA/jboss-common-core-2.2.10.GA.jar Downloaded: http://maven.glassfish.org/content/groups/glassfish/org/jboss/jboss-common-core/2.2.10.GA/jboss-common-core-2.2.10.GA.jar(442 KB at 105.0 KB/sec) Downloaded: http://maven.glassfish.org/content/groups/glassfish/org/hibernate/hibernate-jbosscache2/3.3.2.GA/hibernate-jbosscache2-3.3.2.GA.jar(59 KB at 2.6 KB/sec) Downloaded: http://maven.glassfish.org/content/groups/glassfish/jgroups/jgroups/2.6.7.GA/jgroups-2.6.7.GA.jar(1965 KB at 78.9 KB/sec) Downloaded: http://maven.glassfish.org/content/groups/glassfish/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.jar(1126 KB at 39.9 KB/sec) [INFO] [INFO] --- maven-dependency-plugin:2.2:go-offline (default-cli) @ hibernate-ips --- [INFO] Resolved: hibernate-jbosscache2-3.3.2.GA.jar Hope that helps. Best, Laird
Re: Help:Calling plugin from a remote repository
Hey Can this be the other way ? I used the mirror tags in settings.xml to point to my nexus repository. mirrors mirror idmy-repo-releases/id name Releases/name urlhttp://mavenrepo.releases/url mirrorOfcentral/mirrorOf /mirror /mirrors This thing actually worked in invoking the plugin from remote repo but it is also trying to download the other dependencies(ex: plexus-interactivity-api) form the same repo which dont exist. On Wed, Aug 10, 2011 at 9:42 PM, Wayne Fay [via Maven] ml-node+4686394-143768512-220...@n5.nabble.com wrote: I want it to restrict to the remote repo only. It should not look into local repo , at least first it have to look in remote and then go for local Maven always tries to use the local repo first when resolving things. So if you want to use version 1.2.3 of a plugin, and it is available locally, it will not check the remote repo no matter what you want it to do. The only way you can force the plugin to look remote would be: 1) delete the local copy of the plugin before running the build 2) use a snapshot version of the plugin and specify the update policy for the remote repo to always Wayne - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686394i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686394i=1 -- If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4686394.html To unsubscribe from Help:Calling plugin from a remote repository, click herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4685594code=Z291dGhhbS52YXNpcmVkZGlAZ21haWwuY29tfDQ2ODU1OTR8MTY3OTUzMTU3NQ==. -- View this message in context: http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4686692.html Sent from the Maven - Users mailing list archive at Nabble.com.
Re: Problem adding hibernate-jbosscache2 to my project
10/08/11 16:23:55 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available This is the only important line in your entire log. This says that Maven cannot find the pom file for jbosscache-core version 3.1.0.GA. All of your problems stem from this problem. Resolve the missing pom file and you will fix your problems. This pom file should be hosted by JBoss in their repo along with their other artifacts. I suggest you contact them and ask why this pom is not available. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Help:Calling plugin from a remote repository
Can this be the other way ? What is the other way? mirrorOfcentral/mirrorOf also trying to download the other dependencies(ex: plexus-interactivity-api) form the same repo which dont exist. Saying a repo is a mirror of Central means that all artifacts which do exist in Central must also exist in this mirror. If you don't want to actually host all those files and cannot, for whatever reason, configure your repo so that it automatically downloads such files on demand etc, then you cannot say this repo is a mirror of Central. Instead, you must configure it as simply another repository in settings.xml. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem adding hibernate-jbosscache2 to my project
Wayne, Laird First, thanks for trying to help. Second, I pretty much figured that out before posting the question. I guess my 1st message was too verbose, but if you look at the end of it, I said I could see the jbosscache-core artifact in JBoss's repo, but for some reason my maven couldn't. I had already tried putting the JBOss repo in my settings.xml, I even tried using a mirror of it provided by some other company. Nothing worked. That's why this issue has been so frustrating. So any ideas or suggestions about how to fix the issue or work around it would be greatly appreciated. I am thinking that maybe getting some debugging info from Maven might help - to see what is it doing when trying to get that artifact. PS: I already posted a message on JBoss's forums. Still waiting for a reply. On Wed, Aug 10, 2011 at 9:08 PM, Wayne Fay [via Maven] ml-node+4686896-1511089207-240...@n5.nabble.com wrote: 10/08/11 16:23:55 CEST: [WARN] The POM for org.jboss.cache:jbosscache-core:jar:3.1.0.GA is missing, no dependency information available This is the only important line in your entire log. This says that Maven cannot find the pom file for jbosscache-core version 3.1.0.GA. All of your problems stem from this problem. Resolve the missing pom file and you will fix your problems. This pom file should be hosted by JBoss in their repo along with their other artifacts. I suggest you contact them and ask why this pom is not available. Wayne - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686896i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4686896i=1 -- If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4686896.html To unsubscribe from Problem adding hibernate-jbosscache2 to my project, click herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4685996code=Y2FsaW5jb3NtYUBnbWFpbC5jb218NDY4NTk5NnwtODMyNDk5MTY1. -- Best regards, Calin Cosma -- View this message in context: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4686999.html Sent from the Maven - Users mailing list archive at Nabble.com.
Re: Problem adding hibernate-jbosscache2 to my project
On Wed, Aug 10, 2011 at 3:41 PM, ccc calinco...@gmail.com wrote: I had already tried putting the JBOss repo in my settings.xml, I even tried using a mirror of it provided by some other company. Nothing worked. As you can see from my earlier message, this repository: repository idmaven.glassfish.org/id namemaven.glassfish.org Glassfish Repository Group/name urlhttp://maven.glassfish.org/content/groups/glassfish//url layoutdefault/layout releases enabledtrue/enabled /releases snapshots enabledtrue/enabled /snapshots /repository ...is where my Maven happened to download the hibernate-jbosscache2 artifact you were talking about earlier. I hope that helps. Best, Laird
Re: Problem adding hibernate-jbosscache2 to my project
I had already tried putting the JBOss repo in my settings.xml, I even tried using a mirror of it provided by some other company. Nothing worked. That's why this issue has been so frustrating. So any ideas or suggestions about how to fix the issue or work around it would be greatly appreciated. mvn -X compile may provide additional useful debugging information. Or it may not, some people have trouble grokking all the info it spews. Are you behind an Internet proxy? Are you connecting to a local Nexus or other MRM instance? [If not, you should consider installing something...] What does the updatePolicy for this repository look like in settings.xml or Nexus config? etc You should also try mvn -U to force an update of any jars/poms that are involved in this build. Perhaps the pom file will be downloadable when you try again. If not, there isn't a whole lot we'll be able to do to help you. You could also just download the pom file and copy it to the proper place in your local repo cache just to get past this issue. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
org.apache.maven.plugins:maven-compiler-plugin is missing
I am new on MAVEN, I am trying to configure the CAS to auth against LDAP, and I am having the following problems, please help --Alex Directory of C:\cas-server-3.4.2.1\cas-server-support-ldap 08/10/2011 08:44 AMDIR . 08/10/2011 08:44 AMDIR .. 08/10/2011 08:44 AM 1,784 pom.xml 08/10/2011 08:44 AMDIR src 1 File(s) 1,784 bytes 3 Dir(s) 130,738,053,120 bytes free C:\cas-server-3.4.2.1\cas-server-support-ldapmvn clean package [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.jasig.cas:cas-se rver-support-ldap:jar:3.4.2.1 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missi ng. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 107, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missi ng. @ line 39, column 15 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-enforcer-plugin is missi ng. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 38, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 115, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing . @ org.jasig:jasig-parent:7, C:\Users\Administrator\.m2\repository\org\jasig\jasig-parent\7\jasig-p arent-7.pom, line 78, column 21 [WARNING] The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead. [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 577, column 12 [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-jxr-plugin is missin g. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 591, column 12 [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-pmd-plugin is missin g. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 595, column 12 [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 pro jects. [WARNING] [INFO] [INFO] [INFO] Building JA-SIG CAS LDAP Support 3.4.2.1 [INFO] Downloading: http://repository.jboss.com/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 2.031s [INFO] Finished at: Wed Aug 10 12:00:53 EDT 2011 [INFO] Final Memory: 7M/109M [INFO] [ERROR] Failed to execute goal on project cas-server-support-ldap: Could not resolve dependencies fo r project org.jasig.cas:cas-server-support-ldap:jar:3.4.2.1: Failed to collect dependencies for [org .jasig.cas:cas-server-core:jar:3.4.2.1 (compile), org.springframework.webflow:spring-webflow:jar:2.0 .8.RELEASE (compile), org.springframework.ldap:spring-ldap-core:jar:1.3.0.RELEASE (compile), org.spr ingframework.ldap:spring-ldap-core-tiger:jar:1.3.0.RELEASE (compile), junit:junit:jar:4.7 (test), or g.springframework:spring-test:jar:3.0.1.RELEASE (test), javax.servlet:servlet-api:jar:2.5 (provided) , org.aspectj:aspectjrt:jar:1.6.7 (compile), org.aspectj:aspectjweaver:jar:1.6.7 (compile), javax.va lidation:validation-api:jar:1.0.0.GA (compile), org.slf4j:slf4j-api:jar:1.5.8 (compile), org.slf4j:s lf4j-log4j12:jar:1.5.8 (runtime), org.slf4j:jcl-over-slf4j:jar:1.5.8 (compile)]: Failed to read arti fact descriptor for org.opensaml:opensaml:jar:1.1b: Could not transfer artifact org.opensaml:opensam l:pom:1.1b from/to jboss (http://repository.jboss.com/maven2): Access denied to: http://repository.j boss.com/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom - [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 arti cles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException C:\cas-server-3.4.2.1\cas-server-support-ldap C:\cas-server-3.4.2.1\cas-server-support-ldap C:\cas-server-3.4.2.1\cas-server-support-ldapmvan -version 'mvan' is not recognized as an internal or external command,
Re: org.apache.maven.plugins:maven-compiler-plugin is missing
The JBoss repo you're using (http://repository.jboss.org/maven2/), is an old one which I believe has been shut down. (That's why you get access denied.) It has been migrated to a Nexus instance at JBoss. If you search the JBoss wiki you will find info about the new repos at that instance. /Anders On Wed, Aug 10, 2011 at 22:48, Alexandre Adao alexa...@gmail.com wrote: I am new on MAVEN, I am trying to configure the CAS to auth against LDAP, and I am having the following problems, please help --Alex Directory of C:\cas-server-3.4.2.1\cas-server-support-ldap 08/10/2011 08:44 AMDIR . 08/10/2011 08:44 AMDIR .. 08/10/2011 08:44 AM 1,784 pom.xml 08/10/2011 08:44 AMDIR src 1 File(s) 1,784 bytes 3 Dir(s) 130,738,053,120 bytes free C:\cas-server-3.4.2.1\cas-server-support-ldapmvn clean package [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.jasig.cas:cas-se rver-support-ldap:jar:3.4.2.1 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missi ng. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 107, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missi ng. @ line 39, column 15 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-enforcer-plugin is missi ng. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 38, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 115, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing . @ org.jasig:jasig-parent:7, C:\Users\Administrator\.m2\repository\org\jasig\jasig-parent\7\jasig-p arent-7.pom, line 78, column 21 [WARNING] The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead. [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 577, column 12 [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-jxr-plugin is missin g. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 591, column 12 [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-pmd-plugin is missin g. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line 595, column 12 [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 pro jects. [WARNING] [INFO] [INFO] [INFO] Building JA-SIG CAS LDAP Support 3.4.2.1 [INFO] Downloading: http://repository.jboss.com/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 2.031s [INFO] Finished at: Wed Aug 10 12:00:53 EDT 2011 [INFO] Final Memory: 7M/109M [INFO] [ERROR] Failed to execute goal on project cas-server-support-ldap: Could not resolve dependencies fo r project org.jasig.cas:cas-server-support-ldap:jar:3.4.2.1: Failed to collect dependencies for [org .jasig.cas:cas-server-core:jar:3.4.2.1 (compile), org.springframework.webflow:spring-webflow:jar:2.0 .8.RELEASE (compile), org.springframework.ldap:spring-ldap-core:jar:1.3.0.RELEASE (compile), org.spr ingframework.ldap:spring-ldap-core-tiger:jar:1.3.0.RELEASE (compile), junit:junit:jar:4.7 (test), or g.springframework:spring-test:jar:3.0.1.RELEASE (test), javax.servlet:servlet-api:jar:2.5 (provided) , org.aspectj:aspectjrt:jar:1.6.7 (compile), org.aspectj:aspectjweaver:jar:1.6.7 (compile), javax.va lidation:validation-api:jar:1.0.0.GA (compile), org.slf4j:slf4j-api:jar:1.5.8 (compile), org.slf4j:s lf4j-log4j12:jar:1.5.8 (runtime), org.slf4j:jcl-over-slf4j:jar:1.5.8 (compile)]: Failed to read arti fact descriptor for org.opensaml:opensaml:jar:1.1b: Could not transfer artifact org.opensaml:opensam l:pom:1.1b from/to jboss (http://repository.jboss.com/maven2): Access denied to: http://repository.j boss.com/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run
begginner questions: best practice: mvn dojo assemblies
thanks for any input and lessons learned. Situation: my company has a number of web apps. all using dojo they all have custom profiled dojo builds that are checked into the web apps source code. We have discovered that someone over the years has made some coding changes to these generated files in one or more of the web apps. thank god the changes were insignificant. what we want to do: Is not check them into the web app source code. We want to deploy profiled dojo versions in to some maven repository (company release repository, company snapshot repository, developer local repository). Then have the apps pom to get them out of some maven repository at build time. My delema is what is the best way to build multiple versions of dojo, zip/tar/war/jar it up, and put them into the maven repository so that the target app can extract them at build time.we want the : group id = com.mycompany.web artifactId = ApplicaitonName+Dojo version # to be the based on the dojo version + possibly some snapshot reference possibly a classifier sources since the dojo stuff is the source code for the web app. I can use the command line build script to generate the build out dojo, zip it up, use mvn install or mvn deploy to put the zip into a repository, and then configure the target app to extract the artifact. BUT that is not really elegant or easy to remember what to do the next time they need to be rebuilt and deployed. Especially if it is after I am no longer at the company. I would like maven pom to build run the build several different dojo profiles and then deploy all of them to repositories (company release, company snapshot, developer local) as appropriate (some -DtargetRepository=XX). The target web apps would declare their dependencies and extract the dojo build to the appropriate location in the web app. I have found postings on how to run the generate the profiled version of dojo but that only works if I am building the version from a web app. I don't want to build a web app. I want to run the dojo build script with some arguments, the package them up, and then deploy them to a specified place in a specific repository. So that some web app build process can extract them. Which plugins do I use to do that??? Frustrations vented thanks for any suggestions Any thought on how to do this, problems, suggestions on better ways of doing it? -- View this message in context: http://maven.40175.n5.nabble.com/begginner-questions-best-practice-mvn-dojo-assemblies-tp4687449p4687449.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: Problem adding hibernate-jbosscache2 to my project
I am behind a proxy, but I doubt that's causing the issue. It hasn't caused any issue with other artifacts, but ... I can't be 100% sure. I ran Maven from Eclipse, but I'll run it from the console and try your suggestions. I will report back with whatever results I get :) I am not the admin of our servers, but maybe I'll talk the guy into putting up a nexus of our own. On Wed, Aug 10, 2011 at 10:09 PM, Wayne Fay [via Maven] ml-node+4687106-319269717-240...@n5.nabble.com wrote: I had already tried putting the JBOss repo in my settings.xml, I even tried using a mirror of it provided by some other company. Nothing worked. That's why this issue has been so frustrating. So any ideas or suggestions about how to fix the issue or work around it would be greatly appreciated. mvn -X compile may provide additional useful debugging information. Or it may not, some people have trouble grokking all the info it spews. Are you behind an Internet proxy? Are you connecting to a local Nexus or other MRM instance? [If not, you should consider installing something...] What does the updatePolicy for this repository look like in settings.xml or Nexus config? etc You should also try mvn -U to force an update of any jars/poms that are involved in this build. Perhaps the pom file will be downloadable when you try again. If not, there isn't a whole lot we'll be able to do to help you. You could also just download the pom file and copy it to the proper place in your local repo cache just to get past this issue. Wayne - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4687106i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4687106i=1 -- If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4687106.html To unsubscribe from Problem adding hibernate-jbosscache2 to my project, click herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4685996code=Y2FsaW5jb3NtYUBnbWFpbC5jb218NDY4NTk5NnwtODMyNDk5MTY1. -- Best regards, Calin Cosma -- View this message in context: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4687456.html Sent from the Maven - Users mailing list archive at Nabble.com.
Re: org.apache.maven.plugins:maven-compiler-plugin is missing
[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 Did you read this Wiki page and follow the directions?? l:pom:1.1b from/to jboss (http://repository.jboss.com/maven2): Access denied to: http://repository.j boss.com/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom - [Help 1] This error message says you are having trouble connecting to a jboss.com Maven repository. You will need to ask for help on the CAS User List or CAS Developers List to get their project to build properly. Also you may need to ask the JBoss.com team for help with their repository. I think that is an old URL that you are using and it moved. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem adding hibernate-jbosscache2 to my project
On 10/08/2011 5:31 PM, ccc wrote: I am behind a proxy, but I doubt that's causing the issue. It hasn't caused any issue with other artifacts, but ... I can't be 100% sure. I ran Maven from Eclipse, but I'll run it from the console and try your suggestions. I will report back with whatever results I get :) I am not the admin of our servers, but maybe I'll talk the guy into putting up a nexus of our own. Trying to use Maven without your own repo is a good way to lose a ton of time. We ran for about 2 years without a repo and once we put it in, we realized how much grief we went through for nothing. It is easy to put in and once you get it configured and your settings.xml set up, Maven becomes so much easier and so much more transparent. It is well worth the effort to get your server admin to set up a Nexus or some other repo. We are using the free version and it saves us a lot of time. - Once you set up your repo proxies, individual developers don't have to worry about finding things. - Once you upload the third party libraries that have licenses that prevent them from being in a public repo, everyone has access to it without having to think about downloading it. - A repo forces you to think about releases and SNAPSHOTs in a rational way so that your software development is organized. - Just knowing that a release is immutable (except by asking the Nexus administrator to remove it) means that people take releasing a library or utility seriously. - Being able to deploy SNAPSHOTS that others can use means that SNAPSHOTS start to get little guarantees about their level of functionality and degree of testing that makes collaborative development more productive. Just wish we had done it earlier. On Wed, Aug 10, 2011 at 10:09 PM, Wayne Fay [via Maven] ml-node+4687106-319269717-240...@n5.nabble.com wrote: I had already tried putting the JBOss repo in my settings.xml, I even tried using a mirror of it provided by some other company. Nothing worked. That's why this issue has been so frustrating. So any ideas or suggestions about how to fix the issue or work around it would be greatly appreciated. mvn -X compile may provide additional useful debugging information. Or it may not, some people have trouble grokking all the info it spews. Are you behind an Internet proxy? Are you connecting to a local Nexus or other MRM instance? [If not, you should consider installing something...] What does the updatePolicy for this repository look like in settings.xml or Nexus config? etc You should also try mvn -U to force an update of any jars/poms that are involved in this build. Perhaps the pom file will be downloadable when you try again. If not, there isn't a whole lot we'll be able to do to help you. You could also just download the pom file and copy it to the proper place in your local repo cache just to get past this issue. Wayne - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4687106i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4687106i=1 -- If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Problem-adding-hibernate-jbosscache2-to-my-project-tp4685996p4687106.html To unsubscribe from Problem adding hibernate-jbosscache2 to my project, click herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4685996code=Y2FsaW5jb3NtYUBnbWFpbC5jb218NDY4NTk5NnwtODMyNDk5MTY1. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version
I'm using an ant build.xml that generates classes and compiles them with the tools.jar from the JDK. I am using MAVEN 2.2.1 version. JDK 1.5 to execute MAVEN. As maven 2.2.1 version supports higher then JDK 1.5 only so I have to use it. This maven-antrun-plugin doesn't allow to specify neither source or target version for the compiler. So, the generated classes are compiled against the currently running JVM which is JDK , using its rt.jar and the tools.jar provided in plugin dependencies (or placed in the lib/ext directory of the jvm). As Maven is executed in a 1.5 JVM (jdk1.5.0_22) is needed for my project to compile these classes with JDK 1.4.2 version because the server where I want to deploy them is running on a 1.4 JVM, so I am getting exception while I am compiling with MAVEN plugin from my eclipse or command line. I couldn't find a way to tell antrun to compile my classes using a different java version. I tried the following workarounds : change the tools.jar dependency to point to a 1.4 version = as the compiler uses the rt.jar from the currently running 1.5 JVM, the class file version doesn't match (version 49.0, expecting 48.0) add a dependency to a 1.4 rt.jar = it doesn't change anything, as the rt.jar should be specified in the boot classpath. Following one is the sample code which i am using. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.6/version executions execution idinstall/id phaseinstall/phase goals goalrun/goal /goals configuration source${java-version}/source target${java-version}/target compilerVersion${java-version}/compilerVersion compilerArguments classpath${java.home}/lib/tools.jar/classpath classpath${java.home}/jre/lib/rt.jar/classpath /compilerArguments tasks ant antfile=WPSEjb_build.xml/ /tasks /configuration /execution /executions dependencies dependency groupIdcrimson/groupId artifactIdcrimson/artifactId version1.1.3/version /dependency dependency groupIdsun.jdk/groupId artifactIdtools/artifactId version1.4.2/version scopesystem/scope systemPath${java.home}/lib/tools.jar/systemPath /dependency dependency groupIdcom.sun/groupId artifactIdrt/artifactId version${java-version}/version scopesystem/scope systemPath${java.home}/jre/lib/rt.jar/systemPath /dependency /dependencies /plugin I am getting exceptions something like this. WPSClient.java:22: cannot access java.lang.Object [wlwBuild] [Build] bad class file: C:\Java\jdk1.5.0_22\jre\lib\rt.jar(java/lang/Object.class) [wlwBuild] [Build] class file has wrong version 49.0, should be 48.0 [wlwBuild] [Build] Please remove or make sure it appears in the correct subdirectory of the classpath. [wlwBuild] [Build] public static WPSServerRemote getWPSServer() throws MitchellException { [wlwBuild] [Build] ^ [wlwBuild] [Build] 3 errors [wlwBuild] [Build] BUILD FAILED [wlwBuild] [Build] Compile failed; see the compiler error output for details. [wlwBuild] [Build] [wlwBuild] java.lang.reflect.InvocationTargetException [wlwBuild] java.lang.reflect.InvocationTargetException [wlwBuild] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [wlwBuild] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [wlwBuild] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [wlwBuild] at java.lang.reflect.Method.invoke(Method.java:592) [wlwBuild] at workshop.core.Compile.start(Compile.java:19) [wlwBuild] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [wlwBuild] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [wlwBuild] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [wlwBuild] at java.lang.reflect.Method.invoke(Method.java:592) [wlwBuild] at workshop.core.Starter.invokeStart(Starter.java:34) [wlwBuild] at workshop.core.Compile.main(Compile.java:9) [wlwBuild] Caused by: java.lang.NoClassDefFoundError: org/apache/crimson/tree/XmlDocument [wlwBuild] at workshop.util.ide.PreferencesNode._export(PreferencesNode.java:540) [wlwBuild] at workshop.util.ide.PreferencesNode.exportSubtree(PreferencesNode.java:820) [wlwBuild] at workshop.util.ide.PreferencesNode.flush(PreferencesNode.java:984) [wlwBuild] at workshop.core.App$15.run(App.java:1000) [wlwBuild] at workshop.core.asynctask.AsyncTaskManager.showDialogWhileRunning(AsyncTaskManager.java:272)
Re: Help:Calling plugin from a remote repository
On Thu, Aug 11, 2011 at 12:06 AM, goutham goutham.vasire...@gmail.com wrote: I want it to restrict to the remote repo only. It should not look into local repo , at least first it have to look in remote and then go for local On Wed, Aug 10, 2011 at 6:02 PM, Anders Hammar [via Maven] ml-node+4685646-210393254-220...@n5.nabble.com wrote: Short answer: it's the same command somewhat longer answer: Maven will first look in your local repo. If not found there, it will look in the configured remote repos (and download to your local repo if found). Maybe reading some of the first chapters in some Maven book will give you a better idea on how Maven works. You'll find two free books here [1]. /Anders [1] http://www.sonatype.com/Support/Books Did you go and read the suggested sources? I don't undetstand why you would want to check remote repo only. Any released artifact NEVER changes, so if its in your local repo its identical to what would be on the remote repo. This saves you networks connection and download times, which is a good thing. As Wayne points out, you can always delete ~/.m2/repository (or specific parts of it) with no issues. Maven will just re-download the versions again. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Help:Calling plugin from a remote repository
You have to create Profile for that.. If you will put following entry in your settings.xml file it will first look at the remote repository and then it will look for your local repository. Basically you need to create profile profile idRepository Proxy/id activation activeByDefaulttrue/activeByDefault /activation repositories repository idarchiva.internal/id urlhttp://localhost:8080/archiva/repository/internal/ /url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository /repositories /profile If you will create mirror then it will only look for defined repository only. It will not look for remote in this case. I hope it helps. Thanks, daivish. On Wed, Aug 10, 2011 at 4:35 PM, Barrie Treloar baerr...@gmail.com wrote: On Thu, Aug 11, 2011 at 12:06 AM, goutham goutham.vasire...@gmail.com wrote: I want it to restrict to the remote repo only. It should not look into local repo , at least first it have to look in remote and then go for local On Wed, Aug 10, 2011 at 6:02 PM, Anders Hammar [via Maven] ml-node+4685646-210393254-220...@n5.nabble.com wrote: Short answer: it's the same command somewhat longer answer: Maven will first look in your local repo. If not found there, it will look in the configured remote repos (and download to your local repo if found). Maybe reading some of the first chapters in some Maven book will give you a better idea on how Maven works. You'll find two free books here [1]. /Anders [1] http://www.sonatype.com/Support/Books Did you go and read the suggested sources? I don't undetstand why you would want to check remote repo only. Any released artifact NEVER changes, so if its in your local repo its identical to what would be on the remote repo. This saves you networks connection and download times, which is a good thing. As Wayne points out, you can always delete ~/.m2/repository (or specific parts of it) with no issues. Maven will just re-download the versions again. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version
On Thu, Aug 11, 2011 at 9:01 AM, Daivish Shah daivish.s...@gmail.com wrote: I'm using an ant build.xml that generates classes and compiles them with the tools.jar from the JDK. I am using MAVEN 2.2.1 version. JDK 1.5 to execute MAVEN. As maven 2.2.1 version supports higher then JDK 1.5 only so I have to use it. You can downgrade to Maven 2.0.11 (http://maven.apache.org/docs/2.0.11/release-notes.html) which will support 1.4. This maven-antrun-plugin doesn't allow to specify neither source or target version for the compiler. So, the generated classes are compiled against the currently running JVM which is JDK , using its rt.jar and the tools.jar provided in plugin dependencies (or placed in the lib/ext directory of the jvm). As Maven is executed in a 1.5 JVM (jdk1.5.0_22) is needed for my project to compile these classes with JDK 1.4.2 version because the server where I want to deploy them is running on a 1.4 JVM, so I am getting exception while I am compiling with MAVEN plugin from my eclipse or command line. I couldn't find a way to tell antrun to compile my classes using a different java version. I tried the following workarounds : You can upgrade WPS to use java 1.5. Or you can tell Ant to use a different version of java. http://ant.apache.org/manual/Tasks/javac.html - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version
Hi, I tried giving JRE and TOOLS JAR from build.xml file. But it's working fine if i run as ANT script. But when i execute as MAVEN it's taking JAVA_HOME variable which is setup as system variable so my system JAVA_HOME is 1.5 and i want to compile with 1.4.2 from MAVEN Only. Even i gave dependencies as below. dependencies dependency groupIdsun.jdk/groupId artifactIdtools/artifactId version1.4.2/version scopesystem/scope systemPath${java.home}/lib/tools.jar/systemPath /dependency dependency groupIdcom.sun/groupId artifactIdrt/artifactId version1.4.2/version scopesystem/scope systemPath${java.home}/jre/lib/rt.jar/systemPath /dependency /dependencies And Also tried giving something like this. configuration javaHome${java.home}/javaHome source${java-version}/source target1.4.2/target /configuration But it's still taking JDK 1.5 while compiling the source Code. Please advice me. Thanks, daivish. On Wed, Aug 10, 2011 at 4:58 PM, Barrie Treloar baerr...@gmail.com wrote: On Thu, Aug 11, 2011 at 9:01 AM, Daivish Shah daivish.s...@gmail.com wrote: I'm using an ant build.xml that generates classes and compiles them with the tools.jar from the JDK. I am using MAVEN 2.2.1 version. JDK 1.5 to execute MAVEN. As maven 2.2.1 version supports higher then JDK 1.5 only so I have to use it. You can downgrade to Maven 2.0.11 (http://maven.apache.org/docs/2.0.11/release-notes.html) which will support 1.4. This maven-antrun-plugin doesn't allow to specify neither source or target version for the compiler. So, the generated classes are compiled against the currently running JVM which is JDK , using its rt.jar and the tools.jar provided in plugin dependencies (or placed in the lib/ext directory of the jvm). As Maven is executed in a 1.5 JVM (jdk1.5.0_22) is needed for my project to compile these classes with JDK 1.4.2 version because the server where I want to deploy them is running on a 1.4 JVM, so I am getting exception while I am compiling with MAVEN plugin from my eclipse or command line. I couldn't find a way to tell antrun to compile my classes using a different java version. I tried the following workarounds : You can upgrade WPS to use java 1.5. Or you can tell Ant to use a different version of java. http://ant.apache.org/manual/Tasks/javac.html - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version
On Thu, Aug 11, 2011 at 9:47 AM, Daivish Shah daivish.s...@gmail.com wrote: Hi, I tried giving JRE and TOOLS JAR from build.xml file. But it's working fine if i run as ANT script. But when i execute as MAVEN it's taking JAVA_HOME variable which is setup as system variable so my system JAVA_HOME is 1.5 and i want to compile with 1.4.2 from MAVEN Only. Even i gave dependencies as below. dependencies dependency groupIdsun.jdk/groupId artifactIdtools/artifactId version1.4.2/version scopesystem/scope systemPath${java.home}/lib/tools.jar/systemPath /dependency dependency groupIdcom.sun/groupId artifactIdrt/artifactId version1.4.2/version scopesystem/scope systemPath${java.home}/jre/lib/rt.jar/systemPath /dependency /dependencies And Also tried giving something like this. configuration javaHome${java.home}/javaHome source${java-version}/source target1.4.2/target /configuration But it's still taking JDK 1.5 while compiling the source Code. Ant is just a java program. It doesn't use classpath dependencies or environment variables in order to run. Yes they are set in the bat files that startup Ant but not the java Main class. Ant expects all this stuff to be already available, so attempting to get maven-antrun-plugin to inject these into the instance of Ant and expecting it to work is a misunderstanding. Did you try any of the options I previously proposed? Another option is to just use the exec-maven-plugin (http://mojo.codehaus.org/exec-maven-plugin) to exec Ant. But then why are bothering to wrap all this in Maven? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version
sounds like he'd be better off pitching the ant build for a full maven build and using toolchains to get m-compiler-p compiling with 1.4... or pitching maven and using ant. - 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 11 Aug 2011 05:23, Barrie Treloar baerr...@gmail.com wrote: On Thu, Aug 11, 2011 at 9:47 AM, Daivish Shah daivish.s...@gmail.com wrote: Hi, I tried giving JRE and TOOLS JAR from build.xml file. But it's working fine if i run as ANT script. But when i execute as MAVEN it's taking JAVA_HOME variable which is setup as system variable so my system JAVA_HOME is 1.5 and i want to compile with 1.4.2 from MAVEN Only. Even i gave dependencies as below. dependencies dependency groupIdsun.jdk/groupId artifactIdtools/artifactId version1.4.2/version scopesystem/scope systemPath${java.home}/lib/tools.jar/systemPath /dependency dependency groupIdcom.sun/groupId artifactIdrt/artifactId version1.4.2/version scopesystem/scope systemPath${java.home}/jre/lib/rt.jar/systemPath /dependency /dependencies And Also tried giving something like this. configuration javaHome${java.home}/javaHome source${java-version}/source target1.4.2/target /configuration But it's still taking JDK 1.5 while compiling the source Code. Ant is just a java program. It doesn't use classpath dependencies or environment variables in order to run. Yes they are set in the bat files that startup Ant but not the java Main class. Ant expects all this stuff to be already available, so attempting to get maven-antrun-plugin to inject these into the instance of Ant and expecting it to work is a misunderstanding. Did you try any of the options I previously proposed? Another option is to just use the exec-maven-plugin (http://mojo.codehaus.org/exec-maven-plugin) to exec Ant. But then why are bothering to wrap all this in Maven? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org