Re: [m2] maven-antrun-plugin error
Hello, You always encountered some strange trouble :-D May other friends can help you ^_^ I'm very sorry. a cup of Java, cheers! Sha Jiang 秋秋 wrote: HI, jiagsha,Long time no see,I use the maven-antrun-plugin by the method you gave last time,I have done this configuration: plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-resources/phase goals goalrun/goal /goals configuration tasks copy overwrite=true file=WEB-INF/lib/*.* todir=D:\jboss-4.0.4.GA\server\claim\lib\ /copy /tasks /configuration /execution /executions /plugin but when I excute compile,It still report a error: + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\Administrator\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'E:\maven- 2.0.4\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] [INFO] Building pcie Maven Webapp [INFO]task-segment: [compile] [INFO] [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-resources-plugin:maven-plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-site-plugin: resolved to version 2.0-beta-5 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-site-plugin:maven-plugin:2.0-beta-5 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0.1 for project: null:maven-antrun-plugin:maven-plugin:1.1 from the repository. [DEBUG] com.novi.pcie:pcie:war:1.0-SNAPSHOT (selected for null) [DEBUG] test:testrepository:jar:1.0.0:compile (selected for compile) [DEBUG] spring:spring:jar:1.2.0:compile (selected for compile) [DEBUG] junit:junit:jar:3.8.1:test (selected for test) [DEBUG] org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1:runtime(selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: null:maven-project:jar:2.0.1 from the repository. [DEBUG] org.apache.maven:maven-project:jar:2.0.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: org.apache.maven:maven-model:jar:2.0.1 from the repository. [DEBUG] org.apache.maven:maven-model:jar:2.0.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: null:plexus-utils:jar:1.0.5 from the repository. [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (selected for runtime) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: null:maven-profile:jar:2.0.1 from the repository. [DEBUG] org.apache.maven:maven-profile:jar:2.0.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-containers::1.0.3for project: null:plexus-container-default:jar: 1.0-alpha-9 from the repository. [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: org.codehaus.plexus:plexus-containers:pom:1.0.3 from the repository. [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime(selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.0.5) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime(selected
RE: How-to pass variables from one plugin to another
What I want to do is pass ${buildNumber} to the maven jar/ear/war plugins Here is how we use it in jar plugin for example: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestEntries BuildVersion${buildNumber}/BuildVersion BuildDate${date}/BuildDate /manifestEntries /archive /configuration /plugin Best regards, Juri. -Original Message- From: Enrique Gaona [mailto:[EMAIL PROTECTED] Sent: Friday, February 23, 2007 8:42 PM To: Maven Users List Subject: How-to pass variables from one plugin to another Greets, How do I go about setting the value of a variable from 1 plugin and passing that variable to another plugin. If I'm being vague, here are the details:-) I have a custom plugin (buildtools-tag-plugins) where I set the buildNumber instance variable to the current date and time and then I add it to the project hashtable using project.getProperties().put(buildNumber, builddate). What I want to do is pass ${buildNumber} to the maven jar/ear/war plugins as such: manifestEntries Implementation-Build ${buildNumber} /Implementation-Build /manifestEntries In my ear and war MANIFEST files, I only get Implementation-Build: null , while in my jar files MANIFEST files Implementation-Build doesn't even show up. This is how am invoking my build: mvn clean com.ibm.csdp.maven.plugins:buildtools-tag-plugins:tagbuild -Dtagbuild.tagPrefix='CSDP_DEV_tag' antrun:run install rpm:rpm Any help is very much appreciated. Thanks Enrique - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven-antrun-plugin error
Hi Sam, Delete the maven-antrun-plugin directory and start over.. There might have beeen a problem when you downloaded the jar.. Alternatively, write a mojo that requires dependency resolution, iterate the dependecy set, get the files of the artifacts and copy them to the location of your choice. Cheers Jo On 2/26/07, sam [EMAIL PROTECTED] wrote: HI, jiagsha,Long time no see,I use the maven-antrun-plugin by the method you gave last time,I have done this configuration: plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-resources/phase goals goalrun/goal /goals configuration tasks copy overwrite=true file=WEB-INF/lib/*.* todir=D:\jboss-4.0.4.GA\server\claim\lib\ /copy /tasks /configuration /execution /executions /plugin but when I excute compile,It still report a error: + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\Administrator\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'E:\maven- 2.0.4\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] [INFO] Building pcie Maven Webapp [INFO]task-segment: [compile] [INFO] [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1for project: null:maven-resources-plugin:maven-plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-site-plugin: resolved to version 2.0-beta-5 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1for project: null:maven-site-plugin:maven-plugin:2.0-beta-5 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0.1 for project: null:maven-antrun-plugin:maven-plugin:1.1 from the repository. [DEBUG] com.novi.pcie:pcie:war:1.0-SNAPSHOT (selected for null) [DEBUG] test:testrepository:jar:1.0.0:compile (selected for compile) [DEBUG] spring:spring:jar:1.2.0:compile (selected for compile) [DEBUG] junit:junit:jar:3.8.1:test (selected for test) [DEBUG] org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: null:maven-project:jar:2.0.1 from the repository. [DEBUG] org.apache.maven:maven-project:jar:2.0.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: org.apache.maven:maven-model:jar:2.0.1 from the repository. [DEBUG] org.apache.maven:maven-model:jar:2.0.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: null:plexus-utils:jar:1.0.5 from the repository. [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (selected for runtime) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: null:maven-profile:jar:2.0.1 from the repository. [DEBUG] org.apache.maven:maven-profile:jar:2.0.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-containers::1.0.3for project: null:plexus-container-default:jar: 1.0-alpha-9 from the repository. [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: org.codehaus.plexus:plexus-containers:pom:1.0.3 from the repository. [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime(removed - nearer found: 1.0.5) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
Re: [m2] maven-antrun-plugin error
HI, I have resolved the trouble just now.It seems like my ant-1.6.5.jar is incomplete/corrupt,I have downloaded it again,and the trouble has been resolved.but when I excute compile,the new problem was reported: Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) 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: Error executing ant tasks at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks( AbstractAntMojo.java:114) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 16 more *Caused by: Warning: Could not find file D:\workspace\maven_itms\WEB-INF\lib\*.* to copy. at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:394) * at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks( AbstractAntMojo.java:108) ... 19 more of course,there is not a directory *D:\workspace\maven_itms\WEB-INF\lib\*.* ,* * I just want to deploy all of the 3th party jars in the directory $JBOSS_HOME/server/ProjectName/lib. *For now,I have added configuration like this: build plugins . . . plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-resources/phase goals goalrun/goal /goals configuration tasks copy overwrite=true* file=WEB-INF/lib/*.* todir=D:\jboss-4.0.4.GA\server\claim\lib\*/copy /tasks /configuration /execution /executions /plugin /plugins /build 2007/2/26, jiangshachina [EMAIL PROTECTED]: Hello, You always encountered some strange trouble :-D May other friends can help you ^_^ I'm very sorry. a cup of Java, cheers! Sha Jiang 秋秋 wrote: HI, jiagsha,Long time no see,I use the maven-antrun-plugin by the method you gave last time,I have done this configuration: plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-resources/phase goals goalrun/goal /goals configuration tasks copy overwrite=true file=WEB-INF/lib/*.* todir=D:\jboss-4.0.4.GA\server\claim\lib\ /copy /tasks /configuration /execution /executions /plugin but when I excute compile,It still report a error: + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\Administrator\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'E:\maven- 2.0.4\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] [INFO] Building pcie Maven Webapp [INFO]task-segment: [compile] [INFO] [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-resources-plugin:maven-plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project:
Re: 2 modello questions
Any suggestions? Even if it is a better place to post these questions? Thanks, Tim Tim Moloney wrote: 1) How do you write a .mdo file to implement the following XML? root element attr1=value1 attr2=value2element text/element /root To get the attributes, you have to define a class. However, a class appears to only support attributes and child elements. 2) Is it possible to add something to a .mdo file to have implements Comparable added to a generated class definition? Thanks, Tim - 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: 2 modello questions
Hi Tim, I have no experience with the modello plugin, but you could always contact one of the developers directly.. http://dcabasson.developpez.com/maven/modello-maven-plugin/team-list.html Cheers Jo On 2/26/07, Tim Moloney [EMAIL PROTECTED] wrote: Any suggestions? Even if it is a better place to post these questions? Thanks, Tim Tim Moloney wrote: 1) How do you write a .mdo file to implement the following XML? root element attr1=value1 attr2=value2element text/element /root To get the attributes, you have to define a class. However, a class appears to only support attributes and child elements. 2) Is it possible to add something to a .mdo file to have implements Comparable added to a generated class definition? Thanks, Tim - 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]
How to deploy all of the 3th party jars under the Jboss directory ?please.
Hello, Everybody! ,I have create a webapp project,I want to deploy all of the 3th party jars in the directory $JBOSS_HOME/server/ProjectName/lib,How can I do?What plugins can I use?please help. thanks in advance.
Re: [m2] How to deploy all of the 3th party jars under the Jboss directory ?please.
Hello, Deploys all jars at one time? How do you set groupId, artifactId, version for each jar file? Maven central repo(and other public remote repos) have had so many jars, I think you really can find your like. Although some of artifacts don't exist in the repos, you just deploy/install them by manual at the first time. After all of artifacts are in ready, you don't need to care them again. a cup of Java, cheers! Sha Jiang 秋秋 wrote: Hello, Everybody! ,I have create a webapp project,I want to deploy all of the 3th party jars in the directory $JBOSS_HOME/server/ProjectName/lib,How can I do?What plugins can I use?please help. thanks in advance. -- View this message in context: http://www.nabble.com/How-to-deploy-all-of-the-3th-party-jars-under-the-Jboss-directory--please.-tf3291868s177.html#a9156472 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: HowTo access project version programmatically in application
Thanks for Your reply, it works now Roland Jason van Zyl schrieb: On 22 Feb 07, at 11:02 AM 22 Feb 07, Roland Klein wrote: Hi, HowTo access project version programmatically in application? Every JAR created with Maven embeds a properties which you can use to get the version from. This is what we do: http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java Jason. At the moment we enter the version string manually in one of our classes. Is there a way to access the project version at runtime? One of my thoughts are to generate a Version class holding the version string, but is there a more convenient way? Thanks in advance Roland --Roland Klein Tel: +49 40 65803 209 Fax: +49 40 65803 392 [EMAIL PROTECTED] MTG Marinetechnik GmbH - Wandsbeker Koenigstr. 62 - D 22041 Hamburg GF Dipl.-Ing. Ullrich Keil Handelsregister: Abt. B Nr. 11 500 - Amtsgericht Hamburg Abt. 66 USt.-IdNr.: DE 1186 70571 - 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] -- Roland Klein Tel: +49 40 65803 209 Fax: +49 40 65803 392 [EMAIL PROTECTED] MTG Marinetechnik GmbH - Wandsbeker Koenigstr. 62 - D 22041 Hamburg GF Dipl.-Ing. Ullrich Keil Handelsregister: Abt. B Nr. 11 500 - Amtsgericht Hamburg Abt. 66 USt.-IdNr.: DE 1186 70571 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying to File System
Can we see the related part in your pom.xml ? Maruf Jörg Schaible wrote: mark_in_gr wrote on Friday, February 23, 2007 6:53 PM: I have a pom.xml with basic distributionManagement settings which should copy an artifact to a directory on my local filesystem, however, no artifact is being sent there. The child id element value under distributionManagement section matches an id value in my settings.xml file. Why is this file not being copied to the location specified by the distributionManagementurl value? You have used a wrong URL? This is not polemic, deployment to the file system works pretty well for us. Mots time people have problems with it, is because of an invalid URL. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] First release of Patchwork coverage maven plugin
Hi! Just wanted to try out the patchwork-maven-plugin but it fails with the following exception (actually it doesn't fail, but maven says Build Successful. However, I didn't get a report): $ mvn patchwork:test [...] Error while defining at.co.xss.emcs.tg.dsp.EmcsDatasetProducer java.lang.NoClassDefFoundError: de/laures/cewolf/DatasetProducer at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at oqube.bytes.loading.ByteArrayClassLoader.buildClass(ByteArrayClassLoader.java:76) at oqube.bytes.loading.ByteArrayClassLoader.findClass(ByteArrayClassLoader.java:128) at fr.lifl.utils.CompoundClassLoader.findClass(CompoundClassLoader.java:76) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at oqube.bytes.loading.ByteArrayClassLoader.buildClass(ByteArrayClassLoader.java:76) at oqube.bytes.loading.ByteArrayClassLoader.findClass(ByteArrayClassLoader.java:128) at fr.lifl.utils.CompoundClassLoader.findClass(CompoundClassLoader.java:76) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at oqube.bytes.loading.ByteArrayClassLoader.buildClass(ByteArrayClassLoader.java:76) at oqube.bytes.loading.ByteArrayClassLoader.findClass(ByteArrayClassLoader.java:128) at fr.lifl.utils.CompoundClassLoader.findClass(CompoundClassLoader.java:76) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.getConstructor(Class.java:1629) at junit.framework.TestSuite.getTestConstructor(TestSuite.java:177) at junit.framework.TestSuite.init(TestSuite.java:59) at oqube.patchwork.test.JUnitRunner.runSuite(JUnitRunner.java:100) at oqube.patchwork.TestRunner.test(TestRunner.java:350) at oqube.patchwork.TestRunner.run(TestRunner.java:510) at oqube.patchwork.maven.PatchworkMojo.execute(PatchworkMojo.java:184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) 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) The missing class de.laures.cewolf.DatasetProducer is an interface from a third-party dependency which is defined with scope 'compile'
[m2.0.5] Javadoc generation for older code
Hi, we're developing using JDK 1.4, and unfortunately someone uses enum as a variable name somewhere in one of his source files. Since enum is a reserved keyword for Java 5 and higher, executing javadoc results in a couple of errors: (...) Loading source files for package ukv.lrkern... d:\workspaces\sukv-maven\CAccess\src\ukv\lrkern\LRKern.java:10948: as of release 5, 'enum' is a keyword, and may not be used as an identifier (use -source 1.4 or lower to use 'enum' as an identifier) Enumeration enum = map.keys(); etc. In the reportings section in my pom.xml I added plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId version2.2/version configuration source1.4/source /configuration /plugin but that didn't help. When I execute Javadoc in the command line using the -source 1.4 parameter, the errors remain (although the program tells me to add this parameter...). Until the corresponding classes are updated or refactored, how can I let Javadoc generate the API documentation? Regards Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven-antrun-plugin error
What do you mean /of course,there is not a directory *D:\workspace\maven_itms\WEB-INF\lib\*.*/ ? The following configuration means there is WEB-INF directory at the same level with your pom.xml. It cannot find the WEB-INF/lib/*.* directory. Try use exact path to WEB-INF directory on your file system in the following part. Try to copy overwrite=true file=WEB-INF/lib/*.* todir=D:\jboss-4.0.4.GA\server\claim\lib\ /copy Maruf sam wrote: HI, I have resolved the trouble just now.It seems like my ant-1.6.5.jar is incomplete/corrupt,I have downloaded it again,and the trouble has been resolved.but when I excute compile,the new problem was reported: Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) 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: Error executing ant tasks at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks( AbstractAntMojo.java:114) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 16 more *Caused by: Warning: Could not find file D:\workspace\maven_itms\WEB-INF\lib\*.* to copy. at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:394) * at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks( AbstractAntMojo.java:108) ... 19 more of course,there is not a directory *D:\workspace\maven_itms\WEB-INF\lib\*.* ,* * I just want to deploy all of the 3th party jars in the directory $JBOSS_HOME/server/ProjectName/lib. * For now,I have added configuration like this: build plugins . . . plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-resources/phase goals goalrun/goal /goals configuration tasks copy overwrite=true* file=WEB-INF/lib/*.* todir=D:\jboss-4.0.4.GA\server\claim\lib\*/copy /tasks /configuration /execution /executions /plugin /plugins /build 2007/2/26, jiangshachina [EMAIL PROTECTED]: Hello, You always encountered some strange trouble :-D May other friends can help you ^_^ I'm very sorry. a cup of Java, cheers! Sha Jiang 秋秋 wrote: HI, jiagsha,Long time no see,I use the maven-antrun-plugin by the method you gave last time,I have done this configuration: plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-resources/phase goals goalrun/goal /goals configuration tasks copy overwrite=true file=WEB-INF/lib/*.* todir=D:\jboss-4.0.4.GA\server\claim\lib\ /copy /tasks /configuration /execution /executions /plugin but when I excute compile,It still report a error: + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\Administrator\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'E:\maven- 2.0.4\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] [INFO] Building pcie Maven Webapp [INFO] task-segment: [compile] [INFO] [DEBUG]
RE: 2 modello questions
Hi Jo, Jo Vandermeeren wrote on Monday, February 26, 2007 9:52 AM: Hi Tim, I have no experience with the modello plugin, but you could always contact one of the developers directly.. http://dcabasson.developpez.com/maven/modello-maven-plugin/tea m-list.html No, it is *awlays* a very bad idea to contact the devs directly, especially if the project clearly states, that it has a mailing list: http://dcabasson.developpez.com/maven/modello-maven-plugin/mail-lists.html [snip] - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deploying to File System
Ahmet Aytekin wrote on Monday, February 26, 2007 11:49 AM: Can we see the related part in your pom.xml ? Show us yours, if your URL is invalid, it is easier to poin t it out directly. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2.0.5] Javadoc generation for older code
Hi Thorsten, 2007/2/26, Thorsten Heit [EMAIL PROTECTED]: Hi, we're developing using JDK 1.4, and unfortunately someone uses enum as a variable name somewhere in one of his source files. Since enum is a reserved keyword for Java 5 and higher, executing javadoc results in a couple of errors: (...) Loading source files for package ukv.lrkern... d:\workspaces\sukv-maven\CAccess\src\ukv\lrkern\LRKern.java:10948: as of release 5, 'enum' is a keyword, and may not be used as an identifier (use -source 1.4 or lower to use 'enum' as an identifier) Enumeration enum = map.keys(); etc. In the reportings section in my pom.xml I added plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId version2.2/version configuration source1.4/source /configuration /plugin but that didn't help. When I execute Javadoc in the command line using the -source 1.4 parameter, the errors remain (although the program tells me to add this parameter...). Until the corresponding classes are updated or refactored, how can I let Javadoc generate the API documentation? Add -Ddebug=true http://maven.apache.org/plugins/maven-javadoc-plugin/faq.html#How%20to%20know%20exactly%20the%20Javadoc%20command%20line Cheers, Vincent Regards Thorsten - 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: 2 modello questions
2007/2/24, Tim Moloney [EMAIL PROTECTED]: 1) How do you write a .mdo file to implement the following XML? root element attr1=value1 attr2=value2element text/element /root To get the attributes, you have to define a class. However, a class appears to only support attributes and child elements. yes 2) Is it possible to add something to a .mdo file to have implements Comparable added to a generated class definition? Yes by using interfaces/ Cheers, Vincent Thanks, Tim - 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: 2 modello questions
2007/2/26, Jörg Schaible [EMAIL PROTECTED]: Hi Jo, Jo Vandermeeren wrote on Monday, February 26, 2007 9:52 AM: Hi Tim, I have no experience with the modello plugin, but you could always contact one of the developers directly.. http://dcabasson.developpez.com/maven/modello-maven-plugin/tea m-list.html No, it is *awlays* a very bad idea to contact the devs directly, especially if the project clearly states, that it has a mailing list: http://dcabasson.developpez.com/maven/modello-maven-plugin/mail-lists.html Agree! Cheers, Vincent [snip] - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2.0.5] Javadoc generation for older code
Hi Vincent, Until the corresponding classes are updated or refactored, how can I let Javadoc generate the API documentation? Add -Ddebug=true http://maven.apache.org/plugins/maven-javadoc-plugin/faq.html#How%20to%20know%20exactly%20the%20Javadoc%20command%20line The parameters listed there are basically the same that I already tried on the command line but that also doesn't work: % javadoc -source 1.4 -sourcepath src/ -d target/site/apidocs/ package list Loading source files for package ukv.lrkern... d:\workspaces\sukv-maven\CAccess\src\ukv\lrkern\LRKern.java:10948: as of release 5, 'enum' is a keyword, and may not be used as an identifier (use -source 1.4 or lower to use 'enum' as an identifier) Enumeration enum = map.keys(); ^ etc. Isn't there a trick to force the Javadoc command to ignore JDK = 1.5 keywords? Regards Thorsten PS: I'm using JDK 6 as default JDK on my machine (Windows XP). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transitive Dependencies
No this will not error out. Transitive dependencies are added to the compile classpath, so compilation will succeed. However, it is best practice to explicitly declare all direct dependencies for a project. Yes, it's true but I think it's interesting to have a plugin that analyze your project and generate an HTML report with potentials problems like used undeclared dependencies, unused declared dependencies... For the moment, you can use the maven-dependency-analyzer-plugin ([1]) mvn dependency-analyzer:analyze [...] [INFO] [dependency-analyzer:analyze] [INFO] Used declared dependencies: [INFO]junit:junit:jar:3.8.2:test [INFO] Used undeclared dependencies: [INFO]log4j:log4j:jar:1.2.14:compile [INFO] Unused declared dependencies: [INFO]test.mutlimodules.dependencies:module1:jar:1.0-SNAPSHOT:compile [...] it not works with multi-modules project, you have to execute the command in each module. HTH, Rémy [1] http://www.nabble.com/unused-dependencies-tf3265948s177.html#a9078769
Re: 2 modello questions
Whoops.. I assumed too quickly that the mailing list section of the url I pasted contained the same thing as on http://maven.apache.org/maven-1.x/plugins/modello/mail-lists.html.. Which is the maven user list. Well.. Now I know :) Cheers Jo On 2/26/07, Jörg Schaible [EMAIL PROTECTED] wrote: Hi Jo, Jo Vandermeeren wrote on Monday, February 26, 2007 9:52 AM: Hi Tim, I have no experience with the modello plugin, but you could always contact one of the developers directly.. http://dcabasson.developpez.com/maven/modello-maven-plugin/tea m-list.html No, it is *awlays* a very bad idea to contact the devs directly, especially if the project clearly states, that it has a mailing list: http://dcabasson.developpez.com/maven/modello-maven-plugin/mail-lists.html [snip] - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
packaging jar files ...
Hi, say, I have projects A, B, C, all subprojects of project D, each creating its own class files. How can maven package the class files of all three projects into one jar archive ? Any ideas ? TIA Armin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] First release of Patchwork coverage maven plugin
Martin Hoeller [EMAIL PROTECTED] writes: Hi! Just wanted to try out the patchwork-maven-plugin but it fails with the following exception (actually it doesn't fail, but maven says Build Successful. However, I didn't get a report): Hello Martin, Thank you for trying patchwork. The missing class de.laures.cewolf.DatasetProducer is an interface from a third-party dependency which is defined with scope 'compile' in my pom.xml. It seems that the corresponding JAR is not in the classpath. I can see the problem and will fix it for next release. As for the Build Succesful, I do not feel sensible right now to make the build fail due to errors in my plugin ! BTW, I have set up a google group for exchanging on pathcwork. The mail address is : [EMAIL PROTECTED] and the home page is http://groups.google.com/group/patchwork-users Regards, -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2.0.5] Javadoc generation for older code
Hi Thorsten, 2007/2/26, Thorsten Heit [EMAIL PROTECTED]: Hi Vincent, Until the corresponding classes are updated or refactored, how can I let Javadoc generate the API documentation? Add -Ddebug=true http://maven.apache.org/plugins/maven-javadoc-plugin/faq.html#How%20to%20know%20exactly%20the%20Javadoc%20command%20line The parameters listed there are basically the same that I already tried on the command line but that also doesn't work: % javadoc -source 1.4 -sourcepath src/ -d target/site/apidocs/ package list Loading source files for package ukv.lrkern... d:\workspaces\sukv-maven\CAccess\src\ukv\lrkern\LRKern.java:10948: as of release 5, 'enum' is a keyword, and may not be used as an identifier (use -source 1.4 or lower to use 'enum' as an identifier) Enumeration enum = map.keys(); ^ etc. Isn't there a trick to force the Javadoc command to ignore JDK = 1.5 keywords? No AFAIK Regards Thorsten PS: I'm using JDK 6 as default JDK on my machine (Windows XP). Sounds like http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6507179 Cheers, Vincent - 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: Deploying to File System
mark_in_gr wrote: I have a pom.xml with basic distributionManagement settings which should copy an artifact to a directory on my local filesystem, however, no artifact is being sent there. The child id element value under distributionManagement section matches an id value in my settings.xml file. Why is this file not being copied to the location specified by the distributionManagementurl value? Did you include the file:// prefix as shown below? urlfile:///path/to/repo/url (this is a *NIX style path...) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie question: single project spanning multiple repository locations
Hi, we have an older project that -unfortunately- spans multiple repository locations: scm:svn://ourserver.com/repositories/ABRAHAM/basis/trunk/ scm:svn://ourserver.com/repositories/ABRAHAM/dev/trunk/ scm:svn://ourserver.com/repositories/ABRAHAM/access/trunk/ scm:svn://ourserver.com/repositories/ABRAHAM/hwm/trunk/ The main build file build.xml resides in basis/trunk. Before the build can beding, all 4 trunks must be checked out to 4 different directories side by side: basis/, dev/, access/ and hwm/. How can I define a single Continuum project for this kind of setup? Thanks, in advance, Dirk.
RE: Deploying to File System
Jonathan Anstey wrote on Monday, February 26, 2007 2:18 PM: mark_in_gr wrote: I have a pom.xml with basic distributionManagement settings which should copy an artifact to a directory on my local filesystem, however, no artifact is being sent there. The child id element value under distributionManagement section matches an id value in my settings.xml file. Why is this file not being copied to the location specified by the distributionManagementurl value? Did you include the file:// prefix as shown below? urlfile:///path/to/repo/url (this is a *NIX style path...) What is path for you? If path does not contain a drive letter, you will find your repo at Windows System Drive:\path\to\repo :) A file URL is assembled by: [protocol][host][local path] e.g: file://localhost/c:\path\to\repo the localhost can be omitted as it is used implicitly, the backslashes in the local path can be replaces by normal slashes. So to address a folder on the network, you may write file:///\\server\folder\path\to\repo which is equivalent to file:/server/folder/path/to/repo (which is what we actually use) Hope this helps. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Deploying to File System
I got it to work using the following format: urlfile://c:/testmavendeploy/url Thanks all for the help. mark_in_gr wrote: I have a pom.xml with basic distributionManagement settings which should copy an artifact to a directory on my local filesystem, however, no artifact is being sent there. The child id element value under distributionManagement section matches an id value in my settings.xml file. Why is this file not being copied to the location specified by the distributionManagementurl value? -- View this message in context: http://www.nabble.com/Deploying-to-File-System-tf3280221s177.html#a9159865 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: [M2] Classpath issue
No, there is definitely only one version in the classpath, and I'm not sure how that would cause a ClassNotFoundException. This is the root exception: Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:1 21) at com.fja.pm.dataaccess.config.Configurator.init(Configurator.java:30) ... 44 more But it only happens in Surefire, runs fine in Eclipse. -Original Message- From: Marcos Silva Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, February 23, 2007 4:44 PM To: Maven Users List Subject: Re: [M2] Classpath issue There is some other version of xerces in your classpath? Kind Regards, On 2/23/07, Siegmann Daniel, NY [EMAIL PROTECTED] wrote: I am trying to convert a project from Maven1 to Maven2. Should be simple, but I am getting a ClassNotFoundException on the following line in my code when running JUnit tests through Maven: XMLReaderFactory.createXMLReader(org.apache.xerces.parsers.SAXParser ) This class is in xerces-2.4.0.jar, I have verified. This is listed as a dependency, and the -X option confirms it should be on the classpath. I built the eclipse files and ran the test, no problem - I had to remove some nested directories listed under resources, but this shouldn't have any effect on class loading. Any ideas what could be causing this problem? I don't even know how to debug this. :( -- Daniel Siegmann FJA-US, Inc. 512 Seventh Ave., New York, NY 10018 (212) 840-2618 ext. 139 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marcos Silva Pereira recife - pe [EMAIL PROTECTED] skype: marcos.silva.pereira http://blastemica.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
scp distribution from Windows XP client
Do I need cygwin installed if I want to use the scp style of distribution from a Windows box? -- View this message in context: http://www.nabble.com/scp-distribution-from-Windows-XP-client-tf3293340s177.html#a9160413 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: How to access test resources with Maven2/surefire?
So nobody here requires additional classpath resources in their tests? Surprising. I created http://jira.codehaus.org/browse/SUREFIRE-294 to track the problem. Thanks, Jim -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent: Friday, February 23, 2007 3:08 PM To: Maven Users List Subject: How to access test resources with Maven2/surefire? All (but Brett in particular, I think), I'm trying to test some SQL queries in my EJB3/JPA app. To do this, I'd like for my unit tests to run against an in-memory Hypersonic database. I configured a persistence unit appropriately in src/test/resources/META-INF/persistence.xml, but alas Surefire can't find it. It can't even find the real one in src/main/resources/META-INF/persistence.xml. So how can I make Surefire access my classpath resources? Anybody out there test JPA stuff with Surefire successfully? It seems there are quite a few JIRA issues about Surefire and classpath stuff. I have a very simple testcase demonstrating the problem. To which issue should I attach it? Thanks, Jim - 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: scp distribution from Windows XP client
mark_in_gr wrote: Do I need cygwin installed if I want to use the scp style of distribution from a Windows box? I think the answer to your question is no. Check out the 'ssh or scp on windows' thread: http://mail-archives.apache.org/mod_mbox/maven-users/200306.mbox/[EMAIL PROTECTED] Cheers, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How-to pass variables from one plugin to another
Thank you for the example.. Enrique Artamonov, Juri [EMAIL PROTECTED] none.com To Maven Users List 02/26/2007 02:10 users@maven.apache.org AM cc Subject Please respond to RE: How-to pass variables from one Maven Usersplugin to another List [EMAIL PROTECTED] he.org What I want to do is pass ${buildNumber} to the maven jar/ear/war plugins Here is how we use it in jar plugin for example: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestEntries BuildVersion${buildNumber}/BuildVersion BuildDate${date}/BuildDate /manifestEntries /archive /configuration /plugin Best regards, Juri. -Original Message- From: Enrique Gaona [mailto:[EMAIL PROTECTED] Sent: Friday, February 23, 2007 8:42 PM To: Maven Users List Subject: How-to pass variables from one plugin to another Greets, How do I go about setting the value of a variable from 1 plugin and passing that variable to another plugin. If I'm being vague, here are the details:-) I have a custom plugin (buildtools-tag-plugins) where I set the buildNumber instance variable to the current date and time and then I add it to the project hashtable using project.getProperties().put(buildNumber, builddate). What I want to do is pass ${buildNumber} to the maven jar/ear/war plugins as such: manifestEntries Implementation-Build ${buildNumber} /Implementation-Build /manifestEntries In my ear and war MANIFEST files, I only get Implementation-Build: null , while in my jar files MANIFEST files Implementation-Build doesn't even show up. This is how am invoking my build: mvn clean com.ibm.csdp.maven.plugins:buildtools-tag-plugins:tagbuild -Dtagbuild.tagPrefix='CSDP_DEV_tag' antrun:run install rpm:rpm Any help is very much appreciated. Thanks Enrique - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven script for ANT taskdef
Friends, I had a maven.xml which provides ANT's taskdef feature. But I am getting NullPointerException. Can anyone help to correct the script? The Script in Maven.xml for taskdef is as follows target name=aopc depends=compile taskdef name=aopc classname=org.jboss.aop.ant.AopC classpathref= project.class.path / aopc compilerclasspathref=project.class.path classpathref= project.class.path verbose=true classpath path=${build-classes} / src path=${build-classes} / aoppath path=${build-classes}/jboss-aop.xml / /aopc /target
Binding mojo to process-classes phase
Hello guys, I have seen someone had the same question as I do a few days earlier... but no solution (that I could understand). I have the following mojo: /** * @goal translate * @phase process-classes */ And would like the end-user to only write: plugin groupIdorg.vraptor/groupId artifactIdvatx/artifactId /plugin So the goal translate would be called during the process-classes. It doesnt, of course. I think I might be missing some way to tell maven (in my plugin, and not my user pom.xml) to execute the translate goal during the process-classes phase. If I do plugin groupIdorg.vraptor/groupId artifactIdvatx/artifactId executions execution idannotations to xml/id phaseprocess-classes/phase goals goaltranslate/goal /goals /execution /executions /plugin It works... (of course), as I told maven (in the end-user pom) that it should run the translate goal during such phase. Any other option? In the plugin pom or configuration files? Regards Guilherme Silveira -- View this message in context: http://www.nabble.com/Binding-mojo-to-process-classes-phase-tf3293508s177.html#a9160898 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: Binding mojo to process-classes phase
@phase process-classes means user can skip/omit phase definition in execution. execution element must still in the pom -D On 2/26/07, guilherme_silveira [EMAIL PROTECTED] wrote: Hello guys, I have seen someone had the same question as I do a few days earlier... but no solution (that I could understand). I have the following mojo: /** * @goal translate * @phase process-classes */ And would like the end-user to only write: plugin groupIdorg.vraptor/groupId artifactIdvatx/artifactId /plugin So the goal translate would be called during the process-classes. It doesnt, of course. I think I might be missing some way to tell maven (in my plugin, and not my user pom.xml) to execute the translate goal during the process-classes phase. If I do plugin groupIdorg.vraptor/groupId artifactIdvatx/artifactId executions execution idannotations to xml/id phaseprocess-classes/phase goals goaltranslate/goal /goals /execution /executions /plugin It works... (of course), as I told maven (in the end-user pom) that it should run the translate goal during such phase. Any other option? In the plugin pom or configuration files? Regards Guilherme Silveira -- View this message in context: http://www.nabble.com/Binding-mojo-to-process-classes-phase-tf3293508s177.html#a9160898 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: [m2] Deploying to File System
mark_in_gr wrote on Monday, February 26, 2007 3:37 PM: I got it to work using the following format: urlfile://c:/testmavendeploy/url which is not a proper URL. Proper is urlfile:///c:/testmavendeploy/url - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Binding mojo to process-classes phase
perfect, understood thanks dan tran wrote: @phase process-classes means user can skip/omit phase definition in execution. execution element must still in the pom -D On 2/26/07, guilherme_silveira [EMAIL PROTECTED] wrote: Hello guys, I have seen someone had the same question as I do a few days earlier... but no solution (that I could understand). I have the following mojo: /** * @goal translate * @phase process-classes */ And would like the end-user to only write: plugin groupIdorg.vraptor/groupId artifactIdvatx/artifactId /plugin So the goal translate would be called during the process-classes. It doesnt, of course. I think I might be missing some way to tell maven (in my plugin, and not my user pom.xml) to execute the translate goal during the process-classes phase. If I do plugin groupIdorg.vraptor/groupId artifactIdvatx/artifactId executions execution idannotations to xml/id phaseprocess-classes/phase goals goaltranslate/goal /goals /execution /executions /plugin It works... (of course), as I told maven (in the end-user pom) that it should run the translate goal during such phase. Any other option? In the plugin pom or configuration files? Regards Guilherme Silveira -- View this message in context: http://www.nabble.com/Binding-mojo-to-process-classes-phase-tf3293508s177.html#a9160898 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Binding-mojo-to-process-classes-phase-tf3293508s177.html#a9161098 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: [m2] add resources to surefire execution
On Friday at 8:03am, DT=Dan Tran [EMAIL PROTECTED] wrote: DT perhaps make a request to to surefire plugin to allow addition of classpath DT DT -D DT Bug report exists already: http://jira.codehaus.org/browse/SUREFIRE-118 Please vote for it. -- Haroon Rafique [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] packaging jar files ...
Assuming this is related to maven 2, see: http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/index.html I cannot provide an answer for maven 1; I have not used it. Regards, John Armin Ehrenfels wrote: Hi, say, I have projects A, B, C, all subprojects of project D, each creating its own class files. How can maven package the class files of all three projects into one jar archive ? Any ideas ? TIA Armin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/packaging-jar-files-...-tf3292690s177.html#a9161460 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: [m2] Eclipse, Hibernate Tools
Lally Singh wrote: how do I get maven to do whatever needs to be done to process my hibernate annotations? If you are using java 5 annotations and maven 2: Nothing, aside from compiling with java 5 or better, homing hibernate and java persistence configuration files into src/main/resources directory, and obtaining the hibernate artifacts into your repository. This answer does not apply to javadoc annotations (i.e., source code generation via xdoclet) or maven 1. Annotations are a java language construct and are 'processed' by java compilation. The java compiler puts annotation data into the output class files for the hibernate libraries to read. John -- View this message in context: http://www.nabble.com/Eclipse%2C-Hibernate-Tools-tf3290726s177.html#a9162314 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: [m2] How to deploy all of the 3th party jars under the Jboss directory ?please.
A piece of the puzzle may be the assembly plugin, http://maven.apache.org/plugins/maven-assembly-plugin, to assemble the dependencies of your project into a zip file that you can unzip into your $JBOSS_HOME/server location. Another piece of this puzzle may be the cargo plugin, http://cargo.codehaus.org/Maven2+plugin, which copies down a jboss distribution and configures it. However, I'm not sure if it will allow deploy of a server's lib directory. Regards, John 秋秋 wrote: Hello, Everybody! ,I have create a webapp project,I want to deploy all of the 3th party jars in the directory $JBOSS_HOME/server/ProjectName/lib,How can I do?What plugins can I use?please help. thanks in advance. -- View this message in context: http://www.nabble.com/How-to-deploy-all-of-the-3th-party-jars-under-the-Jboss-directory--please.-tf3291868s177.html#a9161867 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: packaging jar files ...
Hi Armin, Maven produces one artifact per module/project, which is usually the best way to go.. If you do need the dependencies of a module packaged within the final artifact: - for maven 1: check out the uberjar plugin at http://maven.apache.org/maven-1.x/plugins/uberjar/ - for maven 2: configure the assembly plugin appropriately Here's a maven 2 snippet: build plugins !-- snip -- plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorRefs descriptorRefjar-with-dependencies/descriptorRef /descriptorRefs /configuration /plugin !-- snip -- /plugins /build Good luck Jo On 2/26/07, Armin Ehrenfels [EMAIL PROTECTED] wrote: Hi, say, I have projects A, B, C, all subprojects of project D, each creating its own class files. How can maven package the class files of all three projects into one jar archive ? Any ideas ? TIA Armin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Multiple developer dependency management
Hi Jo, Thanks for the help. I thought the local repository was from a team perspective instead of per developer. Cheers, Sander -- View this message in context: http://www.nabble.com/Multiple-developer-dependency-management-tf3284959s177.html#a9162023 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: [m2] Multiple developer dependency management
Hi Sander, Glad you figured it out. Local repositories are for local use.. Since you're setting up a maven environment for your teams, here are some tips.. You'll want to setup a company-wide shared repository via ftp/scp/whatever and put a webserver in front of it. This will be the repository where developers - after defining the repository in settings.xml or pom.xml - will automatically look for artifact updates and missing dependency libraries. It's a good idea to setup a snapshot repository as well, you can can periodically clear this repository since frequent snapshot installs can quickly fill up the disk quota. With the webserver for your shared repositories in place, you have everything needed to host your maven project's website and QA reports.. So you might want to setup distributionManagement in your projects for this as well.. Keeps the docs in sync and the project managers, testers, implementors, etc.. happy ;) You may also want to take a look at maven-proxy to centralize the repository access of released artifacts for your teams. This reduces per-user/project repository configuration and internet access for library downloads.. And while you're at it.. You really want to check out continuum at http://maven.apache.org/continuum/. Continuous integration just feels right and easy with maven, it can automatically keep your website, shared artifacts and container-deployed applications up-to-date with minor effort.. Happy hacking! Jo On 2/26/07, Sander Nieuwenhuizen [EMAIL PROTECTED] wrote: Hi Jo, Thanks for the help. I thought the local repository was from a team perspective instead of per developer. Cheers, Sander -- View this message in context: http://www.nabble.com/Multiple-developer-dependency-management-tf3284959s177.html#a9162023 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: Creation of a tag for a stable 'just works' Archiva version
We are working towards a stable archiva version (alpha) this week. Stay tuned for the tag or release. - Joakim Erdfelt Tomek Korzeniewski wrote: Greetings to the Archiva Team! Would it be possible to create a tag in the svn repo of a stable, 'builds / works without problem after checkout', version of Archiva? I've been looking at the dev forum lately and notice that there are a lot of changes being proposed and ones merged from the archiva MRM-239 branch. After reading the many different wiki entries and posts regarding getting archiva up and running, and the issues users have been having regarding changes made to the trunk I am weary about checking out what is available at the moment. If you already have something of the sort in the pipeline could you please post your plans. Thanks in advance.
Re: [m2] Multiple developer dependency management
On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: You'll want to setup a company-wide shared repository via ftp/scp/whatever and put a webserver in front of it. This will be the repository where developers - after defining the repository in settings.xml or pom.xml - will automatically look for artifact updates and missing dependency libraries. If there is a shared filesystem available to all developers, the remote repo could also be accessed with file:// urls, without getting a webserver involved. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with maven
Hi everybody, I need help. I have the follow problem with Maven. I execute this command. mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk-DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar And I get this error message C:\mvn install:install-file -DgroupId=org.apache. myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion=1.1.4-SNAPSHOT-Dpackag ing=jar -Dfile=c:/tmp/tomahawk-sandbox-1.1.4-SNAPSHOT.jar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri eved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 22 seconds [INFO] Finished at: Fri Feb 23 18:44:35 GMT 2007 [INFO] Final Memory: 1M/2M [INFO] I´m behind a proxy server. I do the proxy configuration in the setting.xml file. When I do a PING in a url in MS_DOS i get the follow error message. www.apache.org with 32 bytes reply the 10.248.0.38: No host available. reply the 10.248.0.38: No host available. reply the 10.248.0.38: No host available. I have now another question. I can do this command only in a msdos prompt mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion=1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar Or exist oder way to do that?? I work here with eclipse. Can please, anyone help me... thank you -- Att. Edney Marcel Imme
Re: Problems with maven
Hi there, 1. You've got network issues.. Contact your network guy for the correct proxy settings. So, get your network and proxy settings up and running and you should be good to go.. 2. Installing an external jar into your repository - like most things in maven - can only be done via the command line interface.. Why would you even want anything else, isn't it ? ;) Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi everybody, I need help. I have the follow problem with Maven. I execute this command. mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk-DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar And I get this error message C:\mvn install:install-file -DgroupId=org.apache. myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT-Dpackag ing=jar -Dfile=c:/tmp/tomahawk-sandbox-1.1.4-SNAPSHOT.jar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri eved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 22 seconds [INFO] Finished at: Fri Feb 23 18:44:35 GMT 2007 [INFO] Final Memory: 1M/2M [INFO] I´m behind a proxy server. I do the proxy configuration in the setting.xml file. When I do a PING in a url in MS_DOS i get the follow error message. www.apache.org with 32 bytes reply the 10.248.0.38: No host available. reply the 10.248.0.38: No host available. reply the 10.248.0.38: No host available. I have now another question. I can do this command only in a msdos prompt mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion=1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar Or exist oder way to do that?? I work here with eclipse. Can please, anyone help me... thank you -- Att. Edney Marcel Imme
Re: Problems with maven
thank Jo But, here, in my company , the network guy can´t change this configuration. Politics from this company. I can access web from MS-DOS. I need a pluggin to do that in eclipse. Sorry On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi there, 1. You've got network issues.. Contact your network guy for the correct proxy settings. So, get your network and proxy settings up and running and you should be good to go.. 2. Installing an external jar into your repository - like most things in maven - can only be done via the command line interface.. Why would you even want anything else, isn't it ? ;) Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi everybody, I need help. I have the follow problem with Maven. I execute this command. mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk-DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar And I get this error message C:\mvn install:install-file -DgroupId=org.apache. myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT-Dpackag ing=jar -Dfile=c:/tmp/tomahawk-sandbox-1.1.4-SNAPSHOT.jar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri eved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 22 seconds [INFO] Finished at: Fri Feb 23 18:44:35 GMT 2007 [INFO] Final Memory: 1M/2M [INFO] I´m behind a proxy server. I do the proxy configuration in the setting.xml file. When I do a PING in a url in MS_DOS i get the follow error message. www.apache.org with 32 bytes reply the 10.248.0.38: No host available. reply the 10.248.0.38: No host available. reply the 10.248.0.38: No host available. I have now another question. I can do this command only in a msdos prompt mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion=1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar Or exist oder way to do that?? I work here with eclipse. Can please, anyone help me... thank you -- Att. Edney Marcel Imme -- Att. Edney Marcel Imme
Re: Problems with maven
You need to get the proxy settings from IE, then you need to set Maven to use that same proxy server just like IE does. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: thank Jo But, here, in my company , the network guy can´t change this configuration. Politics from this company. I can access web from MS-DOS. I need a pluggin to do that in eclipse. Sorry On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi there, 1. You've got network issues.. Contact your network guy for the correct proxy settings. So, get your network and proxy settings up and running and you should be good to go.. 2. Installing an external jar into your repository - like most things in maven - can only be done via the command line interface.. Why would you even want anything else, isn't it ? ;) Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi everybody, I need help. I have the follow problem with Maven. I execute this command. mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk-DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar And I get this error message C:\mvn install:install-file -DgroupId=org.apache. myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT-Dpackag ing=jar -Dfile=c:/tmp/tomahawk-sandbox-1.1.4-SNAPSHOT.jar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri eved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 22 seconds [INFO] Finished at: Fri Feb 23 18:44:35 GMT 2007 [INFO] Final Memory: 1M/2M [INFO] I´m behind a proxy server. I do the proxy configuration in the setting.xml file. When I do a PING in a url in MS_DOS i get the follow error message. www.apache.org with 32 bytes reply the 10.248.0.38: No host available. reply the 10.248.0.38: No host available. reply the 10.248.0.38: No host available. I have now another question. I can do this command only in a msdos prompt mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion=1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar Or exist oder way to do that?? I work here with eclipse. Can please, anyone help me... thank you -- Att. Edney Marcel Imme -- Att. Edney Marcel Imme -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/djmick_dot_com http://www.thumpradio.com ---
Re: [m2] Multiple developer dependency management
I'm reading the http://www.mergere.com/m2book_download.jsp Better Builds with Maven document (http://www.mergere.com/m2book_download.jsp). I can surely recommend this book to every Maven user. While migrating our Ant projects to Maven 2 I have also setup Continuum for our existing Ant projects. Can't believe how simple it is. The Maven dependency management as such is rather straightforward. Currently reading into using Maven productively from a team point-of-view and release management (i.e. tagging in scm, making reproducable builds, creating documentation, ...). Fun tool, but rather overwhelming at first. In the Ant-world it is nice that it is you that's in full control, but that's also the drawback. The nice thing about Maven is that the whole process has already been designed and standardized and the availability of dozens of plugins. But then comes the challenge to adopt these ideas :) Thanks again, Sander -- View this message in context: http://www.nabble.com/Multiple-developer-dependency-management-tf3284959s177.html#a9163429 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: Problems with maven
Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org/url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories repositories repository releases /releases snapshots enabledfalse/enabled /snapshots idmyfaces.staging/id nameMyFaces Staging Repository/name urlhttp://myfaces.zones.apache.org/dist/maven-repository /url /repository repository idandroMda/id nameAndroMda Repository/name urlhttp://andromda.org/maven2/url releases /releases snapshots enabledfalse/enabled /snapshots /repository /repositories /profile /profiles activeProfiles activeProfileDefault/activeProfile /activeProfiles /settings But, here, my access is restricted to internet from DOS I need a Windows application oder a plugin to eclipse, who i can do the download without command line interface thank. Edney On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: You need to get the proxy settings from IE, then you need to set Maven to use that same proxy server just like IE does. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: thank Jo But, here, in my company , the network guy can´t change this configuration. Politics from this company. I can access web from MS-DOS. I need a pluggin to do that in eclipse. Sorry On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi there, 1. You've got network issues.. Contact your network guy for the correct proxy settings. So, get your network and proxy settings up and running and you should be good to go.. 2. Installing an external jar into your repository - like most things in maven - can only be done via the command line interface.. Why would you even want anything else, isn't it ? ;) Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi everybody, I need help. I have the follow problem with Maven. I execute this command. mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk-DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar And I get this error message C:\mvn install:install-file -DgroupId=org.apache. myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT-Dpackag ing=jar -Dfile=c:/tmp/tomahawk-sandbox-1.1.4-SNAPSHOT.jar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri eved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 22 seconds [INFO] Finished at: Fri Feb 23 18:44:35 GMT 2007 [INFO] Final Memory: 1M/2M [INFO]
Re: Creation of a tag for a stable 'just works' Archiva version
Could you consider my patch to MRM-153 : archiva beeing maven1 compliant is required for me as lot's of my project still use maven1 to build. 2007/2/26, Joakim Erdfelt [EMAIL PROTECTED]: We are working towards a stable archiva version (alpha) this week. Stay tuned for the tag or release. - Joakim Erdfelt Tomek Korzeniewski wrote: Greetings to the Archiva Team! Would it be possible to create a tag in the svn repo of a stable, 'builds / works without problem after checkout', version of Archiva? I've been looking at the dev forum lately and notice that there are a lot of changes being proposed and ones merged from the archiva MRM-239 branch. After reading the many different wiki entries and posts regarding getting archiva up and running, and the issues users have been having regarding changes made to the trunk I am weary about checking out what is available at the moment. If you already have something of the sort in the pipeline could you please post your plans. Thanks in advance.
Re: Problems with maven
Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org/url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories repositories repository releases /releases snapshots enabledfalse/enabled /snapshots idmyfaces.staging/id nameMyFaces Staging Repository/name urlhttp://myfaces.zones.apache.org/dist/maven-repository /url /repository repository idandroMda/id nameAndroMda Repository/name urlhttp://andromda.org/maven2/url releases /releases snapshots enabledfalse/enabled /snapshots /repository /repositories /profile /profiles activeProfiles activeProfileDefault/activeProfile /activeProfiles /settings But, here, my access is restricted to internet from DOS I need a Windows application oder a plugin to eclipse, who i can do the download without command line interface thank. Edney On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: You need to get the proxy settings from IE, then you need to set Maven to use that same proxy server just like IE does. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: thank Jo But, here, in my company , the network guy can´t change this configuration. Politics from this company. I can access web from MS-DOS. I need a pluggin to do that in eclipse. Sorry On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi there, 1. You've got network issues.. Contact your network guy for the correct proxy settings. So, get your network and proxy settings up and running and you should be good to go.. 2. Installing an external jar into your repository - like most things in maven - can only be done via the command line interface.. Why would you even want anything else, isn't it ? ;) Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi everybody, I need help. I have the follow problem with Maven. I execute this command. mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk-DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar And I get this error message C:\mvn install:install-file -DgroupId=org.apache. myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT-Dpackag ing=jar -Dfile=c:/tmp/tomahawk-sandbox-1.1.4-SNAPSHOT.jar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri eved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO]
Re: Problems with maven
If you can get internet acces via DOS, that is command line. You should be able to add this to your settings.xml and add the server and port: proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org/url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories repositories repository releases /releases snapshots enabledfalse/enabled /snapshots idmyfaces.staging/id nameMyFaces Staging Repository/name urlhttp://myfaces.zones.apache.org/dist/maven-repository /url /repository repository idandroMda/id nameAndroMda Repository/name urlhttp://andromda.org/maven2/url releases /releases snapshots enabledfalse/enabled /snapshots /repository /repositories /profile /profiles activeProfiles activeProfileDefault/activeProfile /activeProfiles /settings But, here, my access is restricted to internet from DOS I need a Windows application oder a plugin to eclipse, who i can do the download without command line interface thank. Edney On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: You need to get the proxy settings from IE, then you need to set Maven to use that same proxy server just like IE does. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: thank Jo But, here, in my company , the network guy can´t change this configuration. Politics from this company. I can access web from MS-DOS. I need a pluggin to do that in eclipse. Sorry On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi there, 1. You've got network issues.. Contact your network guy for the correct proxy settings. So, get your network and proxy settings up and running and you should be good to go.. 2. Installing an external jar into your repository - like most things in maven - can only be done via the command line interface.. Why would you even want anything else, isn't it ? ;) Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi everybody, I need help. I have the follow problem with Maven. I execute this command. mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk-DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar And I get this error message C:\mvn install:install-file -DgroupId=org.apache. myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT-Dpackag ing=jar -Dfile=c:/tmp/tomahawk-sandbox-1.1.4-SNAPSHOT.jar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri eved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin
Mutliple Repositories inheritance
Hello, Is it possible to use multiple repositories ? For example : test3 is a module with jar packaging. It has the following dependencies : dependencies dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.3/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdcom.scort.abstractsyntax/groupId artifactIdscortabstractsyntax/artifactId version1.1.0/version /dependency /dependencies So there are commons-logging and scortabstractsyntax needed for compilation. And scortabstractsyntax is an artifact which is hosted on my internal repository, it is on my machine. So i set the repositories element into the POM file : repositories repository idSCORT-INTERNAL-REP-LIB/id nameLocal Repository Lib/name urlhttp://localhost:8080/repositorylib/url layoutdefault/layout /repository /repositories When i execute the command : mvn install, here is the log file : [INFO] Scanning for projects... [INFO] [INFO] Building test3 [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://localhost:8080/repositorylib/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: commons-logging:commons-logging Reason: Error getting POM for 'commons-logging:commons-logging' from the repository: Error transferring file commons-logging:commons-logging:pom:1.0.3 from the specified remote repositories: central (http://repo1.maven.org/maven2), SCORT-INTERNAL-REP-LIB (http://localhost:8080/repositorylib) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Mon Feb 26 18:59:33 CET 2007 [INFO] Final Memory: 3M/6M [INFO] Now if i remove the repositories element and the scortabstractsyntax dependency. It succeeds to download commons-logging. So why ?? Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with maven
Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org/url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories repositories repository releases /releases snapshots enabledfalse/enabled /snapshots idmyfaces.staging/id nameMyFaces Staging Repository/name urlhttp://myfaces.zones.apache.org/dist/maven-repository /url /repository repository idandroMda/id nameAndroMda Repository/name urlhttp://andromda.org/maven2/url releases /releases snapshots enabledfalse/enabled /snapshots /repository /repositories /profile /profiles activeProfiles activeProfileDefault/activeProfile /activeProfiles /settings But, here, my access is restricted to internet from DOS I need a Windows application oder a plugin to eclipse, who i can do the download without command line interface thank. Edney On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: You need to get the proxy settings from IE, then you need to set Maven to use that same proxy server just like IE does. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: thank Jo But, here, in my company , the network guy can´t change this configuration. Politics from this company. I can access web from MS-DOS. I need a pluggin to do that in eclipse. Sorry On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi there, 1. You've got network issues.. Contact your network guy for the correct proxy settings. So, get your network and proxy settings up and running and you should be good to go.. 2. Installing an external jar into your repository - like most things in maven - can only be done via the command line interface.. Why would you even want anything else, isn't it ? ;) Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi everybody, I need help. I have the follow problem with Maven. I execute this command. mvn install:install-file -DgroupId= org.apache.myfaces.tomahawk-DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar And I get this error message C:\mvn install:install-file -DgroupId=org.apache. myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT-Dpackag ing=jar -Dfile=c:/tmp/tomahawk-sandbox-1.1.4-SNAPSHOT.jar [INFO] Scanning for
Re: Problems with maven
Hi, I already do that. I only change this value when i send this to the list. thank. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: If you can get internet acces via DOS, that is command line. You should be able to add this to your settings.xml and add the server and port: proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org/url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories repositories repository releases /releases snapshots enabledfalse/enabled /snapshots idmyfaces.staging/id nameMyFaces Staging Repository/name urlhttp://myfaces.zones.apache.org/dist/maven-repository /url /repository repository idandroMda/id nameAndroMda Repository/name urlhttp://andromda.org/maven2/url releases /releases snapshots enabledfalse/enabled /snapshots /repository /repositories /profile /profiles activeProfiles activeProfileDefault/activeProfile /activeProfiles /settings But, here, my access is restricted to internet from DOS I need a Windows application oder a plugin to eclipse, who i can do the download without command line interface thank. Edney On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: You need to get the proxy settings from IE, then you need to set Maven to use that same proxy server just like IE does. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: thank Jo But, here, in my company , the network guy can´t change this configuration. Politics from this company. I can access web from MS-DOS. I need a pluggin to do that in eclipse. Sorry On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi there, 1. You've got network issues.. Contact your network guy for the correct proxy settings. So, get your network and proxy settings up and running and you should be good to go.. 2. Installing an external jar into your repository - like most things in maven - can only be done via the command line interface.. Why would you even want anything else, isn't it ? ;) Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi everybody, I need help. I have the follow problem with Maven. I execute this command. mvn install:install-file -DgroupId= org.apache.myfaces.tomahawk-DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar http://www.javafree.org/wiki/jar-Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar http://www.javafree.org/wiki/jar And I get this error message C:\mvn install:install-file -DgroupId=org.apache. myfaces.tomahawk -DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT-Dpackag ing=jar -Dfile=c:/tmp/tomahawk-sandbox-1.1.4-SNAPSHOT.jar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri eved from repository: central due to an
Re: Problems with maven
Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org/url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories repositories repository releases /releases snapshots enabledfalse/enabled /snapshots idmyfaces.staging/id nameMyFaces Staging Repository/name url http://myfaces.zones.apache.org/dist/maven-repository /url /repository repository idandroMda/id nameAndroMda Repository/name urlhttp://andromda.org/maven2/url releases /releases snapshots enabledfalse/enabled /snapshots /repository /repositories /profile /profiles activeProfiles activeProfileDefault/activeProfile /activeProfiles /settings But, here, my access is restricted to internet from DOS I need a Windows application oder a plugin to eclipse, who i can do the download without command line interface thank. Edney On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: You need to get the proxy settings from IE, then you need to set Maven to use that same proxy server just like IE does. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: thank Jo But, here, in my company , the network guy can´t change this configuration. Politics from this company. I can access web from MS-DOS. I need a pluggin to do that in eclipse. Sorry On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi there, 1. You've got network issues.. Contact your network guy for the correct proxy settings. So, get your network and proxy settings up and running and you should be good to go.. 2. Installing an external jar into your repository - like most things in maven - can only be done via the command line interface.. Why would you
Re: Problems with maven
if you use the entire server, port, and suername/password What do you get for an error? On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username and password for the Proxy. Or at least where I am at now. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org /url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories repositories repository releases /releases snapshots enabledfalse/enabled /snapshots idmyfaces.staging/id nameMyFaces Staging
Re: Problems with maven
Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org/url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories repositories repository releases /releases snapshots enabledfalse/enabled /snapshots idmyfaces.staging/id nameMyFaces Staging Repository/name url http://myfaces.zones.apache.org/dist/maven-repository /url /repository repository idandroMda/id nameAndroMda Repository/name urlhttp://andromda.org/maven2/url releases /releases snapshots enabledfalse/enabled /snapshots /repository /repositories /profile /profiles activeProfiles activeProfileDefault/activeProfile /activeProfiles /settings But, here, my access is restricted to internet from DOS I need a Windows application oder a plugin to eclipse, who i can do the download without command line interface thank. Edney On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: You need to get the proxy settings from IE, then you need to set Maven to use that same proxy server just like IE does. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: thank Jo But, here, in my company , the network guy can´t change this configuration. Politics from this company. I can access web from MS-DOS. I need a pluggin to do that in eclipse. Sorry On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi there,
Re: Problems with maven
I get the same error Edney On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: if you use the entire server, port, and suername/password What do you get for an error? On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username and password for the Proxy. Or at least where I am at now. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com /nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org /url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories
Re: Problems with maven
Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username and password for the Proxy. Or at least where I am at now. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org/url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories repositories repository releases /releases snapshots enabledfalse/enabled /snapshots idmyfaces.staging/id nameMyFaces Staging Repository/name url http://myfaces.zones.apache.org/dist/maven-repository /url /repository repository idandroMda/id nameAndroMda Repository/name urlhttp://andromda.org/maven2/url releases
[M2] hibernate doclet errors in build due to annotations in code.
I am using annotation in my java code and when I run hibernate doclet on a module that has some annotated code I get the following errors even though the build is successful: Error parsing File E:\SourceCode\NPI\npi_tactical_scm\NPI_Provider\common\services\src\main\java\org\delta\provider\npi\dao\impl\P roviderHistoryDAOImpl.java:Encountered at line 30, column 22. Was expecting one of: IDENTIFIER ... [ ... . ... ( ... -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/djmick_dot_com http://www.thumpradio.com ---
Re: Problems with maven
Attach your entire pom.xml and you scrubbed settings.xml please On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username and password for the Proxy. Or at least where I am at now. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org /url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories repositories repository releases /releases snapshots enabledfalse/enabled /snapshots idmyfaces.staging/id nameMyFaces Staging Repository/name
Re: (important) Copying files from fixed external folder into WAR's /WEB-INF/.
On 2/26/07, Udaybhaskar Sarma Seetamraju [EMAIL PROTECTED] wrote: Hi there, (mailing-list archive does not have a search facility. Google failed to show much for [site: mail-archives.apache.org struts]) With many projects already painfully migrated to maven, its a royal pain to ---copy--- the struts TLDs and DTDs to each developer's folder, for each of the projects. Epecially, since we have so successfully been upgrading to newer versions of struts using Ant's fileSet in such a simple, --STABLE-- and effective manner. While I agree that a general solution to this problem might be useful, I've got a question about your specific use case ... why are you copying the Struts TLDs and DTDs separately? The runtime environment does not need them (unless your servlet container is totally broken about loading resources from inside a jar file), so the only reason I can think that you might want the files separately is for an IDE. Even there, most IDEs have a way to register things external to the project that is worth looking at. As to the general resource copying problem, one thing you can actually do is run Ant scripts in a Maven build, using the antrun plugin. It would be pretty straightforward to use this in the resource-copying phase to execute your own script to copy whatever files you need, to wherever you need, without waiting for Maven to provide a plugin that behaves the way you require. Craig The javaworld article on The Maven 2 POM demystified mentioned the use of |resource targetPath/META-INF/plexus//targetPath| But that didn't work. I had to use a complex workaround that *!*!* may not work for too long *!*!*. resource !-- DOES NOT WORK : targetPath./WEB-INF/./targetPath -- !-- DOES NOT WORK : targetPathWEB-INF/targetPath -- !-- Make sure the value INSIDE targetPath below is IDENTICAL to ${build.finalName} specified above -- targetPath../${TargetName}-${artifactId}-${version}/WEB-INF/targetPath why would ./Fldr and ../Fldr for targetPath, behave in different ways? I am hoping that someone will point me towards a simple and maven-upgrade-safe way to include struts DTDs and TLDs. This stable approach is important for us, because that approach is ALSO DESPERATELY NEEDED for the other DTDs and XSDs that are required under /WEB-INF by the 3rd-party JARs we use. Also, there was mention in a web site about a POM capability like : /dependency scopetld/scope Does this exist, and if so, how to use it, and how to create/get the appropriate JAR to support this? Summary of Issue: Copy files from a fixed external path, into specific paths rooted at /WEB-INF inside the WAR file. The Path within WAR starting at /WEB-INF/classes is no good. Not in our control. Re: struts, we think its easy to keep the dependency version of struts in pom.xml to match the FIXED read-only external folder containing the DTDs and TLDs. Maven version: 2.0.4 j2sdk1.4.2_05 debian Testing Etch In case, there are people like me, I like a long-lasting solution, especially as I am getting older and cannot afford the luxury of revisiting the same problems for each new upgrade. [end] - 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: Problems with maven
Edney, Try running it with debug on and paste the output.. mvn -X install:install-file -DgroupId=org.apache.myfaces.tomahawk-DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar -Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar Cheers Jo On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: Attach your entire pom.xml and you scrubbed settings.xml please On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username and password for the Proxy. Or at least where I am at now. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com /nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org /url
Assembly plugin bug?
I'm trying to use the maven-assembly-plugin to build a zip that contains an install.sh at the top level, along with some arbitrary other artifacts. I want the install.sh source to be filtered so that certain build-time variables will be run-time literals. I've tried to compose an assembly descriptor to do this, but Maven2 is telling me about the Unrecognized tag: 'filtered'. I wonder whether anybody here that is familiar with the maven-assembly-plugin can tell me what I've done wrong? My assembly descriptor looks like the following: assembly idoverlay/id formats formatzip/format /formats fileSets fileSet directorysrc/main/bash/directory filteredtrue/filtered !-- also tried filtered / -- outputDirectory/outputDirectory includes includeinstall.sh/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly Thanks, -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem building war file
Hi, I'm running into problems building my war file. Inside my parent pom, I am adding entry to my manifest file, but when it creates the war file, it complains about an Embedded error. Anyone seen this before? plugin artifactIdmaven-war-plugin/artifactId configuration archive manifestEntries BuildVersion${buildNumber}/BuildVersion /manifestEntries /archive /configuration /plugin [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error assembling WAR Embedded error: The attribute BuildVersion may not occur more than once in the same section [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 minutes 52 seconds [INFO] Finished at: Mon Feb 26 12:28:34 CST 2007 [INFO] Final Memory: 40M/110M [INFO] Thanks Enrique
Re: Creation of a tag for a stable 'just works' Archiva version
Out of curiosity, what's important ... 1) Archiva serving up maven 1 (legacy) layout repositories. (easy / done) 2) Archiva conversion of maven 1 repository to maven 2 repository. (easy / done) 3) Archiva being able to proxy maven 2 content for maven 1 clients. (moderate / needs work) 4) Archiva being able to serve relocated artifacts to maven 1 clients transparently. (moderate / needs work) 5) Archiva gui having ability to artifact relocations. (moderate / needs work) Archiva does not know who is connecting to it. It could be a maven 1 client, it could be a maven 2 client, it could be a user. If we assume that legacy layout repositories are only served to maven 1 clients, then we can handle points 3 and 4 above. But if a maven 2 client uses the legacy repository, then points 3 and 4 could mask and/or hide the relocation warnings on the client side. Is that behavior acceptable? - Joakim nicolas de loof wrote: Could you consider my patch to MRM-153 : archiva beeing maven1 compliant is required for me as lot's of my project still use maven1 to build. 2007/2/26, Joakim Erdfelt [EMAIL PROTECTED]: We are working towards a stable archiva version (alpha) this week. Stay tuned for the tag or release. - Joakim Erdfelt Tomek Korzeniewski wrote: Greetings to the Archiva Team! Would it be possible to create a tag in the svn repo of a stable, 'builds / works without problem after checkout', version of Archiva? I've been looking at the dev forum lately and notice that there are a lot of changes being proposed and ones merged from the archiva MRM-239 branch. After reading the many different wiki entries and posts regarding getting archiva up and running, and the issues users have been having regarding changes made to the trunk I am weary about checking out what is available at the moment. If you already have something of the sort in the pipeline could you please post your plans. Thanks in advance.
Re: [m2] Eclipse, Hibernate Tools
On 2/26/07, John J. Franey [EMAIL PROTECTED] wrote: Lally Singh wrote: how do I get maven to do whatever needs to be done to process my hibernate annotations? If you are using java 5 annotations and maven 2: Nothing, aside from compiling with java 5 or better, homing hibernate and java persistence configuration files into src/main/resources directory, and obtaining the hibernate artifacts into your repository. This answer does not apply to javadoc annotations (i.e., source code generation via xdoclet) or maven 1. Annotations are a java language construct and are 'processed' by java compilation. The java compiler puts annotation data into the output class files for the hibernate libraries to read. Wonderful, thank you. However, nothing's getting generated into src/main/resources (that's just got the original cocoon spring stuff in it). Is there another maven target I should run? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creation of a tag for a stable 'just works' Archiva version
Even if a maven2 client use archiva with legacy layout, it will ask for the POM prior to the artifact JAR, so it will read relocations metadata. Not applying relocation to POM solves the maven1 vs maven2 issue, even if legacy layout request are used. My requirement is for 4) as I have lot's of legacy project that use custom groupId for SUN jars (prior maven had some conventions for them), so I need lot's of duplicated artifacts in my corporate repo. I'm using an old archiva snaphsot - with the /proxy URL - to have only one official JAR. 5) would be great. My snapshot does not even show relocation info from existing POM in the gui (does the latest build do ?). Nico. 2007/2/26, Joakim Erdfelt [EMAIL PROTECTED]: Out of curiosity, what's important ... 1) Archiva serving up maven 1 (legacy) layout repositories. (easy / done) 2) Archiva conversion of maven 1 repository to maven 2 repository. (easy / done) 3) Archiva being able to proxy maven 2 content for maven 1 clients. (moderate / needs work) 4) Archiva being able to serve relocated artifacts to maven 1 clients transparently. (moderate / needs work) 5) Archiva gui having ability to artifact relocations. (moderate / needs work) Archiva does not know who is connecting to it. It could be a maven 1 client, it could be a maven 2 client, it could be a user. If we assume that legacy layout repositories are only served to maven 1 clients, then we can handle points 3 and 4 above. But if a maven 2 client uses the legacy repository, then points 3 and 4 could mask and/or hide the relocation warnings on the client side. Is that behavior acceptable? - Joakim nicolas de loof wrote: Could you consider my patch to MRM-153 : archiva beeing maven1 compliant is required for me as lot's of my project still use maven1 to build. 2007/2/26, Joakim Erdfelt [EMAIL PROTECTED]: We are working towards a stable archiva version (alpha) this week. Stay tuned for the tag or release. - Joakim Erdfelt Tomek Korzeniewski wrote: Greetings to the Archiva Team! Would it be possible to create a tag in the svn repo of a stable, 'builds / works without problem after checkout', version of Archiva? I've been looking at the dev forum lately and notice that there are a lot of changes being proposed and ones merged from the archiva MRM-239 branch. After reading the many different wiki entries and posts regarding getting archiva up and running, and the issues users have been having regarding changes made to the trunk I am weary about checking out what is available at the moment. If you already have something of the sort in the pipeline could you please post your plans. Thanks in advance.
Re: Problems with maven
Hi Jo. Here is it. C:\tmpmvn -X install:install-file -DgroupId= org.apache.myfaces.tomahawk-Dartifa ctId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar -Dfile=c:/tmp/to mahawk-sandbox-1.1.4-SNAPSHOT.jar + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin gs\f0fp083\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'C:\Arquivos de progra mas\Apache Foundation\maven-2.0.4\bin\..\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [DEBUG] maven-install-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest ve rsion org.apache.maven.plugins:maven-install-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-install-pl ugin:pom:LATEST [DEBUG] maven-install-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release v ersion org.apache.maven.plugins:maven-install-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-install-pl ugin:pom:RELEASE [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin ' org.apache.m aven.plugins:maven-install-plugin' does not exist or no valid version could be f ound at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin (Defa ultLifecycleExecutor.java:1281) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor (DefaultLifecycleExecutor.java:1517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy AggregationNeeds(DefaultLifecycleExecutor.java:381) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLi fecycleExecutor.java:135) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.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.version.PluginVersionNotFoundException: The p lugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:225) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:87) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin (DefaultPlug inManager.java:158) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin (Defa ultLifecycleExecutor.java:1252) ... 14 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Feb 26 16:04:10 BRT 2007 [INFO] Final Memory: 1M/2M [INFO] C:\tmp On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney, Try running it with debug on and paste the output.. mvn -X install:install-file -DgroupId=org.apache.myfaces.tomahawk-DartifactId=tomahawk-sandbox -Dversion= 1.1.4-SNAPSHOT -Dpackaging=jar -Dfile=c:/tmp/tomahawk- sandbox-1.1.4-SNAPSHOT.jar Cheers Jo On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: Attach your entire pom.xml and you scrubbed settings.xml please On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy
Re: Assembly plugin bug?
Hi Tommy, That's no bug.. The assembly plugin filters resources on a per-file basis, it doesn't apply filtering on fileSets. So, define a file set for all files that don't need filtering and add excludes for files that you want to filter.. Then, define file elements for the files that you wan to filter and set filtered to true on them.. Here's a snippet: assembly idblabla/id formats formatzip/format /formats fileSets fileSet directory${basedir}/directory includes*.sh/includes excludes excludeinstall.sh/exclude /excludes /fileSet /fileSets files file sourceinstall.sh/source outputDirectory//outputDirectory filteredtrue/filtered /file /files /assembly Cheers Jo On 2/26/07, Tommy Knowlton [EMAIL PROTECTED] wrote: I'm trying to use the maven-assembly-plugin to build a zip that contains an install.sh at the top level, along with some arbitrary other artifacts. I want the install.sh source to be filtered so that certain build-time variables will be run-time literals. I've tried to compose an assembly descriptor to do this, but Maven2 is telling me about the Unrecognized tag: 'filtered'. I wonder whether anybody here that is familiar with the maven-assembly-plugin can tell me what I've done wrong? My assembly descriptor looks like the following: assembly idoverlay/id formats formatzip/format /formats fileSets fileSet directorysrc/main/bash/directory filteredtrue/filtered !-- also tried filtered / -- outputDirectory/outputDirectory includes includeinstall.sh/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly Thanks, -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with maven
That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username and password for the Proxy. Or at least where I am at now. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org/url releases /releases snapshots /snapshots /pluginRepository /pluginRepositories repositories repository releases /releases snapshots enabledfalse/enabled /snapshots idmyfaces.staging/id nameMyFaces Staging Repository/name url http://myfaces.zones.apache.org/dist/maven-repository /url /repository repository idandroMda/id nameAndroMda Repository/name urlhttp://andromda.org/maven2/url releases /releases snapshots enabledfalse/enabled /snapshots /repository /repositories /profile /profiles activeProfiles
Re: Problems with maven
Hello. I don´t have the pom.xml to the file jta.jar The settings.xml is here Obs. sorry with this uggly questions. I´m dummy for maven On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: Attach your entire pom.xml and you scrubbed settings.xml please On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username and password for the Proxy. Or at least where I am at now. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com /nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository idCentral/id urlhttp://repo1.maven.org/maven2/url /pluginRepository pluginRepository idIBiblio/id urlhttp://www.ibiblio.org/maven2/url /pluginRepository pluginRepository idcodehaus snapshot repository/id urlhttp://snapshots.repository.codehaus.org /url releases /releases snapshots /snapshots
(important) Copying files from fixed external folder into WAR's /WEB-INF/.
Hi there, (mailing-list archive does not have a search facility. Google failed to show much for [site: mail-archives.apache.org struts]) With many projects already painfully migrated to maven, its a royal pain to ---copy--- the struts TLDs and DTDs to each developer's folder, for each of the projects. Epecially, since we have so successfully been upgrading to newer versions of struts using Ant's fileSet in such a simple, --STABLE-- and effective manner. The javaworld article on The Maven 2 POM demystified mentioned the use of |resource targetPath/META-INF/plexus//targetPath| But that didn't work. I had to use a complex workaround that *!*!* may not work for too long *!*!*. resource !-- DOES NOT WORK : targetPath./WEB-INF/./targetPath -- !-- DOES NOT WORK : targetPathWEB-INF/targetPath -- !-- Make sure the value INSIDE targetPath below is IDENTICAL to ${build.finalName} specified above -- targetPath../${TargetName}-${artifactId}-${version}/WEB-INF/targetPath why would ./Fldr and ../Fldr for targetPath, behave in different ways? I am hoping that someone will point me towards a simple and maven-upgrade-safe way to include struts DTDs and TLDs. This stable approach is important for us, because that approach is ALSO DESPERATELY NEEDED for the other DTDs and XSDs that are required under /WEB-INF by the 3rd-party JARs we use. Also, there was mention in a web site about a POM capability like : /dependency scopetld/scope Does this exist, and if so, how to use it, and how to create/get the appropriate JAR to support this? Summary of Issue: Copy files from a fixed external path, into specific paths rooted at /WEB-INF inside the WAR file. The Path within WAR starting at /WEB-INF/classes is no good. Not in our control. Re: struts, we think its easy to keep the dependency version of struts in pom.xml to match the FIXED read-only external folder containing the DTDs and TLDs. Maven version: 2.0.4 j2sdk1.4.2_05 debian Testing Etch In case, there are people like me, I like a long-lasting solution, especially as I am getting older and cannot afford the luxury of revisiting the same problems for each new upgrade. [end] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with maven
please send your pom.xml for this maven build. It looks like you might not have the maven-install-plugin defined correctly in your pom. this is in my pom.xml for that plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-install-plugin/artifactId version2.1/version /plugin It is in your [MAVEN PROJECT HOME]/pom.xml where you where running this command from. Also, I put my repositories in my pom.xml like this: repositories repository idBackup/id nameMaven Repository Switchboard/name layoutdefault/layout urlhttp://repo1.maven.org/maven2/url snapshots enabledfalse/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idApache Snapshots/id nameApache Development Repository/name urlhttp://cvs.apache.org/maven-snapshot-repository/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idCodehaus Snapshots/id nameCodehaus/name urlhttp://snapshots.repository.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idMyFaces SNAPSHOT/id nameMyFaces SNAPSHOT Repository/name urlhttp://people.apache.org/repo/m2-snapshot-repository/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idibiblio/id nameibiblio/name urlhttp://www.ibiblio.org/maven2/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository !--repository releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots idapache.snapshots/id nameApache Snapshot Repository/name urlhttp://people.apache.org/repo/m2-snapshot-repository/url /repository-- /repositories pluginRepositories pluginRepository idcentral/id nameMaven Plugin Repository/name layoutdefault/layout urlhttp://repo1.maven.org/maven2/url snapshots enabledtrue/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository pluginRepository idCodehaus Snapshots/id urlhttp://snapshots.repository.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello. I don´t have the pom.xml to the file jta.jar The settings.xml is here Obs. sorry with this uggly questions. I´m dummy for maven On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: Attach your entire pom.xml and you scrubbed settings.xml please On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username and password for the Proxy. Or at least where I am at now. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need
Re: Problems with maven
Sorry mate.. I can't see anything that's obviously incorrect.. Your plugin search doesn't complete, so you must have network issues.. If it was me, I would start over with an empty settings.xml and add only proxy information.. If that works, start adding custom repositories and profiles.. Good luck.. Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello. I don´t have the pom.xml to the file jta.jar The settings.xml is here Obs. sorry with this uggly questions. I´m dummy for maven On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: Attach your entire pom.xml and you scrubbed settings.xml please On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username and password for the Proxy. Or at least where I am at now. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol host proxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com /nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers profiles profile idDefault/id pluginRepositories pluginRepository idAndroMDA/id urlhttp://team.andromda.org/maven2/url releases /releases snapshots /snapshots /pluginRepository pluginRepository
Re: Assembly plugin bug?
Thanks, Jo. I'll give that a try. Perhaps this is what confused me: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Tommy, That's no bug.. The assembly plugin filters resources on a per-file basis, it doesn't apply filtering on fileSets. So, define a file set for all files that don't need filtering and add excludes for files that you want to filter.. Then, define file elements for the files that you wan to filter and set filtered to true on them.. Here's a snippet: assembly idblabla/id formats formatzip/format /formats fileSets fileSet directory${basedir}/directory includes*.sh/includes excludes excludeinstall.sh/exclude /excludes /fileSet /fileSets files file sourceinstall.sh/source outputDirectory//outputDirectory filteredtrue/filtered /file /files /assembly Cheers Jo On 2/26/07, Tommy Knowlton [EMAIL PROTECTED] wrote: I'm trying to use the maven-assembly-plugin to build a zip that contains an install.sh at the top level, along with some arbitrary other artifacts. I want the install.sh source to be filtered so that certain build-time variables will be run-time literals. I've tried to compose an assembly descriptor to do this, but Maven2 is telling me about the Unrecognized tag: 'filtered'. I wonder whether anybody here that is familiar with the maven-assembly-plugin can tell me what I've done wrong? My assembly descriptor looks like the following: assembly idoverlay/id formats formatzip/format /formats fileSets fileSet directorysrc/main/bash/directory filteredtrue/filtered !-- also tried filtered / -- outputDirectory/outputDirectory includes includeinstall.sh/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly Thanks, -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with maven
Hi Mick, Edney is trying to install an external jar into his local repository.. not trying to build a maven project.. For all we know, this might not even be a maven-built jar.. Even if there was a pom, the settings would be irrelevant. The repository definitions in Edney's settings.xml seem to be valid, so I really do think it is a network/proxy issue.. Cheers Jo On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: please send your pom.xml for this maven build. It looks like you might not have the maven-install-plugin defined correctly in your pom. this is in my pom.xml for that plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-install-plugin/artifactId version2.1/version /plugin It is in your [MAVEN PROJECT HOME]/pom.xml where you where running this command from. Also, I put my repositories in my pom.xml like this: repositories repository idBackup/id nameMaven Repository Switchboard/name layoutdefault/layout urlhttp://repo1.maven.org/maven2/url snapshots enabledfalse/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idApache Snapshots/id nameApache Development Repository/name urlhttp://cvs.apache.org/maven-snapshot-repository/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idCodehaus Snapshots/id nameCodehaus/name urlhttp://snapshots.repository.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idMyFaces SNAPSHOT/id nameMyFaces SNAPSHOT Repository/name urlhttp://people.apache.org/repo/m2-snapshot-repository /url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idibiblio/id nameibiblio/name urlhttp://www.ibiblio.org/maven2/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository !--repository releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots idapache.snapshots/id nameApache Snapshot Repository/name urlhttp://people.apache.org/repo/m2-snapshot-repository /url /repository-- /repositories pluginRepositories pluginRepository idcentral/id nameMaven Plugin Repository/name layoutdefault/layout urlhttp://repo1.maven.org/maven2/url snapshots enabledtrue/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository pluginRepository idCodehaus Snapshots/id urlhttp://snapshots.repository.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello. I don´t have the pom.xml to the file jta.jar The settings.xml is here Obs. sorry with this uggly questions. I´m dummy for maven On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: Attach your entire pom.xml and you scrubbed settings.xml please On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username
Re: Problems with maven
What is the difference between repositories and pluginRepositories Edney only has MyFaces as a Repositories entry as apposed to what I have attached On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Sorry mate.. I can't see anything that's obviously incorrect.. Your plugin search doesn't complete, so you must have network issues.. If it was me, I would start over with an empty settings.xml and add only proxy information.. If that works, start adding custom repositories and profiles.. Good luck.. Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello. I don´t have the pom.xml to the file jta.jar The settings.xml is here Obs. sorry with this uggly questions. I´m dummy for maven On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: Attach your entire pom.xml and you scrubbed settings.xml please On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username and password for the Proxy. Or at least where I am at now. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol host proxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com /nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol hostmyproxyserver/host portproxy_port/port /proxy /proxies localRepositoryC:\Documents and Settings\myuser\.m2\repository/localRepository offlinefalse/offline servers server idtomcat_server/id usernametomcatUser/username passwordtomcatPassword/password /server /servers
Re: Problems with maven
But he needs to get certain plugins in order to install into his repository. Thus, having the correct Repositories set in the settings.xml would still be required right? On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Mick, Edney is trying to install an external jar into his local repository.. not trying to build a maven project.. For all we know, this might not even be a maven-built jar.. Even if there was a pom, the settings would be irrelevant. The repository definitions in Edney's settings.xml seem to be valid, so I really do think it is a network/proxy issue.. Cheers Jo On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: please send your pom.xml for this maven build. It looks like you might not have the maven-install-plugin defined correctly in your pom. this is in my pom.xml for that plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-install-plugin/artifactId version2.1/version /plugin It is in your [MAVEN PROJECT HOME]/pom.xml where you where running this command from. Also, I put my repositories in my pom.xml like this: repositories repository idBackup/id nameMaven Repository Switchboard/name layoutdefault/layout urlhttp://repo1.maven.org/maven2/url snapshots enabledfalse/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idApache Snapshots/id nameApache Development Repository/name urlhttp://cvs.apache.org/maven-snapshot-repository/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idCodehaus Snapshots/id nameCodehaus/name urlhttp://snapshots.repository.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idMyFaces SNAPSHOT/id nameMyFaces SNAPSHOT Repository/name urlhttp://people.apache.org/repo/m2-snapshot-repository /url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idibiblio/id nameibiblio/name urlhttp://www.ibiblio.org/maven2/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository !--repository releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots idapache.snapshots/id nameApache Snapshot Repository/name urlhttp://people.apache.org/repo/m2-snapshot-repository /url /repository-- /repositories pluginRepositories pluginRepository idcentral/id nameMaven Plugin Repository/name layoutdefault/layout urlhttp://repo1.maven.org/maven2/url snapshots enabledtrue/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository pluginRepository idCodehaus Snapshots/id urlhttp://snapshots.repository.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello. I don´t have the pom.xml to the file jta.jar The settings.xml is here Obs. sorry with this uggly questions. I´m dummy for maven On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: Attach your entire pom.xml and you scrubbed settings.xml please On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies
Generating APT-files
Hi everybody, I am building a plug-in that generates some APT-files. The thing is, I want it to run when the 'site:site' target is called, but I have no idea on how to achieve this. Can anybody give me some hints as to where to add this plug-in? Or should I re-write it as a reporting-plugin? If so, I'm not sure on how to do this and if I should stick with the APT-output... Any help/thoughts? Thanks. -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with maven
I think the difference is: repositories is used to find jar that you declare as a dependency at your pom.xml pluginRepositories is used to find mv2 plugins that you want to use on your life cycles. -Mensaje original- De: Mick Knutson [mailto:[EMAIL PROTECTED] Enviado el: lun 26/02/2007 20:33 Para: Maven Users List Asunto: Re: Problems with maven What is the difference between repositories and pluginRepositories Edney only has MyFaces as a Repositories entry as apposed to what I have attached On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Sorry mate.. I can't see anything that's obviously incorrect.. Your plugin search doesn't complete, so you must have network issues.. If it was me, I would start over with an empty settings.xml and add only proxy information.. If that works, start adding custom repositories and profiles.. Good luck.. Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello. I don´t have the pom.xml to the file jta.jar The settings.xml is here Obs. sorry with this uggly questions. I´m dummy for maven On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: Attach your entire pom.xml and you scrubbed settings.xml please On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello I do that. and dosn´t work. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: That does not make sense what the network guy is saying. We are only talking about an http connection here. DOS or Java or IE. It is still an http connection. I think you just need to get the proxy server, port NUMBER, then your user name and password for the proxy. Did you try that? proxies proxy activetrue/active protocolhttp/protocol hostproxy.somewhere.com/host port8080/port usernameLAN ID (Username)/username passwordLAN Password/password nonProxyHostswww.google.com|*.somewhere.com/nonProxyHosts /proxy /proxies The difference is sometime you do not need the username and password for the Proxy. Or at least where I am at now. On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hi, I talk now with the guy from network , and he said that the internet access with dos is not allowed. Then, I need to do this with windows. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Edney, The only other thing that I can think of is that you need to supply a username/password for your proxy. Does your proxy server need authentication? If it does, configure it in your settings.xml.. Here's a snippet (which can also be found here: http://maven.apache.org/guides/mini/guide-proxies.html): settings . . proxies proxy activetrue/active protocolhttp/protocol host proxy.somewhere.com/host port8080/port usernameproxyuser/username passwordsomepassword/password nonProxyHostswww.google.com|*.somewhere.com /nonProxyHosts /proxy /proxies . . /settings Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello Jo,. myproxyserver and proxy_port definitely are really not the correct settings:) I change this value. In the correct file I put the information from IE /; Firefox. I can surf in internet with my browser. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Edney.. Is this an exact copy of your settings.xml? Did you fill in the correct proxy host and proxy port for your network? I can assure you that myproxyserver and proxy_port definitely are not the correct settings ;) Are you able to surf the internet at all via Internet Explorer or Firefox? If so, have a look at the settings of your browser, copy the proxy server settings and paste them in the corresponding fields of your settings.xml Good luck Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Ok. I need to do this configuration in settings.xml file? I do that. Here is my setting.xml file ?xml version=1.0 encoding=UTF-8? settings proxies proxy
Re: Problems with maven
Hi Mick, Yes.. That's correct.. He needs to get the install plugin from the maven repository.. The default maven settings will guarantee that you can fetch this plugin as long as your proxy settings are correct and you have network connectivity.. No need to specify a custom pluginRepository for this plugin.. Cheers Jo On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: But he needs to get certain plugins in order to install into his repository. Thus, having the correct Repositories set in the settings.xml would still be required right? On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Mick, Edney is trying to install an external jar into his local repository.. not trying to build a maven project.. For all we know, this might not even be a maven-built jar.. Even if there was a pom, the settings would be irrelevant. The repository definitions in Edney's settings.xml seem to be valid, so I really do think it is a network/proxy issue.. Cheers Jo On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: please send your pom.xml for this maven build. It looks like you might not have the maven-install-plugin defined correctly in your pom. this is in my pom.xml for that plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-install-plugin/artifactId version2.1/version /plugin It is in your [MAVEN PROJECT HOME]/pom.xml where you where running this command from. Also, I put my repositories in my pom.xml like this: repositories repository idBackup/id nameMaven Repository Switchboard/name layoutdefault/layout urlhttp://repo1.maven.org/maven2/url snapshots enabledfalse/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idApache Snapshots/id nameApache Development Repository/name urlhttp://cvs.apache.org/maven-snapshot-repository/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idCodehaus Snapshots/id nameCodehaus/name urlhttp://snapshots.repository.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idMyFaces SNAPSHOT/id nameMyFaces SNAPSHOT Repository/name urlhttp://people.apache.org/repo/m2-snapshot-repository /url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idibiblio/id nameibiblio/name urlhttp://www.ibiblio.org/maven2/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository !--repository releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots idapache.snapshots/id nameApache Snapshot Repository/name urlhttp://people.apache.org/repo/m2-snapshot-repository /url /repository-- /repositories pluginRepositories pluginRepository idcentral/id nameMaven Plugin Repository/name layoutdefault/layout urlhttp://repo1.maven.org/maven2/url snapshots enabledtrue/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository pluginRepository idCodehaus Snapshots/id urlhttp://snapshots.repository.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: Hello. I don´t have the pom.xml to the file jta.jar The settings.xml is here Obs. sorry with this uggly questions. I´m dummy for maven On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: Attach your entire pom.xml and you scrubbed settings.xml please On
Re: Assembly plugin bug?
Yes, that works. And I also verified that the description of the xml on the assembly descriptor web page incorrectly indicates that filtered/ tag is a child of fileSet/. (I didn't think I had hallucinated that...) Thanks again. On 2/26/07, Tommy Knowlton [EMAIL PROTECTED] wrote: Thanks, Jo. I'll give that a try. Perhaps this is what confused me: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Tommy, That's no bug.. The assembly plugin filters resources on a per-file basis, it doesn't apply filtering on fileSets. So, define a file set for all files that don't need filtering and add excludes for files that you want to filter.. Then, define file elements for the files that you wan to filter and set filtered to true on them.. Here's a snippet: assembly idblabla/id formats formatzip/format /formats fileSets fileSet directory${basedir}/directory includes*.sh/includes excludes excludeinstall.sh/exclude /excludes /fileSet /fileSets files file sourceinstall.sh/source outputDirectory//outputDirectory filteredtrue/filtered /file /files /assembly Cheers Jo On 2/26/07, Tommy Knowlton [EMAIL PROTECTED] wrote: I'm trying to use the maven-assembly-plugin to build a zip that contains an install.sh at the top level, along with some arbitrary other artifacts. I want the install.sh source to be filtered so that certain build-time variables will be run-time literals. I've tried to compose an assembly descriptor to do this, but Maven2 is telling me about the Unrecognized tag: 'filtered'. I wonder whether anybody here that is familiar with the maven-assembly-plugin can tell me what I've done wrong? My assembly descriptor looks like the following: assembly idoverlay/id formats formatzip/format /formats fileSets fileSet directorysrc/main/bash/directory filteredtrue/filtered !-- also tried filtered / -- outputDirectory/outputDirectory includes includeinstall.sh/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly Thanks, -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Tommy -- -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with maven
And how i do to get this install plugin from maven repository ??? My proxy settings are correct. I'm sure about that. On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Mick, Yes.. That's correct.. He needs to get the install plugin from the maven repository.. The default maven settings will guarantee that you can fetch this plugin as long as your proxy settings are correct and you have network connectivity.. No need to specify a custom pluginRepository for this plugin.. Cheers Jo On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: But he needs to get certain plugins in order to install into his repository. Thus, having the correct Repositories set in the settings.xml would still be required right? On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Mick, Edney is trying to install an external jar into his local repository.. not trying to build a maven project.. For all we know, this might not even be a maven-built jar.. Even if there was a pom, the settings would be irrelevant. The repository definitions in Edney's settings.xml seem to be valid, so I really do think it is a network/proxy issue.. Cheers Jo On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: please send your pom.xml for this maven build. It looks like you might not have the maven-install-plugin defined correctly in your pom. this is in my pom.xml for that plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-install-plugin/artifactId version2.1/version /plugin It is in your [MAVEN PROJECT HOME]/pom.xml where you where running this command from. Also, I put my repositories in my pom.xml like this: repositories repository idBackup/id nameMaven Repository Switchboard/name layoutdefault/layout urlhttp://repo1.maven.org/maven2/url snapshots enabledfalse/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idApache Snapshots/id nameApache Development Repository/name urlhttp://cvs.apache.org/maven-snapshot-repository /url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idCodehaus Snapshots/id nameCodehaus/name urlhttp://snapshots.repository.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idMyFaces SNAPSHOT/id nameMyFaces SNAPSHOT Repository/name url http://people.apache.org/repo/m2-snapshot-repository /url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository repository idibiblio/id nameibiblio/name urlhttp://www.ibiblio.org/maven2/url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository !--repository releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots idapache.snapshots/id nameApache Snapshot Repository/name url http://people.apache.org/repo/m2-snapshot-repository /url /repository-- /repositories pluginRepositories pluginRepository idcentral/id nameMaven Plugin Repository/name layoutdefault/layout urlhttp://repo1.maven.org/maven2/url snapshots enabledtrue/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository pluginRepository idCodehaus Snapshots/id urlhttp://snapshots.repository.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories On 2/26/07, Edney Imme
Re: Generating APT-files
On 2/26/07, Roland Asmann [EMAIL PROTECTED] wrote: Hi everybody, I am building a plug-in that generates some APT-files. The thing is, I want it to run when the 'site:site' target is called, but I have no idea on how to achieve this. Can anybody give me some hints as to where to add this plug-in? Or should I re-write it as a reporting-plugin? If so, I'm not sure on how to do this and if I should stick with the APT-output... Any help/thoughts? Try binding your plugin to the pre-site phase. Then run 'mvn site' [1] and you should see your plugin run, along with the site plugin doing its work. [1] not 'mvn site:site' which only runs a single plugin goal. Very confusing since the plugin, goal, and lifecycle phase all have the same name! -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assembly plugin bug?
Hi Tommy, Well.. You could file a jira issue for that if it bothers you ;) Usually the standard plugins have good examples though: http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/filtering-some-distribution-files.html Glad to see that you got it on track.. Cheers Jo On 2/26/07, Tommy Knowlton [EMAIL PROTECTED] wrote: Yes, that works. And I also verified that the description of the xml on the assembly descriptor web page incorrectly indicates that filtered/ tag is a child of fileSet/. (I didn't think I had hallucinated that...) Thanks again. On 2/26/07, Tommy Knowlton [EMAIL PROTECTED] wrote: Thanks, Jo. I'll give that a try. Perhaps this is what confused me: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Tommy, That's no bug.. The assembly plugin filters resources on a per-file basis, it doesn't apply filtering on fileSets. So, define a file set for all files that don't need filtering and add excludes for files that you want to filter.. Then, define file elements for the files that you wan to filter and set filtered to true on them.. Here's a snippet: assembly idblabla/id formats formatzip/format /formats fileSets fileSet directory${basedir}/directory includes*.sh/includes excludes excludeinstall.sh/exclude /excludes /fileSet /fileSets files file sourceinstall.sh/source outputDirectory//outputDirectory filteredtrue/filtered /file /files /assembly Cheers Jo On 2/26/07, Tommy Knowlton [EMAIL PROTECTED] wrote: I'm trying to use the maven-assembly-plugin to build a zip that contains an install.sh at the top level, along with some arbitrary other artifacts. I want the install.sh source to be filtered so that certain build-time variables will be run-time literals. I've tried to compose an assembly descriptor to do this, but Maven2 is telling me about the Unrecognized tag: 'filtered'. I wonder whether anybody here that is familiar with the maven-assembly-plugin can tell me what I've done wrong? My assembly descriptor looks like the following: assembly idoverlay/id formats formatzip/format /formats fileSets fileSet directorysrc/main/bash/directory filteredtrue/filtered !-- also tried filtered / -- outputDirectory/outputDirectory includes includeinstall.sh/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly Thanks, -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Tommy -- -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating APT-files
So, what does goals does the 'mvn site' run compared to 'mvn site:site'? On Monday 26 February 2007 20:47, Wendy Smoak wrote: On 2/26/07, Roland Asmann [EMAIL PROTECTED] wrote: Hi everybody, I am building a plug-in that generates some APT-files. The thing is, I want it to run when the 'site:site' target is called, but I have no idea on how to achieve this. Can anybody give me some hints as to where to add this plug-in? Or should I re-write it as a reporting-plugin? If so, I'm not sure on how to do this and if I should stick with the APT-output... Any help/thoughts? Try binding your plugin to the pre-site phase. Then run 'mvn site' [1] and you should see your plugin run, along with the site plugin doing its work. [1] not 'mvn site:site' which only runs a single plugin goal. Very confusing since the plugin, goal, and lifecycle phase all have the same name! -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with maven
This is getting a really long thread.. Edney.. Delete your settings.xml file, create a new one and copy/paste the content below into it: ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol host10.1.1.15/host port8015/port usernameEimme/username passwordEdNeYMImem/password /proxy proxies /settings Then, try to install your jar again.. If the install still fails, you're going to have to ask your network guy for help on how to set this up since neither maven or this mailing list can do anything about your network connectivity issues.. Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: And how i do to get this install plugin from maven repository ??? My proxy settings are correct. I'm sure about that.
Re: Problem building war file
Hi Enrique, Well.. Do you add a BuildVersion attribute to the manifest someplace else? Cheers Jo On 2/26/07, Enrique Gaona [EMAIL PROTECTED] wrote: Hi, I'm running into problems building my war file. Inside my parent pom, I am adding entry to my manifest file, but when it creates the war file, it complains about an Embedded error. Anyone seen this before? plugin artifactIdmaven-war-plugin/artifactId configuration archive manifestEntries BuildVersion${buildNumber}/BuildVersion /manifestEntries /archive /configuration /plugin [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error assembling WAR Embedded error: The attribute BuildVersion may not occur more than once in the same section [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 minutes 52 seconds [INFO] Finished at: Mon Feb 26 12:28:34 CST 2007 [INFO] Final Memory: 40M/110M [INFO] Thanks Enrique
Re: Assembly plugin bug?
There already is a JIRA issue about the lack of filtering support within filesets. Feel free to vote on it if you would like :) http://jira.codehaus.org/browse/MASSEMBLY-154 -Brad On Mon, 2007-02-26 at 20:49 +0100, Jo Vandermeeren wrote: Hi Tommy, Well.. You could file a jira issue for that if it bothers you ;) Usually the standard plugins have good examples though: http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/filtering-some-distribution-files.html Glad to see that you got it on track.. Cheers Jo On 2/26/07, Tommy Knowlton [EMAIL PROTECTED] wrote: Yes, that works. And I also verified that the description of the xml on the assembly descriptor web page incorrectly indicates that filtered/ tag is a child of fileSet/. (I didn't think I had hallucinated that...) Thanks again. On 2/26/07, Tommy Knowlton [EMAIL PROTECTED] wrote: Thanks, Jo. I'll give that a try. Perhaps this is what confused me: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Tommy, That's no bug.. The assembly plugin filters resources on a per-file basis, it doesn't apply filtering on fileSets. So, define a file set for all files that don't need filtering and add excludes for files that you want to filter.. Then, define file elements for the files that you wan to filter and set filtered to true on them.. Here's a snippet: assembly idblabla/id formats formatzip/format /formats fileSets fileSet directory${basedir}/directory includes*.sh/includes excludes excludeinstall.sh/exclude /excludes /fileSet /fileSets files file sourceinstall.sh/source outputDirectory//outputDirectory filteredtrue/filtered /file /files /assembly Cheers Jo On 2/26/07, Tommy Knowlton [EMAIL PROTECTED] wrote: I'm trying to use the maven-assembly-plugin to build a zip that contains an install.sh at the top level, along with some arbitrary other artifacts. I want the install.sh source to be filtered so that certain build-time variables will be run-time literals. I've tried to compose an assembly descriptor to do this, but Maven2 is telling me about the Unrecognized tag: 'filtered'. I wonder whether anybody here that is familiar with the maven-assembly-plugin can tell me what I've done wrong? My assembly descriptor looks like the following: assembly idoverlay/id formats formatzip/format /formats fileSets fileSet directorysrc/main/bash/directory filteredtrue/filtered !-- also tried filtered / -- outputDirectory/outputDirectory includes includeinstall.sh/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly Thanks, -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Tommy -- -- Tommy - 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: Problems with maven
OK, It still fails, I be crazy thank you everybody On 2/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: This is getting a really long thread.. Edney.. Delete your settings.xml file, create a new one and copy/paste the content below into it: ?xml version=1.0 encoding=UTF-8? settings proxies proxy activetrue/active protocolhttp/protocol host10.1.1.15/host port8015/port usernameEimme/username passwordEdNeYMImem/password /proxy proxies /settings Then, try to install your jar again.. If the install still fails, you're going to have to ask your network guy for help on how to set this up since neither maven or this mailing list can do anything about your network connectivity issues.. Cheers Jo On 2/26/07, Edney Imme [EMAIL PROTECTED] wrote: And how i do to get this install plugin from maven repository ??? My proxy settings are correct. I'm sure about that. -- Att. Edney Marcel Imme
Re: [m2] Eclipse, Hibernate Tools
Lally Singh wrote: nothing's getting generated into src/main/resources (that's just got the original cocoon spring stuff in it). Is there another maven target I should run? Correct. maven will not write into src/main/resources. Hibernate library reads certain configuration files. See hibernate documentation for help on these and their contents. A developer would layout a project with these hibernate configuration files in src/main/resources. Without further configuration, maven picks them up and puts them into the build output directory (target). Regards, John -- View this message in context: http://www.nabble.com/Eclipse%2C-Hibernate-Tools-tf3290726s177.html#a9167832 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
continuum 1.1 snapshot that works under tomcat 5.5.x
Are there any stable continuum 1.1 snapshots/nightly builds that will work out of the box. I have downloaded several snapshots from the below site, but none of them seem to work out of the box. http://maven.zones.apache.org/~continuum/builds/trunk/ I interested in a Continuum 1.1 snapshot war that will work under Tomcat 5.5.20, but I always get some exception during started and cannot access my local continuum 1.1 snapshot. I believe the WAR should work under most servlet engines, especially Tomcat and JBoss. I get a slew of Exceptions when I deploy the continuum 1.1 nightly snapshot WARs on my linux box. See below for a sample of these exceptions from my Tomcat logs. Maybe, I just need a quick guide on how to get the Continuum 1.1 nightly snapshot deployable under tomcat. Regards, Neon - errors from tomcat logs - Feb 23, 2007 8:14:27 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive continuum-20070223.11.war log4j:WARN No appenders could be found for logger ( org.apache.catalina.session.ManagerBase). log4j:WARN Please initialize the log4j system properly. log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: /logs/continuum.log (No such file or directory) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.init(FileOutputStream.java:177) at java.io.FileOutputStream.init(FileOutputStream.java:102) at org.apache.log4j.FileAppender.setFile(FileAppender.java:272) at org.apache.log4j.FileAppender.activateOptions(FileAppender.java :151) at org.apache.log4j.DailyRollingFileAppender.activateOptions( DailyRollingFileAppender.java:206) at org.apache.log4j.config.PropertySetter.activate( PropertySetter.java:247) at org.apache.log4j.config.PropertySetter.setProperties( PropertySetter.java:123) at org.apache.log4j.config.PropertySetter.setProperties( PropertySetter.java:87) at org.apache.log4j.PropertyConfigurator.parseAppender( PropertyConfigurator.java:645) at org.apache.log4j.PropertyConfigurator.parseCategory( PropertyConfigurator.java:603) at org.apache.log4j.PropertyConfigurator.configureRootCategory( PropertyConfigurator.java:500) at org.apache.log4j.PropertyConfigurator.doConfigure( PropertyConfigurator.java:406) at org.apache.log4j.PropertyConfigurator.configure( PropertyConfigurator.java:340) at org.codehaus.plexus.logging.log4j.Log4JLoggerManager.start( Log4JLoggerManager.java:299) at org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute( StartPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start( AbstractLifecycleHandler.java:130) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle (AbstractComponentManager.java:143) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance (AbstractComponentManager.java:133) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent (ClassicSingletonComponentManager.java:87) at org.codehaus.plexus.DefaultComponentLookupManager.lookup( DefaultComponentLookupManager.java:101) at org.codehaus.plexus.DefaultPlexusContainer.lookup( DefaultPlexusContainer.java:313) at org.codehaus.plexus.DefaultPlexusContainer.lookup( DefaultPlexusContainer.java:291) at org.codehaus.plexus.container.initialization.InitializeLoggerManagerPhase.initializeCoreComponent (InitializeLoggerManagerPhase.java:43) at org.codehaus.plexus.container.initialization.AbstractCoreComponentInitializationPhase.execute (AbstractCoreComponentInitializationPhase.java:37) at org.codehaus.plexus.DefaultPlexusContainer.initializePhases( DefaultPlexusContainer.java:928) at org.codehaus.plexus.DefaultPlexusContainer.initialize( DefaultPlexusContainer.java:876) at org.codehaus.plexus.DefaultPlexusContainer.construct( DefaultPlexusContainer.java:853) at org.codehaus.plexus.DefaultPlexusContainer.init( DefaultPlexusContainer.java:222) at org.codehaus.plexus.DefaultPlexusContainer.init( DefaultPlexusContainer.java:236) at org.codehaus.plexus.xwork.PlexusLifecycleListener.contextInitialized( PlexusLifecycleListener.java:76) at org.apache.catalina.core.StandardContext.listenerStart( StandardContext.java:3631) at org.apache.catalina.core.StandardContext.start( StandardContext.java:4065) at org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:755) at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java :525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java :777) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java :672) at
Re: Generating APT-files
On 2/26/07, Roland Asmann [EMAIL PROTECTED] wrote: So, what does goals does the 'mvn site' run compared to 'mvn site:site'? The site lifecycle is: pre-site, site, post-site, site-deploy Maven will run any plugin goals bound to those phases, up to and including the phase you specify. So, anything you've bound to the phases, plus anything bound by default. I don't know offhand what the site plugin does in each phase, I'd have to look. When you execute 'mvn site:site' you are only running a single goal on a single plugin. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
inheriting parent version number in child poms
I believe this problem has already been discussed in the maven community as I see a jira that was opened. I am not quite sure if there is a solution yet. Here is the Jira http://jira.codehaus.org/browse/MNG-521?page=com.atlassian.jira.plugin.s ystem.issuetabpanels:comment-tabpanel#action_42869 Problem : I want to update the version number of my application (ear with multiple jars and wars) at the parent level and propogate it to the children. I update the version element of the parent pom but that only create a new parent pom definition , but the children continue to build with old version. The only way I can force each child project version change is by modifying the version number in the parent element of the child pom's. Given that my parent project has about 10 sub projects (hence poms') what is the correct solution to do this. I tried using the ${project.version} attribute , but that does'nt help since the child pom's only use the version value defined in the parent ' version element of their pom. Thanks -satish