how to redirect the system.out into test report in running maven-surefire-plugin
I use use System.out.println to output infomation to the console, when I run mvn test, I know the surefire can include all the system.out information,just like this: system-out![CDATA[200 Test works! ]CDATA]/system-out But I don't know exactly how it woks. can anybody who is familiar with surefire can tell me about this?
antlr: how to?
Hi all, I'm trying to add antlr grammar to a project that uses maven. I've found antlr-maven-plugin: http://mojo.codehaus.org/antlr3-maven-plugin/index.html and I'm able to trigger code generation from maven now but this plugin uses antlr-3.0.1 where antlr-3.1.1 already exist. My java code generated by the old antlr does not compile. Is there a way to run antlr directly and bypassing plugin? Can I just set compile-time dependency in pom and write a call to generate java code from the grammar? With command line interface please, because I do not need any of the functionality provided by the plugin, such as topological sorting 2 files :) Thanks, Vadim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Including a dependent war as is
When we package a release, the final distribution includes a dependent war file. Say HelloWorld.zip has to include \adm\foobar.war. Helloworld.zip \scripts\* \tools\* \jar\*.jar \classes\* \adm\foobar.war This war is uploaded in artifactory. How to get this package (as listed above) with this war file (no overlay, just as is) when the package is built using Maven? -- View this message in context: http://www.nabble.com/Including-a-dependent-war-as-is-tp20456494p20456494.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [URGENT] How make maintenance release from release branch using GIT SCM
On Wed, Nov 12, 2008 at 12:39 PM, Imran M Yousuf [EMAIL PROTECTED] wrote: Hi, I have a project (http://repo.or.cz/w/smart-dao.git) where I have 2 working branches (master and release-0.3). Now I want to make a maintenance release (release-0.3) so I am doing it from the appropriate branch. Now when I do 'mvn release:prepare' it succeeds. But when I do 'mvn release:perform' it fails. Currently I am doing the release:perform manually by hand. I would really like to know how release:perform would work. BTW the update is the command trying to be executed is 'git pull origin tag' where as it should actually be - 'git checkout tag'. Best regards, Imran I have looked at it closely and noticed that prepare is performed from the branch I am in but perform tries to check out from the tagged base and merge into 'master'. Then it gets a conflict and aborts, because version in master has been changed since. How can I get it to work now? That is, I want the release to be performed from release-0.3 branch instead of master, how I can specify this? -- Imran M Yousuf Entrepreneur Software Engineer Smart IT Engineering Dhaka, Bangladesh Blog: http://imyousuf-tech.blogs.smartitengineering.com/ Mobile: +880-1711402557 -- Imran M Yousuf Entrepreneur Software Engineer Smart IT Engineering Dhaka, Bangladesh Email: [EMAIL PROTECTED] Blog: http://imyousuf-tech.blogs.smartitengineering.com/ Mobile: +880-1711402557
Re: Filtering TestResources
Hi, it seemed to work at first, but now we get the main/resources filtered by the test/filters. We have to revert on naming properties differently :( -nodje Olivier Lamy wrote: Hi, As we have an it test [1] which test this and works, it should :-) -- Olivier [1] https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-resources-plugin/src/it/filter-test-resources/ 2008/11/4 nodje [EMAIL PROTECTED]: Good question actually. I realize I don't even specify it in my pom, I took for granted it was included with the Maven default config. Which, when looking at the Maven super pom, it is not. It's only specified in the pluginManagement section and with version 2.2. As I understand pluginManagement it should only specify the default version to use when you include the plugin in your pom and not add the plugin to each every Maven project. But it seems it does. I'm gonna try the 2.3 version then. Is it supposed to work with this one? -nodje olamy wrote: Hi, Which version of the resources plugin are you using ? -- Olivier 2008/11/3 nodje [EMAIL PROTECTED]: I'm running into the exact same problem. I'd be really convenient to be able to keep the same properties name. Could someone confirm this is a problem or the expected behavior? Is there any workaround? apart from renaming properties? cheers -nodje rundmsef wrote: If you are attempting to filter resources in src/main and src/test, there are a few gotchas to look out for. Generally, the format of your pom.xml should be as follows: // START POM.XML SNIPPET // project build !-- Filter resources -- filters filtersrc/main/filters/your_filter_file.properties/filter filtersrc/test/filters/your_filter_file.properties/filter /filters !-- Resources for src/main -- resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources !-- Resources for src/test -- testResources testResource directorysrc/test/resources/directory filteringtrue/filtering /testResource /testResources /build /project // END POM.XML SNIPPET // Here's the big GOTCHA: The POM.xml file only has one filters section, which get APPLIED TO ALL RESOURCES. Therefore, if you have a src/main and a src/test filter.properties file that have duplicate properties with different values, they will conflict with one another. Ideally, there would be some sort of way to specify filters and testFilters. I'm a bit surprised this is not the case, since Maven usually applies sensible defaults. I got around this issues by making sure the properties in my test and main filter.properties files were named differently. For example: # src/main/database.properties db.username=myUsername db.password=myPassword # src/main/database-test.properties db.test.username=myTestUsername db.test.password=myTestPassword In this case, db.username will not conflict with db.test.username. Now just make sure your resource files refer to the correct properties and you'll be good to go! I hope this saves somebody some time. I know it took me a while to figure out! -- View this message in context: http://www.nabble.com/Filtering-TestResources-tp18507921p20299692.html Sent from the Maven - Users mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/Filtering-TestResources-tp18507921p20315977.html Sent from the Maven - Users mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/Filtering-TestResources-tp18507921p20458440.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
${project.build.testResources.*} property accessor
Lo everyone, I need to refer to src/test/resources directory in my pom.xml in some plugin configuration settings. So I was trying somePlugin something.../something directory${project.build.testResources.resources.0.directory}${file.separator}someFile.xml /directory /somePlugin i am expecting that text in directory evaluate to for example C:\myproject\src\test\resources\someFile.xml ${project.build.testResources} return xml structure (i evaluate that through mvn help:evaluate) resources resource includes/ excludes/ directorysomething.../src/test/resources/directory filteringfalse/filtering /resource /resources To find out testSource directory or source directory is easy (${project.build.sourceDirectory}, but to find out resource directories seems impossible when you cannot get value from lists (eg. resources is list of resource) in xml (see http://jira.codehaus.org/browse/PLXUTILS-37) What is the way to find out testResources directory ie. src/test/resources? Thanks... -- View this message in context: http://n2.nabble.com/%24%7Bproject.build.testResources.*%7D-property-accessor-tp1489348p1489348.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is there an actual version of the maven-embedder for 2.0.x?
Hi all, I am looking for an actual version of the maven-embedder for the 2.0.x tree. In the central repository there is only a maven-embedder for 2.0.4. But this version seems to be a big buggy. After searching the internet the error occures are the same that occured in maven 2.0.4 version. So I want to use a newer one. I would build it by myself, but if I look in the source repository I can only find the maven-embedder project for the 3.x trunk. But I don't want to use a development version, if it is not necessary. Is there a way to get an actual version of the maven-embedder? Thank your for your help. Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven includes old jar versions
Greetings I am brand new to maven and I have just noticed an issue. I have a jar file that I maintain in my local maven repository (on my workstation). It has had several versions, 2.0.2, 2.0.3 2.0.5 etc. I have a different project that is built with maven that uses this jar file. If I change the jar file I update the version of the jar file. I then update my pom.xml file to fetch the new version of the jar. I opened up my war file and noticed quite by accident that mvn is including all the versions of the jar file in the WEB-INF/lib directory. Is there something I need to do special to tell mvn to only include the most recent version of the jar file? Here is the section of the pom.xml that includes the jar file in question: dependency groupIdorg.ifmc/groupId artifactIdifmccommon/artifactId version2.0.5.r5943/version scopecompile/scope /dependency Thanks in advance Troy -- A computer without a Microsoft operating system is like a dog without bricks tied to its head. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Location of changelog, installer files?
On Nov 10, 2008, at 6:28 PM, Chris wrote: Where in the standard maven directory layout should I put the changelog for my app (changelog.txt)? I'm not sure about a standard, but we put internal documentation in src/main/doc/development. Where should I put files that are used only by the installer? These are files that are needed at build time, but shouldn't be distributed. They include the XML file that tells the install tool how to build the release, and a few JPGs used on the installer screens. We use the Assembly plugin and install4j to build an installer, and we put the Assembly descriptors into src/assembly and the install4j files (e.g., icons) into src/install4j. Where should I put the script used by our obfuscator? We use Zelix KlassMaster and have a src/zkm directory. It looks like files like readme.txt and license.txt go in the root of the project, but I don't feel comfortable putting files other than changelog.txt there. Perhaps in src/test/resources? We put end-user documentation into src/main/doc/deployment. Again, I don't know if these are the standard conventions; it's just what we use. Trevor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven includes old jar versions
On Wednesday 12 November 2008 Troy Bull wrote: I have a jar file that I maintain in my local maven repository (on my workstation). It has had several versions, 2.0.2, 2.0.3 2.0.5 etc. I have a different project that is built with maven that uses this jar file. If I change the jar file I update the version of the jar file. I then update my pom.xml file to fetch the new version of the jar. I opened up my war file and noticed quite by accident that mvn is including all the versions of the jar file in the WEB-INF/lib directory. Is there something I need to do special to tell mvn to only include the most recent version of the jar file? Try a mvn clean. This will solve your issue. The reason is, that the old JARs from previous builds remain in your target/projectId/ directory which is the directory that will be zipped to your final war file. hth, - martin signature.asc Description: This is a digitally signed message part.
Re: Use eclipse to compile
I am sure that M2_REPO is well defined and get substituted to my repository path. Regards, Rice On Tue, Nov 11, 2008 at 8:00 PM, Hoover, William [EMAIL PROTECTED]wrote: Have you tried using it as the example shown? executable ${env.M2_REPO}/org/eclipse/jdt/${org.eclipse.jdt.core.version}/core-${or g.eclipse.jdt.core.version}.jar org.eclipse.jdt.internal.compiler.batch.Main -classpath rt.jar -sourcepath src/main /executable Make sure that M2_REPO has been added to your environmental variables and points to your local repository. -Original Message- From: Rice Yeh [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 10:39 PM To: Maven Users List Subject: Re: Use eclipse to compile Hi, I find there is a problem with this method. Actually, nothing get compiled. This is because all java files are included in classpath without ; as seperator as shown in the following: [DEBUG] -d C:\projects\xsf\jdk15\as-measurement\target\classes -classpath C:\pro jects\xsf\jdk15\as-measurement\target\classes;C:\Documents and Settings\riceyeh\ .m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0 .4.jar;C :\Documents and Settings\riceyeh\.m2\repository\antlr\antlr\2.7.2\antlr-2.7.2.ja r;C:\Documents and Settings\riceyeh\.m2\repository\as\as-commons\1.0.0-SNAPSHOT\ as-commons-1.0.0-SNAPSHOT-jdk15.jar;C:\Documents and Settings\riceyeh\.m2\reposi tory\org\aspectj\aspectjrt\1.5.4\aspectjrt-1.5.4.jar; C:\projects\xsf\jdk15\as-m easurement\src\main\java\as\util\time\DaySet.java C:\projects\xsf\jdk15\as-measu rement\src\main\java\as\util\time\DayOfWeek.java C:\projects\xsf\jdk15\as-measur ement\src\main\java\as\util\measurement\UnSupportedUnitException.java C:\project s\xsf\jdk15\as-measurement\src\main\java\as\util\time\TimeLengthUnit.jav a C:\pro jects\xsf\jdk15\as-measurement\src\main\java\as\util\time\TimeStreamPeri od.java C:\projects\xsf\jdk15\as-measurement\src\main\java\as\util\measurement\M ultiplic able.java C:\projects\xsf\jdk15\as-measurement\src\main\java\as\util\time\Builde r.java C:\projects\xsf\jdk15\as-measurement\src\main\java\as\util\time\Period.j a va C:\projects\xsf\jdk15\as-measurement\src\main\java\as\util\time\Utility. java My configure is as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.0.2/version configuration source1.5/source target1.5/target compilerVersion1.5/compilerVersion forktrue/fork executable java -classpath ${env.M2_REPO}/org/eclipse/jdt/${org.eclipse.jdt.core.version}/core-${o rg.eclipse.jdt.core.version}.jar org.eclipse.jdt.internal.compiler.batch.Main -classpath rt.jar -sourcepath src/main;target/generated-sources -d target/classes /executable /configuration dependencies dependency groupIdorg.eclipse.jdt/groupId artifactIdcore/artifactId version${org.eclipse.jdt.core.version}/version /dependency /dependencies /plugin Regards, Rice On Tue, Nov 11, 2008 at 2:17 AM, Rice Yeh [EMAIL PROTECTED] wrote: Thanks, it works. On Tue, Nov 11, 2008 at 1:38 AM, Hoover, William [EMAIL PROTECTED]wrote: http://article.gmane.org/gmane.comp.jakarta.turbine.maven.user/91072 -Original Message- From: Rice Yeh [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 12:30 PM To: users@maven.apache.org Subject: Use eclipse to compile Hi, I am following the instructions on maven-compiler-plugin to use eclipse's compiler to compile my java files. maven-compiler-plugin depends on plexus-compiler-eclipse which has 1.5.1 as the most updated version. 1.5.1 use eclipse org.eclipse.jdt.core 3.1.0 which is too old for me. Any way can I change this? Or there is other ways to compile with eclipse's compiler? Regards, Rice - 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]
Using commons-net ftp jar as a dependency
I have a project that uses the commons-net package. Well it actually uses only the commons-net-2.0-ftp.jar file found at http://repo1.maven.org/maven2/commons-net/commons-net/2.0/commons-net-2.0-ftp.jar. It there a way for me to have my project depend on only this jar file not the whole commons-net project. My current dependency is dependency groupIdcommons-net/groupId artifactIdcommons-net/artifactId version2.0/version scopecompile/scope /dependency Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exclude some jar from the classpath generated by eclipse:eclipse
Hi, How do I configure pom to exclude some jar from the classpath generated by eclipse:eclipse. I have checked the documents of eclipse:eclipse. There is a parameter excludes but there is no example. Regards, Rice
RE: Dependency report fails
If I turn off dependencyDetailsEnabled in the reporting section: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-project-info-reports-plugin/artifactId version2.1/version configuration dependencyDetailsEnabledfalse/dependencyDetailsEnabled /configuration /plugin I have no issues. Since this flag determines if the plugin counts the number of classes and or packages, I'm thinking this is using bcel and bcel must have a problem. I see that some plugins are using 5.2 but if I turn on -X -e, I can see that the dependency plugin is using 1.2.0. Can someone update this dependency? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 7:15 AM To: Maven Users List Subject: RE: Dependency report fails Can the dependency report be configured to skip a series of depenencies? If it can, I don't see a way... -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 4:35 PM To: users@maven.apache.org Subject: Dependency report fails http://jira.codehaus.org/browse/MPIR-142 Any movement on this particular bug at all (or suggested workaround)? - 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: Using commons-net ftp jar as a dependency
What is the problem of depending on that artifact having the effect of depending on other jars? The commons-net-2.0-ftp.jar is created not because of some maven convention. Actually, the Commons-Net creates that jar just to separate classes. The right way of doing that would be using separated modules, but they are not doing that. My suggestion? Keep that dependency and let your project with whatever comes from that. Regards, Bruno On Nov 12, 2008 1:47pm, Steven Jardine [EMAIL PROTECTED] wrote: I have a project that uses the commons-net package. Well it actually uses only the commons-net-2.0-ftp.jar file found at http://repo1.maven.org/maven2/commons-net/commons-net/2.0/commons-net-2.0-ftp.jar. It there a way for me to have my project depend on only this jar file not the whole commons-net project. My current dependency is commons-net commons-netartifactId 2.0 compile Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Including a dependent war as is
Assuming you're using the assembly plugin to build this zip file, you need a second dependencySet that only includes the war. HTH, Justin - Original Message - From: mavenart1 [EMAIL PROTECTED] To: users@maven.apache.org users@maven.apache.org Sent: Wed Nov 12 04:03:59 2008 Subject: Including a dependent war as is When we package a release, the final distribution includes a dependent war file. Say HelloWorld.zip has to include \adm\foobar.war. Helloworld.zip \scripts\* \tools\* \jar\*.jar \classes\* \adm\foobar.war This war is uploaded in artifactory. How to get this package (as listed above) with this war file (no overlay, just as is) when the package is built using Maven? -- View this message in context: http://www.nabble.com/Including-a-dependent-war-as-is-tp20456494p20456494.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependency report fails
I added a comment to the bug showing how to disable the dependencies report. HTH, Stefan On Wed, 12 Nov 2008 07:14:46 -0500 EJ Ciramella [EMAIL PROTECTED] wrote: Can the dependency report be configured to skip a series of depenencies? If it can, I don't see a way... -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 4:35 PM To: users@maven.apache.org Subject: Dependency report fails http://jira.codehaus.org/browse/MPIR-142 Any movement on this particular bug at all (or suggested workaround)? - 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]
Executions and configs defined in parent's pluginManagement inherited in childs
Hi all. I have a multimodule project that owns a common parent for all sub modules. This common parent is just a pom packaging pom which I want to specify some executions and configurations that his children will inherit. I enclose now some a code snippet that I have tried without any success and it's frustrating. Around the snippet below I have tried changing things but without a result. parent pom.xml modules modulemyModule/module /modules build pluginManagement plugins plugin inheritedtrue/inherited groupIdcom.pyx4me/groupId artifactIdj2me-maven-plugin/artifactId executions execution idpreverification/id goals goalpreverify/goal /goals configuration injar${project.basedir}/target/classes//injar /configuration /execution execution idj2me-package/id goals goalpackage/goal /goals /execution /executions configuration assembly exclusions . . . . /exclusions /assembly inheritedtrue/inherited wtkHomeC:\WTK25/wtkHome useWtkLibstrue/useWtkLibs appendClassifierfalse/appendClassifier proguardInclude${project.basedir}/src/main/configs/ConfigurationProguard.cfg/proguardInclude /configuration /plugin /plugins /pluginManagement myModule pom.xml build plugins . . plugin inheritedtrue/inherited groupIdcom.pyx4me/groupId artifactIdj2me-maven-plugin/artifactId executions execution goals goalpreverify/goal goalpackage/goal /goals /execution /executions /plugin . . /plugins . . /build Thanks in advance. Carlos -- Carlos Alonso Pérez Unkasoft Development Department Junior Programmer E-mail: [EMAIL PROTECTED] Phone: +34 902 110 368 Mobile: +34 653 67 47 07 Fax: +34 923 19 77 84 Web site: www.unkasoft.com Join GameSpace community at http://unkasoft.mobi C/Segunda nº 2, 1º izqda, C-D, P.I. Montalvo III, 37188 - Carbajosa de la Sagrada Salamanca - SPAIN This message may contain confidential information or privileged material, and is intended only for the individual(s) named. If you are not in the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dependency report fails
Yeah, the dependencies report is one of the most important things from site generation. We can't take the, shut off the stuff that doesn't work approach. See my later post - I think this is an issue surrounding the version of bcel used -Original Message- From: Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 8:04 AM To: users@maven.apache.org Subject: Re: Dependency report fails I added a comment to the bug showing how to disable the dependencies report. HTH, Stefan On Wed, 12 Nov 2008 07:14:46 -0500 EJ Ciramella [EMAIL PROTECTED] wrote: Can the dependency report be configured to skip a series of depenencies? If it can, I don't see a way... -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 4:35 PM To: users@maven.apache.org Subject: Dependency report fails http://jira.codehaus.org/browse/MPIR-142 Any movement on this particular bug at all (or suggested workaround)? - 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]
Maven and various test strategies
Looking for insight's into how other users are managing unit and integration tests in current 2.0.x. At the moment the projects I have store unit tests under **/unit/** and integration tests under **/it/** I have compiler and surefire plugin configurations to exclude it tests and then have a separate profile which can be invoked which excludes the unit tests. However its problematical to get a surefire report that includes both the unit and it test results as any kind of clean that is run will remove the xml files from any previous run which are used during the site creation to create the test report. Does anyone use a similar approach and have distinct unit and it surefire reports created or even a report that includes both? I know this is changing in Maven 2.1 but I need to resolve this now and can't wait for a 2.1 release. -- Robert
Crash when running site:site
I have a Maven project that's not very large or complex, however when I run mvn site a fatal out of memory error occurs. I am enclosing the last portion of the console output as an attached file. When the job reaches the line '[INFO] Generating Dependencies report.' it runs for a long time at high CPU level and then crashes. http://www.nabble.com/file/p20465863/mvn-site-error.txt mvn-site-error.txt When encountering this problem does anyone have suggestions as to how to diagnose the problem? Do I just have to give this more heap? Or is there some other underlying problem that needs to be addressed? My other Maven jobs don't encounter this error even though some of these projects are larger and more complex. -- View this message in context: http://www.nabble.com/Crash-when-running-site%3Asite-tp20465863p20465863.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven compilation error
Thanks man Mathus :) - Original Message - From: Baptiste MATHUS [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Sat, 8 Nov 2008 19:42:05 +0530 (IST) Subject: Re: Maven compilation error Hi, See the maven-compiler-plugin: http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#encodingadd the encoding tag inside the configuration one. Cheers. 2008/11/8 [EMAIL PROTECTED] Hi, When i am compiling the classes using mvn com[ile,I am gettin the followiug exceptions... INFO] Compilation failure error: IO exception sun.io.MalformedInputException error: IO exception sun.io.MalformedInputException error: IO exception sun.io.MalformedInputException error: IO exception sun.io.MalformedInputException Earlier when we had used ant scripts,this was resolved with javac encoding=iso-8859-1 srcdir=. How to specify the same in maven?? THanks Regards -- Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731path=/INDT/News/Emb11_20080731page=1pagecount=2utm_source=indmailutm_medium=footerutm_content=trackingutm_campaign=Nletter_07oct2008_ZW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731path=/INDT/News/Emb11_20080731page=1pagecount=2utm_source=indmailutm_medium=footerutm_content=trackingutm_campaign=Nletter_07oct2008_ZW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using a WAR as a dependency
Hello, I'm working on a multi-module web project and I find myself in a situation where I need the web-app packaged as both a jar and a war. My project consists of: * parent module * integration-tests module * web-app module I'm trying to set it up so that when I run mvn:install (from the root pom) it will install the webapp into the local repo as a war, and then the integration test module can both use classes from the webapp for tests, and also use the war to actually start up a jetty (using cargo) for testing. My problem is that I have the webapp packaged as a war but when I try to run any test the testing module it can't find definitions for any of the classes in the webapp. In my testing pom.xml I have: dependency groupIdcom.mycompany.app/groupId artifactIdweb-app/artifactId version1.0-SNAPSHOT/version typewar/type scoperuntime/scope /dependency Am I setting this up correctly? - Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dependency report fails
Can the dependency report be configured to skip a series of depenencies? If it can, I don't see a way... -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 4:35 PM To: users@maven.apache.org Subject: Dependency report fails http://jira.codehaus.org/browse/MPIR-142 Any movement on this particular bug at all (or suggested workaround)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven includes old jar versions
Do a clean install after changing the pom since the target folder would already have a copy of the previous version. --Brian (mobile) On Nov 12, 2008, at 9:52 AM, Troy Bull [EMAIL PROTECTED] wrote: Greetings I am brand new to maven and I have just noticed an issue. I have a jar file that I maintain in my local maven repository (on my workstation). It has had several versions, 2.0.2, 2.0.3 2.0.5 etc. I have a different project that is built with maven that uses this jar file. If I change the jar file I update the version of the jar file. I then update my pom.xml file to fetch the new version of the jar. I opened up my war file and noticed quite by accident that mvn is including all the versions of the jar file in the WEB-INF/lib directory. Is there something I need to do special to tell mvn to only include the most recent version of the jar file? Here is the section of the pom.xml that includes the jar file in question: dependency groupIdorg.ifmc/groupId artifactIdifmccommon/artifactId version2.0.5.r5943/version scopecompile/scope /dependency Thanks in advance Troy -- A computer without a Microsoft operating system is like a dog without bricks tied to its head. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Experimental Grails archetype
This seems to be the issue, actually. I added the repository using the archiva web ui: Grails.org Snapshot Repository Identifier grails.snapshots NameGrails.org Snapshot Repository URL http://snapshots.repository.codehaus.org/ TypeMaven 2.x Repository And it shows up in the main archiva.xml file. Cool. But I don't see how to enable snapshots...It looks like it's a matter of editing the archiva.xml file to enable snapshots for that repository, and other's I guess. One thing that's odd is that it seem to work f for the octo repos... Forge Snapshot Repository Identifier mtg NameForge Snapshot Repository URL http://forge.octo.com/archiva/repository/mtg-snapshots TypeMaven 2.x Repository Forge Snapshot Repository Identifier mtg.snapshots NameForge Snapshot Repository URL http://forge.octo.com/archiva/repository/mtg-snapshots TypeMaven 2.x Repository Anyway, I'm zeroing in I think... On Tue, Nov 11, 2008 at 7:41 AM, Pablo Saavedra [EMAIL PROTECTED] wrote: IIRC, you can add proxied repositories, and you have to make sure spnapshots are enabled in them. Good luck with it. 2008/11/11 Ed [EMAIL PROTECTED] Same result with: mvn -U archetype:generate -DarchetypeGroupId=org.grails -DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=1.0-SNAPSHOT -DarchetypeRepository=http://snapshots.repository.codehaus.org -DgroupId=com.summitbid -DartifactId=TestGailsArchetype However, I'm suspecting that my shiny new archiva repos may not be configured correctly, because I don't see any SNAPSHOT type jars in there. I think SNAPSHOT jars go in the snapshot repos rather then the internal, and therefore may not be getting downloaded and installed correctly... When I say shiny new I really mean, I don't fully understand how it's supposed to work yet. I'll do some more work on this and let you know how it works out. On Tue, Nov 11, 2008 at 6:58 AM, Pablo Saavedra [EMAIL PROTECTED] wrote: Have you tried using the -U flag? 2008/11/11 Ed [EMAIL PROTECTED] I tried the archetype, and had no luck. I already have grails installed (of course) but wanted to give it a try to take it for a spin: D:\src\workspace-Grails mvn archetype:generate -DarchetypeGroupId=org.grails -DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=1.0-SNAPSHOT -DarchetypeRepository=http://snapshots.repository.codehaus.org -DgroupId=com.summitbid -DartifactId=TestGailsArchetype mvn archetype:generate -DarchetypeGroupId=org.grails -DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=1.0-SNAPSHOT -DarchetypeRepository=http://snapshots.repository.codehaus.org -DgroupId=com.summitbid -DartifactId=TestGailsArchetype [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [archetype:generate] (aggregator-style) [INFO] [INFO] Preparing archetype:generate [INFO] No goals needed for project - skipping [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] [archetype:generate] [INFO] Generating project in Interactive mode [INFO] Archetype defined by properties [INFO] snapshot org.grails:grails-maven-archetype:1.0-SNAPSHOT: checking for updates from grails-maven-archetype-repo Downloading: http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar Downloading: http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] The desired archetype does not exist (org.grails:grails-maven-archetype:1.0-SNAPSHOT) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Tue Nov 11 05:54:44 MST 2008 [INFO] Final Memory: 8M/14M [INFO] On Sat, Nov 8, 2008 at 4:06 AM, Peter Ledbrook [EMAIL PROTECTED] wrote: Hi, I have been working on the Maven integration for Grails, basically incorporating the Maven Grails
OpenJPA (together with jtds) cannot find javax.persistence?
Hello, in a project of a new customer we have to add several functionalities to an existing desktop application (swing) which accesses a mssql-database-server. To simplify the process of testing and packaging for a team of 4 developers, we've set up maven. Problem is, that we have to use openjpa (the application already uses it). But I have some serious issues with the javax.persistence which is needed for openjpa: [INFO] Exception in thread main java.lang.NoClassDefFoundError: javax/persistence/Persistence [INFO] at tld.company.appname.database.meta (Startup.java:19) [INFO] Caused by: java.lang.ClassNotFoundException: javax.persistence.Persistence [INFO] at java.net.URLClassLoader$1.run(Unknown Source) As you can see, javax.persistence is not available in the classpath. I have added the following dependency to my pom.xml to hopefully solve this issue, but it didn't work: dependency groupIdjavax.persistence/groupId artifactIdpersistence-api/artifactId version1.0/version typejar/type scopecompile/scope /dependency Sill doesn't find the persistence api.The other (important) dependencies for the database-connection are: dependency groupIdorg.apache.openjpa/groupId artifactIdapache-openjpa/artifactId version1.2.0/version typepom/type scopecompile/scope /dependency dependency groupIdnet.sourceforge.jtds/groupId artifactIdjtds/artifactId version1.2.2/version typejar/type scopecompile/scope /dependency I've searched a lot, but didn't find other solutions than converting the project to hibernate or to install the j2ee-sdk. The first solution (hibernate) is a little too much at the moment (this would require a bigger amount of time and probably a change-request). The second one would be my last choice, as we have nothing to do with j2ee until now. Is there any easier way (hopefully simply by adding some package to the pom.xml)? Or did I overlook something? Everything works without the database, every additional library (e.g. iText) can be found, so what can I do? If you need any descriptions or additional information, let me know! Thanks in advance! Regards, Uli
jaxws-maven-plugin : Failed to execute wsgen
Hi all, I use Eclipse 3.4 and has maven2 plugin installed. As I run mvn package in Eclipse with following pom.xml, I got following error: [ERROR] The following mojo encountered an error while executing: Group-Id: org.codehaus.mojo Artifact-Id: jaxws-maven-plugin Version: 1.10 Mojo: wsgen brought in via: POM While building project: Group-Id: com.weichen.jax.ws Artifact-Id: TestJaxWs Version: 1.0-SNAPSHOT From file: C:\Project\TestJaxWs\pom.xml Reason: Failed to execute wsgen But as I run in cmd-console, it is successful. Why? -- View this message in context: http://www.nabble.com/jaxws-maven-plugin-%3A-Failed-to-execute-wsgen-tp20470612p20470612.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OpenJPA (together with jtds) cannot find javax.persistence?
As you can see, javax.persistence is not available in the classpath. I have added the following dependency to my pom.xml to hopefully solve this issue, but it didn't work: What kind of project is this -- jar, war, ear, etc? And are you sure the artifact providing the Persistence class is available in the classpath at runtime? Are you sure the type=pom is appropriate for the openjpa artifact? The persistence-api is just that, an API, eventually someone has to provide an implementation somewhere in the project for things to work. Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exclude some jar from the classpath generated by eclipse:eclipse
It is indeed not clear from the documentation, but if you look the documentation closely you see a Jira issue attached: List of artifact to exclude from eclipse classpath, beeing provided by some eclipse classPathContainer [MECLIPSE-79] This jira issue provide the documentation: excludes excludejunit:junit/exclude /excludes I've created a new issue to improve the documentation: http://jira.codehaus.org/browse/MECLIPSE-499 Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, Nov 12, 2008 at 5:01 PM, Rice Yeh [EMAIL PROTECTED] wrote: Hi, How do I configure pom to exclude some jar from the classpath generated by eclipse:eclipse. I have checked the documents of eclipse:eclipse. There is a parameter excludes but there is no example. Regards, Rice - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Crash when running site:site
Try something like: MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=256m -Original Message- From: stug23 [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 1:01 PM To: users@maven.apache.org Subject: Crash when running site:site I have a Maven project that's not very large or complex, however when I run mvn site a fatal out of memory error occurs. I am enclosing the last portion of the console output as an attached file. When the job reaches the line '[INFO] Generating Dependencies report.' it runs for a long time at high CPU level and then crashes. http://www.nabble.com/file/p20465863/mvn-site-error.txt mvn-site-error.txt When encountering this problem does anyone have suggestions as to how to diagnose the problem? Do I just have to give this more heap? Or is there some other underlying problem that needs to be addressed? My other Maven jobs don't encounter this error even though some of these projects are larger and more complex. -- View this message in context: http://www.nabble.com/Crash-when-running-site%3Asite-tp20465863p20465863 .html Sent from the Maven - Users mailing list archive at Nabble.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]
RE: Maven and various test strategies
Couldn't you point the output directories to the same location? I guess that would merge your unittests and integration tests. Also, you can always write your own reporting plugin to cover integration tests. -Original Message- From: Bracewell, Robert [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 12:48 PM To: users@maven.apache.org Subject: Maven and various test strategies Looking for insight's into how other users are managing unit and integration tests in current 2.0.x. At the moment the projects I have store unit tests under **/unit/** and integration tests under **/it/** I have compiler and surefire plugin configurations to exclude it tests and then have a separate profile which can be invoked which excludes the unit tests. However its problematical to get a surefire report that includes both the unit and it test results as any kind of clean that is run will remove the xml files from any previous run which are used during the site creation to create the test report. Does anyone use a similar approach and have distinct unit and it surefire reports created or even a report that includes both? I know this is changing in Maven 2.1 but I need to resolve this now and can't wait for a 2.1 release. -- Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filtering TestResources
Is http://jira.codehaus.org/browse/MRESOURCES the right place to submit the issue? As for the test case, what about a pom.xml with the minimal directory structure and a couple of properties files and filters. Can I update that on Jira? -nodje Olivier Lamy wrote: Can you load an issue and provide a project test case ? Thanks, -- Olivier 2008/11/12 nodje [EMAIL PROTECTED]: Hi, it seemed to work at first, but now we get the main/resources filtered by the test/filters. We have to revert on naming properties differently :( -nodje Olivier Lamy wrote: Hi, As we have an it test [1] which test this and works, it should :-) -- Olivier [1] https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-resources-plugin/src/it/filter-test-resources/ 2008/11/4 nodje [EMAIL PROTECTED]: Good question actually. I realize I don't even specify it in my pom, I took for granted it was included with the Maven default config. Which, when looking at the Maven super pom, it is not. It's only specified in the pluginManagement section and with version 2.2. As I understand pluginManagement it should only specify the default version to use when you include the plugin in your pom and not add the plugin to each every Maven project. But it seems it does. I'm gonna try the 2.3 version then. Is it supposed to work with this one? -nodje olamy wrote: Hi, Which version of the resources plugin are you using ? -- Olivier 2008/11/3 nodje [EMAIL PROTECTED]: I'm running into the exact same problem. I'd be really convenient to be able to keep the same properties name. Could someone confirm this is a problem or the expected behavior? Is there any workaround? apart from renaming properties? cheers -nodje rundmsef wrote: If you are attempting to filter resources in src/main and src/test, there are a few gotchas to look out for. Generally, the format of your pom.xml should be as follows: // START POM.XML SNIPPET // project build !-- Filter resources -- filters filtersrc/main/filters/your_filter_file.properties/filter filtersrc/test/filters/your_filter_file.properties/filter /filters !-- Resources for src/main -- resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources !-- Resources for src/test -- testResources testResource directorysrc/test/resources/directory filteringtrue/filtering /testResource /testResources /build /project // END POM.XML SNIPPET // Here's the big GOTCHA: The POM.xml file only has one filters section, which get APPLIED TO ALL RESOURCES. Therefore, if you have a src/main and a src/test filter.properties file that have duplicate properties with different values, they will conflict with one another. Ideally, there would be some sort of way to specify filters and testFilters. I'm a bit surprised this is not the case, since Maven usually applies sensible defaults. I got around this issues by making sure the properties in my test and main filter.properties files were named differently. For example: # src/main/database.properties db.username=myUsername db.password=myPassword # src/main/database-test.properties db.test.username=myTestUsername db.test.password=myTestPassword In this case, db.username will not conflict with db.test.username. Now just make sure your resource files refer to the correct properties and you'll be good to go! I hope this saves somebody some time. I know it took me a while to figure out! -- View this message in context: http://www.nabble.com/Filtering-TestResources-tp18507921p20299692.html Sent from the Maven - Users mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/Filtering-TestResources-tp18507921p20315977.html Sent from the Maven - Users mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/Filtering-TestResources-tp18507921p20458440.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: Exclude some jar from the classpath generated by eclipse:eclipse
Yes, I tried. But it seems not work. Shouldn't the named jar be excluded from .classpath. Regards, Rice On Thu, Nov 13, 2008 at 6:59 AM, Nick Stolwijk [EMAIL PROTECTED]wrote: It is indeed not clear from the documentation, but if you look the documentation closely you see a Jira issue attached: List of artifact to exclude from eclipse classpath, beeing provided by some eclipse classPathContainer [MECLIPSE-79] This jira issue provide the documentation: excludes excludejunit:junit/exclude /excludes I've created a new issue to improve the documentation: http://jira.codehaus.org/browse/MECLIPSE-499 Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, Nov 12, 2008 at 5:01 PM, Rice Yeh [EMAIL PROTECTED] wrote: Hi, How do I configure pom to exclude some jar from the classpath generated by eclipse:eclipse. I have checked the documents of eclipse:eclipse. There is a parameter excludes but there is no example. Regards, Rice - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OpenJPA (together with jtds) cannot find javax.persistence?
I thought you could use Hibernate's JPA stuff just for JPA, without needing to use the full Hibernate package. For example, dependency groupIdorg.hibernate/groupId artifactIdejb3-persistence/artifactId version1.0.1.GA/version /dependency Ulrich Wolf wrote: Hello, in a project of a new customer we have to add several functionalities to an existing desktop application (swing) which accesses a mssql-database-server. To simplify the process of testing and packaging for a team of 4 developers, we've set up maven. Problem is, that we have to use openjpa (the application already uses it). But I have some serious issues with the javax.persistence which is needed for openjpa: [INFO] Exception in thread main java.lang.NoClassDefFoundError: javax/persistence/Persistence [INFO] at tld.company.appname.database.meta (Startup.java:19) [INFO] Caused by: java.lang.ClassNotFoundException: javax.persistence.Persistence [INFO] at java.net.URLClassLoader$1.run(Unknown Source) As you can see, javax.persistence is not available in the classpath. I have added the following dependency to my pom.xml to hopefully solve this issue, but it didn't work: dependency groupIdjavax.persistence/groupId artifactIdpersistence-api/artifactId version1.0/version typejar/type scopecompile/scope /dependency Sill doesn't find the persistence api.The other (important) dependencies for the database-connection are: dependency groupIdorg.apache.openjpa/groupId artifactIdapache-openjpa/artifactId version1.2.0/version typepom/type scopecompile/scope /dependency dependency groupIdnet.sourceforge.jtds/groupId artifactIdjtds/artifactId version1.2.2/version typejar/type scopecompile/scope /dependency I've searched a lot, but didn't find other solutions than converting the project to hibernate or to install the j2ee-sdk. The first solution (hibernate) is a little too much at the moment (this would require a bigger amount of time and probably a change-request). The second one would be my last choice, as we have nothing to do with j2ee until now. Is there any easier way (hopefully simply by adding some package to the pom.xml)? Or did I overlook something? Everything works without the database, every additional library (e.g. iText) can be found, so what can I do? If you need any descriptions or additional information, let me know! Thanks in advance! Regards, Uli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
properties variables in archetype pom?
I'm trying to create an archetype using the instructions from the apache maven web site: $ mvn archetype:create-from-project $ cd target/generated-sources/archetype/ $ mvn install $ mkdir /tmp/archetype $ cd /tmp/archetype $ mvn archetype:generate -DarchetypeCatalog=local But at the last step I get a bunch of Velocity warnings like [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 76,column 22] : ${version.springframework} is not a valid reference. because my pom.xml which I used to create the archetype has ${} stuff in it; e.g. dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version${version.springframework}/version /dependency I tried putting a backslash in front of the dollar sign but that just came through unchanged, with the backslash in the generated pom.xml. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using commons-net ftp jar as a dependency
If you know you're not going to use the stuff it's dragging in I think you can exclude it; dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version${version.springframework}/version exclusions exclusion groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId /exclusion /exclusions /dependency I use that along with repositories repository idVersion99/id nameVersion 99 Does Not Exist Maven repository/name layoutdefault/layout urlhttp://no-commons-logging.zapto.org/mvn2/url /repository /repositories So that I can use SLF4J's commons logging replacement. But otherwise, I agree with Bruno; I'd let it drag in the other stuff, for example, in case a future version starts using it. One of the advantages of using maven is learning to let go and stop micromanaging your jars. Steven Jardine wrote: I have a project that uses the commons-net package. Well it actually uses only the commons-net-2.0-ftp.jar file found at http://repo1.maven.org/maven2/commons-net/commons-net/2.0/commons-net-2.0-ftp.jar. It there a way for me to have my project depend on only this jar file not the whole commons-net project. My current dependency is dependency groupIdcommons-net/groupId artifactIdcommons-net/artifactId version2.0/version scopecompile/scope /dependency Thanks, Steve - 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]