Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p package?
Hi, I have tried to use system dependency but it doesn't work this time. The pom.xml is shown below: dependency groupIdjdk/groupId artifactIdjdk/artifactId version1.6.0/version scopesystem/scope systemPath${java.home}/lib/rt.jar/systemPath /dependency I got the same error: package com.sun.xml.internal.messaging.saaj.client.p2p doesn't exist thanks Wayne Fay wrote: On Sun, Mar 7, 2010 at 11:08 PM, youhaodeyi wrote: I use Maven to compile my project but it shows an error the this package com.sun.xml.internal.messaging.saaj.client.p2p cannot found. You asked a nearly identical question almost 2 years ago. The answer today is no different from what you heard then (just stop using those internal jdk classes). Subject: Why can't Maven find com.sun.xml.internal.messaging.saaj.util.ByteOutputStream class? From: youhaodeyi Date: May 26, 2008 1:06:12 am List: org.apache.maven.users Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/Maven-doesn%27t-include-com.sun.xml.internal.messaging.saaj.client.p2p-package--tp27817140p27818505.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p package?
Yes I used com.sun.xml.internal.messaging.saaj.client.p2p package. hgomez wrote: Did you use/reference com.sun.xml.internal.* classes from your application ? 2010/3/8 youhaodeyi youhaod...@gmail.com: Hi, I have tried to use system dependency but it doesn't work this time. The pom.xml is shown below: dependency groupIdjdk/groupId artifactIdjdk/artifactId version1.6.0/version scopesystem/scope systemPath${java.home}/lib/rt.jar/systemPath /dependency I got the same error: package com.sun.xml.internal.messaging.saaj.client.p2p doesn't exist thanks Wayne Fay wrote: On Sun, Mar 7, 2010 at 11:08 PM, youhaodeyi wrote: I use Maven to compile my project but it shows an error the this package com.sun.xml.internal.messaging.saaj.client.p2p cannot found. You asked a nearly identical question almost 2 years ago. The answer today is no different from what you heard then (just stop using those internal jdk classes). Subject: Why can't Maven find com.sun.xml.internal.messaging.saaj.util.ByteOutputStream class? From: youhaodeyi Date: May 26, 2008 1:06:12 am List: org.apache.maven.users Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/Maven-doesn%27t-include-com.sun.xml.internal.messaging.saaj.client.p2p-package--tp27817140p27818505.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/Maven-doesn%27t-include-com.sun.xml.internal.messaging.saaj.client.p2p-package--tp27817140p27830153.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p package?
I use Maven to compile my project but it shows an error the this package com.sun.xml.internal.messaging.saaj.client.p2p cannot found. I have searched that this package is in JDK and why maven can't find this package? thanks -- View this message in context: http://old.nabble.com/Maven-doesn%27t-include-com.sun.xml.internal.messaging.saaj.client.p2p-package--tp27817140p27817140.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How can I find partent pom?
I got one pom project and want to build it. There is an error indicate that can't find parent POM. The parent POM is one the repository and I have set this repository in this pom.xml. Why doesn't maven download its parent pom from this repository? -- View this message in context: http://www.nabble.com/How-can-I-find-partent-pom--tp26002852p26002852.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How can I get dependency including its children
This is not Transitive. The children dependencies mean its sub models. Alexander-129 wrote: Transitive dependencies are included automatically. 2009/9/3 youhaodeyi youhaod...@gmail.com I added a dependency in my pom.xml file and I want to add its children automatically. How can I do this? -- View this message in context: http://www.nabble.com/How-can-I-get-dependency-including-its-children-tp25268684p25268684.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Regards, Alexander -- View this message in context: http://www.nabble.com/How-can-I-get-dependency-including-its-children-tp25268684p25270308.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How can I get dependency including its children
I added a dependency in my pom.xml file and I want to add its children automatically. How can I do this? -- View this message in context: http://www.nabble.com/How-can-I-get-dependency-including-its-children-tp25268684p25268684.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How can I add path in classpath entry in Manifest file?
Yes that's what I am looking for. thanks for all your response. Zhao Yi Marco Huber wrote: Hi, I don't know if this is exactly what you are looking for, but I had to add a special path to my manifest classpath entry once. The solution was the following: plugin artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath mainClass/mainClass /manifest manifestEntries Class-Path../conf//Class-Path /manifestEntries /archive /configuration /plugin This added all the dependencies and the conf path to the classpath. HTH, Marco Alexander Vaysberg wrote: Hi, not only. Look heir: - http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html. Worts: Java Sun: * Class-Path : The value of this attribute specifies the relative URLs of the extensions or libraries that this application or extension needs. URLs are separated by one or more spaces. The application or extension class loader uses the value of this attribute to construct its internal search path. That means you can in Manifest only jars added, but not a classpath. The classpath you mast added if you call the java, or added the jars to Manifest. That alls. Alexander Vaysberg youhaodeyi schrieb: Hi, I have read this but this is not what I want. I want to add path on classpath. This only tells me how to add dependent on classpath. Alexander Vaysberg wrote: Hi, you can it's using this tutorial: - http://maven.apache.org/shared/maven-archiver/examples/classpath.html. The jar-plugin has many of the properties. It's heir: - http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html. Alexander Vaysberg youhaodeyi schrieb: I have some resource files which should be defined in classpath entry in Manifest.mf in a jar. I found that I can use jar plugin to add dependency on classpath but I can't add a customize path on the classpath. How can I do this with maven? thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/How-can-I-add-path-in-classpath-entry-in-Manifest-file--tp25218824p25251769.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How can I add path in classpath entry in Manifest file?
I have some resource files which should be defined in classpath entry in Manifest.mf in a jar. I found that I can use jar plugin to add dependency on classpath but I can't add a customize path on the classpath. How can I do this with maven? thanks. -- View this message in context: http://www.nabble.com/How-can-I-add-path-in-classpath-entry-in-Manifest-file--tp25218824p25218824.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Why doesn't executions work in my pom?
Below is my pom file. If I put the configuration element under the execution element, I will get an error when running mvn native2ascii:native2ascii that src\main\native2ascii not found. If I put the configuration element directly under plugin element, it will work fine. I wander why I can't put the configuration in execution element. This one will not work. plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId executions execution goals goalnative2ascii/goal /goals configuration desttarget/classes/config1/i18n/dest srcsrc/main/config/config/i18n/src /configuration /execution /executions /plugin This one works fine plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId executions execution goals goalnative2ascii/goal /goals /execution /executions configuration desttarget/classes/config1/i18n/dest srcsrc/main/config/config/i18n/src /configuration /plugin -- View this message in context: http://www.nabble.com/Why-doesn%27t-executions-work-in-my-pom--tp25218882p25218882.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How can I add path in classpath entry in Manifest file?
Hi, I have read this but this is not what I want. I want to add path on classpath. This only tells me how to add dependent on classpath. Alexander Vaysberg wrote: Hi, you can it's using this tutorial: - http://maven.apache.org/shared/maven-archiver/examples/classpath.html. The jar-plugin has many of the properties. It's heir: - http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html. Alexander Vaysberg youhaodeyi schrieb: I have some resource files which should be defined in classpath entry in Manifest.mf in a jar. I found that I can use jar plugin to add dependency on classpath but I can't add a customize path on the classpath. How can I do this with maven? thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/How-can-I-add-path-in-classpath-entry-in-Manifest-file--tp25218824p25232764.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven xmlbeans problem
I use xmlbeans plugin in my maven project. When running mvn xmlbeans:xmlbeans, it will generate a jar file in target directory. How can I let my application depend on the xmlbeans generated jar file? -- View this message in context: http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25149630.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven xmlbeans problem
This is my pom file. My application should depend on the output jar, configuration.jar. How can I let my application depends on this jar file? How can I add the generated classes file on the dependency node? plugin groupIdorg.codehaus.mojo/groupId artifactIdxmlbeans-maven-plugin/artifactId version2.3.2/version executions execution goals goalxmlbeans/goal /goals /execution /executions inheritedfalse/inherited configuration schemaDirectorysrc/main/xsd/schemaDirectory outputJartarget/configure.jar/outputJar /configuration /plugin Anders Hammar wrote: If we're talking about the Codehaus mojo, it should generate source/class files as well. I suggest you first bind the plugin to the build process by adding it to the build part of your pom. Most likely it will make things work, but if not have a look at the configuration details: http://mojo.codehaus.org/xmlbeans-maven-plugin/xmlbeans-mojo.html /Anders On Wed, Aug 26, 2009 at 11:43, youhaodeyi youhaod...@gmail.com wrote: I use xmlbeans plugin in my maven project. When running mvn xmlbeans:xmlbeans, it will generate a jar file in target directory. How can I let my application depend on the xmlbeans generated jar file? -- View this message in context: http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25149630.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25150461.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven xmlbeans problem
Do you mean I generate the source code to src/main/java directory? In this way, I add this configuration: sourceGenerationDirectorysrc/main/java/sourceGenerationDirectory Anders Hammar wrote: OK, that's probably not the way to go. Why not just generate source code which you use in your project like if you've developed it by hand? Or, if you absolutely have to have the xmlbeans generated code in a separate artifact, I suggest you move the xsd (and the plugin configuration) to a separate Maven project. Then you project using those classes will have a dependency to the artifact containing them (the generated classes). However, I don't think that configuring the plugin to generate a jar will work (in any of the two cases above). Instead, generate source code which will be compile by the compile-plugin (automatically if you have a jar project) and included in the artifact (jar file) which is the output of the project. Hope it helps, /Anders On Wed, Aug 26, 2009 at 12:46, youhaodeyi youhaod...@gmail.com wrote: This is my pom file. My application should depend on the output jar, configuration.jar. How can I let my application depends on this jar file? How can I add the generated classes file on the dependency node? plugin groupIdorg.codehaus.mojo/groupId artifactIdxmlbeans-maven-plugin/artifactId version2.3.2/version executions execution goals goalxmlbeans/goal /goals /execution /executions inheritedfalse/inherited configuration schemaDirectorysrc/main/xsd/schemaDirectory outputJartarget/configure.jar/outputJar /configuration /plugin Anders Hammar wrote: If we're talking about the Codehaus mojo, it should generate source/class files as well. I suggest you first bind the plugin to the build process by adding it to the build part of your pom. Most likely it will make things work, but if not have a look at the configuration details: http://mojo.codehaus.org/xmlbeans-maven-plugin/xmlbeans-mojo.html /Anders On Wed, Aug 26, 2009 at 11:43, youhaodeyi youhaod...@gmail.com wrote: I use xmlbeans plugin in my maven project. When running mvn xmlbeans:xmlbeans, it will generate a jar file in target directory. How can I let my application depend on the xmlbeans generated jar file? -- View this message in context: http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25149630.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25150461.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25151109.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven xmlbeans problem
If I keep the default value, how can I let my project depends on the generated source code or jar file? Anders Hammar wrote: Nope, everything that's generated should go in the target dir (I would say this goes for everything in Maven). This is the default for this plugin. Best practice is to always go with the default, unless you absolutely need to change that. If you must change, think twice about that. /Anders On Wed, Aug 26, 2009 at 13:37, youhaodeyi youhaod...@gmail.com wrote: Do you mean I generate the source code to src/main/java directory? In this way, I add this configuration: sourceGenerationDirectorysrc/main/java/sourceGenerationDirectory Anders Hammar wrote: OK, that's probably not the way to go. Why not just generate source code which you use in your project like if you've developed it by hand? Or, if you absolutely have to have the xmlbeans generated code in a separate artifact, I suggest you move the xsd (and the plugin configuration) to a separate Maven project. Then you project using those classes will have a dependency to the artifact containing them (the generated classes). However, I don't think that configuring the plugin to generate a jar will work (in any of the two cases above). Instead, generate source code which will be compile by the compile-plugin (automatically if you have a jar project) and included in the artifact (jar file) which is the output of the project. Hope it helps, /Anders On Wed, Aug 26, 2009 at 12:46, youhaodeyi youhaod...@gmail.com wrote: This is my pom file. My application should depend on the output jar, configuration.jar. How can I let my application depends on this jar file? How can I add the generated classes file on the dependency node? plugin groupIdorg.codehaus.mojo/groupId artifactIdxmlbeans-maven-plugin/artifactId version2.3.2/version executions execution goals goalxmlbeans/goal /goals /execution /executions inheritedfalse/inherited configuration schemaDirectorysrc/main/xsd/schemaDirectory outputJartarget/configure.jar/outputJar /configuration /plugin Anders Hammar wrote: If we're talking about the Codehaus mojo, it should generate source/class files as well. I suggest you first bind the plugin to the build process by adding it to the build part of your pom. Most likely it will make things work, but if not have a look at the configuration details: http://mojo.codehaus.org/xmlbeans-maven-plugin/xmlbeans-mojo.html /Anders On Wed, Aug 26, 2009 at 11:43, youhaodeyi youhaod...@gmail.com wrote: I use xmlbeans plugin in my maven project. When running mvn xmlbeans:xmlbeans, it will generate a jar file in target directory. How can I let my application depend on the xmlbeans generated jar file? -- View this message in context: http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25149630.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25150461.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25151109.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25164161.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven xmlbeans problem
How can I create the first module? Do you mean I run the command mvn install on the configure.jar file? If so, every time the xsd file changed, I have to install the cnofigure.jar file manually. Nicolas Duminil wrote: You have to have a main pom having two modules: the first one installs your configure.jar as an artefact in your local repository. The second one is the one you've showed, to which you add a dependency to the previous generated artefact. Nicolas -- View this message in context: http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25164219.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How can I set maven memory size?
I got a maven project and compile it by maven. Then I got the error java.lang.OutOfMemoryError: Java heap space. How can I set the memory size running mvn command? thanks. -- View this message in context: http://www.nabble.com/How-can-I-set-maven-memory-size--tp24384381p24384381.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How can I set maven memory size?
Can I use it as command line argument instead of setting environment variable? dchicks wrote: set the MAVEN_OPTS environment variable... export MAVEN_OPTS=-Xms256m -Xmx1024m Something like that. youhaodeyi wrote: I got a maven project and compile it by maven. Then I got the error java.lang.OutOfMemoryError: Java heap space. How can I set the memory size running mvn command? thanks. -- View this message in context: http://www.nabble.com/How-can-I-set-maven-memory-size--tp24384381p24385525.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Why distributionManagement doesn't work?
I set a repository in pom.xml file (see below): distributionManagement repository idcentral/id nameInternal Releases/name urlhttp://3.36.231.203:8082/nexus/content/repositories/releases/url /repository snapshotRepository idsnapshots/id nameSnapshots/name urlhttp://3.36.231.203:8082/nexus/content/repositories/snapshots/url /snapshotRepository /distributionManagement I have a dependency with a SNAPSHOT version, when I run mvn command, maven will show that the dependency can't be found from the specified remote repositories: central (http://repo1.maven.org/maven2). I wander why it searches http://repo1.maven.org/maven2. I have specified the repository in distributionManagement. -- View this message in context: http://www.nabble.com/Why-distributionManagement-doesn%27t-work--tp22489544p22489544.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Why distributionManagement doesn't work?
Wendy Smoak-3 wrote: The distributionManagement section is for publishing, not for retrieving. You'll want repositories and pluginRepositories for retrieving artifacts. They can go either in settings.xml or in the pom. Thanks it solves my problem. I can get the dependency. But when I run mvn deploy command to deploy files, it will deploy the jar to the reposiroty not the snapshotRepository. My project has the version test-1.00-SNAPSHOTS. -- View this message in context: http://www.nabble.com/Why-distributionManagement-doesn%27t-work--tp22489544p22490218.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How can I force maven download dependency?
Maven will not download dependency from remote repository if the dependency already exists. How can I force Maven download the dependency even if the dependency exists? -- View this message in context: http://www.nabble.com/How-can-I-force-maven-download-dependency--tp22428816p22428816.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to copy resource files to target/classes directory?
I have may XML files in src/main/java directory and its sub directory. When I run mvn compile, these XML files will not be copied to the target/classes directory. I know I can put these files in src/main/resources directory but it is really hard work for me. How can I let maven do this? -- View this message in context: http://www.nabble.com/How-to-copy-resource-files-to-target-classes-directory--tp3747p3747.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven build source code which uses deprecated API
My source code using some deprecated API. When use mvn to build these code, maven will have many warning or error for them. How can I disable maven to check deprecated API? thanks. -- View this message in context: http://www.nabble.com/Maven-build-source-code-which-uses-deprecated-API-tp4572p4572.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven build source code which uses deprecated API
No matter whether I set the value, the problem is still there. The deprecated API I used is sun.misc.Perf. Nick Stolwijk-4 wrote: Those warnings come from the compiler plugin [1] and are off by default. Have you changed the settings for the compiler plugin? Especially the options: showDeprecation boolean Sets whether to show source locations where deprecated APIs are used. Default value is false. showWarnings boolean Set to true to show compilation warnings. Default value is false. Hth, [1] http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Thu, Feb 26, 2009 at 2:54 PM, youhaodeyi youhaod...@gmail.com wrote: My source code using some deprecated API. When use mvn to build these code, maven will have many warning or error for them. How can I disable maven to check deprecated API? thanks. -- View this message in context: http://www.nabble.com/Maven-build-source-code-which-uses-deprecated-API-tp4572p4572.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven-build-source-code-which-uses-deprecated-API-tp4572p5158.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Does maven deploy have maximum size limit?
I run mvn deploy command to package and deploy a jar which is more than 50m size. Maven will throw an out-of memory exception. I wander whether maven has a size limit. thanks. -- View this message in context: http://www.nabble.com/Does-maven-deploy-have-maximum-size-limit--tp22194751p22194751.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to disable surefire generate report
I want to disable surefire generating report because it is very slow. If I set skip to true it will disable running unit test. I only want to disable generating report but not running unit test. How can I do this? thanks. -- View this message in context: http://www.nabble.com/How-to-disable-surefire-generate-report-tp20948508p20948508.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to disable surefire generate report
I run mvn package which include mvn test and the test process costs too much resource in my computer. During this time, I almost can't do other things. So I want to disable generating report. baerrach wrote: On Thu, Dec 11, 2008 at 1:11 PM, youhaodeyi [EMAIL PROTECTED] wrote: I want to disable surefire generating report because it is very slow. If I set skip to true it will disable running unit test. I only want to disable generating report but not running unit test. How can I do this? Why is it slow? Generating the report just takes the *.xml from the test output and creates html. It should be fast. Can you describe how are you running surefire? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-disable-surefire-generate-report-tp20948508p20948924.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A problem about Maven Hibernate plugin
I use maven to generate database schema. I use derby database and got this error: No suitable driver found for jdbc:derby:database/hgsic What can I do on this issue? thanks. -- View this message in context: http://www.nabble.com/A-problem-about-Maven-Hibernate-plugin-tp20827757p20827757.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question about System scope in dependency.
OK thanks. This is a smart method. Stephen Connolly-2 wrote: ok, try this create a dummy-jar module that has your system scope as its dependency. this dummy jar will be empty now add the dummy jar as a test scope dependency. your system scope transitive dependency will therefor be added to the test compile classpath Sent from my iPod On 23 Nov 2008, at 07:52, youhaodeyi [EMAIL PROTECTED] wrote: Does anyone can help me on this? youhaodeyi wrote: My maven project has a dependency on local disk so I use system scope dependency in order to use absolute directory to refer to this dependency. but I also want this dependency to be only used in test phase. How can I combine two dependencies together? -- View this message in context: http://www.nabble.com/A-question-about-System-scope-in-dependency.-tp20415925p20643970.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/A-question-about-System-scope-in-dependency.-tp20415925p20644456.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A problem about MANIFEST in maven
I use maven-jar-plugin to handle the manifest file, see below configuration: manifest addClasspathtrue/addClasspath ... And I have a dependency with system scope: dependency groupIdprotocol/groupId artifactIdprotocol/artifactId version1.0/version scopesystem/scope systemPath${basedir}/src/main/libs/protocol.jar/systemPath /dependency But when run the command mvn package and the manifest file in the jar doesn't contain this dependency. How can I fix this? thanks. -- View this message in context: http://www.nabble.com/A-problem-about-MANIFEST-in-maven-tp20654786p20654786.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to add snapshot dependency into MANIFEST.MF
youhaodeyi wrote: My project dependent on a snapshot dependency (test-1.0-snapshot). I added this configuration in my jar-plugin: manifest addClasspathtrue/addClasspath mainClasstest.ui.Starter/mainClass packageNameUI DEMO/packageName /manifest All the dependencies will be written to manifest.mf file. So the final manifest.mf will includes: Class-Path: test-1.0-snapshot.jar But when I run the assembly, the version of the test-1.0 will be inconsistent with the one in manifest file. How can I make them consistent? I use Maven 2.0.9. Does anyone have me on this? thanks. -- View this message in context: http://www.nabble.com/How-to-add-snapshot-dependency-into-MANIFEST.MF-tp20171142p20655457.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A problem about MANIFEST in maven
But what I want to do is to use maven assembly to deliver a release version then put it on other machines where may not have such dependency. How can I add it to the manifest file? Stephen Connolly-2 wrote: system scope implies that the dependency is already on the system classpath, so maven does not need to add it Sent from my iPod On 24 Nov 2008, at 04:34, youhaodeyi [EMAIL PROTECTED] wrote: I use maven-jar-plugin to handle the manifest file, see below configuration: manifest addClasspathtrue/addClasspath ... And I have a dependency with system scope: dependency groupIdprotocol/groupId artifactIdprotocol/artifactId version1.0/version scopesystem/scope systemPath${basedir}/src/main/libs/protocol.jar/ systemPath /dependency But when run the command mvn package and the manifest file in the jar doesn't contain this dependency. How can I fix this? thanks. -- View this message in context: http://www.nabble.com/A-problem-about-MANIFEST-in-maven-tp20654786p20654786.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/A-problem-about-MANIFEST-in-maven-tp20654786p20656135.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question about System scope in dependency.
Does anyone can help me on this? youhaodeyi wrote: My maven project has a dependency on local disk so I use system scope dependency in order to use absolute directory to refer to this dependency. but I also want this dependency to be only used in test phase. How can I combine two dependencies together? -- View this message in context: http://www.nabble.com/A-question-about-System-scope-in-dependency.-tp20415925p20643970.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A question about System scope in dependency.
My maven project has a dependency on local disk so I use system scope dependency in order to use absolute directory to refer to this dependency. but I also want this dependency to be only used in test phase. How can I combine two dependencies together? -- View this message in context: http://www.nabble.com/A-question-about-System-scope-in-dependency.-tp20415925p20415925.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to generate jar file from xmlbeans?
I use xmlbeans plugin in my maven project. This is the configuration I used: plugin groupIdorg.codehaus.mojo/groupId artifactIdxmlbeans-maven-plugin/artifactId executions execution idTest/id inheritedtrue/inherited goals goalxmlbeans-test/goal /goals configuration outputJartarget/test.jar/outputJar /configuration /execution /executions /plugin When I run mvn xmlbeans:xmlbeans-test, the test.jar wasn't created. It seems that the configuration element doesn't work here. Does anyone know this problem? thanks -- View this message in context: http://www.nabble.com/How-to-generate-jar-file-from-xmlbeans--tp20375498p20375498.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to specify more than one phases in execution element?
How to specify more than one phases in execution element? Like this: phasepackage,assembly/phase -- View this message in context: http://www.nabble.com/How-to-specify-more-than-one-phases-in-execution-element--tp20226100p20226100.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
About assembly
This is my maven-jar-plugin configuration. I added a 1.0 classifier execution. When I run mvn assembly:assembly, it will not generate the 1.0 classifier jar. But when I run mvn package, the 1.0 classifier jar will be created. Why doesn't assembly include package? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2/version inheritedfalse/inherited executions execution idjar/id phasepackage/phase goals goaljar/goal /goals configuration classifier1.0/classifier outputDirectorytarget//outputDirectory excludes excludei18n/**/exclude excludeimages/**/exclude excludeprotocols/**/exclude excludereport/**/exclude /excludes archive manifest addClasspathtrue/addClasspath /manifest manifestEntries modedevelopment/mode /manifestEntries /archive /configuration /execution -- View this message in context: http://www.nabble.com/About-assembly-tp20171038p20171038.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to add snapshot dependency into MANIFEST.MF
My project dependent on a snapshot dependency (test-1.0-snapshot). I added this configuration in my jar-plugin: manifest addClasspathtrue/addClasspath mainClasstest.ui.Starter/mainClass packageNameUI DEMO/packageName /manifest All the dependencies will be written to manifest.mf file. So the final manifest.mf will includes: Class-Path: test-1.0-snapshot.jar But when I run the assembly, the version of the test-1.0 will be inconsistent with the one in manifest file. How can I make them consistent? I use Maven 2.0.9. -- View this message in context: http://www.nabble.com/How-to-add-snapshot-dependency-into-MANIFEST.MF-tp20171142p20171142.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to set jar and test-jar separately?
I use maven-jar-plugin like below. In this case, the test jar and jar will have the same configuration. How can I set them separately? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2/version inheritedfalse/inherited executions execution phasepackage/phase goals goaltest-jar/goal goaljar/goal /goals /execution /executions configuration outputDirectorytarget//outputDirectory excludes exclude**/*.properties/exclude exclude**/images/**/exclude exclude**/protocols/**/exclude exclude**/report/**/exclude /excludes archive manifest addClasspathtrue/addClasspath mainClassui.Starter/mainClass packageNameUI DEMO/packageName /manifest manifestEntries modedevelopment/mode /manifestEntries /archive /configuration /plugin -- View this message in context: http://www.nabble.com/How-to-set-jar-and-test-jar-separately--tp20111475p20111475.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to use wildcard to match all the sub-directories and files?
I use want to exclude all the directories and files under images directory: excludesrc/main/resources/images/**/exclude But it doesn't work. How can I use wildcard in this case? -- View this message in context: http://www.nabble.com/How-to-use-wildcard-to-match-all-the-sub-directories-and-files--tp20112204p20112204.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set jar and test-jar separately?
Do you mean this configuration see below? The configuration setting doesn't work in this case. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2/version inheritedfalse/inherited executions execution idjar/id phasepackage/phase goals goaljar/goal /goals configuration outputDirectorytarget//outputDirectory excludes excludesrc/main/resources/i18n/*.properties/exclude excludesrc/main/resources/images/**/exclude excludesrc/main/resources/**/protocols/**/exclude excludesrc/main/resources/../report/**/exclude /excludes archive manifest addClasspathtrue/addClasspath mainClasscom.ge.med.mict.ll.ui.Starter/mainClass packageNameUI DEMO/packageName /manifest manifestEntries modedevelopment/mode /manifestEntries /archive /configuration /execution execution idtest/id phasepackage/phase goals goaltest-jar/goal /goals /execution /executions Brian E Fox wrote: Put them in separate executions. -Original Message- From: youhaodeyi [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2008 10:08 AM To: users@maven.apache.org Subject: How to set jar and test-jar separately? I use maven-jar-plugin like below. In this case, the test jar and jar will have the same configuration. How can I set them separately? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2/version inheritedfalse/inherited executions execution phasepackage/phase goals goaltest-jar/goal goaljar/goal /goals /execution /executions configuration outputDirectorytarget//outputDirectory excludes exclude**/*.properties/exclude exclude**/images/**/exclude exclude**/protocols/**/exclude exclude**/report/**/exclude /excludes archive manifest addClasspathtrue/addClasspath mainClassui.Starter/mainClass packageNameUI DEMO/packageName /manifest manifestEntries modedevelopment/mode /manifestEntries /archive /configuration /plugin -- View
Re: How to use wildcard to match all the sub-directories and files?
I added the extra level of wildcard, but it the files under images directory are copied into the jar file too. It seems that this doesn't work. dchicks wrote: I think you want an extra level of wildcard on the end of that. excludesrc/main/resources/images/**/*/exclude youhaodeyi wrote: I use want to exclude all the directories and files under images directory: excludesrc/main/resources/images/**/exclude But it doesn't work. How can I use wildcard in this case? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-use-wildcard-to-match-all-the-sub-directories-and-files--tp20112204p20112718.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use wildcard to match all the sub-directories and files?
Hi, This doesn't work either. But this works: exclude**/images/**/exclude I don't want to use this because it will exclude my source code which have the package including images. Nick Stolwijk-4 wrote: Try: excludesrc/main/resources/images/*/exclude excludesrc/main/resources/images/**/*/exclude Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, Oct 22, 2008 at 5:02 PM, youhaodeyi [EMAIL PROTECTED] wrote: I added the extra level of wildcard, but it the files under images directory are copied into the jar file too. It seems that this doesn't work. dchicks wrote: I think you want an extra level of wildcard on the end of that. excludesrc/main/resources/images/**/*/exclude youhaodeyi wrote: I use want to exclude all the directories and files under images directory: excludesrc/main/resources/images/**/exclude But it doesn't work. How can I use wildcard in this case? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-use-wildcard-to-match-all-the-sub-directories-and-files--tp20112204p20112718.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-use-wildcard-to-match-all-the-sub-directories-and-files--tp20112204p20112905.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use wildcard to match all the sub-directories and files?
Hi, I know what the problem is. The directory starts from target/classes not project base directory. so the correct configuration should be: excludeimages/**/exclude I excludes these images because I don't want my jar file becomes big. In addition, if the image icons the java application uses are out of the jar file, I can update these icons with breaking the jar. dchicks wrote: If I may ask, why do you want to exclude things in the images subdirectory? If they aren't part of your real build, then they probably shouldn't be there in the first place. My point being that there may be another way to solve your problem. youhaodeyi wrote: Hi, This doesn't work either. But this works: exclude**/images/**/exclude I don't want to use this because it will exclude my source code which have the package including images. Nick Stolwijk-4 wrote: Try: excludesrc/main/resources/images/*/exclude excludesrc/main/resources/images/**/*/exclude Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, Oct 22, 2008 at 5:02 PM, youhaodeyi [EMAIL PROTECTED] wrote: I added the extra level of wildcard, but it the files under images directory are copied into the jar file too. It seems that this doesn't work. dchicks wrote: I think you want an extra level of wildcard on the end of that. excludesrc/main/resources/images/**/*/exclude youhaodeyi wrote: I use want to exclude all the directories and files under images directory: excludesrc/main/resources/images/**/exclude But it doesn't work. How can I use wildcard in this case? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-use-wildcard-to-match-all-the-sub-directories-and-files--tp20112204p20112718.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-use-wildcard-to-match-all-the-sub-directories-and-files--tp20112204p20122470.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't Maven handle dependendies recursively?
I have checked the P2 and it can be built successfully. Jörg Schaible-2 wrote: youhaodeyi wrote: I didn't define the scope. It should be the default value. Then something is wrong with your POM for P2 ... Wendy Smoak-3 wrote: On Thu, Oct 2, 2008 at 7:56 PM, youhaodeyi [EMAIL PROTECTED] wrote: I set up a maven project P1 which depends on the project P2. P2 includes several dependencies which are used in P1. In this case, I must add these dependencies in P1 too. If not, I will fail to build P1. How can I let maven deal with this recursive dependencies? How are the dependencies declared in P2? If they are in the default compile scope, they should be transitive (so P1 should compile.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can%27t-Maven-handle-dependendies-recursively--tp19791304p19809831.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't Maven handle dependendies recursively?
I didn't define the scope. It should be the default value. Wendy Smoak-3 wrote: On Thu, Oct 2, 2008 at 7:56 PM, youhaodeyi [EMAIL PROTECTED] wrote: I set up a maven project P1 which depends on the project P2. P2 includes several dependencies which are used in P1. In this case, I must add these dependencies in P1 too. If not, I will fail to build P1. How can I let maven deal with this recursive dependencies? How are the dependencies declared in P2? If they are in the default compile scope, they should be transitive (so P1 should compile.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can%27t-Maven-handle-dependendies-recursively--tp19791304p19793666.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't Maven handle dependendies recursively?
I set up a maven project P1 which depends on the project P2. P2 includes several dependencies which are used in P1. In this case, I must add these dependencies in P1 too. If not, I will fail to build P1. How can I let maven deal with this recursive dependencies? -- View this message in context: http://www.nabble.com/Can%27t-Maven-handle-dependendies-recursively--tp19791304p19791304.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to let xmlbean generate jar file?
I use xmlbean plugin in a Maven project. When doing mvn xmlbeans:xmlbeans, it will generate source and classes but not jar. How can I let it produce jar file? -- View this message in context: http://www.nabble.com/How-to-let-xmlbean-generate-jar-file--tp19737290p19737290.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to let xmlbean generate jar file?
Will this add it to the dependency tree automatically? Stephen Connolly-2 wrote: you need to attach it to the lifecycle and execute upto at least the package phase in the lifecycle 2008/9/30 youhaodeyi [EMAIL PROTECTED] I use xmlbean plugin in a Maven project. When doing mvn xmlbeans:xmlbeans, it will generate source and classes but not jar. How can I let it produce jar file? -- View this message in context: http://www.nabble.com/How-to-let-xmlbean-generate-jar-file--tp19737290p19737290.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-add-generated-jar-into-project-dependency--tp19737290p19738224.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to disable a plugin?
In the parent pom, it includes copy-dependency plugin which I want to disable in the child pom. I use this configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId inheritedfalse/inherited /plugin But every time running 'mvn package', it will copy all the dependencies to the child module. How can I disable this? -- View this message in context: http://www.nabble.com/How-to-disable-a-plugin--tp19325716p19325716.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to disable a plugin?
This configure works. thanks Asgeir S. Nilsen-2 wrote: In the submodule where you don't want the plugin to run, add a plugin element with the following elements within: executions execution idsome-id/id phasenone/phase /execution /executions On Fri, Sep 5, 2008 at 08:40, youhaodeyi [EMAIL PROTECTED] wrote: In the parent pom, it includes copy-dependency plugin which I want to disable in the child pom. I use this configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId inheritedfalse/inherited /plugin But every time running 'mvn package', it will copy all the dependencies to the child module. How can I disable this? -- View this message in context: http://www.nabble.com/How-to-disable-a-plugin--tp19325716p19325716.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-disable-a-plugin--tp19325716p19326911.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to package test jar?
I want to attach it to package phase and below is my pom file. But it doesn't produce the test jar file either. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2/version inheritedfalse/inherited executions execution phasepackage/phase goals goaltest-jar/goal /goals /execution /executions configuration outputDirectorytarget//outputDirectory excludes !-- exclude**/ui_demo_zh_CN.properties/exclude -- exclude**/dcm/**/exclude /excludes archive manifest addClasspathtrue/addClasspath /manifest manifestEntries modedevelopment/mode /manifestEntries manifestFilesrc/test/resources/MANIFEST.MF/manifestFile /archive /configuration /plugin Wayne Fay wrote: The test-jar artifact is only produced for poms with packaging set to test-jar. You can distinguish these poms/jars as they use the classifier tests. Read this for more info: http://maven.apache.org/guides/mini/guide-attached-tests.html Wayne On 8/23/08, youhaodeyi [EMAIL PROTECTED] wrote: When running mvn package, there should be two jars, one is the java-application.jar the other is test.jar. Why wasn't the test.jar produced? I found there is a jar plugin for maven, is it for both jar:jar and jar:test-jar? How can I distinguish them? -- View this message in context: http://www.nabble.com/How-to-package-test-jar--tp19127023p19127023.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-package-test-jar--tp19127023p19136879.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to package test jar?
When running mvn package, there should be two jars, one is the java-application.jar the other is test.jar. Why wasn't the test.jar produced? I found there is a jar plugin for maven, is it for both jar:jar and jar:test-jar? How can I distinguish them? -- View this message in context: http://www.nabble.com/How-to-package-test-jar--tp19127023p19127023.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to use includes element in assembly descriptor file?
This is the descriptor file: assembly idtest/id formats formatzip/format /formats baseDirectorytarget/assembly/baseDirectory fileSets fileSet directorysrc/main/resources/directory includes*/includes /fileSet /fileSets /assembly When I run mvn assembly:assembly, I will get this error: [INFO] Error reading assemblies: Error reading descriptor at: src/main/assembly/ src.xml: expected START_TAG or END_TAG not TEXT (position: TEXT seen .../direct ory\r\n\t\t\tincludes*/... @19:17) -- View this message in context: http://www.nabble.com/How-to-use-includes-element-in-assembly-descriptor-file--tp18846004p18846004.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to package the test jar file when doing assembly?
I use this configuration can copy all the dependencies. But I also want to copy the test jar file which includes junit test case. How can I do this? dependencySets dependencySet unpackfalse/unpack outputDirectorylibs/outputDirectory scopetest/scope /dependencySet /dependencySets -- View this message in context: http://www.nabble.com/How-to-package-the-test-jar-file-when-doing-assembly--tp18846820p18846820.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to disable jar-with-dependencies when assembly?
This is my configuration file: plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptors descriptorsrc/main/assembly/src.xml/descriptor /descriptors /configuration /plugin I use customized assembly descriptor. Why every time running mvn assembly:assembly, maven will produce jar-with-dependencies.jar? -- View this message in context: http://www.nabble.com/how-to-disable-jar-with-dependencies-when-assembly--tp18847342p18847342.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to disable jar-with-dependencies when assembly?
Hi, Yes I inherits from parent module. I wander how to disable this inherits. thanks. Wendy Smoak-3 wrote: On Wed, Aug 6, 2008 at 2:24 AM, youhaodeyi [EMAIL PROTECTED] wrote: I use customized assembly descriptor. Why every time running mvn assembly:assembly, maven will produce jar-with-dependencies.jar? It shouldn't. What's making you think that it does? (Build output, a file in the target dir, or ?) If you see it in target, try 'mvn clean' to make sure it isn't left over from a previous build. If you see it happening in the build output, check to make sure you aren't inheriting something from a parent pom, and that you've saved your changes to the pom config you pasted. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/how-to-disable-jar-with-dependencies-when-assembly--tp18847342p18862290.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I know where part of my project has error?
But I can run the program in eclipse without any problems. There are only some warnings in the problems view. Eman Ali wrote: Good morning, If you are using Eclipse IDE use the problems view to figure out what's wrong (Window--show view -- problems) this might happened because you have added some libraries or classes to your build path and those libraries\classes don't exist or they have problems -- View this message in context: http://www.nabble.com/How-can-I-know-where-part-of-my-project-has-error--tp18672546p18674322.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I know where part of my project has error?
In my maven project, the icon of the project begin with a red fork which means this project has an error. But unfold this project, there is no error in any source code and configuration file. In addition, this project doesn't have any sub-module. So how can I get the error detail information? -- View this message in context: http://www.nabble.com/How-can-I-know-where-part-of-my-project-has-error--tp18672546p18672546.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does Maven support dependency group?
I want to make some dependencies into one group and let user dependent on this group. All the dependencies under this group will be added to maven project. Can I do this in Maven? -- View this message in context: http://www.nabble.com/Does-Maven-support-dependency-group--tp18602903p18602903.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Maven support dependency group?
ok thanks. Michael McCallum-3 wrote: On Wed, 23 Jul 2008 14:51:00 youhaodeyi wrote: I want to make some dependencies into one group and let user dependent on this group. All the dependencies under this group will be added to maven project. Can I do this in Maven? yes just set the packaging to pom... and release as per a normal project... if you depend on it you will get all the transistions... -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Does-Maven-support-dependency-group--tp18602903p18603262.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two questions about native2ascii plugin
Yes, I solve my problem. Dan Tran wrote: try UTF8 upper case, You need add tool.jar dependency as well On Sun, Jul 6, 2008 at 10:16 PM, youhaodeyi [EMAIL PROTECTED] wrote: This is my configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId configuration srcsrc/test/java/ui/demo/i18n/src destclasses/ui/demo/i18n/dest encodingutf8/encoding /configuration executions execution goals goalnative2ascii/goal /goals /execution /executions /plugin You can see that the dest directory is classes/ui/demo/i18n. If the file already exists in this directory, maven will not overwrite it. What I want to do is to overwrite the generated file every time I run mvn native2ascii:native2ascii. Dan Tran wrote: could you be more specific? btw, see if you can get antrun plugin to do the conversion for you. Note that behind the scene native2ascii plugin uses ant, but it is worth a try. -D On Sun, Jul 6, 2008 at 8:36 PM, youhaodeyi [EMAIL PROTECTED] wrote: Does anyone know how to overwrite existed resource file with native2ascii? youhaodeyi wrote: I use native2ascii plugin to convert my resource files. This is my configuration in pom file: plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId configuration srcsrc/test/java/ui/demo/i18n/src destclasses/ui/demo/i18n/dest /configuration executions execution goals goalnative2ascii/goal /goals !-- specific configurations -- configuration encodingUTF8/encoding /configuration /execution /executions /plugin One problem is that when I use mvn native2ascii:native2ascii to do the job, the result file is different with when I use $JAVA_HOME/bin/native2ascii command? why? The other issue is that how can I let this goat to replace the existed file? -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18309502.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18310176.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18310642.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two questions about native2ascii plugin
No, you need encoding it as utf8 which means u786e\u5b9a is the correct one. Dan Tran wrote: \u00e7\u00a1\u00ae\u00e5\u00ae\u0161 is the correct format as far as i know, and it works on my production build -D On Sat, Jul 5, 2008 at 6:38 PM, youhaodeyi [EMAIL PROTECTED] wrote: I use $JAVA_HOME/bin/native2ascii -encoding UTF8 command to convert the file. But maven native2ascii convert the file have the same result with the command $JAVA_HOME/bin/navite2ascii without the encoding specification. So the problem is that maven will ignore the encoding tag, won't it? Dan Tran wrote: how different? On Sat, Jul 5, 2008 at 2:02 AM, youhaodeyi [EMAIL PROTECTED] wrote: I use native2ascii plugin to convert my resource files. This is my configuration in pom file: plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId configuration srcsrc/test/java/ui/demo/i18n/src destclasses/ui/demo/i18n/dest /configuration executions execution goals goalnative2ascii/goal /goals !-- specific configurations -- configuration encodingUTF8/encoding /configuration /execution /executions /plugin One problem is that when I use mvn native2ascii:native2ascii to do the job, the result file is different with when I use $JAVA_HOME/bin/native2ascii command? why? The other issue is that how can I let this goat to replace the existed file? -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18290230.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18298111.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18301721.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two questions about native2ascii plugin
Does your OS support Chinese characters? I think that the different. Dan Tran wrote: I ran mine against the native2ascii executable, and both produce the same output with UTF8 as the input encoding. -D On Sun, Jul 6, 2008 at 5:38 AM, youhaodeyi [EMAIL PROTECTED] wrote: No, you need encoding it as utf8 which means u786e\u5b9a is the correct one. Dan Tran wrote: \u00e7\u00a1\u00ae\u00e5\u00ae\u0161 is the correct format as far as i know, and it works on my production build -D On Sat, Jul 5, 2008 at 6:38 PM, youhaodeyi [EMAIL PROTECTED] wrote: I use $JAVA_HOME/bin/native2ascii -encoding UTF8 command to convert the file. But maven native2ascii convert the file have the same result with the command $JAVA_HOME/bin/navite2ascii without the encoding specification. So the problem is that maven will ignore the encoding tag, won't it? Dan Tran wrote: how different? On Sat, Jul 5, 2008 at 2:02 AM, youhaodeyi [EMAIL PROTECTED] wrote: I use native2ascii plugin to convert my resource files. This is my configuration in pom file: plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId configuration srcsrc/test/java/ui/demo/i18n/src destclasses/ui/demo/i18n/dest /configuration executions execution goals goalnative2ascii/goal /goals !-- specific configurations -- configuration encodingUTF8/encoding /configuration /execution /executions /plugin One problem is that when I use mvn native2ascii:native2ascii to do the job, the result file is different with when I use $JAVA_HOME/bin/native2ascii command? why? The other issue is that how can I let this goat to replace the existed file? -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18290230.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18298111.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18301721.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18308313.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two questions about native2ascii plugin
Does anyone know how to overwrite existed resource file with native2ascii? youhaodeyi wrote: I use native2ascii plugin to convert my resource files. This is my configuration in pom file: plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId configuration srcsrc/test/java/ui/demo/i18n/src destclasses/ui/demo/i18n/dest /configuration executions execution goals goalnative2ascii/goal /goals !-- specific configurations -- configuration encodingUTF8/encoding /configuration /execution /executions /plugin One problem is that when I use mvn native2ascii:native2ascii to do the job, the result file is different with when I use $JAVA_HOME/bin/native2ascii command? why? The other issue is that how can I let this goat to replace the existed file? -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18309502.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two questions about native2ascii plugin
This is my configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId configuration srcsrc/test/java/ui/demo/i18n/src destclasses/ui/demo/i18n/dest encodingutf8/encoding /configuration executions execution goals goalnative2ascii/goal /goals /execution /executions /plugin You can see that the dest directory is classes/ui/demo/i18n. If the file already exists in this directory, maven will not overwrite it. What I want to do is to overwrite the generated file every time I run mvn native2ascii:native2ascii. Dan Tran wrote: could you be more specific? btw, see if you can get antrun plugin to do the conversion for you. Note that behind the scene native2ascii plugin uses ant, but it is worth a try. -D On Sun, Jul 6, 2008 at 8:36 PM, youhaodeyi [EMAIL PROTECTED] wrote: Does anyone know how to overwrite existed resource file with native2ascii? youhaodeyi wrote: I use native2ascii plugin to convert my resource files. This is my configuration in pom file: plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId configuration srcsrc/test/java/ui/demo/i18n/src destclasses/ui/demo/i18n/dest /configuration executions execution goals goalnative2ascii/goal /goals !-- specific configurations -- configuration encodingUTF8/encoding /configuration /execution /executions /plugin One problem is that when I use mvn native2ascii:native2ascii to do the job, the result file is different with when I use $JAVA_HOME/bin/native2ascii command? why? The other issue is that how can I let this goat to replace the existed file? -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18309502.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18310176.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Two questions about native2ascii plugin
I use native2ascii plugin to convert my resource files. This is my configuration in pom file: plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId configuration srcsrc/test/java/ui/demo/i18n/src destclasses/ui/demo/i18n/dest /configuration executions execution goals goalnative2ascii/goal /goals !-- specific configurations -- configuration encodingUTF8/encoding /configuration /execution /executions /plugin One problem is that when I use mvn native2ascii:native2ascii to do the job, the result file is different with when I use $JAVA_HOME/bin/native2ascii command? why? The other issue is that how can I let this goat to replace the existed file? -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18290230.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two questions about native2ascii plugin
For example, use $JAVA_HOME/bin/native2ascii will get this string: \u786e\u5b9a, but if use maven native2ascii to convert the same file, it will get \u00e7\u00a1\u00ae\u00e5\u00ae\u0161 which isn't correct. Dan Tran wrote: how different? On Sat, Jul 5, 2008 at 2:02 AM, youhaodeyi [EMAIL PROTECTED] wrote: I use native2ascii plugin to convert my resource files. This is my configuration in pom file: plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId configuration srcsrc/test/java/ui/demo/i18n/src destclasses/ui/demo/i18n/dest /configuration executions execution goals goalnative2ascii/goal /goals !-- specific configurations -- configuration encodingUTF8/encoding /configuration /execution /executions /plugin One problem is that when I use mvn native2ascii:native2ascii to do the job, the result file is different with when I use $JAVA_HOME/bin/native2ascii command? why? The other issue is that how can I let this goat to replace the existed file? -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18290230.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18297921.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two questions about native2ascii plugin
I use $JAVA_HOME/bin/native2ascii -encoding UTF8 command to convert the file. But maven native2ascii convert the file have the same result with the command $JAVA_HOME/bin/navite2ascii without the encoding specification. So the problem is that maven will ignore the encoding tag, won't it? Dan Tran wrote: how different? On Sat, Jul 5, 2008 at 2:02 AM, youhaodeyi [EMAIL PROTECTED] wrote: I use native2ascii plugin to convert my resource files. This is my configuration in pom file: plugin groupIdorg.codehaus.mojo/groupId artifactIdnative2ascii-maven-plugin/artifactId configuration srcsrc/test/java/ui/demo/i18n/src destclasses/ui/demo/i18n/dest /configuration executions execution goals goalnative2ascii/goal /goals !-- specific configurations -- configuration encodingUTF8/encoding /configuration /execution /executions /plugin One problem is that when I use mvn native2ascii:native2ascii to do the job, the result file is different with when I use $JAVA_HOME/bin/native2ascii command? why? The other issue is that how can I let this goat to replace the existed file? -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18290230.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18298111.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to package test souce code?
I run mvn package only package the java code into a jar file. How can I package the test code? -- View this message in context: http://www.nabble.com/How-to-package-test-souce-code--tp18274870p18274870.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why doesn't Eclipse build source code?
I set up a Maven project in Eclipse and set its source folder and output folder. Why doesn't eclipse build the source code? I have set build automatically. I clean the project hope that it will build the source code. but the output folder is still empty. -- View this message in context: http://www.nabble.com/Why-doesn%27t-Eclipse-build-source-code--tp18086187p18086187.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A problem of It will be ignored for artifact resolution.
When I build my source code, I will get a Warning It will be ignored for artifact resolution. Reason: Failed to validate POM for project MyProject. MyProject can be built and deployed without any problem. How can I get the detailed reason for this warning? -- View this message in context: http://www.nabble.com/A-problem-of-It-will-be-ignored-for-artifact-resolution.-tp18082136p18082136.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to filter Test case?
I put test case in the src/test/java directory also some demo code there. Is there a way to skip the demo code when doing test? thanks. -- View this message in context: http://www.nabble.com/How-to-filter-Test-case--tp17996149p17996149.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I deploy parent module without deploying sub modules?
I want to deploy my parent module to the remote repository but not its child modules. How can I do this? -- View this message in context: http://www.nabble.com/How-can-I-deploy-parent-module-without-deploying-sub-modules--tp17881951p17881951.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I deploy parent module without deploying sub modules?
Oh, it works. thanks a lot. Giancarlo Degani wrote: Have you tried with the command mvn -N deploy ? Giancarlo 2008/6/17, youhaodeyi [EMAIL PROTECTED]: I want to deploy my parent module to the remote repository but not its child modules. How can I do this? -- View this message in context: http://www.nabble.com/How-can-I-deploy-parent-module-without-deploying-sub-modules--tp17881951p17881951.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-can-I-deploy-parent-module-without-deploying-sub-modules--tp17881951p1772.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to build sub-module without parent pom?
I can install the parent module into local repository. but how to deploy it to remote repository? The parent module is packaging of pom. So when I run mvn deploy:deploy I will get this error: The packaging for this project did not assign a file to the build artifact. Olivier Dehon-2 wrote: On Fri, 2008-05-09 at 06:03 -0700, youhaodeyi wrote: Sometimes a project has many sub-modules and each of them may have sub-sub-modules. I don't want to get all the source codes. How can I work on a sub-module without its parent pom file? If the parent in installed in your local repository of if it is in one of the remote repositories you have configured in your settings.xml, then you can simply check the module out and build it, the parent pom will be retrieved for you like any other dependency. -Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-build-sub-module-without-parent-pom--tp17147483p17845799.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question about Nexus Repository Manager
ok, thanks. Brian E Fox wrote: Take a look here: http://www.sonatype.com/book/reference/repository-manager.html# Basically the repository Id used in the mirrorOf is the repository defined in your pomsor simply central (from the super pom). We recommend simply using *. -Original Message- From: youhaodeyi [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2008 11:15 PM To: users@maven.apache.org Subject: A question about Nexus Repository Manager I choose to use Nexus as our Repository Manager. There are many repositories defined in Nexus. But how can I map them into Maven? I know there is mirror element I can use in settings.xml file. But it requires the repository id which is defined in Nexus not in maven. -- View this message in context: http://www.nabble.com/A-question-about-Nexus-Repository-Manager-tp178353 10p17835310.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/A-question-about-Nexus-Repository-Manager-tp17835310p17845912.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A question about Nexus Repository Manager
I choose to use Nexus as our Repository Manager. There are many repositories defined in Nexus. But how can I map them into Maven? I know there is mirror element I can use in settings.xml file. But it requires the repository id which is defined in Nexus not in maven. -- View this message in context: http://www.nabble.com/A-question-about-Nexus-Repository-Manager-tp17835310p17835310.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to generate POM for existed dependency?
What do you mean by inhouse? Could you give more information on this? Magne Nordtveit wrote: On Tue, 2008-06-03 at 01:11 -0700, youhaodeyi wrote: I have downloaded some dependencies from remote repository into local repository. But some of them don't have pom file. How can I generate pom file for dependencies in local repository? When you install it to your local repository, specify -DgeneratePom=true. If the artifact is automatically downloaded to your repository from another source (i.e. central) consider creating a thirdparty repo inhouse and deploy it to that (the -DgeneratePom=true should work for the deploy plugin aswell). -- Magne Nordtveit [EMAIL PROTECTED] Systems Engineer Offshore Simulator Centre AS http://www.offsimcentre.no/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17618882.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I use relative path for System Dependencies
I use system dependency. But it doesn't work when specify a relative directory for systemPath, see below. dependencies dependency groupIdtest/groupId artifactIdtest/artifactId version1.0/version scopesystem/scope systemPathdependency/my.jar/systemPath /dependency /dependencies -- View this message in context: http://www.nabble.com/How-can-I-use-relative-path-for-System-Dependencies-tp17618779p17618779.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to generate POM for existed dependency?
This is not what I want. The dependency has already existed in local repository. I don't need to install. I just need to generate pom file for it. [EMAIL PROTECTED] wrote: youhaodeyi schrieb: I have downloaded some dependencies from remote repository into local repository. But some of them don't have pom file. How can I generate pom file for dependencies in local repository? Please read the Maven frequently asked questions page. The answer is item number 9. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17618572.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to generate POM for existed dependency?
Maven will download them from remote repository. For some reason, not every dependency has its own pom file. [EMAIL PROTECTED] wrote: youhaodeyi schrieb: This is not what I want. The dependency has already existed in local repository. I don't need to install. I just need to generate pom file for it. How on earth did it get into your local repository without a pom? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17618673.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to generate POM for existed dependency?
I have downloaded some dependencies from remote repository into local repository. But some of them don't have pom file. How can I generate pom file for dependencies in local repository? -- View this message in context: http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17618375.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I use relative path for System Dependencies
Hi, Thanks. Where can I find the properties Maven defines like ${java.home}, ${basedir} etc? Anne Gerodolle wrote: systemPath : is used only if the the dependency scope is system . Otherwise, the build will fail if this element is set. The path must be absolute, so it is recommended to use a property to specify the machine-specific path (more on properties below), such as ${java.home}/lib . Since it is assumed that system scope dependencies are installed a priori , Maven will not check the repositories for the project, but instead checks to ensure that the file exists. If not, Maven will fail the build and suggest that you download and install it manually. (http://maven.apache.org/pom.html) -Message d'origine- De : youhaodeyi [mailto:[EMAIL PROTECTED] Envoyé : mardi 3 juin 2008 10:36 À : users@maven.apache.org Objet : How can I use relative path for System Dependencies I use system dependency. But it doesn't work when specify a relative directory for systemPath, see below. dependencies dependency groupIdtest/groupId artifactIdtest/artifactId version1.0/version scopesystem/scope systemPathdependency/my.jar/systemPath /dependency /dependencies -- View this message in context: http://www.nabble.com/How-can-I-use-relative-path-for-System-Dependencies-tp17618779p17618779.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-can-I-use-relative-path-for-System-Dependencies-tp17618779p17619371.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to generate POM for existed dependency?
There are many of them, like: org/apache/cxf/cxf-rt-transports-http/2.0.4-incubator/cxf-rt-transports-http-2.0.4-incubator.pom [EMAIL PROTECTED] wrote: Magne Nordtveit schrieb: On Tue, 2008-06-03 at 01:11 -0700, youhaodeyi wrote: I have downloaded some dependencies from remote repository into local repository. But some of them don't have pom file. How can I generate pom file for dependencies in local repository? When you install it to your local repository, specify -DgeneratePom=true. If the artifact is automatically downloaded to your repository from another source (i.e. central) consider creating a thirdparty repo inhouse and deploy it to that (the -DgeneratePom=true should work for the deploy plugin aswell). I'm not aware of any jars in the maven repos that do not have poms. But if there are any, then you should be able to simply reinstall the jar into your local repo using the instructions I referred you to before. That will generate a trivial pom file. I'm not sure why you'd bother doing this though. As far as I know the only effect would be to shut up warnings about trying to fetch pom. What dependencies (groupId, artifactId, version) don't have poms? Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17638091.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to generate POM for existed dependency?
True. Thanks. dkulp wrote: Umm.. none of the incubator versions of CXF would be at central at all. That pom isn't there and neither is the jar. They would be in the incubator repository: http://people.apache.org/repo/m2-incubating-repository/ and the poms for those artifacts are indeed there. That said, CXF has graduated. The non-incubator versions (2.0.6 and 2.1) are both available at central and poms are there. Dan On Jun 3, 2008, at 10:49 PM, youhaodeyi wrote: There are many of them, like: org/apache/cxf/cxf-rt-transports-http/2.0.4-incubator/cxf-rt- transports-http-2.0.4-incubator.pom [EMAIL PROTECTED] wrote: Magne Nordtveit schrieb: On Tue, 2008-06-03 at 01:11 -0700, youhaodeyi wrote: I have downloaded some dependencies from remote repository into local repository. But some of them don't have pom file. How can I generate pom file for dependencies in local repository? When you install it to your local repository, specify -DgeneratePom=true. If the artifact is automatically downloaded to your repository from another source (i.e. central) consider creating a thirdparty repo inhouse and deploy it to that (the - DgeneratePom=true should work for the deploy plugin aswell). I'm not aware of any jars in the maven repos that do not have poms. But if there are any, then you should be able to simply reinstall the jar into your local repo using the instructions I referred you to before. That will generate a trivial pom file. I'm not sure why you'd bother doing this though. As far as I know the only effect would be to shut up warnings about trying to fetch pom. What dependencies (groupId, artifactId, version) don't have poms? Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17638091.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Daniel Kulp [EMAIL PROTECTED] http://www.dankulp.com/blog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17638248.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I run an Ant target in Maven?
I use Maven runant plugin to execute ant task, see below: build plugins plugin artifactIdmaven-antrun-plugin/artifactId configuration tasks property name=output value=target/classes / taskdef name=hibernatetool classname=org.hibernate.tool.ant.HibernateToolTask / target name=schema-recreate hibernatetool destdir=${output} configuration configurationfile=${output}/hibernate.cfg.xml / hbm2ddl drop=true create=true export=true update=false / /hibernatetool /target /tasks /configuration /plugin /plugins /build How can I run the target schema-recreate? I don't want o attach this into any Maven lifecycle. -- View this message in context: http://www.nabble.com/How-can-I-run-an-Ant-target-in-Maven--tp17596941p17596941.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I package test code?
mvn package only packages source code into a jar file. I want to package the test code into a jar file too. How can I do this? -- View this message in context: http://www.nabble.com/How-can-I-package-test-code--tp17599476p17599476.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A problem about deploying project.
I want to deploy my project to a Host by FTP. I set the distributionManagement and run the command mvn deploy. This is my pom file: modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdtest/artifactId version1.0-SNAPSHOT/version ... distributionManagement repository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /repository snapshotRepository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /snapshotRepository /distributionManagement build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-1/version /extension /extensions /build ... When run the command mvn deploy I got this error: [INFO] Retrieving previous build number from Local Repository [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error retrieving previous build number for artifact 'comtest:jar': repository metadata for: 'snapshot test:test:1.0-SNAPSHOT' could not be retrieved from rep ository: Local Repository due to an error: Required directory: '/' is missing -- View this message in context: http://www.nabble.com/A-problem-about-deploying-project.-tp17531032p17531032.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A problem about deploying project.
com.ge.sic.mule.dicom:mule-tr ansport-dicom-net:1.0-SNAPSHOT' could not be retrieved from repository: Local Re pository due to an error: Required directory: '/' is missing at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada taManager.resolveAlways(DefaultRepositoryMetadataManager.java:352) at org.apache.maven.artifact.transform.SnapshotTransformation.resolveLat estSnapshotBuildNumber(SnapshotTransformation.java:161) at org.apache.maven.artifact.transform.SnapshotTransformation.transformF orDeployment(SnapshotTransformation.java:100) ... 21 more Caused by: org.apache.maven.wagon.TransferFailedException: Required directory: ' /' is missing at org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon. java:313) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(D efaultWagonManager.java:470) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMeta dataFromDeploymentRepository(DefaultWagonManager.java:379) at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada taManager.getArtifactMetadataFromDeploymentRepository(DefaultRepositoryMetadataM anager.java:380) at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada taManager.resolveAlways(DefaultRepositoryMetadataManager.java:348) ... 23 more [INFO] [INFO] Total time: 25 seconds [INFO] Finished at: Thu May 29 19:39:21 CST 2008 Nick Stolwijk wrote: Could you give a more detailed error description by running the command with the -e (exceptions) or even -X (debug) parameters? With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl -Original Message- From: youhaodeyi [mailto:[EMAIL PROTECTED] Sent: Thu 5/29/2008 11:35 To: users@maven.apache.org Subject: A problem about deploying project. I want to deploy my project to a Host by FTP. I set the distributionManagement and run the command mvn deploy. This is my pom file: modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdtest/artifactId version1.0-SNAPSHOT/version ... distributionManagement repository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /repository snapshotRepository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /snapshotRepository /distributionManagement build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-1/version /extension /extensions /build ... When run the command mvn deploy I got this error: [INFO] Retrieving previous build number from Local Repository [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error retrieving previous build number for artifact 'comtest:jar': repository metadata for: 'snapshot test:test:1.0-SNAPSHOT' could not be retrieved from rep ository: Local Repository due to an error: Required directory: '/' is missing -- View this message in context: http://www.nabble.com/A-problem-about-deploying-project.-tp17531032p17531032.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/A-problem-about-deploying-project.-tp17531032p17533810.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A problem about deploying project.
I have set the default folder for FTP users. Do I need to specify the folder again? mgainty wrote: ftp://3.36.231.203/ ftp is the protocol 3.3.36.23.203 is the host / is the folder are you sure you want to retrieve from root / instead of a real folder? Martin - Original Message - From: youhaodeyi [EMAIL PROTECTED] To: users@maven.apache.org Sent: Thursday, May 29, 2008 5:35 AM Subject: A problem about deploying project. I want to deploy my project to a Host by FTP. I set the distributionManagement and run the command mvn deploy. This is my pom file: modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdtest/artifactId version1.0-SNAPSHOT/version ... distributionManagement repository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /repository snapshotRepository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /snapshotRepository /distributionManagement build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-1/version /extension /extensions /build ... When run the command mvn deploy I got this error: [INFO] Retrieving previous build number from Local Repository [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error retrieving previous build number for artifact 'comtest:jar': repository metadata for: 'snapshot test:test:1.0-SNAPSHOT' could not be retrieved from rep ository: Local Repository due to an error: Required directory: '/' is missing -- View this message in context: http://www.nabble.com/A-problem-about-deploying-project.-tp17531032p17531032.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/A-problem-about-deploying-project.-tp17531032p17535681.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to build sub-module without parent pom?
Do you mean I should add the parent in the sub-module's dependency? [EMAIL PROTECTED] wrote: youhaodeyi schrieb: Sometimes a project has many sub-modules and each of them may have sub-sub-modules. I don't want to get all the source codes. How can I work on a sub-module without its parent pom file? The parent pom just needs to be in a repository that can be seen when you are building the sub-module. So if the sub-module is referencing a released parent pom, there should be no problem. The released pom will be in a repository. If the sub-module is referencing a snapshot version of a parent pom, then someone needs to set up a snapshot repository somewhere, and deploy that parent pom into the snapshot repository. Then when building the sub-module, you just need to have that snapshot repository defined, either by having it in the pom.xml for the sub-module, or by adding it to your personal ~/.m2/settings.xml file. Of course you won't see any changes that people make to that parent pom until they deploy the modified version to the snapshot repository again. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-build-sub-module-without-parent-pom--tp17147483p17163006.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to build sub-module without parent pom?
Sometimes a project has many sub-modules and each of them may have sub-sub-modules. I don't want to get all the source codes. How can I work on a sub-module without its parent pom file? -- View this message in context: http://www.nabble.com/How-to-build-sub-module-without-parent-pom--tp17147483p17147483.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to skip downloading POM?
Maven downloads all dependencies from remote repositories including their related jar and pom files. For some reason, not every jar has its pom file. In this case, Maven will try to download these pom files every time it is running. How can I let maven skip download these pom files or download only once? -- View this message in context: http://www.nabble.com/How-to-skip-downloading-POM--tp16975499s177p16975499.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to filter test dependency?
It doesn't work. This is my dependency: dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.4/version scopetest/scope /dependency I have indicated that it is in test scope. But the copy-dependencies will include the junit-4.4.jar. Thomas Darbois wrote: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy-dependencies/id phasepackage/phase goals goalcopy-dependencies/goal /goals configuration !-- excluding test dependencies from copying -- excludeScopetest/excludeScope /configuration /execution /executions /plugin /plugins /build Tomas Darbois Edifixio Grenoble - Projet ScorWare 04 76 29 89 27 [EMAIL PROTECTED] -Message d'origine- De : youhaodeyi [mailto:[EMAIL PROTECTED] Envoyé : vendredi 18 avril 2008 05:35 À : users@maven.apache.org Objet : How to filter test dependency? I add maven dependency plugin in my pom see below. But it will copy the dependencies which is in test scope. How can I filter them out? build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy-dependencies/id phasepackage/phase goals goalcopy-dependencies/goal /goals /execution /executions /plugin /plugins /build -- View this message in context: http://www.nabble.com/How-to-filter-test-dependency--tp16759890s177p16759890.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-filter-test-dependency--tp16759890s177p16781649.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to filter test dependency?
I add maven dependency plugin in my pom see below. But it will copy the dependencies which is in test scope. How can I filter them out? build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy-dependencies/id phasepackage/phase goals goalcopy-dependencies/goal /goals /execution /executions /plugin /plugins /build -- View this message in context: http://www.nabble.com/How-to-filter-test-dependency--tp16759890s177p16759890.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I generate a POM file for dependency?
I want to download these jars from remote reposiroty and then generate POM automatically. The method you mensioned is to installed the jar by hand. I don't want to do that since the jars already exist in remote repository just without POM file. Chris_Graham wrote: For instance: mvn install:install-file -Dfile=doccheck.jar -DgroupId=com.sun.tools.doclets -DartifactId=doccheck -Dversion=1.2b2 -Dpackaging=jar -DgeneratePom=true -Chris -- View this message in context: http://www.nabble.com/How-can-I-generate-a-POM-file-for-dependency--tp16695479s177p16695709.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I generate a POM file for dependency?
Some dependencies downloaded by Maven would not contain POM file, so every time I run Maven compile, it will try to get the POM file from remote repository. How can I generate a POM file for them? -- View this message in context: http://www.nabble.com/How-can-I-generate-a-POM-file-for-dependency--tp16695479s177p16695479.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I let Maven run a class before packaging
Thanks. antrun plugin can solve my problem. Nick Stolwijk wrote: You could bind a plugin to the process classes phase [1] which is a phase after compile but before packaging. If your class doesn't run as a plugin, you have a few options: 1) Make a plugin, which runs your class. [2] 2) Use the antrun plugin to fire of your class [3] Hth, Nick S. [1] http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html [2] http://maven.apache.org/guides/plugin/guide-java-plugin-development.html [3] http://maven.apache.org/plugins/maven-antrun-plugin/ -Original Message- From: youhaodeyi [mailto:[EMAIL PROTECTED] Sent: Fri 4/11/2008 07:15 To: users@maven.apache.org Subject: How can I let Maven run a class before packaging By default, Maven will package all the classes under target/classes directory into a jar file. But some classes are not generated by compiling, by running a Java application. How can I let Maven run a java application before packaging? -- View this message in context: http://www.nabble.com/How-can-I-let-Maven-run-a-class-before-packaging-tp16625144s177p16625144.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-can-I-let-Maven-run-a-class-before-packaging-tp16625144s177p16626580.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do I put document in Maven project?
Thanks. Maria Odea Ching-5 wrote: You can put your project documentation in src/site and it would get included when you generate the site for your project. Please note that your documents should be written in APT format and when you run 'mvn site', their corresponding html files will automatically be generated. Other project documentations such as javadocs, project info reports, etc. will also be generated. Please take a look at the following links for more details: http://maven.apache.org/guides/mini/guide-site.html http://maven.apache.org/doxia/references/apt-format.html Thanks, Deng On Thu, Apr 10, 2008 at 9:04 AM, youhaodeyi [EMAIL PROTECTED] wrote: This link lists all the Maven directories: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html but I didn't find a place to hole project document. -- View this message in context: http://www.nabble.com/Where-do-I-put-document-in-Maven-project--tp16599702s177p16599702.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Where-do-I-put-document-in-Maven-project--tp16599702s177p16603546.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can I set a timeout for downloading dependency
Can I set a timeout for downloading dependency jars? -- View this message in context: http://www.nabble.com/Can-I-set-a-timeout-for-downloading-dependency-tp16608218s177p16608218.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]