How to transit from Maven 1.0.2 to Maven 2 , what is the role of Maven 1.x ?
To whom may concern, A general consideration on this topic: that I believe to be a general problem. Any of us which have for whatever reason done an investment in Maven 1.0.2, pretty heavy as in our case , are at moment in a kind of Limbo. We found inherent bugs in the Maven 1.0.2, that is not know where and if will be solved : namely memory leak due to buggy version of Jelly libraries http://jira.codehaus.org/browse/MAVEN-1294. That for small project is not visible but when you start using multiprojects of more then 20 components and run reports and use the dashboard for aggregating the results than you hit the upper physical memory management of the JDKs ... On the other side that bug is claimed to be solved since Maven 1.1-Beta and as Maven 1.1 claims to be backward compatible that would be the natural next try But there you find that the Entities are no longer supported . show stopper :-( I understand the new concept implemented in Maven 2.x ... and it makes definitely sense ... but we need a sort of continuous support to maintain our investment ... and on the other side a big bang migration is not in scope when in your landscape you have more than 50 application to mantain. A simple solution would be to allow those which have such a need to move to Maven 1.1 and still using entities ... knowing anyway that if a restructuring is needed Maven 2 is there another solution could be to fix the Jelly problem directly in the 1.0.x stream ? Any help to clarify those points will be greatly accepted ... Best Regards Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to transit from Maven 1.0.2 to Maven 2 , what is the role of Maven 1.x ?
Hello Arnaud, Thanks for the kind and sincere answer We all unfortunately must compromise resources and feutures ... If you could drive us to the point where we could mantain at least this level of compatibility that we require that would be very much appreciated ... Best Regards Michele Arnaud HERITIER [EMAIL PROTECTED] m 27/03/2006 13:38 Please respond to Maven Users List To [EMAIL PROTECTED] Maven Users List users@maven.apache.org .org cc Subject Re: How to transit from Maven 1.0.2 to Maven 2 , what is the role of Maven 1.x ? Hi Michele, This is essentially a problem of ressources. We try with with very few developers to release a version 1.1 as much compatible as possible but it's not really easy. We know that the fact to remove is support of entities is really annoying but we didn't yet find an easy solution to maintain it. If your interesting to help us, you're welcome... Personally I don't have the time to maintain a new 1.0.X branch... There's a lot of enhancements in the version 1.1 and I prefer that we work together on a fix for this version. Cheers Arnaud On 3/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To whom may concern, A general consideration on this topic: that I believe to be a general problem. Any of us which have for whatever reason done an investment in Maven 1.0.2 , pretty heavy as in our case , are at moment in a kind of Limbo. We found inherent bugs in the Maven 1.0.2, that is not know where and if will be solved : namely memory leak due to buggy version of Jelly libraries http://jira.codehaus.org/browse/MAVEN-1294. That for small project is not visible but when you start using multiprojects of more then 20 components and run reports and use the dashboard for aggregating the results than you hit the upper physical memory management of the JDKs ... On the other side that bug is claimed to be solved since Maven 1.1-Betaand as Maven 1.1 claims to be backward compatible that would be the natural next try But there you find that the Entities are no longer supported . show stopper :-( I understand the new concept implemented in Maven 2.x ... and it makes definitely sense ... but we need a sort of continuous support to maintain our investment ... and on the other side a big bang migration is not in scope when in your landscape you have more than 50 application to mantain. A simple solution would be to allow those which have such a need to move to Maven 1.1 and still using entities ... knowing anyway that if a restructuring is needed Maven 2 is there another solution could be to fix the Jelly problem directly in the 1.0.x stream ? Any help to clarify those points will be
Re: [Maven-1.1] Migration 1.0.2 to 1.1 Entity problem
To whom may concern, A general consideration of this I believe general Problem . Any of us which have for whatever reason done an investment in Maven 1.0.2, pretty heavy as in our case , are at moment in kind of Limbo. We found inherent bugs in the Maven 1.0.2, that is not know where and if will be solved : namely leak due to buggy version of Jelly libraries http://jira.codehaus.org/browse/MAVEN-1294. That for small project is not visible but when you start using multiprojects of more then 20 projects and run reports and use the dashboard for aggregating the results than you hit the upper physical memory management of the JDK ... On the other side that bus is claimed to be solved since Maven 1.1-Beta and as Maven 1.1 claims to be backward compatible that would be the natural next try But there you find that the Entities are no longer supported . show stopper :-( I understand the new concept implemented in Maven 2.x ... and it makes definitely sense ... but we need a sort of continuous support to maintain our investment ... A simple solution would be to allow those which have such a need to move to Maven 1.1 and still using entities ... knowing anyway that if a restructuring is needed Maven 2 is there another solution could be to fix the Jelly problem directly in the 1.0.x stream ? Any help to clarify those points will be greatly accepted ... Best Regards Michele [EMAIL PROTECTED] re.com 23/03/2006 17:37 Please respond to Maven Users List [EMAIL PROTECTED] To .org Maven Users List users@maven.apache.org cc Subject Re: [Maven-1.1] Migration 1.0.2 to 1.1 Entity problem Hello Arnaud, I got the impression that it is a bit more complex ... I tried to endorse the JDK with the correct xerses implementation ... but I think that would fix in case only the ENTITY System reference :-( Could it be that the problem is the internally used parser (xpp3) that parse the POM and it explicitely disable the Entities declaration ... in that case what would be the fix ? Any help is welcome ... Regards Michele Arnaud HERITIER [EMAIL PROTECTED] m 23/03/2006 17:22 Please respond to Maven Users List To [EMAIL PROTECTED] Maven Users List users@maven.apache.org .org cc Subject Re: [Maven-1.1] Migration 1.0.2 to 1.1 Entity problem The tip in the compatibility issues for Entities and JDK 1.4 must fix it arnaud* * On 3/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To whom it may concern, I can read at the compatibility issue page that :
[Maven-1.1] Migration 1.0.2 to 1.1 Entity problem
To whom it may concern, I can read at the compatibility issue page that : Parse errors on previously 'valid' project files project.xml files that used to work in older versions of Maven may now present parse errors. The parser in Maven 1.1 is much less tolerant of invalid project.xml files to avoid silently masking syntax errors. Some XML features are not enabled (such as DOCTYPE ENTITY declarations) - see the FAQ for an explanation. and then in the FAQ it is stated : As of Maven 1.1, external entities will not be enabled by default in project.xml, and their use is discouraged in Maven 1.0.x as well. There will still be the ability to use them, but it will have to be enabled. That is unfortunately our case . in order to make the first part of the migration fast, Can anyone explaining how to enable external entities in Project.xml with Maven 1.x Best Regards Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Maven-1.1] Migration 1.0.2 to 1.1 Entity problem
Hello Arnaud, I got the impression that it is a bit more complex ... I tried to endorse the JDK with the correct xerses implementation ... but I think that would fix in case only the ENTITY System reference :-( Could it be that the problem is the internally used parser (xpp3) that parse the POM and it explicitely disable the Entities declaration ... in that case what would be the fix ? Any help is welcome ... Regards Michele Arnaud HERITIER [EMAIL PROTECTED] m 23/03/2006 17:22 Please respond to Maven Users List To [EMAIL PROTECTED] Maven Users List users@maven.apache.org .org cc Subject Re: [Maven-1.1] Migration 1.0.2 to 1.1 Entity problem The tip in the compatibility issues for Entities and JDK 1.4 must fix it arnaud* * On 3/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To whom it may concern, I can read at the compatibility issue page that : Parse errors on previously 'valid' project files project.xml files that used to work in older versions of Maven may now present parse errors. The parser in Maven 1.1 is much less tolerant of invalid project.xml files to avoid silently masking syntax errors. Some XML features are not enabled (such as DOCTYPE ENTITY declarations) - see the FAQ for an explanation. and then in the FAQ it is stated : As of Maven 1.1, external entities will not be enabled by default in project.xml, and their use is discouraged in Maven 1.0.x as well. There will still be the ability to use them, but it will have to be enabled. That is unfortunately our case . in order to make the first part of the migration fast, Can anyone explaining how to enable external entities in Project.xml with Maven 1.x Best Regards Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Maven conference ?
Dear community Is there anyone that could advice about a conference, in the next future, that would be worth attending debating the general Java project management issues and of course Maven ? Regards Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Michele Forte/SwissRe is out of the office.
I will be out of the office starting 29/10/2004 and will not return until 07/11/2004. I will read my e-mail, but I will not guaranty an immediater answer so if you have urgent matter : for j2ee migration or POM related questions please contact the IX Customer Service at (4884) for friends please just be patient I will answer in a while Regards This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Michele Forte/SwissRe is out of the office.
I will be out of the office starting 29/10/2004 and will not return until 07/11/2004. I will read my e-mail, but I will not guaranty an immediater answer so if you have urgent matter : for j2ee migration or POM related questions please contact the IX Customer Service at (4884) for friends please just be patient I will answer in a while Regards This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Michele Forte/SwissRe is out of the office.
I will be out of the office starting 29/10/2004 and will not return until 07/11/2004. I will read my e-mail, but I will not guaranty an immediater answer so if you have urgent matter : for j2ee migration or POM related questions please contact the IX Customer Service at (4884) for friends please just be patient I will answer in a while Regards This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Michele Forte/SwissRe is out of the office.
I will be out of the office starting 29/10/2004 and will not return until 07/11/2004. I will read my e-mail, but I will not guaranty an immediater answer so if you have urgent matter : for j2ee migration or POM related questions please contact the IX Customer Service at (4884) for friends please just be patient I will answer in a while Regards This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple Remote Repositories setup problem
Hello, In my project setup i am using an external remote repository, I was used to house that repository on Tomcat now I had to change it to Apache web server: Here is the problem : what it was first working no problem with Tomcat : now I always get the following error Getting URL: http://chr54d28/maven-repository/cts/jars/SNMCodeTable-1.0.0.jar Response content length is not known Received status code: 500 even if the file exists and is visible via http my question is do we need a specific setting of the Apache server in order to be used in conjunction with Maven ? Any help is welcome Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems downloading dependencies
i am using Maven release 1.0, normally I never had a problem, but from a computer I can notice the following nasty behaviour when downloading dependencies: Attempting to download sje-config.jar. Getting URL: http://scm.zrh.swissre.com:8080/releases/sje/jars/sje-config.jar Received status code: 200 last-modified = Tue, 30 Mar 2004 12:14:47 GMT (1080648887000) 7/7K 7K downloaded Local timestamp: -1 Remote timestamp: 1080648887000 Getting URL: http://scm.zrh.swissre.com:8080/releases/sje/jars/sje-config.jar.md5 Response content length is not known Received status code: 404 Attempting to download sr-hcf-v3-3.6.1.jar. Getting URL: http://scm.zrh.swissre.com:8080/releases/hcf/jars/sr-hcf-v3-3.6.1.jar Received status code: 200 last-modified = Thu, 23 Sep 2004 08:02:35 GMT (1095926555000) 64/1159K 71/1159K 74/1159K 75/1159K 78/1159K 79/1159K 82/1159K 83/1159K 86/1159K 87/1159K 90/1159K 91/1159K 94/1159K 95/1159K 98/1159K 99/1159K 102/1159K 103/1159K 106/1159K 107/1159K 110/1159K 111/1159K 114/1159K 115/1159K 118/1159K 119/1159K 122/1159K 123/1159K 126/1159K 127/1159K 130/1159K 131/1159K 132/1159K Error retrieving artifact from [http://scm.zrh.swissre.com:8080/releases/hcf/jars/sr-hcf-v3-3.6.1.jar]: java.net.SocketException: No buffer space available (maximum connections reached?): recv failed Error details java.net.SocketException: No buffer space available (maximum connections reached?): recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.FilterInputStream.read(FilterInputStream.java:111) at java.io.PushbackInputStream.read(PushbackInputStream.java:161) at java.io.FilterInputStream.read(FilterInputStream.java:111) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:167) at java.io.FilterInputStream.read(FilterInputStream.java:111) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:142) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:161) at org.apache.maven.util.HttpUtils.process(HttpUtils.java:572) at org.apache.maven.util.HttpUtils.retrieveArtifact(HttpUtils.java:538) at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:381) at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:287) at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:181) at org.apache.maven.verifier.DependencyVerifier.getRemoteArtifact(DependencyVerifier.java:326) at org.apache.maven.verifier.DependencyVerifier.getDependencies(DependencyVerifier.java:255) at org.apache.maven.verifier.DependencyVerifier.satisfyDependencies(DependencyVerifier.java:171) at org.apache.maven.verifier.DependencyVerifier.verify(DependencyVerifier.java:97) at org.apache.maven.project.Project.verifyDependencies(Project.java:1365) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:510) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266) at org.apache.maven.cli.App.doMain(App.java:486) at org.apache.maven.cli.App.main(App.java:1215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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) Getting URL: http://www.ibiblio.org/maven/hcf/jars/sr-hcf-v3-3.6.1.jar sending == If-Modified-Since: Tue, 12-Oct-04 13:24:50 GMT (1097587490362) Received status code: 404 File not found on one of the repos java.io.FileNotFoundException: http://www.ibiblio.org/maven/hcf/jars/sr-hcf-v3-3.6.1.jar at org.apache.maven.util.HttpUtils.retrieveArtifact(HttpUtils.java:547) at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:381) at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:287) at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:181) at org.apache.maven.verifier.DependencyVerifier.getRemoteArtifact(DependencyVerifier.java:326) at org.apache.maven.verifier.DependencyVerifier.getDependencies(DependencyVerifier.java:255) at org.apache.maven.verifier.DependencyVerifier.satisfyDependencies(DependencyVerifier.java:171) at org.apache.maven.verifier.DependencyVerifier.verify(DependencyVerifier.java:97) at org.apache.maven.project.Project.verifyDependencies(Project.java:1365) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:510) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266) at org.apache.maven.cli.App.doMain(App.java:486) at
Re: Problems downloading dependencies
Hello Brett, thanks for the quick answer, unfortunately does not get any better: I tried to erase all the local repository with no results, some jars are correctly downloaded others have a this problems, and the behaviour is random. Any help would be welcome Michele |-+ | | Brett Porter | | | [EMAIL PROTECTED]| | | il.com | | || | || | | 13/10/2004 11:57 | | | Please respond to| | | Maven Users | | | List| |-+ ---| | | | | | | | | | | |To: Maven Users List [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:Re: Problems downloading dependencies | ---| the partially downloaded problem is a known bug. If you remove the local file, does it work the second time? I'm not sure what that exception is... - Brett On Wed, 13 Oct 2004 10:51:15 +0200, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: i am using Maven release 1.0, normally I never had a problem, but from a computer I can notice the following nasty behaviour when downloading dependencies: Attempting to download sje-config.jar. Getting URL: http://scm.zrh.swissre.com:8080/releases/sje/jars/sje-config.jar Received status code: 200 last-modified = Tue, 30 Mar 2004 12:14:47 GMT (1080648887000) 7/7K 7K downloaded Local timestamp: -1 Remote timestamp: 1080648887000 Getting URL: http://scm.zrh.swissre.com:8080/releases/sje/jars/sje-config.jar.md5 Response content length is not known Received status code: 404 Attempting to download sr-hcf-v3-3.6.1.jar. Getting URL: http://scm.zrh.swissre.com:8080/releases/hcf/jars/sr-hcf-v3-3.6.1.jar Received status code: 200 last-modified = Thu, 23 Sep 2004 08:02:35 GMT (1095926555000) 64/1159K 71/1159K 74/1159K 75/1159K 78/1159K 79/1159K 82/1159K 83/1159K 86/1159K 87/1159K 90/1159K 91/1159K 94/1159K 95/1159K 98/1159K 99/1159K 102/1159K 103/1159K 106/1159K 107/1159K 110/1159K 111/1159K 114/1159K 115/1159K 118/1159K 119/1159K 122/1159K 123/1159K 126/1159K 127/1159K 130/1159K 131/1159K 132/1159K Error retrieving artifact from [http://scm.zrh.swissre.com:8080/releases/hcf/jars/sr-hcf-v3-3.6.1.jar]: java.net.SocketException: No buffer space available (maximum connections reached?): recv failed Error details java.net.SocketException: No buffer space available (maximum connections reached?): recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.FilterInputStream.read(FilterInputStream.java:111) at java.io.PushbackInputStream.read(PushbackInputStream.java:161) at java.io.FilterInputStream.read(FilterInputStream.java:111) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:167) at java.io.FilterInputStream.read(FilterInputStream.java:111) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:142) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:161) at org.apache.maven.util.HttpUtils.process(HttpUtils.java:572) at org.apache.maven.util.HttpUtils.retrieveArtifact(HttpUtils.java:538) at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:381) at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:287) at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:181) at
MavenUtil.getProject()
Here is a challenging question for the Maven architects. In my project i want to make persistent the POM in order to achieve that I need an in memory representation of the Project, instead of writing my own POM parser I decided to use the util class provided in Maven, specifically the public static method available at org.apache.maven.MavenUtil But the same POM that works normally in Maven when used in its proper environment fails when i use the API directly from my program: That is an example: 137860|DEBUG|[sports : 1]|srzfhe|ache.commons.digester.Digester - bodyText='sje' 137860|DEBUG|[sports : 1]|srzfhe|ache.commons.digester.Digester - Fire body() for [EMAIL PROTECTED] 137860|DEBUG|[sports : 1]|srzfhe|commons.beanutils.ConvertUtils - Convert string 'sje' to class 'java.lang.String' 137860|DEBUG|[sports : 1]|srzfhe|commons.beanutils.ConvertUtils - Using converter [EMAIL PROTECTED] 137860|ERROR|[sports : 1]|srzfhe|ache.commons.digester.Digester - Body event threw exception java.lang.IllegalStateException: either id or (groupId and artifactId) must be provided for a dependency at org.apache.maven.project.Dependency.getId(Dependency.java:116) at org.apache.maven.project.Dependency.toString(Dependency.java:313) at java.lang.String.valueOf(String.java(Inlined Compiled Code)) at java.lang.StringBuffer.append(StringBuffer.java(Compiled Code)) at org.apache.commons.betwixt.expression.MethodUpdater.update(MethodUpdater.java:135) at org.apache.commons.betwixt.io.BeanCreateRule$1.body(BeanCreateRule.java:584) at org.apache.commons.digester.Rule.body(Rule.java:240) at org.apache.commons.digester.Digester.endElement(Digester.java:1034) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java(Compiled Code)) at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java(Compiled Code)) at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java(Compiled Code)) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java(Compiled Code)) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java(Compiled Code)) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java(Compiled Code)) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java(Compiled Code)) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java(Compiled Code)) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:525) at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1158) at org.apache.commons.digester.Digester.parse(Digester.java:1527) at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:183) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:126) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:113) at com.swissre.d08.commons.pom.D08CommonsPom.getProject(D08CommonsPom.java:81) at com.swissre.d08.business.impl.D08BusinessLogicImpl.validate(D08BusinessLogicImpl.java:1449) at java.lang.reflect.Method.invoke(Native Method) at com.swissre.d08.business.D08BusinessLogicFactory$1.invoke(D08BusinessLogicFactory.java:75) The first consideration, it goes into the way the parsing mechanism happens in Maven, and the role that the endorsed jars (xerses-2.4.0, xml-apis-1.0.b2.jar ) have in the construction of the classpath in normal usage of maven. I can only have a those classes in the classpath. If anyone wants to spend some explanation on that it will make my job easier. The second is the role of the jdk, can different jdks ( say 1.4.1 and 1.3.1 ) play a different role ? Any help is welcome. Regards Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: source directory
No you can't . But you can write a pregoal of the java:compile that process some source code normally and then append to the maven.compile.src.set variable like that goal name=othersource description=Generate source from antlr grammars !-- in case generate the source here -- ant:path id=maven.extra.src.set location= ${project.src.gen.dir} / m:addPath id=maven.compile.src.set refid= maven.extra.compile.src.set / /goal preGoal name=java:compile attainGoal name=othersource / /preGoal Best Regards Michele |-+ | | Ricardo de Souza| | | Moura | | | [EMAIL PROTECTED]| | | tmail.com | | || | || | | 24/09/2004 10:59 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:source directory | --| Can I have two diferentes source directory ? _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: source directory
No you can't . But you can write a pregoal of the java:compile that process some source code normally and then append to the maven.compile.src.set variable like that goal name=othersource description=Generate source from antlr grammars !-- in case generate the source here -- ant:path id=maven.extra.src.set location= ${project.src.gen.dir} / m:addPath id=maven.compile.src.set refid= maven.extra.compile.src.set / /goal preGoal name=java:compile attainGoal name=othersource / /preGoal Best Regards Michele |-+ | | Ricardo de Souza| | | Moura | | | [EMAIL PROTECTED]| | | tmail.com | | || | || | | 24/09/2004 10:59 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:source directory | --| Can I have two diferentes source directory ? _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SNAPSHOT dependencies doesn't work with specifying jar file name.
try to use only dependency groupIdibatis/groupId artifactIdibatis-nhn/artifactId versionSNAPSHOT/version properties war.bundletrue/war.bundle /properties /dependency this should work, double chech that this component that you are bundling must have in its pom.currentVersion SNAPSHOT as well Regards Michele |-+ | | Pak, Young-rok | | | [EMAIL PROTECTED]| | | o.co.kr | | || | || | | 22/09/2004 10:54 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: Maven Users List [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:SNAPSHOT dependencies doesn't work with specifying jar file name. | --| I defined dependecy like this: dependency groupIdibatis/groupId artifactIdibatis-nhn/artifactId versionSNAPSHOT/version jaribatis-2.jar/jar typejar/type properties war.bundletrue/war.bundle /properties /dependency I want maven to check the timestamp and redownload if ibatis-2.jar in remote repository is newer, but it doesn't work. maven just tried to compile with current ibatis-2.jar in local repository. how can I make it work as I wanted? is there another way? This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jelly:xml tag usage
Hello Dan, you can give a look at the plugin.jelly of the ear, specifically when it generates the application.xml see goal generate-ear-descriptor Michele |-+ | | dan tran | | | [EMAIL PROTECTED]| | | m | | || | || | | 17/09/2004 08:25 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: Maven Users List [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:jelly:xml tag usage | --| Hello, I need an example of inserting a bunch of elements into a xml doc using jelly:xml tag. any pointers to any any example is greatly appreciated. -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with maven.compile.executable attribute
Hello Brett Thanks for the answer but I think that is not enough because even if I took out the maven.compile.source from my project.properties the default value defined in the plugin itself is as you see from below: # --- # P L U G I N P R O P E R T I E S # --- maven.compile.target = 1.1 maven.compile.source = 1.3 and in the plugin itself there is a condition only on the existence of the value j:if test=${context.getVariable('maven.compile.source') != null} ant:setProperty name=source value= ${maven.compile.source} / /j:if that as it is defined in the property of the plugin will always be present Regards Michele |-+ | | Brett Porter | | | [EMAIL PROTECTED]| | | il.com | | || | || | | 19/08/2004 01:37 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: Maven Users List [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:Re: Problems with maven.compile.executable attribute | --| I believe if you check that maven.compile.source is not set, it should work. On Wed, 18 Aug 2004 13:46:59 +0200, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: With the java plugin version 1.4 the property maven.compile.executable is available. I want to run maven with a jdk 1.4 but to compile my code with a specific ibm 1.3.1 compiler therefore I added the two property maven.compile.fork=true and the maven.compile.executable= /my/javac now the compiler it is correctly picked but I always get the following error because as you could see from the stacktrace below the -source arguments does not exist for jdk 1.3.1 is there a way to control the args that I am passing as arguments of my executable ? If I exclude the -source attribute in the plugin everything works as designed. Best Regards Michele Forte [javac] [DEBUG] Execute:Java13CommandLauncher: Executing 'C: \Srdev\sdk\jdk1.3.1_07\bin\javac' with arguments: '-d' '\target\classes' '-classpath' 'myclass.jar' '-sourcepath' '\src\java' '-target' '1.3' '-g' '-source' '1.3' '@D:\Data\files1821080307' The ' characters around the executable and arguments are not part of the command. [javac] javac: invalid flag: -source [javac] Usage: javac options source files [javac] where possible options include: [javac] -gGenerate all debugging info [javac] -g:none Generate no debugging info [javac] -g:{lines,vars,source}Generate only some debugging info [javac] -OOptimize; may hinder debugging or enlarge class file [javac] -nowarn Generate no warnings [javac] -verbose Output messages about what the compiler is doing [javac] -deprecation Output source locations where deprecated APIs are used [javac] -classpath path Specify where to find user class files [javac] -sourcepath pathSpecify where to find input source files [javac] -bootclasspath path Override location of bootstrap class files [javac] -extdirs dirs Override location of installed extensions [javac] -d directorySpecify where to place
Problems with maven.compile.executable attribute
With the java plugin version 1.4 the property maven.compile.executable is available. I want to run maven with a jdk 1.4 but to compile my code with a specific ibm 1.3.1 compiler therefore I added the two property maven.compile.fork=true and the maven.compile.executable= /my/javac now the compiler it is correctly picked but I always get the following error because as you could see from the stacktrace below the -source arguments does not exist for jdk 1.3.1 is there a way to control the args that I am passing as arguments of my executable ? If I exclude the -source attribute in the plugin everything works as designed. Best Regards Michele Forte [javac] [DEBUG] Execute:Java13CommandLauncher: Executing 'C: \Srdev\sdk\jdk1.3.1_07\bin\javac' with arguments: '-d' '\target\classes' '-classpath' 'myclass.jar' '-sourcepath' '\src\java' '-target' '1.3' '-g' '-source' '1.3' '@D:\Data\files1821080307' The ' characters around the executable and arguments are not part of the command. [javac] javac: invalid flag: -source [javac] Usage: javac options source files [javac] where possible options include: [javac] -gGenerate all debugging info [javac] -g:none Generate no debugging info [javac] -g:{lines,vars,source}Generate only some debugging info [javac] -OOptimize; may hinder debugging or enlarge class file [javac] -nowarn Generate no warnings [javac] -verbose Output messages about what the compiler is doing [javac] -deprecation Output source locations where deprecated APIs are used [javac] -classpath path Specify where to find user class files [javac] -sourcepath pathSpecify where to find input source files [javac] -bootclasspath path Override location of bootstrap class files [javac] -extdirs dirs Override location of installed extensions [javac] -d directorySpecify where to place generated class files [javac] -encoding encoding Specify character encoding used by source files [javac] -target release Generate class files for specific VM version [javac] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Michele Forte/SwissRe is out of the office.
I will be out of the office starting 24/07/2004 and will not return until 08/08/2004. I will read my e-mail, but I will not guaranty an immediater answer so if you have urgent matter : for j2ee migration or POM related questions please contact the IX Customer Service at (4884) for friends please just be patient I will answer in a while Regards This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Michele Forte/SwissRe is out of the office.
I will be out of the office starting 24/07/2004 and will not return until 08/08/2004. I will read my e-mail, but I will not guaranty an immediater answer so if you have urgent matter : for j2ee migration or POM related questions please contact the IX Customer Service at (4884) for friends please just be patient I will answer in a while Regards This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Michele Forte/SwissRe is out of the office.
I will be out of the office starting 24/07/2004 and will not return until 08/08/2004. I will read my e-mail, but I will not guaranty an immediater answer so if you have urgent matter : for j2ee migration or POM related questions please contact the IX Customer Service at (4884) for friends please just be patient I will answer in a while Regards This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Michele Forte/SwissRe is out of the office.
I will be out of the office starting 24/07/2004 and will not return until 08/08/2004. I will read my e-mail, but I will not guaranty an immediater answer so if you have urgent matter : for j2ee migration or POM related questions please contact the IX Customer Service at (4884) for friends please just be patient I will answer in a while Regards This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Michele Forte/SwissRe is out of the office.
I will be out of the office starting 24/07/2004 and will not return until 08/08/2004. I will read my e-mail, but I will not guaranty an immediater answer so if you have urgent matter : for j2ee migration or POM related questions please contact the IX Customer Service at (4884) for friends please just be patient I will answer in a while Regards This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Michele Forte/SwissRe is out of the office.
I will be out of the office starting 24/07/2004 and will not return until 08/08/2004. I will read my e-mail, but I will not guaranty an immediater answer so if you have urgent matter : for j2ee migration or POM related questions please contact the IX Customer Service at (4884) for friends please just be patient I will answer in a while Regards This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven:maven jelly tag
Thanks Brett , your suggestion worked perfectly my regards Michele |-+ | | Brett Porter | | | [EMAIL PROTECTED]| | | il.com | | || | || | | 15/07/2004 02:03 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: Maven Users List [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:Re: maven:maven jelly tag | --| no, the current context is not passed in. If you j:set with scope=parent it will be put into the root context which will be shared everywhere. On Wed, 14 Jul 2004 14:43:57 +0200, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a general question on maven jelly tag when I launch from a maven project another project using the maven jelly tag is the maven jelly context of the father inherited ? and in case how to pass a parameter to the new project ? I tried something like goal name=assemble-ear-application description=recursivelly calling all the defined components ant:echomodules are already extracted from cvs/ant:echo util:tokenize var=application.modules.sequence delim=, ${application.modules.sequence}/util:tokenize j:forEach var=component.name items= ${application.modules.sequence} indexVar=moduleNumber ant:echo Module to extract ${moduleNumber}, which is ${component.name}/ant:echo !-- calling maven on each module -- ant:echo message=component ${component.name} about to build/ util:available file=${basedir}/../../../ ${component.name}/admin/project.xml j:set var=my.parameter value=test / !-- trying to pass via the jelly context -- maven:maven descriptor=${basedir}/../../../ ${component.name}/admin/project.xml ignoreFailures=false /maven:maven /j:forEach /goal unfortunately in the son project I do not get any evidence of my.parameter , is this feature not available or there is another way on how to pass parameters ? I will be greatfull to any of the community who could shed some light on this argument. By the way thanks a lot for the great work you have done on maven 1.0 , which I could easily test without collateral effects. Regards Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - 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] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender
Migrating from Forrest to maven:site
I am in the process to migrate an old project, in this project all the documentation were mantained and published using Forrest, I was thinking as I have already done the porting of the Build part with maven to take advantage of the maven:site capabilities for the documentation as well. Is that an easy process or it requires a complete reorganization of the documentation ? If someone has already done that and had some suggestion, that would be great ... Best regards Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
antfile maven:maven and parameters propagation
I have the following question in ant I can have the following property name=environment value=dev/ property name=local.stream.name value=iuf31m/ ant antfile=mybuild.xml target=compile/ if I would make the same with maven in particular using the maven tag so to be able to use iteration among my components : maven:maven descriptor=${basedir}/../../../ ${component.name}/admin/project.xml goal=compile ignoreFailures=false ant:property name=environment value=dev/ ant:property name=local.stream.name value= iuf31m/ /maven:maven I noticed that the properties are not correctly passed to the new context Is there a way to pass specific property to the maven tag . Or any suggestion on how to solve the following issue Best Regards Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: GMail Accounts
Michele Forte thanks a lot Alex Shneyderman [EMAIL PROTECTED] a.edu To: 'Maven Users List' 24/06/2004 13:53 [EMAIL PROTECTED] Please respond to cc: (bcc: Michele Forte/SwissRe) Maven Users bcc: Michele Forte/SwissRe List Subject: RE: GMail Accounts Alex Shneyderman -Original Message- From: Dion Gillard [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 4:05 AM To: Maven Users List Subject: GMail Accounts If anyone is after one, pop me an email with your first and last names... - 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] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Again POM Parser in Maven 1
Hello dIon, here is the POMs I am using : (See attached file: s13.ent)the entity is used among different category of projects (See attached file: project.xml)the initial POM is relative to a particular module (See attached file: project.xml)the father is used to group together property of a single project I then use that POM to generate an ear but this part is not imporatant at the moment I want to find a way using the API how to parse the POM and create a Project rappresentation in memory. Best Regards and thanks for your time and above all for the great job you all did. Michele |-+- | | [EMAIL PROTECTED]| | | task.com.au | | | | | | | | | 18/05/2004 01:42 | | | Please respond to | | | Maven Users List| | | | |-+- --| | | | | | | | | | | |To: Maven Users List [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:RE: Again about the POM Parser in Maven 1| --| Post the entire POM to one of us to validate. -- dIon Gillard, Multitask Consulting [EMAIL PROTECTED] wrote on 17/05/2004 11:21:07 PM: then I understood you correctly if (projectFile.exists() projectFile.canRead()) 130 { 131 return MavenUtils.getProject( 132 projectFile, 133 null, 134 false); 135 } that is in fact what I am using I locate my File() containing the POM and then I parse it . here I start my program File f=new File(s); if (f.exists()){ Project p=MavenUtils.getProject(f,null,true); // Using Maven 1 parser that give me the exception I am using the last from head of the maven project I can even debug in it : the Sax parser runs and then it stops at the 2063|DEBUG|[main ]| |org.apache.commons.beanutils.ConvertUtils - Convert string 'tag' to class 'java.lang.String' 2063|DEBUG|[main ]| |org.apache.commons.beanutils.ConvertUtils- Using converter [EMAIL PROTECTED] 962082|ERROR|[main ]| |org.apache.commons.digester.Digester - Body event threw exception java.lang.IllegalStateException: either id or (groupId and artifactId) must be provided for a dependency at org.apache.maven.project.Dependency.getId(Dependency.java:116) at org.apache.maven.project.Dependency.toString(Dependency.java:313) at java.lang.String.valueOf(String.java:2177) In reality the Dependency class is empty (Embedded image moved to file: pic15141.pcx) and the error appears correct,the corresponding dependency that is trying to parse is: dependency groupIdtag/groupId artifactIdsr-tag-web/artifactId version1.0.1/version typewar/type properties swissre.component.repositorySR_TAG_Web /swissre.component.repository swissre.component.repository.tagv_1_0_1_1 /swissre.component.repository.tag swissre.component.typeinternal/swissre.component.type ear.bundletrue/ear.bundle ear.appxml.war.context-rootwebapp/tag /ear.appxml.war.context-root /properties /dependency now that looks pretty standard to me and not really exceptional. Is there something else that you would suggest to try ? Best Regards michele |-+ | | Maczka Michal| | | [EMAIL PROTECTED]| | | tf.ch | | |
RE: Again POM Parser in Maven 1
Hello Michal, Entity is an XML feature and the SAX Parser you are using to do the job works fine with entities. I debugged remotely the process generated by maven.bat and it seems to works fine with the same POM. But in my test I do not initialize any MavenSession and in general JellyContext so I was wondering if that could be the problem !! package com.swissre.dcscm.util.impl; import java.io.File; /* maven 2 import org.apache.maven.model.Model; import org.apache.maven.project.DefaultMavenProjectBuilder; import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProjectBuilder; */ import junit.framework.TestCase; /* maven 1*/ import org.apache.maven.DependencyDescriberBean; import org.apache.maven.MavenSession; import org.apache.maven.MavenUtils; import org.apache.maven.cli.App; import org.apache.maven.jelly.MavenJellyContext; import org.apache.maven.project.Project; /** * @author srzfhe * * To change the template for this generated type comment go to * Windowgt;Preferencesgt;Javagt;Code Generationgt;Code and Comments */ public class PomParserTest extends TestCase { public void setUp() throws Exception { } public void testPomParserDoesStuff() throws Exception { String s = ./admin/project.xml; File f=new File(s); if (f.exists()||f.canRead()){ //Project p=MavenUtils.getProject(f,null,true); // Using Maven 1 parser Project p=MavenUtils.getProject(f); // Using Maven 1 parser System.out.println(OK); } else{ System.out.println(no file present); } } } Sorry to bother you but I found that behaviour quite komisch. Regards Michele |-+ | | Maczka Michal| | | [EMAIL PROTECTED]| | | tf.ch | | || | || | | 18/05/2004 10:56 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: 'Maven Users List' [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:RE: Again POM Parser in Maven 1 | --| Michele have to tried if it works without external entities? This is not something which is recommended and it was never tested. Michal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 9:40 AM To: [EMAIL PROTECTED] Cc: Maven Users List Subject: Again POM Parser in Maven 1 Hello dIon, here is the POMs I am using : (See attached file: s13.ent)the entity is used among different category of projects (See attached file: project.xml)the initial POM is relative to a particular module (See attached file: project.xml)the father is used to group together property of a single project I then use that POM to generate an ear but this part is not imporatant at the moment I want to find a way using the API how to parse the POM and create a Project rappresentation in memory. Best Regards and thanks for your time and above all for the great job you all did. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not
RE: Again POM Parser in Maven 1
Hello Michal, I am not so pessimist about entity in reality the generated in memory document that the parser uses contains the resolved entities that in this context are used as a xml fragment. (See attached file: s13.ent)the entity is used among different category of projects (See attached file: project.xml)the initial POM is relative to a particular module (See attached file: project.xml)the father is used to group together property of a single project simply relocate the URL refrence to a file system one for local test. I am doing at the moment new tests with more simple POMS but I got the same problem. I will try to be more detailed after. Thanks again and regards Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Again about the POM Parser in Maven 1
Thanks for the hint to point to MavenUtils, I played around a bit with that class, using a know working project.xml. I wrote a small test public class PomParserTest extends TestCase { public void setUp() throws Exception { } public void testPomParserDoesStuff() throws Exception { String s = ./test_src/project.xml; File f=new File(s); if (f.exists()){ Project p=MavenUtils.getProject(f); System.out.println(OK); } else{ System.out.println(no file present); } } } but unfortunately I always get the same error : 5779|ERROR|[main ]| |org.apache.commons.digester.Digester - Body event threw exception java.lang.IllegalStateException: either id or (groupId and artifactId) must be provided for a dependency at org.apache.maven.project.Dependency.getId(Dependency.java:116) at org.apache.maven.project.Dependency.toString(Dependency.java:313) at java.lang.String.valueOf(String.java:2177) at java.lang.StringBuffer.append(StringBuffer.java:361) at org.apache.commons.betwixt.expression.MethodUpdater.update(MethodUpdater.java:135) at org.apache.commons.betwixt.io.BeanCreateRule$1.body(BeanCreateRule.java:584) at org.apache.commons.digester.Rule.body(Rule.java:240) at org.apache.commons.digester.Digester.endElement(Digester.java:1034) the corresponding POM Dependency is dependency groupIdsje/groupId artifactIdsje-config/artifactId version1.0.0/version properties ejb.manifest.classpathtrue/ejb.manifest.classpath war.bundlefalse/war.bundle war.manifest.classpathtrue/war.manifest.classpath ear.bundlefalse/ear.bundle /properties /dependency That one exists in my local and remote repository, I tried to change project.xml but always fails at the first dependency. I also tried to change maven.jar to an older version but I always got the same problem. Is there something I am doing wrong ? do I need to set something before ? is that not the correct way to use the API ? Any help is welcome Regards Michele |-+ | | Trygve Laugstøl | | | [EMAIL PROTECTED]| | | nat.uio.no | | || | || | | 14/05/2004 13:49 | | | Please respond to| | | Maven Users List | | || |-+ --| | | | | | | | | | | |To: Maven Users List [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:Re: POM Parser | --| This is the one that maven itself uses: http://maven.apache.org/xref/org/apache/maven/MavenUtils.html#106 On Fri, 14 May 2004 13:37:01 +0200, [EMAIL PROTECTED] wrote: Thanks for the quick answer, Michal. In reality I just wanted to use the same parser as it is used now by the rc2, I have the impression that this done using a sax approach, but I am not sure which one is the class you are using in the current maven module. in particular in the bootstrap directory there is something like BootstrapPOMParser, but looking into the code I am not sure that it supports POM inheritance, that is in reality my doubt, and consequent question. Regards Michele |-+ | | Maczka Michal| | | [EMAIL PROTECTED]| | | tf.ch | |
RE: Again about the POM Parser in Maven 1
Hello Michal, Probably I was not precise enough. My initial aim is to be able to parse using the API an already working project.xml. Using the maven.bat I can normally work with it. I made before using it in this test also a verification using the POM plugin. maven -e pom:contentValidate pom:validate and the result is pom:contentvalidate: INFO : /project/logo : Element is null or empty. No logo will be displayed. WARNING : /project/licenses : No licenses defined. Your project has a license and it should be entered into the licenses section. pom:validate: D:\Data\IBM\wsappdev51\j2ee\tag\SR_TAG_EAR\admin\project.xml:18:13: error: cvc-complex-type.2.4.a: Invalid content starting with element 'extend'. One of '{:organization}' is expected. Java Result: 1 BUILD SUCCESSFUL And in general with this POM I can build package run war and ear plugins. And using maven.bat everything works fine. My first step was then to use the API of the Parser, to make an initial test, and that is were I got the exception. I would expect that behind the scene when I use maven.bat the same parser is used. So I would get a similar result ? But the fact that I got that error makes the scenario somehow more complex and there is where you could drive me in the right direction. Thanks in advance for your help ... I am also using xml entity for common part among different projects. Regards Michele I attached the POMs for completeness. (See attached file: project.xml)the parent (See attached file: project.xml) and the corresponding entity (See attached file: s13.ent) This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Again about the POM Parser in Maven 1
Hello Michal, I tried to understand how to use that API, from what I can see the following public void build(Project projectValue) requires already the Project avalable it means : something like File f=new File(s); if (f.exists()){ Project p=MavenUtils.getProject(f); // Using Maven 1 parser DependencyDescriberBean dependency=new DependencyDescriberBean (); dependency.build(p); System.out.println(OK); } .. my problem relies in the first line. The parsing itself fails. Telling me that the dependency id does not exist ... that were I am stuck I have a file POM I want to parse it and crete the Project object. Probably I have misunderstand you sorry for wasting in case your time. Best Regards Michele |-+ | | Maczka Michal| | | [EMAIL PROTECTED]| | | tf.ch | | || | || | | 17/05/2004 13:49 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: 'Maven Users List' [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:RE: Again about the POM Parser in Maven 1| --| -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 1:32 PM To: Maven Users List Cc: Maven Users List Subject: RE: Again about the POM Parser in Maven 1 Hello Michal, Probably I was not precise enough. My initial aim is to be able to parse using the API an already working project.xml. Using the maven.bat I can normally work with it. I made before using it in this test also a verification using the POM plugin. No you were precise enough... :) Have you looked at this example which to which I have pointed you. It really does the same things which you want to do ... but it works :) Michal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Again about the POM Parser in Maven 1
then I understood you correctly if (projectFile.exists() projectFile.canRead()) 130 { 131 return MavenUtils.getProject( 132 projectFile, 133 null, 134 false); 135 } that is in fact what I am using I locate my File() containing the POM and then I parse it . here I start my program File f=new File(s); if (f.exists()){ Project p=MavenUtils.getProject(f,null,true); // Using Maven 1 parser that give me the exception I am using the last from head of the maven project I can even debug in it : the Sax parser runs and then it stops at the 2063|DEBUG|[main ]| |org.apache.commons.beanutils.ConvertUtils - Convert string 'tag' to class 'java.lang.String' 2063|DEBUG|[main ]| |org.apache.commons.beanutils.ConvertUtils- Using converter [EMAIL PROTECTED] 962082|ERROR|[main ]| |org.apache.commons.digester.Digester - Body event threw exception java.lang.IllegalStateException: either id or (groupId and artifactId) must be provided for a dependency at org.apache.maven.project.Dependency.getId(Dependency.java:116) at org.apache.maven.project.Dependency.toString(Dependency.java:313) at java.lang.String.valueOf(String.java:2177) In reality the Dependency class is empty (Embedded image moved to file: pic15141.pcx) and the error appears correct,the corresponding dependency that is trying to parse is: dependency groupIdtag/groupId artifactIdsr-tag-web/artifactId version1.0.1/version typewar/type properties swissre.component.repositorySR_TAG_Web /swissre.component.repository swissre.component.repository.tagv_1_0_1_1 /swissre.component.repository.tag swissre.component.typeinternal/swissre.component.type ear.bundletrue/ear.bundle ear.appxml.war.context-rootwebapp/tag /ear.appxml.war.context-root /properties /dependency now that looks pretty standard to me and not really exceptional. Is there something else that you would suggest to try ? Best Regards michele |-+ | | Maczka Michal| | | [EMAIL PROTECTED]| | | tf.ch | | || | || | | 17/05/2004 14:58 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: 'Maven Users List' [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:RE: Again about the POM Parser in Maven 1| --| -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 2:50 PM To: Maven Users List Cc: 'Maven Users List' Subject: RE: Again about the POM Parser in Maven 1 Probably I have misunderstand you sorry for wasting in case your time. No problem. Probably you did misuderstand me. I asked you to look at like 106 of this class http://maven.apache.org/reference/plugins/xdoc/xref/org/apache/maven/Depende ncyDescriberBean.html#106 This methods takes dependecy as parameter, constructs the path to corespoding POM, parses that POM and returns it. Either I am missing something but this is more or less what you want to do. The first half of this method contains the code which generates the path which leads to POM, second half shows how to use it when you want to get (parsed) POM. There is no requiremnt that some POM should exists before. So it is
RE: POM Parser
Thanks for the quick answer, Michal. In reality I just wanted to use the same parser as it is used now by the rc2, I have the impression that this done using a sax approach, but I am not sure which one is the class you are using in the current maven module. in particular in the bootstrap directory there is something like BootstrapPOMParser, but looking into the code I am not sure that it supports POM inheritance, that is in reality my doubt, and consequent question. Regards Michele |-+ | | Maczka Michal| | | [EMAIL PROTECTED]| | | tf.ch | | || | || | | 14/05/2004 13:22 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: 'Maven Users List' [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:RE: POM Parser | --| The code you are refering to is a part of maven2 code base. It hasn't yet even reached alpha stage and it is not ready for public consumption (everyday there are some changes in the api). What you are trying to do (perstist POMs in the database) is also in our plans. So we cannot offer any direct help at the moment... regrads Michal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 1:15 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: POM Parser For my project in order to make it persistent the information gathered by the POM of an application we want to store that in a database. Being the POM Parser a fundamental part of that concept, instead of writing my own one, I noticed that there is already a POM parser and the corresponding Model to populate in maven-components and in particular in the maven-project module. I noticed that those classes are not distributed with the maven.jar that normally comes with the public distribution. In the maven repository at ibiblio I could only find maven-model-2.0-ARTIFACT.jar Is there anyone who could shed some light on that arguments and in case point me to a location where I could get the maven-project-version.jar ? Any help is welcome Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - 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] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
POM Parser
For my project in order to make it persistent the information gathered by the POM of an application we want to store that in a database. Being the POM Parser a fundamental part of that concept, instead of writing my own one, I noticed that there is already a POM parser and the corresponding Model to populate in maven-components and in particular in the maven-project module. I noticed that those classes are not distributed with the maven.jar that normally comes with the public distribution. In the maven repository at ibiblio I could only find maven-model-2.0-ARTIFACT.jar Is there anyone who could shed some light on that arguments and in case point me to a location where I could get the maven-project-version.jar ? Any help is welcome Michele This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Extending project and inheriting project.properties and maven.xml
Carlos give a look at the following project http://cvs.apache.org/viewcvs/incubator-geronimo/ in particular in the etc directory there is a common maven.xml file for common functionality used by any component to be built. I found an instructive example Regards Michele |-+ | | Carlos | | | [EMAIL PROTECTED]| | | sas.net | | || | | Sent by: Carlos | | | Sanchez | | | [EMAIL PROTECTED]| | | usas.net| | || | || | | 13/04/2004 19:56 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: 'Maven Users List' [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:Extending project and inheriting project.properties and maven.xml | --| Hi, I have subprojects with project.xml extending a base project.xml project extend${basedir}/../../common/project.xml/extend But properties defined in the superproject' project.properties are not available to subprojects. The only way to do this was define properties in the base maven.xml with j:set j:set var=maven.compile.executablejikes/j:set But then they can't be overriden by the project.properties in the subprojects. I think that it can be solved with a j:if for each property but is there an easy way? Also if I have two levels of inheritance, the top level maven.xml is not inherited, only the second level one. I tried with jelly tags include and import but preGoals and postGoals don't seem to be available. Help would be very appreciated. Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does maven have something like ant calls?
you can try looking at the multiproject plugin http://maven.apache.org/reference/plugins/multiproject/ I think there you can find what you need Regards Michele |-+ | | Los Morales| | | [EMAIL PROTECTED]| | | il.com | | || | || | | 26/03/2004 08:27 | | | Please respond to| | | Maven Users | | | List| | || |-+ --| | | | | | | | | | | |To: [EMAIL PROTECTED] | |cc: (bcc: Michele Forte/SwissRe) | |bcc:Michele Forte/SwissRe | |Subject:Does maven have something like ant calls? | --| Hi, I'm new to maven and would like to know if there is a way of creating one main project.xml that calls other project.xml files to do the work. For example, suppose I have 3 projects set up--P1, P2 and P3. P1 is designated as the main project file. Running P1 initializes itself, calls P2 to do its thing which includes jarring itself into the local repository, and finally calls P3 to do its thing which depends on P2's jar to complete. I've looked at the pom inheritance but its more of inheriting the super pom's properties rather than delegating calls to sub poms. The only other way I can think is to create a maven.xml file which embodies ant calls to do the job. I'm not sure how this would work though since I do not see any ant tasks specifiic in invoking maven tasks. Any help would be appreciated. Thanks! -los _ Find a broadband plan that fits. Great local deals on high-speed Internet access. https://broadband.msn.com/?pgmarket=en-us/go/onm00200360ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Local Repository synchronization problem
Dear community, I am using maven since some time and though I was ant supporter I should say that you managed to convince me to use it. Since some time, I am having a problem of synchronization between my remote (privately defined repository and the local one. here is an extract of the property file: maven.home=D:\Temp\maven-1.0-rc1 maven.repo.remote.enabled=true maven.repo.remote= http://myprivate:8080/maven/ix/ , http://www.ibiblio.org/maven now in that private remote repository I have published my service in a form of a jar --test jars myservice-1.0.jar it was all working fine till when I erased the file from my local repository . the consequent build realized that the jar was no longer there, and started downloading it again , but this time instead of the real one I get something strange in my local repository : --test jars myservice-1.0.jar myservice-1.0.jar.md5 where those files are nothing else than the xml catalog of the ibiblio/maven repository . here is (See attached file: myservice-1.0.jar) I find all that a bit strange has any of the community faced something similiar .. Any help is welcome Regards Michele Forte This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]