[M2] Remote Repository
Hi, I tried to override the default remote repository in my pom.xml: repositories repository idmaven/id nameMaven repository/name urlhttp://foo:[EMAIL PROTECTED]/maven/url /repository /repositories However, m2 seems to be using the above repository only as backup, after http://repo1.maven.org/maven2... Is my pom.xml wrong or is this normal? How do I override the default remote repository then? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Remote Repository
Hi Edwin, You need to use the id central to override the normal repository, otherwise both will be used. Cheers, Brett On 6/16/05, Edwin Punzalan [EMAIL PROTECTED] wrote: Hi, I tried to override the default remote repository in my pom.xml: repositories repository idmaven/id nameMaven repository/name urlhttp://foo:[EMAIL PROTECTED]/maven/url /repository /repositories However, m2 seems to be using the above repository only as backup, after http://repo1.maven.org/maven2... Is my pom.xml wrong or is this normal? How do I override the default remote repository then? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I add 2 numbers in jelly?
It works now. The problem was that one of my variables was a string, not a number. Using the XPath function 'number()' solved this. 2005/6/15, Wim Deblauwe [EMAIL PROTECTED]: I'll check out the resource tomorrow for more info. I already tried the statement you say, but it did not seem to work. 2005/6/15, Kenney Westerhof [EMAIL PROTECTED]: On Wed, 15 Jun 2005, Wim Deblauwe wrote: See http://jakarta.apache.org/commons/jexl/reference/syntax.html, jexl is Java Expression Language, the default scripting language used in jelly. You can use j:set var=sum value=${ sum + passRateValue }/ or something. Hi, I can't find a good jelly resource anywhere on the net, so I hope this list might help me out. Consider this jelly fragment: x:forEach var=passRate select=//[EMAIL PROTECTED]'junitpassrate'][not(text()='-')][text()] x:set var=passrateValue select=substring-before(text(), ' %')/ echopassrateValue: ${passrateValue}/echo Need to do an addition of all passrateValue values in a variable /x:forEach //Do some further calculation with the total here How can I do this addition in jelly? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JEXL arithmatic strangeness
Hi, does somebody know why division does not work in JEXL? I have the following fragment: x:set var=nrOfProjects select=count(//[EMAIL PROTECTED]'junitpassrate'][not(text()='-')][text()])/ x:forEach var=passRate select=//[EMAIL PROTECTED]'junitpassrate'][not(text()='-')][text()] x:set var=passrateValue select=number(substring-before(text(), ' %'))/ j:set var=passrateTotal value=${passrateTotal + passrateValue}/ echototal: ${passrateTotal}/echo /x:forEach echototal: ${passrateTotal}/echo echonrOfProjects: ${nrOfProjects}/echo j:set var=averagePassrate value=${passrateTotal / nrOfProjects}/ pAverage pass rate (not-weighed): /p echo${averagePassrate}/echo j:set var=averagePassrate2 value=${passrateTotal * nrOfProjects}/ echo${averagePassrate2}/echo The variable 'averagePassrate' is empty somehow. However when I change the division ('/') by multiplification or addition or subtraction, the math is performed correctly. Any ideas? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] error downloading resources:resources
I remember to have discuss about it but it was probably on the common list... The resources:resources is an internal test artifact that the commons-configuration use to execute some test. I thought it was fixed ! I fix it in my local repo by change its scope to test. Nicolas 2005/6/16, Brett Porter [EMAIL PROTECTED]: Thankyou. We will fix the commons-configuration data. You can also edit it in your local repository (eg ~/.m2/repository/commons-configuration/commons-configuration/1.1/commons-configuration-1.1.pom) to comment out the reosurces dependency. In the next release, you could also add an exclusion to the dependency. - Brett On 6/16/05, Anil Arora [EMAIL PROTECTED] wrote: I'm getting the following error when I try to run any goal using maven. [INFO] [INFO] Building interlace.util [INFO] [INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] [resources:resources] Downloading: http://repo1.maven.org/maven2/resources/resources/1.0/resources-1.0.pom [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Main Error: Unable to download the artifact from any repository resources:resources:1.0:pom from the specified remote repositories: http://repo1.maven.org/maven2 Root error: Unable to download the artifact from any repository [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Jun 15 14:24:40 PDT 2005 [INFO] Final Memory: 1M/2M [INFO] It appears to be an issue when I have the commons-configuration dependency in my pom file. dependency groupIdcommons-configuration/groupId artifactIdcommons-configuration/artifactId version1.1/version /dependency If I comment this out, it works past this, but fails since I need this to compile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] error downloading resources:resources
Should it be the responsibility of the component owner to define the scope for the dependencies in the pom file? If you look at this component, there are a lot of dependencies and each with their own set of dependencies. For example, shouldn't junit be a test dependency? A. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 6:38 PM To: Maven Users List Subject: Re: [m2] error downloading resources:resources Thankyou. We will fix the commons-configuration data. You can also edit it in your local repository (eg ~/.m2/repository/commons-configuration/commons-configuration/1.1/commons -configuration-1.1.pom) to comment out the reosurces dependency. In the next release, you could also add an exclusion to the dependency. - Brett On 6/16/05, Anil Arora [EMAIL PROTECTED] wrote: I'm getting the following error when I try to run any goal using maven. [INFO] [INFO] Building interlace.util [INFO] [INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] [resources:resources] Downloading: http://repo1.maven.org/maven2/resources/resources/1.0/resources-1.0.pom [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Main Error: Unable to download the artifact from any repository resources:resources:1.0:pom from the specified remote repositories: http://repo1.maven.org/maven2 Root error: Unable to download the artifact from any repository [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Jun 15 14:24:40 PDT 2005 [INFO] Final Memory: 1M/2M [INFO] It appears to be an issue when I have the commons-configuration dependency in my pom file. dependency groupIdcommons-configuration/groupId artifactIdcommons-configuration/artifactId version1.1/version /dependency If I comment this out, it works past this, but fails since I need this to compile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: relative personal stylesheet location
If I create a new file xdocs/stylesheets/project.css and do a maven clean site, then I get the following header in my index.html !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html head titleZiele - $pom.name/title style type=text/css media=all @import url(./style/maven-base.css); @import url(./style/maven-theme.css); /style link rel=stylesheet href=./style/print.css type=text/css media=print/link meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/meta It seems that project.css is not included automatically. What am I doing wrong? I am using xdoc-plugin 1.9, javadoc-plugin 1.7. Daniel -Ursprngliche Nachricht- Von: Brett Porter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 2. Mai 2005 23:58 An: Maven Users List Betreff: Re: relative personal stylesheet location URL needs to be an actual URL, not a relative file. I can't remember if there are other properties for adding stylesheets, but you can use the file xdocs/stylesheets/project.css which is included automatically. Cheers, Brett On 5/2/05, Daniel Frey [EMAIL PROTECTED] wrote: Hello I've got the following project structure for my documentation: - xdocs + +- stylesheets + | +- ups-style.css +- navigation.xml +- faq.xml +- changes.xml +- project + +- index.xml +- features.xml +- download.xml Now I would like to use the stylesheet in the first folder to be introduced for all generated html pages. Therefore I define the appropriate property: maven.xdoc.theme.url = style/ups-style.css Whilst the index.html page (generated from navigation.xml) in the root folder does display the style correctly, those in the project directory don't. The reference is taken relative and is not corrected to be one level more up. The default stylesheets however are referenced correctly. The corresponding source code in the generated html file looks like this: style type=text/css media=all @import url(./style/maven-base.css); @import url(./xdocs/style/ups-style.css); /style My question now: How do I have to specify my personal stylesheet in the property to be referenced correctly? If not possible, what other way to solve this issue? Thanks in advance Daniel Frey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [ANN] Maven Artifact Plugin 1.5.2 released
Works just perfect! -Ursprngliche Nachricht- Von: Brett Porter [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 15. Juni 2005 17:54 An: Maven Users List Betreff: Re: [ANN] Maven Artifact Plugin 1.5.2 released I think you want scpexe://. scp:// uses the built in Jsch provider. - Brett On 6/16/05, Daniel Frey [EMAIL PROTECTED] wrote: Hello I am using plink.exe, pscp.exe and the following properties: maven.repo.list = a maven.repo.a = scp://maven.a.ch maven.repo.a.directory = /data/maven maven.repo.a.username = my_name maven.repo.a.scp.executable = C:/Path/To/pscp.exe maven.username = my_name However, I still get the following error: Failed to deploy to: a Reason: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: Private key was not found. You must define a private key or a password for repo: a org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: Private key was not found. You must define a private key or a password for repo: a at org.apache.maven.wagon.providers.ssh.ScpWagon.openConnection(ScpWagon. java:1 64) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:123) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:90) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deployFiles (Defau ltArtifactDeployer.java:376) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doDeploy(De faultA rtifactDeployer.java:324) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleDeplo y(Defa ultArtifactDeployer.java:131) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defa ultArt ifactDeployer.java:102) at org.apache.maven.artifact.deployer.DeployBean.deploy(DeployBean.java:142) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j ava:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess orImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:230) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:125) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java: 79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perform Action (MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:488) at org.apache.maven.cli.App.main(App.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j ava:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess orImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: org.apache.maven.wagon.authentication.AuthenticationException: Private key was not found. You must define a private key or a password for repo: a at org.apache.maven.wagon.providers.ssh.ScpWagon.openConnection(ScpWagon. java:1 28) ... 31 more BUILD FAILED File.. C:\Dokumente und Einstellungen\Daniel Frey\.maven\cache\maven-artifact-plugin-1.5.2\plugin.jelly Element... artifact:artifact-deploy Line.. 90 Column 9 Unable to deploy to any repositories Total time: 3 seconds Finished at: Wed Jun 15 17:29:25 CEST 2005 -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 15. Juni 2005 15:40 An: users@maven.apache.org; dev@maven.apache.org Betreff: [ANN] Maven Artifact Plugin 1.5.2 released We are pleased to announce the Maven Artifact Plugin 1.5.2 release! http://maven.apache.org/reference/plugins/artifact/ Tools to manage artifacts and deployment. Changes in this version include: Fixed bugs: o Correct the translation of dependency properties on deployment of the POM Issue: MPARTIFACT-51. o Upgrade Wagon SSH External provider to allow the use of no private key, and to
Re: [M2] Remote Repository
Thanks, Brett. But I tried that and it didn't changed. Please verify... I'll be changing the maven to central inside the id tag right? Brett Porter wrote: Hi Edwin, You need to use the id central to override the normal repository, otherwise both will be used. Cheers, Brett On 6/16/05, Edwin Punzalan [EMAIL PROTECTED] wrote: Hi, I tried to override the default remote repository in my pom.xml: repositories repository idmaven/id nameMaven repository/name urlhttp://foo:[EMAIL PROTECTED]/maven/url /repository /repositories However, m2 seems to be using the above repository only as backup, after http://repo1.maven.org/maven2... Is my pom.xml wrong or is this normal? How do I override the default remote repository then? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] error downloading resources:resources
On Thu, 2005-06-16 at 01:01 -0700, Anil Arora wrote: Should it be the responsibility of the component owner to define the scope for the dependencies in the pom file? If you look at this component, there are a lot of dependencies and each with their own set of dependencies. For example, shouldn't junit be a test dependency? Not if you are building a testing toolkit which requires junit for example. We write abstract test cases for many things in Maven like Wagon and Maven SCM and often we package the abstract test cases in a separate project. In this case junit is a compile time dependency. A. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 6:38 PM To: Maven Users List Subject: Re: [m2] error downloading resources:resources Thankyou. We will fix the commons-configuration data. You can also edit it in your local repository (eg ~/.m2/repository/commons-configuration/commons-configuration/1.1/commons -configuration-1.1.pom) to comment out the reosurces dependency. In the next release, you could also add an exclusion to the dependency. - Brett On 6/16/05, Anil Arora [EMAIL PROTECTED] wrote: I'm getting the following error when I try to run any goal using maven. [INFO] [INFO] Building interlace.util [INFO] [INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] [resources:resources] Downloading: http://repo1.maven.org/maven2/resources/resources/1.0/resources-1.0.pom [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Main Error: Unable to download the artifact from any repository resources:resources:1.0:pom from the specified remote repositories: http://repo1.maven.org/maven2 Root error: Unable to download the artifact from any repository [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Jun 15 14:24:40 PDT 2005 [INFO] Final Memory: 1M/2M [INFO] It appears to be an issue when I have the commons-configuration dependency in my pom file. dependency groupIdcommons-configuration/groupId artifactIdcommons-configuration/artifactId version1.1/version /dependency If I comment this out, it works past this, but fails since I need this to compile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org believe nothing, no matter where you read it, or who has said it, not even if i have said it, unless it agrees with your own reason and your own common sense. -- Buddha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:resource within jar is not being found
Hi Erick, Can you provide any details for reproducibility ? * A B POM contents * A-1.0.jar structure * Java code calling resource.xml Also, you said A depends on B. Didn't you mean the contrary ? Are you using Maven 1.0.2 or 2.0 ? Regards, Yann -- Mail d'origine --- De : quot;Erick Dovalequot; [EMAIL PROTECTED] A : quot;Maven Users Listquot; users@maven.apache.org Cc : Date : Wed, 15 Jun 2005 15:07:08 -0400 Objet : resource within jar is not being found -Hello out there, - -I am having a problem I am not sure is directly related to maven, so -forgive me if it is not. -I have 2 projects A and B. A depends on B. When I am running tests in B -it is not finding stuff into A-1.0.jar. More specifically an xml file -needed. This is happening although the jar exists and maven seems to be -looking for it in the right place using the following uri: -C:\Documents and -Settings\edovale\.maven\repository\A\jars\A-1.0.jar!\resource.xml (The -system cannot find the path specified) - -I have checked the content of the jar and the resource.xml file is where -it is suppose to be, still it is not been found, As a matter of fact, -nothing is been found into this jar file. - -Any clue as to where to look to solve this issue? - -I am using maven 1.2 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Overriding webapp source directory
Hi there, I'm 2-week-old to Maven and trying to build a small webapp with Maven (for POC). The thing is, my corp. is already using Eclipse Web Tools, which forces us into this kind of project structure (I hid test directories for readability) : foo |-- final-foo |-- JavaSource |-- com |-- ... |-- WebContent |-- WEB-INF |-- ... |--... Even though I know this isn't the way Maven is supposed to work :) , I partly solved the issue by including the following in my foo/pom.xml : build sourceDirectoryfinal-foo/JavaSource/sourceDirectory /build ...which is working well, but I'd like to do the same for the webapp directory, that is, something like : webappSourceDirectoryfinal-foo/WebContent/webappSourceDirectory I haven't found anything in docs, JIRA, user lists. Is there any way ? Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:[m2] Overriding webapp source directory
So much for my project tree, all blanks were gotten rid of :) Here is another try : - foo - |-- final-foo - |-- JavaSource - |-- com - |-- ... - |-- WebContent - |-- WEB-INF - |-- ... - |--... Yann -- Mail d'origine --- De : quot;Yann LE DUquot; [EMAIL PROTECTED] A : users@maven.apache.org Cc : Date : Thu, 16 Jun 2005 11:06:11 +0200 Objet : [m2] Overriding webapp source directory -Hi there, - -I'm 2-week-old to Maven and trying to build a small -webapp with Maven (for POC). The thing is, my corp. is -already using Eclipse Web Tools, which forces us into -this kind of project structure (I hid test directories -for readability) : - -foo -|-- final-foo -|-- JavaSource -|-- com -|-- ... -|-- WebContent -|-- WEB-INF -|-- ... -|--... - -Even though I know this isn't the way Maven is supposed -to work :) , I partly solved the issue by including the -following in my foo/pom.xml : - -build - sourceDirectoryfinal-foo/JavaSource/sourceDirectory -/build - -...which is working well, but I'd like to do the same -for the webapp directory, that is, something like : - -webappSourceDirectoryfinal-foo/WebContent/webappSourceDirectory - -I haven't found anything in docs, JIRA, user lists. Is -there any way ? - -Yann - - -- -To unsubscribe, e-mail: [EMAIL PROTECTED] -For additional commands, e-mail: [EMAIL PROTECTED] - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:[m2] Overriding webapp source directory
Well, this isn't working either, so let's jump to something less readable :) foo foo/final-foo foo/final-foo/JavaSource foo/final-foo/JavaSource/com foo/final-foo/JavaSource/com/... foo/final-foo/WebContent foo/final-foo/WebContent/WEB-INF foo/final-foo/WebContent/WEB-INF/... foo/final-foo/WebContent/... Sorry for all the spamming :) Yann -- Mail d'origine --- De : quot;Yann LE DUquot; [EMAIL PROTECTED] A : quot;Maven Users Listquot; users@maven.apache.org Cc : Date : Thu, 16 Jun 2005 11:15:51 +0200 Objet : Re:[m2] Overriding webapp source directory -So much for my project tree, all blanks were gotten rid -of :) - -Here is another try : - -- foo -- |-- final-foo -- |-- JavaSource -- |-- com -- |-- ... -- |-- WebContent -- |-- WEB-INF -- |-- ... -- |--... - - -Yann - - - --- Mail d'origine --- - - De : quot;Yann LE DUquot; [EMAIL PROTECTED] - A : users@maven.apache.org - Cc : - Date : Thu, 16 Jun 2005 11:06:11 +0200 - Objet : [m2] Overriding webapp source directory - - - --Hi there, -- --I'm 2-week-old to Maven and trying to build a small --webapp with Maven (for POC). The thing is, my corp. is --already using Eclipse Web Tools, which forces us into --this kind of project structure (I hid test directories --for readability) : -- --foo --|-- final-foo --|-- JavaSource --|-- com --|-- ... --|-- WebContent --|-- WEB-INF --|-- ... --|--... -- --Even though I know this isn't the way Maven is supposed --to work :) , I partly solved the issue by including the --following in my foo/pom.xml : -- --build -- sourceDirectoryfinal-foo/JavaSource/sourceDirectory --/build -- --...which is working well, but I'd like to do the same --for the webapp directory, that is, something like : -- --webappSourceDirectoryfinal-foo/WebContent/webappSourceDirectory -- --I haven't found anything in docs, JIRA, user lists. Is --there any way ? -- --Yann -- -- --- --To unsubscribe, e-mail: [EMAIL PROTECTED] --For additional commands, e-mail: [EMAIL PROTECTED] -- -- - - -- -To unsubscribe, e-mail: [EMAIL PROTECTED] -For additional commands, e-mail: [EMAIL PROTECTED] - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Overriding webapp source directory
Hi, Have you tried setting the |warSourceDirectory| property of the m2 maven-war-plugin? Your pom should look like this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration warSourceDirectoryfinal-foo/WebContent/warSourceDirectory /configuration /plugin /plugins /build . Yann LE DU wrote: Hi there, I'm 2-week-old to Maven and trying to build a small webapp with Maven (for POC). The thing is, my corp. is already using Eclipse Web Tools, which forces us into this kind of project structure (I hid test directories for readability) : foo |-- final-foo |-- JavaSource |-- com |-- ... |-- WebContent |-- WEB-INF |-- ... |--... Even though I know this isn't the way Maven is supposed to work :) , I partly solved the issue by including the following in my foo/pom.xml : build sourceDirectoryfinal-foo/JavaSource/sourceDirectory /build ...which is working well, but I'd like to do the same for the webapp directory, that is, something like : webappSourceDirectoryfinal-foo/WebContent/webappSourceDirectory I haven't found anything in docs, JIRA, user lists. Is there any way ? Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Overriding webapp source directory
Just tried, it works just fine ! I guess I can do the same with any other plugin goal parameter, which I didn't get from the docs. Thanks Edwin ! Yann -- Mail d'origine --- De : quot;Edwin Punzalanquot; [EMAIL PROTECTED] A : quot;Maven Users Listquot; users@maven.apache.org Cc : Date : Thu, 16 Jun 2005 17:50:15 +0800 Objet : Re: [m2] Overriding webapp source directory -Hi, - -Have you tried setting the |warSourceDirectory| property of the m2 -maven-war-plugin? - -Your pom should look like this: - - - build -plugins - plugin -groupIdorg.apache.maven.plugins/groupId -artifactIdmaven-war-plugin/artifactId -configuration - warSourceDirectoryfinal-foo/WebContent/warSourceDirectory -/configuration - /plugin -/plugins - /build -. - -Yann LE DU wrote: - -Hi there, - -I'm 2-week-old to Maven and trying to build a small -webapp with Maven (for POC). The thing is, my corp. is -already using Eclipse Web Tools, which forces us into -this kind of project structure (I hid test directories -for readability) : - -foo -|-- final-foo -|-- JavaSource -|-- com -|-- ... -|-- WebContent -|-- WEB-INF -|-- ... -|--... - -Even though I know this isn't the way Maven is supposed -to work :) , I partly solved the issue by including the -following in my foo/pom.xml : - -build - sourceDirectoryfinal-foo/JavaSource/sourceDirectory -/build - -...which is working well, but I'd like to do the same -for the webapp directory, that is, something like : - -webappSourceDirectoryfinal-foo/WebContent/webappSourceDirectory - -I haven't found anything in docs, JIRA, user lists. Is -there any way ? - -Yann - - -- -To unsubscribe, e-mail: [EMAIL PROTECTED] -For additional commands, e-mail: [EMAIL PROTECTED] - - - - - -- -To unsubscribe, e-mail: [EMAIL PROTECTED] -For additional commands, e-mail: [EMAIL PROTECTED] - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Archetype plugin: How can I define my own project skeleton?
Hi, I have a project skeleton/structure that is different from what is generated by Archetype plugin by default. I would like to define a project skeleton that can be used by Archetype to setup projects. I think this is defined by archetype.xml packaged under META-INF in the archetype plugin JAR. How can I override this definition with my own ? TIA, Rahul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Archetype plugin: How can I define my own project skeleton?
Hi, 1- You need to create a new m2 project like this : http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-archetype/maven-archetypes/maven-archetype-quickstart/ that contains : - pom.xml file - src/main/resources/META-INF/archetype.xml file - src/main/resources/archetype-resources directory that contains your templates files 2- Install it in your repository 3- Run archetype plugin for generate a new project with your template Emmanuel Rahul wrote: Hi, I have a project skeleton/structure that is different from what is generated by Archetype plugin by default. I would like to define a project skeleton that can be used by Archetype to setup projects. I think this is defined by archetype.xml packaged under META-INF in the archetype plugin JAR. How can I override this definition with my own ? TIA, Rahul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JEXL arithmatic strangeness
Here is how I do it: j:new var=aBigDecimal1 className=java.math.BigDecimal j:arg type=java.lang.String value=${passrateTotal.toString()}/ /j:new j:new var=aBigDecimal2 className=java.math.BigDecimal j:arg type=java.lang.String value=${nrOfProjects.toString()}/ /j:new j:new var=aJavaLangInteger className=java.lang.Integer j:arg type=java.lang.String value=0/ /j:new j:invoke var=anInt on=${aJavaLangInteger} method=intValue/ j:invoke var=Result on=${aBigDecimal1} method=divide j:arg value=${aBigDecimal2}/ j:arg value=${anInt}/ j:arg value=${anInt}/ /j:invoke -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 3:00 AM To: Maven Users List Subject: JEXL arithmatic strangeness Hi, does somebody know why division does not work in JEXL? I have the following fragment: x:set var=nrOfProjects select=count(//[EMAIL PROTECTED]'junitpassrate'][not(text()='-')][text()]) / x:forEach var=passRate select=//[EMAIL PROTECTED]'junitpassrate'][not(text()='-')][text()] x:set var=passrateValue select=number(substring-before(text(), ' %'))/ j:set var=passrateTotal value=${passrateTotal + passrateValue}/ echototal: ${passrateTotal}/echo /x:forEach echototal: ${passrateTotal}/echo echonrOfProjects: ${nrOfProjects}/echo j:set var=averagePassrate value=${passrateTotal / nrOfProjects}/ pAverage pass rate (not-weighed): /p echo${averagePassrate}/echo j:set var=averagePassrate2 value=${passrateTotal * nrOfProjects}/ echo${averagePassrate2}/echo The variable 'averagePassrate' is empty somehow. However when I change the division ('/') by multiplification or addition or subtraction, the math is performed correctly. Any ideas? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Archetype plugin: How can I define my own project skeleton?
We need an archetype archetype! :) - Brett On 6/16/05, Emmanuel Venisse [EMAIL PROTECTED] wrote: Hi, 1- You need to create a new m2 project like this : http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-archetype/maven-archetypes/maven-archetype-quickstart/ that contains : - pom.xml file - src/main/resources/META-INF/archetype.xml file - src/main/resources/archetype-resources directory that contains your templates files 2- Install it in your repository 3- Run archetype plugin for generate a new project with your template Emmanuel Rahul wrote: Hi, I have a project skeleton/structure that is different from what is generated by Archetype plugin by default. I would like to define a project skeleton that can be used by Archetype to setup projects. I think this is defined by archetype.xml packaged under META-INF in the archetype plugin JAR. How can I override this definition with my own ? TIA, Rahul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: resource within jar is not being found
Hi Yann, Yes, I meant B depends on A. Maven version is 1.0.2. A POM: ?xml version=1.0 encoding=UTF-8? project pomVersion3/pomVersion artifactIdA/artifactId nameA/name groupIdA/groupId currentVersion1.0/currentVersion organization/ inceptionYear2005/inceptionYear logo/ urlTBD/url issueTrackingUrlTBD/issueTrackingUrl siteAddressTBD/siteAddress siteDirectoryTBD/siteDirectory distributionSiteTBD/distributionSite distributionDirectoryTBD/distributionDirectory repository connectionTBD/connection /repository mailingLists mailingList name${pom.name} Dev List/name /mailingList mailingList name${pom.name} User List/name /mailingList /mailingLists developers developer nameErick Dovale/name idedovale/id email[EMAIL PROTECTED]/email organizationNA/organization /developer /developers dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version typejar/type /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version typejar/type /dependency dependency groupIdjdom/groupId artifactIdjdom/artifactId version1.0/version typejar/type /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.8/version typejar/type /dependency dependency groupIdcommons-httpclient/groupId artifactIdcommons-httpclient/artifactId version2.0.2/version typejar/type /dependency dependency groupIdcommons-net/groupId artifactIdcommons-net/artifactId version1.4/version typejar/type /dependency dependency groupIdxmlParserAPIs/groupId artifactIdxmlParserAPIs/artifactId version2.6.2/version typejar/type /dependency dependency groupIdxerces/groupId artifactIdxercesImpl/artifactId version2.6.2/version typejar/type /dependency /dependency dependency groupIdx10/groupId artifactIdx10/artifactId version1.0.1/version typejar/type /dependency /dependencies build nagEmailAddress[EMAIL PROTECTED]/nagEmailAddress sourceDirectorysrc/main/java/sourceDirectory unitTestSourceDirectorysrc/test/java/unitTestSourceDirectory unitTest includes include**/*Test.java/include /includes resources resource directorysrc/test/resources/directory filteringfalse/filtering includes include**/*/include /includes /resource /resources /unitTest resources resource directorysrc/main/java/directory includes include**/*/include /includes filteringfalse/filtering /resource /resources /build /project B POM: ?xml version=1.0 encoding=UTF-8? project pomVersion3/pomVersion artifactIdBb/artifactId nameB/name groupIdB/groupId currentVersion1.0/currentVersion organization/ inceptionYear2005/inceptionYear logo/ urlTBD/url issueTrackingUrlTBD/issueTrackingUrl siteAddressTBD/siteAddress siteDirectoryTBD/siteDirectory distributionSiteTBD/distributionSite distributionDirectoryTBD/distributionDirectory repository connectionTBD/connection /repository mailingLists mailingList name${pom.name} Dev List/name /mailingList mailingList name${pom.name} User List/name /mailingList /mailingLists developers developer nameErick Dovale/name idedovale/id email[EMAIL PROTECTED]/email organizationNA/organization /developer /developers dependencies dependency groupIdA/groupId artifactIdA/artifactId version1.0/version typejar/type /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version typejar/type /dependency dependency groupIdcommons-logging/groupId
RE: [m2] error downloading resources:resources
Next issue on the list...commons-beanutils refers to jdbc-2.0. However, shouldn't this be a compile time only dependency. And if so, why would I need to download it? Maven should know that jdk-1.4 already contains jdbc-2.0. [INFO] - --- [INFO] Building interlace.util [INFO] - --- [INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local reposit ory [INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local reposi tory [INFO] [resources:resources] Downloading: http://repo1.maven.org/maven2/jdbc/jdbc/2.0/jdbc-2.0.jar [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 [INFO] - --- [INFO] BUILD FAILURE [INFO] - --- [INFO] Main Error: Unable to download the artifact from any repository jdbc:jdbc:2.0:jar from the specified remote repositories: http://repo1.maven.org/maven2 Try downloading the file manually from http://java.sun.com/products/jdbc/download.html#spec and install it using the command: m2 install:install-file -DgroupId=jdbc -DartifactId=jdbc -Dversion=2.0 -Dpackaging=jar -Dfile=/path/to/file Root error: Unable to download the artifact from any repository [INFO] - --- [INFO] Total time: 4 seconds [INFO] Finished at: Thu Jun 16 01:42:37 PDT 2005 [INFO] Final Memory: 1M/3M [INFO] - --- -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 6:38 PM To: Maven Users List Subject: Re: [m2] error downloading resources:resources Thankyou. We will fix the commons-configuration data. You can also edit it in your local repository (eg ~/.m2/repository/commons-configuration/commons-configuration/1.1/commons -configuration-1.1.pom) to comment out the reosurces dependency. In the next release, you could also add an exclusion to the dependency. - Brett On 6/16/05, Anil Arora [EMAIL PROTECTED] wrote: I'm getting the following error when I try to run any goal using maven. [INFO] [INFO] Building interlace.util [INFO] [INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] [resources:resources] Downloading: http://repo1.maven.org/maven2/resources/resources/1.0/resources-1.0.pom [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Main Error: Unable to download the artifact from any repository resources:resources:1.0:pom from the specified remote repositories: http://repo1.maven.org/maven2 Root error: Unable to download the artifact from any repository [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Jun 15 14:24:40 PDT 2005 [INFO] Final Memory: 1M/2M [INFO] It appears to be an issue when I have the commons-configuration dependency in my pom file. dependency groupIdcommons-configuration/groupId artifactIdcommons-configuration/artifactId version1.1/version /dependency If I comment this out, it works past this, but fails since I need this to compile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven and ejbdoclet/xdoclet examples
Hi I have tried to follow the examples that I can find for Maven and xdoclet, and I have it apparently running, that it doesn't complain about dependencies, but it doesn't seem to be processing my EJB to generate the interfaces and deployment descriptors that I expect. I can get this to work with Ant, but not Maven it seems. Does anyone have any pointers to a project that I could peruse to get some hints please? I looked at geronimo, but it doesn't seem to employ ejbdoclet. Many thanks Nathan -- Nathan Sowatskey - Technical Leader, NMTG CTO Engineering - Desk +44-208-824-4259/+1-408-527-2595 - Mobile +44-7740-449794 - AIM id NathanCisco - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiprojects and dependencies list
Hi all, Is it possible to have the list off all the dependecies of the projects included in a multiproject build (like in the dependency-convergence report) ? Thanks Damien -- Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED] -- __/ \__ | http://www.improve.fr improve | http://www.application-servers.com /_\-| http://www.improve-technologies.com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Remote Repository
Yes, correct. However, do you really want to override the repo, or are you providing a mirror to use instead? It sounds more like the latter, but that has to go in your settings file. - Brett On 6/16/05, Edwin Punzalan [EMAIL PROTECTED] wrote: Thanks, Brett. But I tried that and it didn't changed. Please verify... I'll be changing the maven to central inside the id tag right? Brett Porter wrote: Hi Edwin, You need to use the id central to override the normal repository, otherwise both will be used. Cheers, Brett On 6/16/05, Edwin Punzalan [EMAIL PROTECTED] wrote: Hi, I tried to override the default remote repository in my pom.xml: repositories repository idmaven/id nameMaven repository/name urlhttp://foo:[EMAIL PROTECTED]/maven/url /repository /repositories However, m2 seems to be using the above repository only as backup, after http://repo1.maven.org/maven2... Is my pom.xml wrong or is this normal? How do I override the default remote repository then? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: resource within jar is not being found
Erick, There's an erroneous tag in your A POM on line 85 : /dependency /dependency dependency groupIdx10/groupId artifactIdx10/artifactId Maybe it's a coincidence, but the erroneous tag is just before your failing dependency. Please correct it and let me know if your problem persists. Yann -- Mail d'origine --- De : quot;Erick Dovalequot; [EMAIL PROTECTED] A : quot;Maven Users Listquot; users@maven.apache.org Cc : Date : Thu, 16 Jun 2005 09:37:28 -0400 Objet : RE: resource within jar is not being found -Hi Yann, - -Yes, I meant B depends on A. Maven version is 1.0.2. -A POM: -... - -B POM: -... - -The java code in B actually trying to read the resource is like this: - - final void loadXMLDocument(InputSource in) throws IOException, -JDOMException - { - setDocument(getSaxBuilder().build(in)); - } - -where the InputSource instance was created like this: - -new InputSource(uri) - -and uri has this path to the resource: - -C:\Documents and -Settings\edovale\.maven\repository\A\jars\A-1.0.jar!\resource.xml - -I hope that gives you a better understanding of the environment. - -Yhanks. - -Erick. - - --Original Message- -From: Yann LE DU [mailto:[EMAIL PROTECTED] -Sent: Thursday, June 16, 2005 5:05 AM -To: Maven Users List -Subject: Re:resource within jar is not being found - -Hi Erick, - -Can you provide any details for reproducibility ? -* A B POM contents -* A-1.0.jar structure -* Java code calling resource.xml - - -Also, you said A depends on B. Didn't you mean the -contrary ? - -Are you using Maven 1.0.2 or 2.0 ? - -Regards, - -Yann - - --- Mail d'origine --- - - De : quot;Erick Dovalequot; [EMAIL PROTECTED] - A : quot;Maven Users Listquot; [EMAIL PROTECTED] - Cc : - Date : Wed, 15 Jun 2005 15:07:08 -0400 - Objet : resource within jar is not being found - - - --Hello out there, -- --I am having a problem I am not sure is directly -related to maven, so --forgive me if it is not. --I have 2 projects A and B. A depends on B. When I am -running tests in B --it is not finding stuff into A-1.0.jar. More -specifically an xml file --needed. This is happening although the jar exists and -maven seems to be --looking for it in the right place using the following uri: --C:\Documents and --Settings\edovale\.maven\repository\A\jars\A-1.0.jar!\resource.xml -(The --system cannot find the path specified) -- --I have checked the content of the jar and the -resource.xml file is where - --it is suppose to be, still it is not been found, As a -matter of fact, - --nothing is been found into this jar file. -- --Any clue as to where to look to solve this issue? -- --I am using maven 1.2 -- - - -- -To unsubscribe, e-mail: [EMAIL PROTECTED] -For additional commands, e-mail: [EMAIL PROTECTED] - - - -- -To unsubscribe, e-mail: [EMAIL PROTECTED] -For additional commands, e-mail: [EMAIL PROTECTED] - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiprojects and dependencies list
Hi Damien, Maybe this will help you: http://mavenbook.xwiki.com/xwiki/bin/view/Main/Tip5ListingDependencies -Vincent -Original Message- From: Damien Viel [mailto:[EMAIL PROTECTED] Sent: jeudi 16 juin 2005 17:34 To: 'Maven Users List' Subject: Multiprojects and dependencies list Hi all, Is it possible to have the list off all the dependecies of the projects included in a multiproject build (like in the dependency-convergence report) ? Thanks Damien ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Tlchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiprojects and dependencies list
Hi Damien, Maybe this will help you: http://mavenbook.xwiki.com/xwiki/bin/view/Main/Tip5ListingDependencies -Vincent -Original Message- From: Damien Viel [mailto:[EMAIL PROTECTED] Sent: jeudi 16 juin 2005 17:34 To: 'Maven Users List' Subject: Multiprojects and dependencies list Hi all, Is it possible to have the list off all the dependecies of the projects included in a multiproject build (like in the dependency-convergence report) ? Thanks Damien ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Tlchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven 1.1 Beta 1 Released
The Apache Maven team is pleased to announce the release of Maven 1.1-beta-1 http://maven.apache.org/start/download.html Maven is a project management and project comprehension tool. Maven is based on the concept of a project object model: builds, documentation creation, site publication, and distribution publication are all controlled from the project object model. Maven also provides tools to create source metrics, change logs based directly on source repository, and source cross-references. This release focuses on the following objectives: * Integration of Maven 2 technologies such as Maven Wagon, Maven SCM and the new model code * Ant 1.6.5 support * Upgrade to later releases of dependencies, in particular Jelly * Significant improvements in memory usage * Improved POM layout * Bugfixes With just a few exceptions [1], Maven 1.1 is backwards compatible with Maven 1.0. For a full list of changes, please see JIRA [2]. *IMPORTANT: * You must ensure that Maven 1.1 is first in your path if you want to have it installed side-by-side with Maven 1.0.2 We hope you enjoy using Maven! If you have any questions, please consult: * the FAQ: http://maven.apache.org/faq.html * the maven-user mailing list: http://maven.apache.org/mail-lists.html For news and information, see: * Maven Blogs: http://www.mavenblogs.com/ - The Apache Maven Team [1] http://maven.apache.org/reference/backwards-compatibility.html [2] http://jira.codehaus.org/secure/ReleaseNote.jspa?version=11371styleName=HtmlprojectId=10030Create=Create - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Component Descriptor Error Message
I'm on day one of having Maven build my project, so I really have no idea what I'm doing! :) I've created a remote repository on my local drive to hold some JARs that aren't on Ibiblio. Everything seems to be fine with the exception that I can't actually load anything from it when I declare a dependency. (Technically there's only one library in the repository, so who knows if I have it setup correctly at all). I'm getting an error message: [INFO] Main Error: Unsupported Protocol: commons-sandbox:commons-id:0.1-dev:pom from the specified remote repositories: http://repo1.maven.org/maven2, file://dev/repository, http://repo1.maven.org/maven2 Root error: Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagonfile. So, if you can lend me any insight into how I can fix this, puuuhleease let me know! Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
best practices to bundle artifacts other generated files within a war
I have a multiproject webapp and want to bundle in it several files that are artifacts of other projects. And I have trouble identifying the best practices when it comes to bundle all these files in the war. E.g. I use the jnlp plugin to create webstart applications (in target/jnlp). I want these webstart apps to be in my war. Should I zip this jnlp directory inside my jnlp sub-project, install this zip file as artifact in the maven local repository, then do some preGoal/postGoal magic inside the webapp project to bundle it in my war? Should I create my war file in 2 steps, first an incomplete war in a 'webapp' project, that I complete in a second step thanks to a 'distribution' project where I add all my missing content thanks to maven.xml? How will this fit with m2 where, if I understood, reliance on maven.xml is supposedly to be minimal? Cheers, Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Component Descriptor Error Message
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 just a guess, but try using file:///dev/repository... Nathaniel Stoddard wrote: I'm on day one of having Maven build my project, so I really have no idea what I'm doing! :) I've created a remote repository on my local drive to hold some JARs that aren't on Ibiblio. Everything seems to be fine with the exception that I can't actually load anything from it when I declare a dependency. (Technically there's only one library in the repository, so who knows if I have it setup correctly at all). I'm getting an error message: [INFO] Main Error: Unsupported Protocol: commons-sandbox:commons-id:0.1-dev:pom from the specified remote repositories: http://repo1.maven.org/maven2, file://dev/repository, http://repo1.maven.org/maven2 Root error: Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagonfile. So, if you can lend me any insight into how I can fix this, puuuhleease let me know! Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFCscjdK3h2CZwO/4URAvAXAJ9CbCU93m67bAC8DnollcduLDen0QCgkc4o 9idfxTgHWFFpXojHgpQxQNw= =STZU -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Component Descriptor Error Message
Unfortunately, that gives me the same error as before. On 6/16/05, John Casey [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 just a guess, but try using file:///dev/repository... Nathaniel Stoddard wrote: I'm on day one of having Maven build my project, so I really have no idea what I'm doing! :) I've created a remote repository on my local drive to hold some JARs that aren't on Ibiblio. Everything seems to be fine with the exception that I can't actually load anything from it when I declare a dependency. (Technically there's only one library in the repository, so who knows if I have it setup correctly at all). I'm getting an error message: [INFO] Main Error: Unsupported Protocol: commons-sandbox:commons-id:0.1-dev:pom from the specified remote repositories: http://repo1.maven.org/maven2, file://dev/repository, http://repo1.maven.org/maven2 Root error: Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagonfile. So, if you can lend me any insight into how I can fix this, puuuhleease let me know! Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFCscjdK3h2CZwO/4URAvAXAJ9CbCU93m67bAC8DnollcduLDen0QCgkc4o 9idfxTgHWFFpXojHgpQxQNw= =STZU -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Component Descriptor Error Message
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yeah, forgot that the file wagon isn't in the standard maven distro... You *could* try downloading it from here: http://www.ibiblio.org/maven2/org/apache/maven/wagon/wagon-file/1.0-alpha-4/wagon-file-1.0-alpha-4.jar and putting it in ${maven.home}/lib...that might work. NOTE: You might want to double-check the versions on the other wagon libs in there, and match this one up against it. -alpha-4 may not be right... HTH, john Nathaniel Stoddard wrote: Unfortunately, that gives me the same error as before. On 6/16/05, John Casey [EMAIL PROTECTED] wrote: just a guess, but try using file:///dev/repository... Nathaniel Stoddard wrote: I'm on day one of having Maven build my project, so I really have no idea what I'm doing! :) I've created a remote repository on my local drive to hold some JARs that aren't on Ibiblio. Everything seems to be fine with the exception that I can't actually load anything from it when I declare a dependency. (Technically there's only one library in the repository, so who knows if I have it setup correctly at all). I'm getting an error message: [INFO] Main Error: Unsupported Protocol: commons-sandbox:commons-id:0.1-dev:pom from the specified remote repositories: http://repo1.maven.org/maven2, file://dev/repository, http://repo1.maven.org/maven2 Root error: Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagonfile. So, if you can lend me any insight into how I can fix this, puuuhleease let me know! Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFCsc0HK3h2CZwO/4URAv+PAJ41lO4LUOANqsknbH3TZU7zYlwP3wCdEOUp 75SbshpO7GC4qBjM4p6d75s= =VqgE -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: example hibernate3 configuration for maven?
Hibernate uses pretty much every other open source project ever written. Try this: dependency groupIddom4j/groupId artifactIddom4j/artifactId version1.6/version properties war.bundletrue/war.bundle /properties /dependency dependency dependency groupIdcommons-beanutils/groupId artifactIdcommons-beanutils/artifactId version1.7.0/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-digester/groupId artifactIdcommons-digester/artifactId version1.6/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-pool/groupId artifactIdcommons-pool/artifactId version1.2/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-validator/groupId artifactIdcommons-validator/artifactId version1.1.4/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-dbcp/groupId artifactIdcommons-dbcp/artifactId version1.2.1/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.0/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-collections/groupId artifactIdcommons-collections/artifactId version3.1/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdantlr/groupId artifactIdantlr/artifactId version2.7.5/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdhibernate/groupId artifactIdhibernate/artifactId version3.0/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcglib/groupId artifactIdcglib/artifactId version2.0.2/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdasm/groupId artifactIdasm/artifactId version1.4/version properties war.bundletrue/war.bundle /properties /dependency Graham. Mick Knutson wrote: I am hoping someone can show me the dependancies for hibernate3 in maven. Please... Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com HP Consulting Services (Walnut Creek, CA) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Component Descriptor Error Message
I'm running Maven under Windows, and I was unable to specify the drive letter. Conveniently I do everything on my C: drive, and I have ended up using the following: maven.repo.remote=file:///localhost/projects/online/trunk/,http://www.ib iblio.org/maven/ I know it doesn't seem right, but I figured this out by trial and error. I'm using Maven 1.0.2. - Simon -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 1:46 PM To: Maven Users List Subject: Re: Component Descriptor Error Message -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 just a guess, but try using file:///dev/repository... Nathaniel Stoddard wrote: I'm on day one of having Maven build my project, so I really have no idea what I'm doing! :) I've created a remote repository on my local drive to hold some JARs that aren't on Ibiblio. Everything seems to be fine with the exception that I can't actually load anything from it when I declare a dependency. (Technically there's only one library in the repository, so who knows if I have it setup correctly at all). I'm getting an error message: [INFO] Main Error: Unsupported Protocol: commons-sandbox:commons-id:0.1-dev:pom from the specified remote repositories: http://repo1.maven.org/maven2, file://dev/repository, http://repo1.maven.org/maven2 Root error: Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagonfile. So, if you can lend me any insight into how I can fix this, puuuhleease let me know! Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFCscjdK3h2CZwO/4URAvAXAJ9CbCU93m67bAC8DnollcduLDen0QCgkc4o 9idfxTgHWFFpXojHgpQxQNw= =STZU -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NOTE: This message and any included attachments are from HealthCom Partners, LLC and are intended only for the addressee(s). The information contained herein may include trade secrets or privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: example hibernate3 configuration for maven?
Thanks. Much appreciated. From: Graham King [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: example hibernate3 configuration for maven? Date: Thu, 16 Jun 2005 12:36:15 +0100 Hibernate uses pretty much every other open source project ever written. Try this: dependency groupIddom4j/groupId artifactIddom4j/artifactId version1.6/version properties war.bundletrue/war.bundle /properties /dependency dependency dependency groupIdcommons-beanutils/groupId artifactIdcommons-beanutils/artifactId version1.7.0/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-digester/groupId artifactIdcommons-digester/artifactId version1.6/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-pool/groupId artifactIdcommons-pool/artifactId version1.2/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-validator/groupId artifactIdcommons-validator/artifactId version1.1.4/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-dbcp/groupId artifactIdcommons-dbcp/artifactId version1.2.1/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.0/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcommons-collections/groupId artifactIdcommons-collections/artifactId version3.1/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdantlr/groupId artifactIdantlr/artifactId version2.7.5/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdhibernate/groupId artifactIdhibernate/artifactId version3.0/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdcglib/groupId artifactIdcglib/artifactId version2.0.2/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdasm/groupId artifactIdasm/artifactId version1.4/version properties war.bundletrue/war.bundle /properties /dependency Graham. Mick Knutson wrote: I am hoping someone can show me the dependancies for hibernate3 in maven. Please... Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com HP Consulting Services (Walnut Creek, CA) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com HP Consulting Services (Walnut Creek, CA) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Component Descriptor Error Message
Hi Nathaniel, El jue, 16-06-2005 a las 13:39 -0400, Nathaniel Stoddard escribi: I'm getting an error message: [INFO] Main Error: Unsupported Protocol: commons-sandbox:commons-id:0.1-dev:pom from the specified remote repositories: http://repo1.maven.org/maven2, file://dev/repository, http://repo1.maven.org/maven2 Try file:/dev/repository, it's invalid but it works for me (YMMV). rant It would be nice to see commons-id distributed outside the sandbox. /rant Greetings, -- Javier Kohen [EMAIL PROTECTED] ICQ: blashyrkh #2361802 Jabber: [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
hibernate pom
Who's responsibile to upload the hibernate jars to ibiblio? I opened a ticket with the hibernate team to correct their POM's but they said they have nothing to do with it. I thought it was the project's responsibility to synchronize with ibiblio? (http://opensource.atlassian.com/projects/hibernate/browse/HHH-627) I would like to have the hibernate pom updated to include the required dependencies so maven2 can include the transitive dependencies. Plus, there's no POM for the newer uploaded jars. smime.p7s Description: S/MIME cryptographic signature
Re: Maven and ejbdoclet/xdoclet examples
Hi nathan, the thing is,maven does not complain about missing dependencies ( for instance, the jmx-module is needed, but if you don't addits jar tothe list of dependencies, maven won't tell !!) -- maybethis iseven the cause you're experiencing failure to generate the interfaces... running 'maven -X ...' will probably warn you saying: missing 'xxx.jar' but it will be easy to miss I myself have used ejbdoclet in combination with middlegen. I personally didn't like to use the ejbdoclet plugin. Instead, I used the ant task from within maven: - relevant dependencies in project.xml are included in deps.txt - relevantproperties are included in props.txt Since I used the Ant task, I needed to define some extra goals in the maven.xml - relevantgoals are included in goals.txt I really hope this helps getting you on the road. Since I'm new at this list, please excuse me if this is totally off topic... Dennis Geurts On 6/16/05, Nathan Sowatskey [EMAIL PROTECTED] wrote: HiI have tried to follow the examples that I can find for Maven andxdoclet, and I have it apparently running, that it doesn't complain about dependencies, but it doesn't seem to be processing my EJB togenerate the interfaces and deployment descriptors that I expect.I can get this to work with Ant, but not Maven it seems.Does anyone have any pointers to a project that I could peruse to get some hints please? I looked at geronimo, but it doesn't seem to employejbdoclet.Many thanksNathan--Nathan Sowatskey - Technical Leader, NMTG CTO Engineering - Desk+44-208-824-4259/+1-408-527-2595 - Mobile +44-7740-449794 - AIM id NathanCisco - [EMAIL PROTECTED]-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] !-- XDoclet dependencies -- dependency groupIdservletapi/groupId artifactIdservletapi/artifactId version2.3/version typejar/type /dependency dependency groupIdxdoclet/groupId artifactIdxdoclet/artifactId version1.2/version typejar/type /dependency dependency groupIdxdoclet/groupId artifactIdxdoclet-web-module/artifactId version1.2/version typejar/type urlhttp://xdoclet.sf.net//url /dependency dependency groupIdxdoclet/groupId artifactIdxdoclet-ejb-module/artifactId version1.2/version typejar/type urlhttp://xdoclet.sf.net//url /dependency dependency groupIdxdoclet/groupId artifactIdxdoclet-jmx-module/artifactId version1.2/version typejar/type urlhttp://xdoclet.sf.net//url /dependency dependency groupIdxdoclet/groupId artifactIdxjavadoc/artifactId version1.0.2/version typejar/type urlhttp://xdoclet.sf.net//url /dependency dependency groupIdxdoclet/groupId artifactIdmaven-xdoclet-plugin/artifactId version1.2/version typeplugin/type urlhttp://xdoclet.sf.net//url /dependency dependency groupIdxdoclet/groupId artifactIdxdoclet-jboss-module/artifactId version1.2/version typejar/type /dependency gen.dir=${maven.build.dir}/middlegen/cmp20 ejb.dir=${maven.build.dir}/xdoclet/ejbdoclet ejb.meta.dir=${maven.build.dir}/xdoclet/ejb xdoclet.ejbdoclet.mergedir=${maven.src.dir}/merge/xdoclet/ejbdoclet maven.eclipse.classpath.include=target/middlegen/cmp20/,target/xdoclet/ejbdoclet maven.war.webapp.dir=${maven.build.dir}/xdoclet/webdoclet maven.xdoclet.webdoclet.0=true maven.xdoclet.webdoclet.0.destDir=${maven.build.dir}/xdoclet/webdoclet/WEB-INF maven.xdoclet.webdoclet.0.mergeDir=${maven.src.dir}/merge/xdoclet maven.xdoclet.webdoclet.deploymentdescriptor.0.destDir=${maven.build.dir}/xdoclet/webdoclet/WEB-INF maven.xdoclet.webdoclet.deploymentdescriptor.0.mergeDir=${maven.src.dir}/merge/xdoclet preGoal name=java:compile !-- mkdir dir=${maven.build.dir}/xdoclet/webdoclet/WEB-INF /-- !-- attainGoal name=xdoclet:webdoclet /-- attainGoal name=ejbdoclet / /preGoal goal name=ejbdoclet ant:taskdef name=ejbdoclet classname=xdoclet.modules.ejb.EjbDocletTask ant:classpath ant:path refid=maven.dependency.classpath/ /ant:classpath /ant:taskdef ant:mkdir dir=${ejb.dir}/ ejbdoclet destdir=${ejb.dir} excludedtags=@version,@author ejbspec=2.0 packageSubstitution packages=ejb substituteWith=ejb.interfaces/ ant:fileset ant:setProperty name=dir value=${pom.build.sourceDirectory}/ include
Re: hibernate pom
Upload instructions are there : http://maven.apache.org/reference/repository-upload.html Emmanuel Ryan Sonnek wrote: Who's responsibile to upload the hibernate jars to ibiblio? I opened a ticket with the hibernate team to correct their POM's but they said they have nothing to do with it. I thought it was the project's responsibility to synchronize with ibiblio? (http://opensource.atlassian.com/projects/hibernate/browse/HHH-627) I would like to have the hibernate pom updated to include the required dependencies so maven2 can include the transitive dependencies. Plus, there's no POM for the newer uploaded jars. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate pom
You can do that at http://jira.codehaus.org/browse/MAVENUPLOAD I've manually uploaded the jars. On 6/16/05, Ryan Sonnek [EMAIL PROTECTED] wrote: Who's responsibile to upload the hibernate jars to ibiblio? I opened a ticket with the hibernate team to correct their POM's but they said they have nothing to do with it. I thought it was the project's responsibility to synchronize with ibiblio? (http://opensource.atlassian.com/projects/hibernate/browse/HHH-627) I would like to have the hibernate pom updated to include the required dependencies so maven2 can include the transitive dependencies. Plus, there's no POM for the newer uploaded jars. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hibernate pom
I've gone through that documentation before. My question is how the current hibernate jars (only released within the last month) got to ibiblio without following these same instructions? there's no POM for versions 3.0.1 - 3.0.5, and current one for 3.0 doesn't have correct dependencies. So, how does this get fixed? -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 3:12 PM To: Maven Users List Subject: Re: hibernate pom Upload instructions are there : http://maven.apache.org/reference/repository-upload.html Emmanuel Ryan Sonnek wrote: Who's responsibile to upload the hibernate jars to ibiblio? I opened a ticket with the hibernate team to correct their POM's but they said they have nothing to do with it. I thought it was the project's responsibility to synchronize with ibiblio? (http://opensource.atlassian.com/projects/hibernate/browse/HHH-627) I would like to have the hibernate pom updated to include the required dependencies so maven2 can include the transitive dependencies. Plus, there's no POM for the newer uploaded jars. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature
load a property file before the pom's parsing
Hi, We have many maven projects and we'd like to store all the pom's versions in an external property file so in a pom, it would be : ... currentVersion${aProj.version}/currentVersion ... aProj.version is a property defined in this common external property file If i load this property file in maven.xml, it's too late (pom already parsed) and i can't use -D , project.properties nor build.properties Is it possible to load this property file before the pom's parsing ? Thanks for any help, ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Tlchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate pom
Just put the poms available in some url and write them in a jira issue under mavenuploads. I will upload them to ibiblio. On 6/16/05, Ryan Sonnek [EMAIL PROTECTED] wrote: I've gone through that documentation before. My question is how the current hibernate jars (only released within the last month) got to ibiblio without following these same instructions? there's no POM for versions 3.0.1 - 3.0.5, and current one for 3.0 doesn't have correct dependencies. So, how does this get fixed? -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 3:12 PM To: Maven Users List Subject: Re: hibernate pom Upload instructions are there : http://maven.apache.org/reference/repository-upload.html Emmanuel Ryan Sonnek wrote: Who's responsibile to upload the hibernate jars to ibiblio? I opened a ticket with the hibernate team to correct their POM's but they said they have nothing to do with it. I thought it was the project's responsibility to synchronize with ibiblio? (http://opensource.atlassian.com/projects/hibernate/browse/HHH-627) I would like to have the hibernate pom updated to include the required dependencies so maven2 can include the transitive dependencies. Plus, there's no POM for the newer uploaded jars. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Remote Repository
What I am trying to do is really the former. I want to override the central repo and probably set the default repo as mirror. However, I've done what you've said yesterday by changing maven to central and it didn't work. Brett Porter wrote: Yes, correct. However, do you really want to override the repo, or are you providing a mirror to use instead? It sounds more like the latter, but that has to go in your settings file. - Brett On 6/16/05, Edwin Punzalan [EMAIL PROTECTED] wrote: Thanks, Brett. But I tried that and it didn't changed. Please verify... I'll be changing the maven to central inside the id tag right? Brett Porter wrote: Hi Edwin, You need to use the id central to override the normal repository, otherwise both will be used. Cheers, Brett On 6/16/05, Edwin Punzalan [EMAIL PROTECTED] wrote: Hi, I tried to override the default remote repository in my pom.xml: repositories repository idmaven/id nameMaven repository/name urlhttp://foo:[EMAIL PROTECTED]/maven/url /repository /repositories However, m2 seems to be using the above repository only as backup, after http://repo1.maven.org/maven2... Is my pom.xml wrong or is this normal? How do I override the default remote repository then? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Overriding webapp source directory
Kenney, Btw it's best to prepend ${basedir} to those paths, because if the project is part of a multiproject build the current directory is taken as a starting point which may be bad ;) warSourceDirectory is (or should be!) of type java.io.File, so will automatically have basedir prepended :) Still - not a bad practice anyway, just thought I should point it out. - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Remote Repository
Ok, please file a bug. Sounds like a regression. Thanks, Brett On 6/17/05, Edwin Punzalan [EMAIL PROTECTED] wrote: What I am trying to do is really the former. I want to override the central repo and probably set the default repo as mirror. However, I've done what you've said yesterday by changing maven to central and it didn't work. Brett Porter wrote: Yes, correct. However, do you really want to override the repo, or are you providing a mirror to use instead? It sounds more like the latter, but that has to go in your settings file. - Brett On 6/16/05, Edwin Punzalan [EMAIL PROTECTED] wrote: Thanks, Brett. But I tried that and it didn't changed. Please verify... I'll be changing the maven to central inside the id tag right? Brett Porter wrote: Hi Edwin, You need to use the id central to override the normal repository, otherwise both will be used. Cheers, Brett On 6/16/05, Edwin Punzalan [EMAIL PROTECTED] wrote: Hi, I tried to override the default remote repository in my pom.xml: repositories repository idmaven/id nameMaven repository/name urlhttp://foo:[EMAIL PROTECTED]/maven/url /repository /repositories However, m2 seems to be using the above repository only as backup, after http://repo1.maven.org/maven2... Is my pom.xml wrong or is this normal? How do I override the default remote repository then? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem targeting two platform builds with Maven 2.0
For my current project, I am testing a migration from ANT to Maven 2.0 (alpha 2). I have encountered an issue that I am unable to resolve. I have a single source tree, but I need to compile and package a JAR for two different platforms: J2SE and CDC. I have built two separate pom.xml files: pom-J2SE.xml and pom-CDC.xml, within the same directory. I was hoping there would be a command similar to ant: ant -buildfile myfile but I have been unable to find it. If this is a possible solution, I also need to manage the entire platform build from a master pom.xml, which propagates target platform information down to the sub projects. Is there a feasible solution in Maven 2.0? Thanks, Shane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem targeting two platform builds with Maven 2.0
In Maven, a POM is a unit of work, so a project must have just one. Usually, targetting multiple platforms involves setting up multiple projects. pom.xml - parent that has modules/ for the following: +- foo-common/pom.xml - shared information +- foo-j2se/pom.xml - j2se specific build, depends on foo-common +- foo-cdc/pom.xml - CDC specific build, depends on foo-common Does this suit your situation? What are the actual differences between the two platforms? We currently have a new solution for environmental specifics in alpha-3 (profiles), however these are not intended to be used to build multiple artifacts from a single build, but rather building differently in separate environments. You may have justification for allowing them to be incorporated into a single build, so I'd like to walk through the use case with you. Cheers, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: For my current project, I am testing a migration from ANT to Maven 2.0 (alpha 2). I have encountered an issue that I am unable to resolve. I have a single source tree, but I need to compile and package a JAR for two different platforms: J2SE and CDC. I have built two separate pom.xml files: pom-J2SE.xml and pom-CDC.xml, within the same directory. I was hoping there would be a command similar to ant: ant -buildfile myfile but I have been unable to find it. If this is a possible solution, I also need to manage the entire platform build from a master pom.xml, which propagates target platform information down to the sub projects. Is there a feasible solution in Maven 2.0? Thanks, Shane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem targeting two platform builds with Maven 2.0
Hi Brett, The use case is as follows: Each sub project has a single set of source files. The developer sets a target flag to CDC or J2SE. Depending on the flag, the build tool compiles the Java source files under either CDC or J2SE. In the case of CDC, the build tool uses a different bootclasspath during compilation. Next. the build tool packages the classes within a jar file, appending myfile-platform.jar, where platform is either CDC or J2SE, depending on the target. End. The reason that I do not want to split these into separate projects is that the source files are the same. If a developer modifies, say the CDC source, it is not reflected in the J2SE source, which leads to versioning problems. Given that I am compiling with different bootclasspaths, I do not believe that the solution that you outlined below would work. I will however, look into it. Regards, Shane On 6/16/05, Brett Porter [EMAIL PROTECTED] wrote: In Maven, a POM is a unit of work, so a project must have just one. Usually, targetting multiple platforms involves setting up multiple projects. pom.xml - parent that has modules/ for the following: +- foo-common/pom.xml - shared information +- foo-j2se/pom.xml - j2se specific build, depends on foo-common +- foo-cdc/pom.xml - CDC specific build, depends on foo-common Does this suit your situation? What are the actual differences between the two platforms? We currently have a new solution for environmental specifics in alpha-3 (profiles), however these are not intended to be used to build multiple artifacts from a single build, but rather building differently in separate environments. You may have justification for allowing them to be incorporated into a single build, so I'd like to walk through the use case with you. Cheers, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: For my current project, I am testing a migration from ANT to Maven 2.0 (alpha 2). I have encountered an issue that I am unable to resolve. I have a single source tree, but I need to compile and package a JAR for two different platforms: J2SE and CDC. I have built two separate pom.xml files: pom-J2SE.xml and pom-CDC.xml, within the same directory. I was hoping there would be a command similar to ant: ant -buildfile myfile but I have been unable to find it. If this is a possible solution, I also need to manage the entire platform build from a master pom.xml, which propagates target platform information down to the sub projects. Is there a feasible solution in Maven 2.0? Thanks, Shane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem of targetting two JDK versions
Hi I was wondering if Maven 2 handles (or is going to) the situation where a library is written in both java 1.4 and java 1.5. I understand that the -source and -target options can be set on the compiler, thus delivering jar files for jdk 1.4 and jdk 1.5, so that is ok. However, if I depend on this library, then I would just want to depend on either, depending on the version I am targetting my application for. Thus the library would have a unique name, but the dependency on it would say if I need the jdk 1.4 or jdk 1.5 version. This may in fact be related to an earlier post by Shane Isbell [EMAIL PROTECTED] of totally different targets: Re: Problem targeting two platform builds with Maven 2.0 CDC and J2SE. Will Maven 2 handle this and if so, how? Regards Mark Donszelmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem of targetting two JDK versions
Yep, I need that option as well. Shane On 6/16/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi I was wondering if Maven 2 handles (or is going to) the situation where a library is written in both java 1.4 and java 1.5. I understand that the -source and -target options can be set on the compiler, thus delivering jar files for jdk 1.4 and jdk 1.5, so that is ok. However, if I depend on this library, then I would just want to depend on either, depending on the version I am targetting my application for. Thus the library would have a unique name, but the dependency on it would say if I need the jdk 1.4 or jdk 1.5 version. This may in fact be related to an earlier post by Shane Isbell [EMAIL PROTECTED] of totally different targets: Re: Problem targeting two platform builds with Maven 2.0 CDC and J2SE. Will Maven 2 handle this and if so, how? Regards Mark Donszelmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem of targetting two JDK versions
And my answer is the same as the one in Shane's thread :) On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: Yep, I need that option as well. Shane On 6/16/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi I was wondering if Maven 2 handles (or is going to) the situation where a library is written in both java 1.4 and java 1.5. I understand that the -source and -target options can be set on the compiler, thus delivering jar files for jdk 1.4 and jdk 1.5, so that is ok. However, if I depend on this library, then I would just want to depend on either, depending on the version I am targetting my application for. Thus the library would have a unique name, but the dependency on it would say if I need the jdk 1.4 or jdk 1.5 version. This may in fact be related to an earlier post by Shane Isbell [EMAIL PROTECTED] of totally different targets: Re: Problem targeting two platform builds with Maven 2.0 CDC and J2SE. Will Maven 2 handle this and if so, how? Regards Mark Donszelmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem targeting two platform builds with Maven 2.0
Say the project structure is something like myproject ---pom.xml +--subproject 1 ---pom.xml +--subproject 2 ---pom.xml In this case, the pom.xml[myproject] is the parent project. What I am trying to find out is if there is way to type m2 {target -CDC} install and have this target request proprogated to pom.xml[subproject 1] and pom.xml[subproject 2]. Separate executions of m2 {target -CDC} install and m2 {target -J2SE} install are ok as long as the repository handles separate versions of the JAR. Can this be done through the profile? Thanks, Shane On 6/16/05, Brett Porter [EMAIL PROTECTED] wrote: This sounds more like a profile solution, where the developer picks which one they want to use. m2 --profile=CDC package m2 --profile=j2se package You said earlier you wanted to have a parent project that would build both, though. Can you elaborate on that? This is the part that is not currently supported, the profile executions must be separate. Thanks, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: Hi Brett, The use case is as follows: Each sub project has a single set of source files. The developer sets a target flag to CDC or J2SE. Depending on the flag, the build tool compiles the Java source files under either CDC or J2SE. In the case of CDC, the build tool uses a different bootclasspath during compilation. Next. the build tool packages the classes within a jar file, appending myfile-platform.jar, where platform is either CDC or J2SE, depending on the target. End. The reason that I do not want to split these into separate projects is that the source files are the same. If a developer modifies, say the CDC source, it is not reflected in the J2SE source, which leads to versioning problems. Given that I am compiling with different bootclasspaths, I do not believe that the solution that you outlined below would work. I will however, look into it. Regards, Shane On 6/16/05, Brett Porter [EMAIL PROTECTED] wrote: In Maven, a POM is a unit of work, so a project must have just one. Usually, targetting multiple platforms involves setting up multiple projects. pom.xml - parent that has modules/ for the following: +- foo-common/pom.xml - shared information +- foo-j2se/pom.xml - j2se specific build, depends on foo-common +- foo-cdc/pom.xml - CDC specific build, depends on foo-common Does this suit your situation? What are the actual differences between the two platforms? We currently have a new solution for environmental specifics in alpha-3 (profiles), however these are not intended to be used to build multiple artifacts from a single build, but rather building differently in separate environments. You may have justification for allowing them to be incorporated into a single build, so I'd like to walk through the use case with you. Cheers, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: For my current project, I am testing a migration from ANT to Maven 2.0 (alpha 2). I have encountered an issue that I am unable to resolve. I have a single source tree, but I need to compile and package a JAR for two different platforms: J2SE and CDC. I have built two separate pom.xml files: pom-J2SE.xml and pom-CDC.xml, within the same directory. I was hoping there would be a command similar to ant: ant -buildfile myfile but I have been unable to find it. If this is a possible solution, I also need to manage the entire platform build from a master pom.xml, which propagates target platform information down to the sub projects. Is there a feasible solution in Maven 2.0? Thanks, Shane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem targeting two platform builds with Maven 2.0
Yes, this is supported through profiles in alpha-3. You can try it from SVN today, or wait for the release next week. Some of the repository support may still need some work, so we'd be interested to hear your experiences. Cheers, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: By separate executions, I mean separate executions of xml.pom[myproject]. On 6/16/05, Shane Isbell [EMAIL PROTECTED] wrote: Say the project structure is something like myproject ---pom.xml +--subproject 1 ---pom.xml +--subproject 2 ---pom.xml In this case, the pom.xml[myproject] is the parent project. What I am trying to find out is if there is way to type m2 {target -CDC} install and have this target request proprogated to pom.xml[subproject 1] and pom.xml[subproject 2]. Separate executions of m2 {target -CDC} install and m2 {target -J2SE} install are ok as long as the repository handles separate versions of the JAR. Can this be done through the profile? Thanks, Shane On 6/16/05, Brett Porter [EMAIL PROTECTED] wrote: This sounds more like a profile solution, where the developer picks which one they want to use. m2 --profile=CDC package m2 --profile=j2se package You said earlier you wanted to have a parent project that would build both, though. Can you elaborate on that? This is the part that is not currently supported, the profile executions must be separate. Thanks, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: Hi Brett, The use case is as follows: Each sub project has a single set of source files. The developer sets a target flag to CDC or J2SE. Depending on the flag, the build tool compiles the Java source files under either CDC or J2SE. In the case of CDC, the build tool uses a different bootclasspath during compilation. Next. the build tool packages the classes within a jar file, appending myfile-platform.jar, where platform is either CDC or J2SE, depending on the target. End. The reason that I do not want to split these into separate projects is that the source files are the same. If a developer modifies, say the CDC source, it is not reflected in the J2SE source, which leads to versioning problems. Given that I am compiling with different bootclasspaths, I do not believe that the solution that you outlined below would work. I will however, look into it. Regards, Shane On 6/16/05, Brett Porter [EMAIL PROTECTED] wrote: In Maven, a POM is a unit of work, so a project must have just one. Usually, targetting multiple platforms involves setting up multiple projects. pom.xml - parent that has modules/ for the following: +- foo-common/pom.xml - shared information +- foo-j2se/pom.xml - j2se specific build, depends on foo-common +- foo-cdc/pom.xml - CDC specific build, depends on foo-common Does this suit your situation? What are the actual differences between the two platforms? We currently have a new solution for environmental specifics in alpha-3 (profiles), however these are not intended to be used to build multiple artifacts from a single build, but rather building differently in separate environments. You may have justification for allowing them to be incorporated into a single build, so I'd like to walk through the use case with you. Cheers, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: For my current project, I am testing a migration from ANT to Maven 2.0 (alpha 2). I have encountered an issue that I am unable to resolve. I have a single source tree, but I need to compile and package a JAR for two different platforms: J2SE and CDC. I have built two separate pom.xml files: pom-J2SE.xml and pom-CDC.xml, within the same directory. I was hoping there would be a command similar to ant: ant -buildfile myfile but I have been unable to find it. If this is a possible solution, I also need to manage the entire platform build from a master pom.xml, which propagates target platform information down to the sub projects. Is there a feasible solution in Maven 2.0? Thanks, Shane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem targeting two platform builds with Maven 2.0
By separate executions, I mean separate executions of xml.pom[myproject]. On 6/16/05, Shane Isbell [EMAIL PROTECTED] wrote: Say the project structure is something like myproject ---pom.xml +--subproject 1 ---pom.xml +--subproject 2 ---pom.xml In this case, the pom.xml[myproject] is the parent project. What I am trying to find out is if there is way to type m2 {target -CDC} install and have this target request proprogated to pom.xml[subproject 1] and pom.xml[subproject 2]. Separate executions of m2 {target -CDC} install and m2 {target -J2SE} install are ok as long as the repository handles separate versions of the JAR. Can this be done through the profile? Thanks, Shane On 6/16/05, Brett Porter [EMAIL PROTECTED] wrote: This sounds more like a profile solution, where the developer picks which one they want to use. m2 --profile=CDC package m2 --profile=j2se package You said earlier you wanted to have a parent project that would build both, though. Can you elaborate on that? This is the part that is not currently supported, the profile executions must be separate. Thanks, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: Hi Brett, The use case is as follows: Each sub project has a single set of source files. The developer sets a target flag to CDC or J2SE. Depending on the flag, the build tool compiles the Java source files under either CDC or J2SE. In the case of CDC, the build tool uses a different bootclasspath during compilation. Next. the build tool packages the classes within a jar file, appending myfile-platform.jar, where platform is either CDC or J2SE, depending on the target. End. The reason that I do not want to split these into separate projects is that the source files are the same. If a developer modifies, say the CDC source, it is not reflected in the J2SE source, which leads to versioning problems. Given that I am compiling with different bootclasspaths, I do not believe that the solution that you outlined below would work. I will however, look into it. Regards, Shane On 6/16/05, Brett Porter [EMAIL PROTECTED] wrote: In Maven, a POM is a unit of work, so a project must have just one. Usually, targetting multiple platforms involves setting up multiple projects. pom.xml - parent that has modules/ for the following: +- foo-common/pom.xml - shared information +- foo-j2se/pom.xml - j2se specific build, depends on foo-common +- foo-cdc/pom.xml - CDC specific build, depends on foo-common Does this suit your situation? What are the actual differences between the two platforms? We currently have a new solution for environmental specifics in alpha-3 (profiles), however these are not intended to be used to build multiple artifacts from a single build, but rather building differently in separate environments. You may have justification for allowing them to be incorporated into a single build, so I'd like to walk through the use case with you. Cheers, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: For my current project, I am testing a migration from ANT to Maven 2.0 (alpha 2). I have encountered an issue that I am unable to resolve. I have a single source tree, but I need to compile and package a JAR for two different platforms: J2SE and CDC. I have built two separate pom.xml files: pom-J2SE.xml and pom-CDC.xml, within the same directory. I was hoping there would be a command similar to ant: ant -buildfile myfile but I have been unable to find it. If this is a possible solution, I also need to manage the entire platform build from a master pom.xml, which propagates target platform information down to the sub projects. Is there a feasible solution in Maven 2.0? Thanks, Shane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem of targetting two JDK versions
Hi well, that answers my question, but developers using my library would have to say exactly which version (read target) they would need... I understand it is pretty late in the design phase, but would the following scenario not make sense: I have one library (for which I maintain 3 source codes, in three different maven projects): a. mylib-4.1-jdk-1.5.jar b. mylib-4.1-jdk-1.4.jar c. mylib-4.1-cdc-2.1.jar which are published on the remote repository. Anybody depending on this would just need to depend on: mylib-4.1 and when compiling for one or the other target it will pick up the correct jar file: - jdk-1.5 as target, will need a. and can use templates. - jdk-1.4 as target, will need b. and needs to deal with casting, etc... - cdc-2.1 (I have no knowlegde of cdc, so the version number is bogus) as target for CDC. It is here where I think jar files are ABI (Application Binary Interface) specific, and it would be a pity if Maven 2 would not automatically deal with it. Regards Mark Donszelmann -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 7:04 PM To: Maven Users List; Shane Isbell Subject: Re: Problem of targetting two JDK versions And my answer is the same as the one in Shane's thread :) On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: Yep, I need that option as well. Shane On 6/16/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi I was wondering if Maven 2 handles (or is going to) the situation where a library is written in both java 1.4 and java 1.5. I understand that the -source and -target options can be set on the compiler, thus delivering jar files for jdk 1.4 and jdk 1.5, so that is ok. However, if I depend on this library, then I would just want to depend on either, depending on the version I am targetting my application for. Thus the library would have a unique name, but the dependency on it would say if I need the jdk 1.4 or jdk 1.5 version. This may in fact be related to an earlier post by Shane Isbell [EMAIL PROTECTED] of totally different targets: Re: Problem targeting two platform builds with Maven 2.0 CDC and J2SE. Will Maven 2 handle this and if so, how? Regards Mark Donszelmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem targeting two platform builds with Maven 2.0
This sounds more like a profile solution, where the developer picks which one they want to use. m2 --profile=CDC package m2 --profile=j2se package You said earlier you wanted to have a parent project that would build both, though. Can you elaborate on that? This is the part that is not currently supported, the profile executions must be separate. Thanks, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: Hi Brett, The use case is as follows: Each sub project has a single set of source files. The developer sets a target flag to CDC or J2SE. Depending on the flag, the build tool compiles the Java source files under either CDC or J2SE. In the case of CDC, the build tool uses a different bootclasspath during compilation. Next. the build tool packages the classes within a jar file, appending myfile-platform.jar, where platform is either CDC or J2SE, depending on the target. End. The reason that I do not want to split these into separate projects is that the source files are the same. If a developer modifies, say the CDC source, it is not reflected in the J2SE source, which leads to versioning problems. Given that I am compiling with different bootclasspaths, I do not believe that the solution that you outlined below would work. I will however, look into it. Regards, Shane On 6/16/05, Brett Porter [EMAIL PROTECTED] wrote: In Maven, a POM is a unit of work, so a project must have just one. Usually, targetting multiple platforms involves setting up multiple projects. pom.xml - parent that has modules/ for the following: +- foo-common/pom.xml - shared information +- foo-j2se/pom.xml - j2se specific build, depends on foo-common +- foo-cdc/pom.xml - CDC specific build, depends on foo-common Does this suit your situation? What are the actual differences between the two platforms? We currently have a new solution for environmental specifics in alpha-3 (profiles), however these are not intended to be used to build multiple artifacts from a single build, but rather building differently in separate environments. You may have justification for allowing them to be incorporated into a single build, so I'd like to walk through the use case with you. Cheers, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: For my current project, I am testing a migration from ANT to Maven 2.0 (alpha 2). I have encountered an issue that I am unable to resolve. I have a single source tree, but I need to compile and package a JAR for two different platforms: J2SE and CDC. I have built two separate pom.xml files: pom-J2SE.xml and pom-CDC.xml, within the same directory. I was hoping there would be a command similar to ant: ant -buildfile myfile but I have been unable to find it. If this is a possible solution, I also need to manage the entire platform build from a master pom.xml, which propagates target platform information down to the sub projects. Is there a feasible solution in Maven 2.0? Thanks, Shane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem of targetting two JDK versions
oh, and... typically library developers would target for the lowest JDK version available/possible so that users can keep running things on older JDKs. and of course as long as SUN keeps their JDKs backward compatible. Regards Mark Donszelmann -Original Message- From: Donszelmann, Mark [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 7:39 PM To: Maven Users List; Brett Porter; Shane Isbell Subject: RE: Problem of targetting two JDK versions Hi well, that answers my question, but developers using my library would have to say exactly which version (read target) they would need... I understand it is pretty late in the design phase, but would the following scenario not make sense: I have one library (for which I maintain 3 source codes, in three different maven projects): a. mylib-4.1-jdk-1.5.jar b. mylib-4.1-jdk-1.4.jar c. mylib-4.1-cdc-2.1.jar which are published on the remote repository. Anybody depending on this would just need to depend on: mylib-4.1 and when compiling for one or the other target it will pick up the correct jar file: - jdk-1.5 as target, will need a. and can use templates. - jdk-1.4 as target, will need b. and needs to deal with casting, etc... - cdc-2.1 (I have no knowlegde of cdc, so the version number is bogus) as target for CDC. It is here where I think jar files are ABI (Application Binary Interface) specific, and it would be a pity if Maven 2 would not automatically deal with it. Regards Mark Donszelmann -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 7:04 PM To: Maven Users List; Shane Isbell Subject: Re: Problem of targetting two JDK versions And my answer is the same as the one in Shane's thread :) On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: Yep, I need that option as well. Shane On 6/16/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi I was wondering if Maven 2 handles (or is going to) the situation where a library is written in both java 1.4 and java 1.5. I understand that the -source and -target options can be set on the compiler, thus delivering jar files for jdk 1.4 and jdk 1.5, so that is ok. However, if I depend on this library, then I would just want to depend on either, depending on the version I am targetting my application for. Thus the library would have a unique name, but the dependency on it would say if I need the jdk 1.4 or jdk 1.5 version. This may in fact be related to an earlier post by Shane Isbell [EMAIL PROTECTED] of totally different targets: Re: Problem targeting two platform builds with Maven 2.0 CDC and J2SE. Will Maven 2 handle this and if so, how? Regards Mark Donszelmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: load a property file before the pom's parsing
Hi dan, We have +10 projects and some of them are allready using inheritance for ohter purposes, i was wondering if there was a maven.properties.load=c:/shared/versions.properties it would be simple and would avoid inheritance --- dan tran [EMAIL PROTECTED] a crit : put it in project.properties in the root of your project tree. Make sure all other projects inherite the root. -D On 6/16/05, fabrice jean [EMAIL PROTECTED] wrote: Hi, We have many maven projects and we'd like to store all the pom's versions in an external property file so in a pom, it would be : ... currentVersion${aProj.version}/currentVersion ... aProj.version is a property defined in this common external property file If i load this property file in maven.xml, it's too late (pom already parsed) and i can't use -D , project.properties nor build.properties Is it possible to load this property file before the pom's parsing ? Thanks for any help, ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Tlchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Tlchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]