Re: Maven collect JAR files into one ZIP
Yes I know that. Jar-with-deps is taking out all class files from all dep. JAR files and put them into one single JAR file. I don't need that. Is nice to have one ZIP where JARs are collected together.As same way how WAR files are built with maven. Inside WAR are also dep. jar files located. As I understand there isn't such a plug-in for that? If I need develop it by my self, is it hard do develop? What libraries/APIs I must to know? Is there POM parser and some Maven APIs for getting for project(for POM) list of all JARs(recursively resolved) with full path from local repository(like C:\Repo\org\some\lib\1.0\x-1.0.jar)? I know basic of making plug-ins but I don't know much about Maven APIs - how to get list of files and how to get maven context info(repository location, etc) and how to get plug-in configuration? Does I need to parse POM and toher XML files by my self or that functionality is supported by some Maven API? Any suggestion to read, search? Wayne Fay wrote: I think that better is to have plug-in that resolves deps(from POM) and adds into one ZIP. Jar with deps is not nice solution - long build proccess and I cant send send ~50MB files. You realize that the Jar file format is essentially zip plus some text files, right? What do you think would be magically different in this proposed Zip vs what Jar with deps is producing? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven-collect-JAR-files-into-one-ZIP-tp23849432p23864206.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
XDoclet plugin failed: Failed to set property restrictedpath
Hi all. I tried to build magnolia trunk, everything seems ok, but magnolia-taglib-cms isn't. I got this message, and I don't know how to fix it. Anybody can help me ? [INFO] Scanning for projects... [INFO] [INFO] Building CMS Tag Library [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean] [INFO] [enforcer:enforce {execution: enforce}] [WARNING] Attempting to build MavenProject instance for Artifact (org.codehaus.xdoclet:maven2-xdoclet2-plugin:2.0.7-20090427.164453-14) of type: maven-plugin; constructing POM arti [INFO] [2-xdoclet2:xdoclet {execution: xdoclet-tld}] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] XDoclet plugin failed: Failed to set property restrictedpath to file://C:\Users\Phan Le Thanh Chuong\.m2\repository: null The filename, directory name, or volume label syntax is incorrect [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: XDoclet plugin failed: Failed to set property restrictedpath to file://C:\Users\Phan Le Thanh Chuong\.m2\repository: null at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: XDoclet plugin failed: Failed to set property restrictedpath to file://C:\Users\Phan Le Thanh Chuong\.m2\repository: null at org.codehaus.xdoclet.XDocletMojo.execute(XDocletMojo.java:260) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) ... 16 more Caused by: org.picocontainer.PicoInitializationException: Failed to set property restrictedpath to file://C:\Users\Phan Le Thanh Chuong\.m2\repository: null at org.picocontainer.defaults.BeanPropertyComponentAdapter.getComponentInstance(BeanPropertyComponentAdapter.java:79) at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstancesOfType(DefaultPicoContainer.java:274) at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstancesOfTypeWithContainerAdaptersLast(DefaultPicoContainer.java:377) at org.picocontainer.defaults.DefaultPicoContainer.start(DefaultPicoContainer.java:347) at org.nanocontainer.integrationkit.LifecycleContainerBuilder.autoStart(LifecycleContainerBuilder.java:52) at org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer(LifecycleContainerBuilder.java:45) at org.codehaus.xdoclet.XDocletMojo.execute(XDocletMojo.java:251) ... 18 more Caused by: java.lang.reflect.InvocationTargetException 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:585) at org.picocontainer.defaults.BeanPropertyComponentAdapter.getComponentInstance(BeanPropertyComponentAdapter.java:77) ... 24 more Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
configuring output of maven logs into a file
Hello! Is there any possibility to configure a output of all maven logs from one project into an extern file by using the pom.xml ? I'm writing a plugin and need some output from the maven-compiler-plugin! There is a solution on this mailing-list by changing the mvn.bat, but I want configure everything in the pom of the project and dont want to say to the users, they have to change their mvn.bat.. thanks.. David
Re: Maven collect JAR files into one ZIP
I think the combination of dependency:copy-dependencies [1] and the assembly plugin will do what you want. [1] http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Thu, Jun 4, 2009 at 7:59 AM, Krabi imr...@hot.ee wrote: Yes I know that. Jar-with-deps is taking out all class files from all dep. JAR files and put them into one single JAR file. I don't need that. Is nice to have one ZIP where JARs are collected together.As same way how WAR files are built with maven. Inside WAR are also dep. jar files located. As I understand there isn't such a plug-in for that? If I need develop it by my self, is it hard do develop? What libraries/APIs I must to know? Is there POM parser and some Maven APIs for getting for project(for POM) list of all JARs(recursively resolved) with full path from local repository(like C:\Repo\org\some\lib\1.0\x-1.0.jar)? I know basic of making plug-ins but I don't know much about Maven APIs - how to get list of files and how to get maven context info(repository location, etc) and how to get plug-in configuration? Does I need to parse POM and toher XML files by my self or that functionality is supported by some Maven API? Any suggestion to read, search? Wayne Fay wrote: I think that better is to have plug-in that resolves deps(from POM) and adds into one ZIP. Jar with deps is not nice solution - long build proccess and I cant send send ~50MB files. You realize that the Jar file format is essentially zip plus some text files, right? What do you think would be magically different in this proposed Zip vs what Jar with deps is producing? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven-collect-JAR-files-into-one-ZIP-tp23849432p23864206.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven collect JAR files into one ZIP
Thanks! This solution is good enough :) Nick Stolwijk-4 wrote: I think the combination of dependency:copy-dependencies [1] and the assembly plugin will do what you want. [1] http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Thu, Jun 4, 2009 at 7:59 AM, Krabi imr...@hot.ee wrote: Yes I know that. Jar-with-deps is taking out all class files from all dep. JAR files and put them into one single JAR file. I don't need that. Is nice to have one ZIP where JARs are collected together.As same way how WAR files are built with maven. Inside WAR are also dep. jar files located. As I understand there isn't such a plug-in for that? If I need develop it by my self, is it hard do develop? What libraries/APIs I must to know? Is there POM parser and some Maven APIs for getting for project(for POM) list of all JARs(recursively resolved) with full path from local repository(like C:\Repo\org\some\lib\1.0\x-1.0.jar)? I know basic of making plug-ins but I don't know much about Maven APIs - how to get list of files and how to get maven context info(repository location, etc) and how to get plug-in configuration? Does I need to parse POM and toher XML files by my self or that functionality is supported by some Maven API? Any suggestion to read, search? Wayne Fay wrote: I think that better is to have plug-in that resolves deps(from POM) and adds into one ZIP. Jar with deps is not nice solution - long build proccess and I cant send send ~50MB files. You realize that the Jar file format is essentially zip plus some text files, right? What do you think would be magically different in this proposed Zip vs what Jar with deps is producing? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven-collect-JAR-files-into-one-ZIP-tp23849432p23864206.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven-collect-JAR-files-into-one-ZIP-tp23849432p23869693.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re : Maven collect JAR files into one ZIP
Hi, No need for the dependency plugin. The assembly plugin alone will do the job: in pom.xml plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId version2.2-beta-3/version configuration descriptors descriptorsrc/main/assembly/bundle.xml/descriptor /descriptors /configuration /plugin bundle.xml assembly idbundle/id formats formatzip/format /formats dependencySets dependencySet unpackfalse/unpack scoperuntime/scope useProjectArtifacttrue/useProjectArtifact /dependencySet /dependencySets /assembly Regards, Julien De : Krabi imr...@hot.ee À : users@maven.apache.org Envoyé le : Jeudi, 4 Juin 2009, 15h13mn 30s Objet : Re: Maven collect JAR files into one ZIP Thanks! This solution is good enough :) Nick Stolwijk-4 wrote: I think the combination of dependency:copy-dependencies [1] and the assembly plugin will do what you want. [1] http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Thu, Jun 4, 2009 at 7:59 AM, Krabi imr...@hot.ee wrote: Yes I know that. Jar-with-deps is taking out all class files from all dep. JAR files and put them into one single JAR file. I don't need that. Is nice to have one ZIP where JARs are collected together.As same way how WAR files are built with maven. Inside WAR are also dep. jar files located. As I understand there isn't such a plug-in for that? If I need develop it by my self, is it hard do develop? What libraries/APIs I must to know? Is there POM parser and some Maven APIs for getting for project(for POM) list of all JARs(recursively resolved) with full path from local repository(like C:\Repo\org\some\lib\1.0\x-1.0.jar)? I know basic of making plug-ins but I don't know much about Maven APIs - how to get list of files and how to get maven context info(repository location, etc) and how to get plug-in configuration? Does I need to parse POM and toher XML files by my self or that functionality is supported by some Maven API? Any suggestion to read, search? Wayne Fay wrote: I think that better is to have plug-in that resolves deps(from POM) and adds into one ZIP. Jar with deps is not nice solution - long build proccess and I cant send send ~50MB files. You realize that the Jar file format is essentially zip plus some text files, right? What do you think would be magically different in this proposed Zip vs what Jar with deps is producing? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven-collect-JAR-files-into-one-ZIP-tp23849432p23864206.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven-collect-JAR-files-into-one-ZIP-tp23849432p23869693.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven collect JAR files into one ZIP
offtopic: Nick Stolwijk-4 before you answered I already made some code ;). For me is interesting to implement it. Can you watch on that issue and code? http://code.google.com/p/jar-collector/issues/detail?id=1 https://jar-collector.googlecode.com/svn/branches/development/1.0.0 ( # Non-members may check out a read-only working copy anonymously over HTTP. svn checkout http://jar-collector.googlecode.com/svn/trunk/ jar-collector-read-only ) How to find direct deps. sub-deps packages in code? Nick Stolwijk-4 wrote: I think the combination of dependency:copy-dependencies [1] and the assembly plugin will do what you want. [1] http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Thu, Jun 4, 2009 at 7:59 AM, Krabi imr...@hot.ee wrote: Yes I know that. Jar-with-deps is taking out all class files from all dep. JAR files and put them into one single JAR file. I don't need that. Is nice to have one ZIP where JARs are collected together.As same way how WAR files are built with maven. Inside WAR are also dep. jar files located. As I understand there isn't such a plug-in for that? If I need develop it by my self, is it hard do develop? What libraries/APIs I must to know? Is there POM parser and some Maven APIs for getting for project(for POM) list of all JARs(recursively resolved) with full path from local repository(like C:\Repo\org\some\lib\1.0\x-1.0.jar)? I know basic of making plug-ins but I don't know much about Maven APIs - how to get list of files and how to get maven context info(repository location, etc) and how to get plug-in configuration? Does I need to parse POM and toher XML files by my self or that functionality is supported by some Maven API? Any suggestion to read, search? Wayne Fay wrote: I think that better is to have plug-in that resolves deps(from POM) and adds into one ZIP. Jar with deps is not nice solution - long build proccess and I cant send send ~50MB files. You realize that the Jar file format is essentially zip plus some text files, right? What do you think would be magically different in this proposed Zip vs what Jar with deps is producing? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven-collect-JAR-files-into-one-ZIP-tp23849432p23864206.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven-collect-JAR-files-into-one-ZIP-tp23849432p23870362.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to get an alert if a property value is missing
Hi all, I have the need to create a configuration file for several, different, platforms. Therefore I have a xxx-service.xml in which I call some value that are set in the user/.m2/settings.xml. For example: #settings.xml properties settings.file.value(user)/.m2/settings.xml/settings.file.value /properties and then in the xxx-service.xml #xxx-service.xml ... jndi:value type=java.lang.String${settings.file.value}/jndi:value ... This works just fine. My problem is, if setting.file.value isn't set in settings.xml the compiler simply skips the step an leaves the ${settings.file.value} at his place. My question is, is there a possibility, a setting to switch in order to get an explicit warning message in case of a missing definition? thanks a lot for your help rgds Turbo-555 -- View this message in context: http://www.nabble.com/How-to-get-an-alert-if-a-property-value-is-missing-tp23870644p23870644.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Excluding default repositories
Is there a way to apply this to this project specifically? This is for a shared project. Ideally it'd be alongside the pom. Stephen Connolly-2 wrote: Yep... point everything at your repository mirrorOf*/mirrorOf FYI, you want to do this anyway as running a repository manager is pretty much essential these days 2009/6/2 daniel.green october...@gmail.com So point the proxies for the default repositories at my onsite repository? Stephen Connolly-2 wrote: you need to use a repository manager and have it proxy all repositories in your settings.xml 2009/6/2 daniel.green october...@gmail.com Is it possible to exclude default repositories? I need to ensure that all dependencies are taken only from the repositories that I specify. -- View this message in context: http://www.nabble.com/Excluding-default-repositories-tp23839715p23839715.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Excluding-default-repositories-tp23839715p23841313.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Excluding-default-repositories-tp23839715p23870820.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to skip integration tests
Hi Guys, I see that specifying -Dmaven.test.skip=true skips units tests vut does not skip integration tests. Is there a way to specify an option to skip integration tests? If not, is there an open issue to request a way to do this? Thanks for your help. -- Regards, Farrukh Web: http://www.wellfleetsoftware.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to skip integration tests
Hi, My understanding was that -Dmaven.test.skip=true tells the surefile plugin to skip the tests. What phase that the plugin is bound to is a different story. So, if you have the surefire plugin bound to the integration phase (it's not by default), you can turn the tests of by that flag. Have you tested and it doesn't work? I normally keep the integration tests in a separate module and therefore haven't had the need to be able to turn them off. /Anders On Thu, Jun 4, 2009 at 07:17, Farrukh Najmi farr...@wellfleetsoftware.com wrote: Hi Guys, I see that specifying -Dmaven.test.skip=true skips units tests vut does not skip integration tests. Is there a way to specify an option to skip integration tests? If not, is there an open issue to request a way to do this? Thanks for your help. -- Regards, Farrukh Web: http://www.wellfleetsoftware.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven assembly plugin
Hi, I am using the maven assembly plugin to create a zip file containing certain jars. The zip file contains the version info of the jars as well. Example: abc.zip has activation-1.1.jar, commons-7.2.jar How can I remove the version info from getting attached to the jar file and consequently getting zipped ? TIA, -- View this message in context: http://www.nabble.com/maven-assembly-plugin-tp23871508p23871508.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Simple question on packaging a Java Application
Say you have a Java application (j2Se) and it has some dependent modules. Easy - right??? How do I get the Java application packaged as a jar when in my packaging clause in the Java application pom.xml is pom?
RE: maven assembly plugin
Hi there, The assembly plugin has an outputFileNameMapping capability. So you would add something like this: outputFileNameMapping${artifact.artifactId}.${artifact.extension}/outputFileNameMapping You can find additional info here: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet I think that will get you what you want. -Jim -Original Message- From: huser [mailto:mpinj...@atxg.com] Sent: Thursday, June 04, 2009 9:49 AM To: users@maven.apache.org Subject: maven assembly plugin Hi, I am using the maven assembly plugin to create a zip file containing certain jars. The zip file contains the version info of the jars as well. Example: abc.zip has activation-1.1.jar, commons-7.2.jar How can I remove the version info from getting attached to the jar file and consequently getting zipped ? TIA, -- View this message in context: http://www.nabble.com/maven-assembly-plugin-tp23871508p23871508.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
aspectj-maven-plugin
Is anyone having any luck with this plugin? It seems pretty broken to me. I have scoured the web and can find little, if any documentation. It also seems as if the guy at anydoby.com re-wrote the plugin to work?! Here is what I have so far: plugin groupIdorg.codehaus.mojo/groupId artifactIdaspectj-maven-plugin/artifactId version1.1/version executions execution goals goalcompile/goal !-- use this goal to weave all your main classes -- goaltest-compile/goal !-- use this goal to weave all your test classes -- /goals /execution /executions configuration source1.5/source target1.5/target showWeaveInfotrue/showWeaveInfo verbosetrue/verbose outxmlfalse/outxml proceedOnErrortrue/proceedOnError includes include**/*.aj/include /includes !--excludes exclude**/logging/*.aj/exclude /excludes-- weaveDependencies weaveDependency groupIdorg.springframework/groupId artifactIdspring-aspects/artifactId /weaveDependency /weaveDependencies aspectLibrarys aspectLibrary groupIdorg.springframework/groupId artifactIdspring-aspects/artifactId /aspectLibrary /aspectLibrarys /configuration /plugin == Curtis Yanko Application Developer Infrastructure Services Source-Build-Deploy This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to get an alert if a property value is missing
have a look at the enforcer plugin 2009/6/4 turbo-555 fdur...@ticino.com Hi all, I have the need to create a configuration file for several, different, platforms. Therefore I have a xxx-service.xml in which I call some value that are set in the user/.m2/settings.xml. For example: #settings.xml properties settings.file.value(user)/.m2/settings.xml/settings.file.value /properties and then in the xxx-service.xml #xxx-service.xml ... jndi:value type=java.lang.String${settings.file.value}/jndi:value ... This works just fine. My problem is, if setting.file.value isn't set in settings.xml the compiler simply skips the step an leaves the ${settings.file.value} at his place. My question is, is there a possibility, a setting to switch in order to get an explicit warning message in case of a missing definition? thanks a lot for your help rgds Turbo-555 -- View this message in context: http://www.nabble.com/How-to-get-an-alert-if-a-property-value-is-missing-tp23870644p23870644.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Excluding default repositories
not that I know 2009/6/4 daniel.green october...@gmail.com Is there a way to apply this to this project specifically? This is for a shared project. Ideally it'd be alongside the pom. Stephen Connolly-2 wrote: Yep... point everything at your repository mirrorOf*/mirrorOf FYI, you want to do this anyway as running a repository manager is pretty much essential these days 2009/6/2 daniel.green october...@gmail.com So point the proxies for the default repositories at my onsite repository? Stephen Connolly-2 wrote: you need to use a repository manager and have it proxy all repositories in your settings.xml 2009/6/2 daniel.green october...@gmail.com Is it possible to exclude default repositories? I need to ensure that all dependencies are taken only from the repositories that I specify. -- View this message in context: http://www.nabble.com/Excluding-default-repositories-tp23839715p23839715.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Excluding-default-repositories-tp23839715p23841313.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Excluding-default-repositories-tp23839715p23870820.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Simple question on packaging a Java Application
On Thu, Jun 4, 2009 at 9:13 AM, Horton, Anne B anne.b.hor...@lmco.com wrote: Say you have a Java application (j2Se) and it has some dependent modules. Easy - right??? How do I get the Java application packaged as a jar when in my packaging clause in the Java application pom.xml is pom? create another module that packages everything into the jar via the assembly plugin. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to skip integration tests
If you use failsafe-maven-plugin to run your integration tests then -DskipITs will skip only the integration tests (i.e. failsafe tests only) -DskipTests will skip the surefire and failsafe tests while -Dmaven.test.skip=true will skip compiling the tests as well as running them (surefire or failsafe) On the other hand, if you use, e.g. maven-invoker-plugin to run your integration tests, then you need to look into how that plugin is configured -Stephen 2009/6/4 Anders Hammar and...@hammar.net Hi, My understanding was that -Dmaven.test.skip=true tells the surefile plugin to skip the tests. What phase that the plugin is bound to is a different story. So, if you have the surefire plugin bound to the integration phase (it's not by default), you can turn the tests of by that flag. Have you tested and it doesn't work? I normally keep the integration tests in a separate module and therefore haven't had the need to be able to turn them off. /Anders On Thu, Jun 4, 2009 at 07:17, Farrukh Najmi farr...@wellfleetsoftware.com wrote: Hi Guys, I see that specifying -Dmaven.test.skip=true skips units tests vut does not skip integration tests. Is there a way to specify an option to skip integration tests? If not, is there an open issue to request a way to do this? Thanks for your help. -- Regards, Farrukh Web: http://www.wellfleetsoftware.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to get an alert if a property value is missing
that's what I need! thx Stephen Connolly-2 wrote: have a look at the enforcer plugin 2009/6/4 turbo-555 fdur...@ticino.com Hi all, I have the need to create a configuration file for several, different, platforms. Therefore I have a xxx-service.xml in which I call some value that are set in the user/.m2/settings.xml. For example: #settings.xml properties settings.file.value(user)/.m2/settings.xml/settings.file.value /properties and then in the xxx-service.xml #xxx-service.xml ... jndi:value type=java.lang.String${settings.file.value}/jndi:value ... This works just fine. My problem is, if setting.file.value isn't set in settings.xml the compiler simply skips the step an leaves the ${settings.file.value} at his place. My question is, is there a possibility, a setting to switch in order to get an explicit warning message in case of a missing definition? thanks a lot for your help rgds Turbo-555 -- View this message in context: http://www.nabble.com/How-to-get-an-alert-if-a-property-value-is-missing-tp23870644p23870644.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/How-to-get-an-alert-if-a-property-value-is-missing-tp23870644p23873681.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven-plugin-api com.thoughtworks.qdox.parser.ParseException: syntax error
I am trying to write a maven plugin as per http://maven.apache.org/guides/plugin/guide-java-plugin-development.html When I compile my plugin I get the following error: com.thoughtworks.qdox.parser.ParseException: syntax error @[38,33] in file:/C:/work/schema-tools/src/main/java/org/w3/_2001/xmlschema/DerivationControl.java The file is basically a JAXB generated file and the parser seems to complain about the @XmlEnumValue(substitution) tag. Anyone have any ideas why this occurs? I have tried various versions of the maven-plugin-api The full file contents (minus comments) are: @XmlType(name = derivationControl) @XmlEnum public enum DerivationControl { @XmlEnumValue(substitution) SUBSTITUTION(substitution), @XmlEnumValue(extension) EXTENSION(extension), @XmlEnumValue(restriction) RESTRICTION(restriction), @XmlEnumValue(list) LIST(list), @XmlEnumValue(union) UNION(union); private final String value; DerivationControl(String v) { value = v; } public String value() { return value; } public static DerivationControl fromValue(String v) { for (DerivationControl c: DerivationControl.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } } Help appreciated, Menno -- View this message in context: http://www.nabble.com/maven-plugin-api-com.thoughtworks.qdox.parser.ParseException%3A-syntax-error-tp23874877p23874877.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Exclude dependency from scope runtime test classpath
Baptiste MATHUS wrote: I guess you can file an enhancement request for this use, but I'm not sure it would really make sense. Since you're likely to want to test this kind of dependency too in your tests. At least, IMO you'll have to provide a good use case to justify this new feature. Hello; I'd like to add to this issue by supplying a compile-time-only scope use case. When building JPA applications, often one wants to compile in support for all the various annotations from the persistence providers (Hibernate, EclipseLink and OpenJPA). I would like to make it so that all three of these libraries are available only at compile time, but only [i]one[/i] of them is available at test time. Currently I have them all specified as scope=provided, and while that works, I would really like to test my classes in the presence of only one of these libraries, not all three. To put it another way, I want to ensure that although I reference EclipseLink annotations in my project, I don't need EclipseLink on the runtime/test path. I have no way of doing this that I know of inside my Maven project. Thoughts? Thanks, Laird -- View this message in context: http://www.nabble.com/Exclude-dependency-from-scope-runtime-test-classpath-tp23424431p23875222.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
artifact for jaxb2
hello i am tring for finding one artifact for generate the classes from one xsd file. my pourpose is into one second step generate one WS using jax-ws but i dont find one artifact for generate , from one xsd, using jasb2, the classes. i have one xsd and i want to use one generate goal for this pourpose. can you help me? thanks - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Need to convince my manager to switch to maven
Our group does release engineering and we have a Jave project that gets build every night. Our java source code and lib jars are checked into CVS. Every night we do a sync and build. As a Java developer, I have a hard time managing/upgrading my Java libs. In the process of switching to Maven, I have to convince my team that Maven is the right tool to use. But many concerns have been raised. For example: - What if the central repo goes down? We'll end up with broken builds and the QEs will go crazy at us! - Ok, so we can have proxies, but then we have to maintain them. Lots of work. - Not checked into CVS??? That's not good. Not comfortable without having a complete set of artifacts in a SAFE place. Not comfortable! - Your pom.xml only shows those dependencies your project is directed dependent upon. Fine. But what about all other dependencies that your dependencies depend upon? Know who they, get them and put in CVS!! Not sure if any of you have encountered these challenges. Please give me some suggestions. -- View this message in context: http://www.nabble.com/Need-to-convince-my-manager-to-switch-to-maven-tp23876576p23876576.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Need to convince my manager to switch to maven
Answers inline. On Thu, Jun 4, 2009 at 3:50 PM, scabbageguans...@gmail.com wrote: - What if the central repo goes down? We'll end up with broken builds and the QEs will go crazy at us! There are a few things about this that bug me. Maven only downloads from central once for released artifacts. So, the build server and most likely all of the developers will have copies of all required jars in their ~/.m2/repository directory. So if central is down, and you aren't dependent on any SNAPSHOTs, as long as the build doesn't include a new dependency, then you probably won't even notice. Furthermore, I've been using maven for a couple of years now and I don't remember even so much as a planned outage of central. IIUC, central is mirrored all over the world, one server being down probably just means it gets taken out of rotation and no one notices. The what if style arguments are a PITA... What if the cold war starts back up and our colo facility gets nuked?!! Will the builds fail? Of course they will, but I prefer to worry about making my day-to-day easier than worrying about all of the things that *could* make it harder. - Ok, so we can have proxies, but then we have to maintain them. Lots of work. See my answer to question 1. Rather than a proxy, get nexus. I run a repository manager for myself and my team in my office, as well as one at home. It's not that much work at all. - Not checked into CVS??? That's not good. Not comfortable without having a complete set of artifacts in a SAFE place. Not comfortable! Who says things aren't checked into CVS? As I mentioned before, you will end up with all of the jars you need distributed on machines all over your network. In fact, that is one of the things I have had to deal with before. Since ~/.m2 translates to c:\Documents and Settings\Username on modern windows machines, a few developers ended up with roaming profiles exceeding a few gigabytes. Anyhow, I can't force you to be comfortable with something, but if you must, then just have the build server check-in it's ~/.m2 directory on a regular basis. - Your pom.xml only shows those dependencies your project is directed dependent upon. Fine. But what about all other dependencies that your dependencies depend upon? Know who they, get them and put in CVS!! You can check-in the ~/.m2 if it's a requirement. I think many people will agree that it's a waste of time, but YMMV. Not sure if any of you have encountered these challenges. Please give me some suggestions. -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
useProjectArtifact and repository section
I was kindly advised to use repository/ section instead of dependencySet/ in order to get the repository layout (groupId with path separator) but project itself doesn't seem to be included. Weird thing is that POM of the project get's included. I noticed also that the following options are not available. useProjectArtifact/ useProjectAttachments/ useTransitiveDependencies/ useTransitiveFiltering/ I currently have to hardcode the project artifact (and attachments) to correct location using dependencySet/ (this missing the *.sha1 and *.md5 files) but I wonder if there is a better approach. It is also bit odd to me that project is half way included, since I see that jar plugin being executed prior assembly plugin -- Tuomas -- View this message in context: http://www.nabble.com/useProjectArtifact-and-repository-section-tp23877011p23877011.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Problem with Tables, Doxia, APT Maven site and PDF/RTF generation
Hi all I have a Maven site based on .apt files. I have also created a book descriptor for the same site. When I process the site, I get the error below. I have tried the latest Doxia 1.1.1-SNAPSHOT out of the svn repo today. I have also looked at the iText code. The latest is 2.1.5. Doxia seems to be using 1.4, and won't compile with iText 2.1.5. The intermediate xml seems to generated without problems. It is the xml-pdf/rtf stage that seems to have problems. Any ideas anyone please? Thanks Nathan task-segment: [site] [INFO] [INFO] [doxia:render-books {execution: default}] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] com.lowagie.text.Table [INFO] [INFO] Trace java.lang.ClassCastException: com.lowagie.text.Table at com.lowagie.text.xml.SAXiTextHandler.handleEndingTags(Unknown Source) at com.lowagie.text.xml.SAXiTextHandler.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) at com.lowagie.text.xml.XmlParser.go(Unknown Source) at com.lowagie.text.xml.XmlParser.parse(Unknown Source) at com.lowagie.text.xml.XmlToXXX.parse(Unknown Source) at org.apache.maven.doxia.module.itext.ITextUtil.writePdf(ITextUtil.java:118) at org.apache.maven.doxia.book.services.renderer.PdfBookRenderer.renderXML(PdfBookRenderer.java:50) at org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.renderBook(AbstractITextBookRenderer.java:163) at org.apache.maven.doxia.book.DefaultBookDoxia.renderBook(DefaultBookDoxia.java:142) at org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo.execute(DoxiaRenderBooksMojo.java:265) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) 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:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Thu Jun 04 22:10:19 CEST 2009 [INFO] Final Memory: 9M/17M [INFO] bash-3.2$
Re: Need to convince my manager to switch to maven
See below for my comments. -Dave On Thu, Jun 4, 2009 at 1:50 PM, scabbage guans...@gmail.com wrote: Our group does release engineering and we have a Jave project that gets build every night. Our java source code and lib jars are checked into CVS. Every night we do a sync and build. As a Java developer, I have a hard time managing/upgrading my Java libs. In the process of switching to Maven, I have to convince my team that Maven is the right tool to use. But many concerns have been raised. For example: - What if the central repo goes down? We'll end up with broken builds and the QEs will go crazy at us! [dh] Not likely. We use the open source Artifactory maven proxy so you will only ever download something once. Not much of a concern, now its your job to keep your server up. - Ok, so we can have proxies, but then we have to maintain them. Lots of work. [dh] No, very little work. Set it up and is very little maintenance. You can even configure it to create exports of all artifacts for backup. - Not checked into CVS??? That's not good. Not comfortable without having a complete set of artifacts in a SAFE place. Not comfortable! [dh] Artifactory can be just as safe as CVS. - Your pom.xml only shows those dependencies your project is directed dependent upon. Fine. But what about all other dependencies that your dependencies depend upon? Know who they, get them and put in CVS!! [dh] They are all in your proxy as well as developer repos, not to worry. Not sure if any of you have encountered these challenges. Please give me some suggestions. [dh] These are the easy problems. -- View this message in context: http://www.nabble.com/Need-to-convince-my-manager-to-switch-to-maven-tp23876576p23876576.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Need to convince my manager to switch to maven
See my comments: [gj] -Guillaume From: David Hoffer [mailto:dhoff...@gmail.com] Sent: Thu 6/4/2009 4:33 PM To: Maven Users List Subject: Re: Need to convince my manager to switch to maven See below for my comments. -Dave On Thu, Jun 4, 2009 at 1:50 PM, scabbage guans...@gmail.com wrote: Our group does release engineering and we have a Jave project that gets build every night. Our java source code and lib jars are checked into CVS. Every night we do a sync and build. As a Java developer, I have a hard time managing/upgrading my Java libs. In the process of switching to Maven, I have to convince my team that Maven is the right tool to use. But many concerns have been raised. For example: - What if the central repo goes down? We'll end up with broken builds and the QEs will go crazy at us! [dh] Not likely. We use the open source Artifactory maven proxy so you will only ever download something once. Not much of a concern, now its your job to keep your server up. [gj] we use open source nexus maven repository manager, it is based on flat-file m2 repo making it all the much easier to maintain. - Ok, so we can have proxies, but then we have to maintain them. Lots of work. [dh] No, very little work. Set it up and is very little maintenance. You can even configure it to create exports of all artifacts for backup. [gj] with nexus just setup a tape backup for the underlying nexus repo file store. - Not checked into CVS??? That's not good. Not comfortable without having a complete set of artifacts in a SAFE place. Not comfortable! [dh] Artifactory can be just as safe as CVS. [gj] yep again, nexus is better at this than CVS. CVS is not meant to manage anything other than source code files. - Your pom.xml only shows those dependencies your project is directed dependent upon. Fine. But what about all other dependencies that your dependencies depend upon? Know who they, get them and put in CVS!! [dh] They are all in your proxy as well as developer repos, not to worry. Not sure if any of you have encountered these challenges. Please give me some suggestions. [dh] These are the easy problems. -- View this message in context: http://www.nabble.com/Need-to-convince-my-manager-to-switch-to-maven-tp23876576p23876576.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Exclude dependency from scope runtime test classpath
Well, I guess you could do that by using, couldn't you? Cheers 2009/6/4 ljnelson ljnel...@gmail.com Baptiste MATHUS wrote: I guess you can file an enhancement request for this use, but I'm not sure it would really make sense. Since you're likely to want to test this kind of dependency too in your tests. At least, IMO you'll have to provide a good use case to justify this new feature. Hello; I'd like to add to this issue by supplying a compile-time-only scope use case. When building JPA applications, often one wants to compile in support for all the various annotations from the persistence providers (Hibernate, EclipseLink and OpenJPA). I would like to make it so that all three of these libraries are available only at compile time, but only [i]one[/i] of them is available at test time. Currently I have them all specified as scope=provided, and while that works, I would really like to test my classes in the presence of only one of these libraries, not all three. To put it another way, I want to ensure that although I reference EclipseLink annotations in my project, I don't need EclipseLink on the runtime/test path. I have no way of doing this that I know of inside my Maven project. Thoughts? Thanks, Laird -- View this message in context: http://www.nabble.com/Exclude-dependency-from-scope-runtime-test-classpath-tp23424431p23875222.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: Exclude dependency from scope runtime test classpath
a...@#~$, sorry. I meant by using profiles. This way you could add any dependency with any scope you like under different circumstances. 2009/6/4 Baptiste MATHUS m...@batmat.net Well, I guess you could do that by using, couldn't you? Cheers 2009/6/4 ljnelson ljnel...@gmail.com Baptiste MATHUS wrote: I guess you can file an enhancement request for this use, but I'm not sure it would really make sense. Since you're likely to want to test this kind of dependency too in your tests. At least, IMO you'll have to provide a good use case to justify this new feature. Hello; I'd like to add to this issue by supplying a compile-time-only scope use case. When building JPA applications, often one wants to compile in support for all the various annotations from the persistence providers (Hibernate, EclipseLink and OpenJPA). I would like to make it so that all three of these libraries are available only at compile time, but only [i]one[/i] of them is available at test time. Currently I have them all specified as scope=provided, and while that works, I would really like to test my classes in the presence of only one of these libraries, not all three. To put it another way, I want to ensure that although I reference EclipseLink annotations in my project, I don't need EclipseLink on the runtime/test path. I have no way of doing this that I know of inside my Maven project. Thoughts? Thanks, Laird -- View this message in context: http://www.nabble.com/Exclude-dependency-from-scope-runtime-test-classpath-tp23424431p23875222.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: artifact for jaxb2
http://lmgtfy.com/?q=jaxb+maven+pluginl=1 On Thu, Jun 4, 2009 at 12:38, Koxkorrita koxkorr...@laudio.info wrote: hello i am tring for finding one artifact for generate the classes from one xsd file. my pourpose is into one second step generate one WS using jax-ws but i dont find one artifact for generate , from one xsd, using jasb2, the classes. i have one xsd and i want to use one generate goal for this pourpose. can you help me? thanks - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Exclude dependency from scope runtime test classpath
Baptiste MATHUS wrote: Well, I guess you could do that by using, couldn't you? Not that I can see. I need OpenJPA, Hibernate and EclipseLink classes at compile time no matter what profile(s) may happen to be active, but only, say, OpenJPA at test time. Can profiles do that? If so, how? Thanks, Laird -- View this message in context: http://www.nabble.com/Exclude-dependency-from-scope-runtime-test-classpath-tp23424431p23878578.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
problem upgrading from maven 2.0.9 to 2.1
I'm at my wits end over this. Working behind a corporate firewall, my mvn package command works perfectly when m2 and m2_home and path all point to maven 2.0.9. But if I execute the identical mvn package but with m2, m2_home, and path all pointing to maven 2.1, I get a quick build failure that says there is an authentication problem trying to access the maven repo1 repository. I'm at home and so can't paste the exact error message.
How to efficiently configure a transient repository?
Hi gang, We have a Maven plugin that we use to provide a packaging type for our Integration Test module. It resides in our Nexus repository at the office. When we work there, all is good. When we work at home, however, is a different story. Sometimes we may be connected to the office via our VPN, in which case we can reach the repository. If, on the other hand, I'm not connected then my build hangs for a bit while Maven decides that it cannot reach that repository. It's looking for updates to the plugin. Maybe I've got something configured wrong in the POM, but can't we get it to just use the version in the local repository - the version that it has been told to use? Here's how I reference the plugin in my POM: plugin groupIdcom.allureglobal/groupId artifactIdintegration-tests-packaging-plugin/artifactId version1.2/version extensionstrue/extensions /plugin Seems to me it should *not* be checking for updates, since I have that version in my local repository. Can anyone suggest something that I might look at or do? Thanks, Dave - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: problem upgrading from maven 2.0.9 to 2.1
But if I execute the identical mvn package but with m2, m2_home, and path all pointing to maven 2.1, I get a quick build failure that says there is an authentication problem trying to access the maven repo1 repository. Try again with mvn -X package and see what that says. Paste the output to www.pastebin.org and send us the link if you can't sort it out from the debug output. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to efficiently configure a transient repository?
Hi gang, We have a Maven plugin that we use to provide a packaging type for our Integration Test module. It resides in our Nexus repository at the office. When we work there, all is good. When we work at home, however, is a different story. Sometimes we may be connected to the office via our VPN, in which case we can reach the repository. If, on the other hand, I'm not connected then my build hangs for a bit while Maven decides that it cannot reach that repository. It's looking for updates to the plugin. Maybe I've got something configured wrong in the POM, but can't we get it to just use the version in the local repository - the version that it has been told to use? Here's how I reference the plugin in my POM: plugin groupIdcom.allureglobal/groupId artifactIdintegration-tests-packaging-plugin/artifactId version1.2/version extensionstrue/extensions /plugin Seems to me it should *not* be checking for updates, since I have that version in my local repository. Can anyone suggest something that I might look at or do? Thanks, Dave - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
problem with servlet context in grails app as a module
I have a maven project with a module that is a grails application, and I'm getting different servlet contexts during integration tests depending on where I run mvn install. I have this directory structure for my parent project and grails module: foo-project foo-grails grails-app src target test web-app I added two printlns to the controller: println grailsApplication.mainContext.getResource('/').getFile() println grailsApplicatoin.parentContext.getResource('/').getFile() When I do a mvn install from the grails project, I get the expected paths: c:\projects\foo-project\foo-grails\web-app c:\projects\foo-project\foo-grails\web-app but when I run mvn install from the parent, I get different resource roots: c:\projects\foo-project\web-app c:\projects\foo-project\foo-grails\target\resources There isn't even a web-app directory under foo-project. How do I configure the pom for the parent or the module to make the two cases consistent? Brian
Re: How to efficiently configure a transient repository?
Not quite sure I understand your question, but would the -o argument (offline) work? /Anders On Thu, Jun 4, 2009 at 17:00, David C. Hicksdhi...@i-hicks.org wrote: Hi gang, We have a Maven plugin that we use to provide a packaging type for our Integration Test module. It resides in our Nexus repository at the office. When we work there, all is good. When we work at home, however, is a different story. Sometimes we may be connected to the office via our VPN, in which case we can reach the repository. If, on the other hand, I'm not connected then my build hangs for a bit while Maven decides that it cannot reach that repository. It's looking for updates to the plugin. Maybe I've got something configured wrong in the POM, but can't we get it to just use the version in the local repository - the version that it has been told to use? Here's how I reference the plugin in my POM: plugin groupIdcom.allureglobal/groupId artifactIdintegration-tests-packaging-plugin/artifactId version1.2/version extensionstrue/extensions /plugin Seems to me it should *not* be checking for updates, since I have that version in my local repository. Can anyone suggest something that I might look at or do? Thanks, Dave - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to efficiently configure a transient repository?
On Fri, Jun 5, 2009 at 9:30 AM, David C. Hicks dhi...@i-hicks.org wrote: Hi gang, We have a Maven plugin that we use to provide a packaging type for our Integration Test module. It resides in our Nexus repository at the office. When we work there, all is good. When we work at home, however, is a different story. Sometimes we may be connected to the office via our VPN, in which case we can reach the repository. If, on the other hand, I'm not connected then my build hangs for a bit while Maven decides that it cannot reach that repository. It's looking for updates to the plugin. Maybe I've got something configured wrong in the POM, but can't we get it to just use the version in the local repository - the version that it has been told to use? Here's how I reference the plugin in my POM: plugin groupIdcom.allureglobal/groupId artifactIdintegration-tests-packaging-plugin/artifactId version1.2/version extensionstrue/extensions /plugin Seems to me it should *not* be checking for updates, since I have that version in my local repository. Can anyone suggest something that I might look at or do? See http://maven.apache.org/ref/current/maven-model/maven.html and look at the pluginRepositories section. You could define ab updatePolicy of never and manually use --check-plugin-updates (or -cpu for short) to pull new plugin versions down when you need it. Alternatively you could try --no-plugin-updates (or -npu) to disable plugin checking. I know there are some outstanding issues that 3.0 may be attempting to resolve with plugins and dependencies. As you have noticed even though you have specified the version of the plugin (and you have that version locally) maven still goes off and checks for a newer version. I can't recall why that occurs but believe it is a known problem. Another alternative is to run nexus on you laptop so that it can intercept these issues and stop looking for newer versions. I dont run nexus so I can't help with specifics. There may be multi-hierarchy support available, or else you tweak your settings.xml to switch between your company's nexus and your local nexus when needed. Hope that helps. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org