Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p package?

2010-03-08 Thread youhaodeyi
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

Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p package?

2010-03-08 Thread youhaodeyi
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

Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p package?

2010-03-07 Thread youhaodeyi
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:

How can I find partent pom?

2009-10-21 Thread youhaodeyi
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:

Re: How can I get dependency including its children

2009-09-03 Thread youhaodeyi
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

How can I get dependency including its children

2009-09-02 Thread youhaodeyi
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

Re: How can I add path in classpath entry in Manifest file?

2009-09-01 Thread youhaodeyi
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 can I add path in classpath entry in Manifest file?

2009-08-31 Thread youhaodeyi
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:

Why doesn't executions work in my pom?

2009-08-31 Thread youhaodeyi
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

Re: How can I add path in classpath entry in Manifest file?

2009-08-31 Thread youhaodeyi
-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

maven xmlbeans problem

2009-08-26 Thread youhaodeyi
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:

Re: maven xmlbeans problem

2009-08-26 Thread youhaodeyi
-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

Re: maven xmlbeans problem

2009-08-26 Thread youhaodeyi
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

Re: maven xmlbeans problem

2009-08-26 Thread youhaodeyi
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

Re: maven xmlbeans problem

2009-08-26 Thread youhaodeyi
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

How can I set maven memory size?

2009-07-07 Thread youhaodeyi
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

Re: How can I set maven memory size?

2009-07-07 Thread youhaodeyi
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

Why distributionManagement doesn't work?

2009-03-12 Thread youhaodeyi
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

Re: Why distributionManagement doesn't work?

2009-03-12 Thread youhaodeyi
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

How can I force maven download dependency?

2009-03-10 Thread youhaodeyi
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

How to copy resource files to target/classes directory?

2009-02-26 Thread youhaodeyi
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

Maven build source code which uses deprecated API

2009-02-26 Thread youhaodeyi
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:

Re: Maven build source code which uses deprecated API

2009-02-26 Thread youhaodeyi
/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

Does maven deploy have maximum size limit?

2009-02-24 Thread youhaodeyi
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:

How to disable surefire generate report

2008-12-10 Thread youhaodeyi
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:

Re: How to disable surefire generate report

2008-12-10 Thread youhaodeyi
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

A problem about Maven Hibernate plugin

2008-12-03 Thread youhaodeyi
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

Re: A question about System scope in dependency.

2008-11-23 Thread youhaodeyi
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

A problem about MANIFEST in maven

2008-11-23 Thread youhaodeyi
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

Re: How to add snapshot dependency into MANIFEST.MF

2008-11-23 Thread youhaodeyi
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

Re: A problem about MANIFEST in maven

2008-11-23 Thread youhaodeyi
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

Re: A question about System scope in dependency.

2008-11-22 Thread youhaodeyi
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

A question about System scope in dependency.

2008-11-10 Thread youhaodeyi
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:

How to generate jar file from xmlbeans?

2008-11-06 Thread youhaodeyi
I use xmlbeans plugin in my maven project. This is the configuration I used: plugin groupIdorg.codehaus.mojo/groupId artifactIdxmlbeans-maven-plugin/artifactId executions

How to specify more than one phases in execution element?

2008-10-29 Thread youhaodeyi
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

About assembly

2008-10-26 Thread youhaodeyi
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

How to add snapshot dependency into MANIFEST.MF

2008-10-26 Thread youhaodeyi
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

How to set jar and test-jar separately?

2008-10-22 Thread youhaodeyi
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

How to use wildcard to match all the sub-directories and files?

2008-10-22 Thread youhaodeyi
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:

RE: How to set jar and test-jar separately?

2008-10-22 Thread youhaodeyi
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

Re: How to use wildcard to match all the sub-directories and files?

2008-10-22 Thread youhaodeyi
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

Re: How to use wildcard to match all the sub-directories and files?

2008-10-22 Thread youhaodeyi
/**/*/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

Re: How to use wildcard to match all the sub-directories and files?

2008-10-22 Thread youhaodeyi
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

Re: Can't Maven handle dependendies recursively?

2008-10-04 Thread youhaodeyi
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

Re: Can't Maven handle dependendies recursively?

2008-10-03 Thread youhaodeyi
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

Can't Maven handle dependendies recursively?

2008-10-02 Thread youhaodeyi
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:

How to let xmlbean generate jar file?

2008-09-30 Thread youhaodeyi
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

Re: How to let xmlbean generate jar file?

2008-09-30 Thread youhaodeyi
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

How to disable a plugin?

2008-09-05 Thread youhaodeyi
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

Re: How to disable a plugin?

2008-09-05 Thread youhaodeyi
, 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

Re: How to package test jar?

2008-08-24 Thread youhaodeyi
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

How to package test jar?

2008-08-23 Thread youhaodeyi
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:

How to use includes element in assembly descriptor file?

2008-08-06 Thread youhaodeyi
This is the descriptor file: assembly idtest/id formats formatzip/format /formats baseDirectorytarget/assembly/baseDirectory fileSets fileSet directorysrc/main/resources/directory

How to package the test jar file when doing assembly?

2008-08-06 Thread youhaodeyi
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

how to disable jar-with-dependencies when assembly?

2008-08-06 Thread youhaodeyi
This is my configuration file: plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptors

Re: how to disable jar-with-dependencies when assembly?

2008-08-06 Thread youhaodeyi
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

Re: How can I know where part of my project has error?

2008-07-27 Thread youhaodeyi
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

How can I know where part of my project has error?

2008-07-26 Thread youhaodeyi
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? --

Does Maven support dependency group?

2008-07-22 Thread youhaodeyi
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:

Re: Does Maven support dependency group?

2008-07-22 Thread youhaodeyi
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

Re: Two questions about native2ascii plugin

2008-07-07 Thread youhaodeyi
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

Re: Two questions about native2ascii plugin

2008-07-06 Thread youhaodeyi
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

Re: Two questions about native2ascii plugin

2008-07-06 Thread youhaodeyi
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

Re: Two questions about native2ascii plugin

2008-07-06 Thread youhaodeyi
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

Re: Two questions about native2ascii plugin

2008-07-06 Thread youhaodeyi
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

Two questions about native2ascii plugin

2008-07-05 Thread youhaodeyi
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

Re: Two questions about native2ascii plugin

2008-07-05 Thread youhaodeyi
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

Re: Two questions about native2ascii plugin

2008-07-05 Thread youhaodeyi
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

How to package test souce code?

2008-07-04 Thread youhaodeyi
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.

Why doesn't Eclipse build source code?

2008-06-24 Thread youhaodeyi
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:

A problem of It will be ignored for artifact resolution.

2008-06-23 Thread youhaodeyi
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:

How to filter Test case?

2008-06-18 Thread youhaodeyi
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

How can I deploy parent module without deploying sub modules?

2008-06-17 Thread youhaodeyi
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

Re: How can I deploy parent module without deploying sub modules?

2008-06-17 Thread youhaodeyi
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

Re: How to build sub-module without parent pom?

2008-06-14 Thread youhaodeyi
: 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

RE: A question about Nexus Repository Manager

2008-06-14 Thread youhaodeyi
*. -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

A question about Nexus Repository Manager

2008-06-13 Thread youhaodeyi
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

Re: How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi
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

How can I use relative path for System Dependencies

2008-06-03 Thread youhaodeyi
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

Re: How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi
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

Re: How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi
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

How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi
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:

RE: How can I use relative path for System Dependencies

2008-06-03 Thread youhaodeyi
. 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

Re: How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi
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

Re: How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi
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

How can I run an Ant target in Maven?

2008-06-02 Thread youhaodeyi
I use Maven runant plugin to execute ant task, see below: build plugins plugin artifactIdmaven-antrun-plugin/artifactId configuration tasks

How can I package test code?

2008-06-02 Thread youhaodeyi
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

A problem about deploying project.

2008-05-29 Thread youhaodeyi
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

RE: A problem about deploying project.

2008-05-29 Thread youhaodeyi
- 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

Re: A problem about deploying project.

2008-05-29 Thread youhaodeyi
- 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

Re: How to build sub-module without parent pom?

2008-05-10 Thread youhaodeyi
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

How to build sub-module without parent pom?

2008-05-09 Thread youhaodeyi
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:

How to skip downloading POM?

2008-04-30 Thread youhaodeyi
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

RE: How to filter test dependency?

2008-04-19 Thread youhaodeyi
/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

How to filter test dependency?

2008-04-17 Thread youhaodeyi
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

Re: How can I generate a POM file for dependency?

2008-04-15 Thread youhaodeyi
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

How can I generate a POM file for dependency?

2008-04-14 Thread youhaodeyi
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:

RE: How can I let Maven run a class before packaging

2008-04-11 Thread youhaodeyi
/ -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

Re: Where do I put document in Maven project?

2008-04-10 Thread youhaodeyi
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

Can I set a timeout for downloading dependency

2008-04-10 Thread youhaodeyi
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.

  1   2   >