XDoclet plugin failed: Failed to set property restrictedpath

2009-06-04 Thread Rex Huang
Hi all. I tried to build magnolia trunk, everything seems ok, but magnolia-taglib-cms isn't. I got this message, and I don't know how to fix it. Anybody can help me ? [INFO] Scanning for projects... [INFO] [INFO] Building

Re: Fail to deploy 3rd party jar to repository in unix

2008-04-04 Thread Rex Huang
. Wayne On 4/2/08, Rex Huang [EMAIL PROTECTED] wrote: It's deploy successful when use mvn deploy with pom file, but mvn deploy:deploy-file is fail. Rex On Wed, Apr 2, 2008 at 11:47 AM, Rex Huang [EMAIL PROTECTED] wrote: same problem as Deploying 3rd party jar to our repository

Re: Fail to deploy 3rd party jar to repository in unix

2008-04-02 Thread Rex Huang
It's deploy successful when use mvn deploy with pom file, but mvn deploy:deploy-file is fail. Rex On Wed, Apr 2, 2008 at 11:47 AM, Rex Huang [EMAIL PROTECTED] wrote: same problem as Deploying 3rd party jar to our repository http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox

maven-site-plugin stage-deploy incorrect in unix

2008-03-14 Thread Rex Huang
my project information as below: Project path is: /opt/work/project1 Setting in pom file: distributionManagement site idmy-app/id urlscp://www.mycompany.com/home/testuser/fullsite/url /site /distributionManagement I run maven command to generate report: mvn clean

Re: how to use buildnumber-maven-plugin

2008-03-11 Thread Rex Huang
how can I use both buildNumber and timestamp? but I had just set the buildNumber as below: plugin groupIdorg.codehaus.mojo/groupId artifactIdbuildnumber-maven-plugin/artifactId executions execution phasevalidate/phase

Re: how to use buildnumber-maven-plugin

2008-03-11 Thread Rex Huang
Thank you for your suggestion, but it seems not working correcttly for the bug of this plugin. the results as below: [buildnumber:create {execution: generate-buildnumber}] Storing buildNumber: 16 at timestamp: 1205242293453 [buildnumber:create {execution: generate-timestamp}] Storing

how to use buildnumber-maven-plugin

2008-03-06 Thread Rex Huang
when I use buildnumber-maven-plugin, it generate the buildnumber as below: buildNumber: 137261 at timestamp: 1204813937453 but I want to change the timestamp's format, configuration as below: plugins plugin groupIdorg.codehaus.mojo/groupId

how to set manifestEntries with maven-assembly-plugin?

2008-02-20 Thread Rex Huang
I use maven-assembly-plugin instead of maven-jar-plugin, because I want to create a binary distribution with all runtime dependencies. but I don't know how to set manifestEntries with maven-assembly-plugin. and also I wonder if the sunfire-test is test the jar file that I repackaged with

Re: how to set manifestEntries with maven-assembly-plugin?

2008-02-20 Thread Rex Huang
maven-assembly-plugin use MavenArchiveConfiguration, it seems that it's not easy to customize. BR//Rex On Feb 20, 2008 9:38 AM, Rex Huang [EMAIL PROTECTED] wrote: I use maven-assembly-plugin instead of maven-jar-plugin, because I want to create a binary distribution with all runtime

how set manifestEntries with maven-assembly-plugin

2008-02-19 Thread Rex Huang
I use maven-assembly-plugin instead of maven-jar-plugin, because I want to create a binary distribution with all runtime dependencies. but I don't know how set manifestEntries with maven-assembly-plugin. and also I wonder if the sunfire-test is test the jar file that I repackaged with

Re: Maven-jar-plugin customization

2008-02-19 Thread Rex Huang
maybe you should use maven-assembly-plugin http://maven.apache.org/plugins/maven-assembly-plugin/ Rex On Feb 19, 2008 11:53 AM, Julien FOROT [EMAIL PROTECTED] wrote: Hi ! I want to make 2different jars from the same source folder. So I made this structure : - jar -- pom.xml -- src

Does maven has plugin to support subversion?

2008-02-18 Thread Rex Huang
does maven has plugin to support subversion? can it support the feature like subversion copy? BR//Rex

Re: can maven run java program using dependence artifact information as classpath?

2008-01-30 Thread Rex Huang
the application use System.getProperty(java.class.path) to get classpath. Rex On Jan 30, 2008 10:46 AM, Rex Huang [EMAIL PROTECTED] wrote: exec-maven-plugin is good, but in my case, the application also run javac to generate jar file, and it use its classpath instead of dependency

Re: can maven run java program using dependence artifact information as classpath?

2008-01-30 Thread Rex Huang
should interest you: http://mojo.codehaus.org/exec-maven-plugin/usage.html Wayne On 1/29/08, Rex Huang [EMAIL PROTECTED] wrote: I just give mainclass and parameters information, then maven runs the mainclass and use dependence artifact information as classpath. Can this work? BR//Rex

Re: can maven run java program using dependence artifact information as classpath?

2008-01-30 Thread Rex Huang
the dependencies and some other files. Maybe that is what you're looking for. Hth, Nick Stolwijk [1] http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/ Rex Huang wrote: I just give mainclass and parameters information, then maven runs the mainclass and use dependence artifact

can maven package all the dependence jar files in the war file?

2008-01-30 Thread Rex Huang
I want to generate a war file, the dependence jar files are needed to package in it. and also the class files in WEB-INF\classes, I want to package it in a jar file. all the jar files should be put in WEB-INF\lib. Can I make it work? BR//Rex

can maven run java program using dependence artifact information as classpath?

2008-01-29 Thread Rex Huang
I just give mainclass and parameters information, then maven runs the mainclass and use dependence artifact information as classpath. Can this work? BR//Rex

Re: how to replace a java file

2008-01-28 Thread Rex Huang
the version, using ClassLoader.getResourceAsStream(). Or you can create your own properties file somewhere else and filter it, as suggested by Heinrich. Wayne On 1/22/08, Heinrich Nirschl [EMAIL PROTECTED] wrote: On Jan 22, 2008 5:38 PM, Rex Huang [EMAIL PROTECTED] wrote: for example, I had

Re: how to replace a java file

2008-01-28 Thread Rex Huang
On Jan 28, 2008 2:22 PM, Rex Huang [EMAIL PROTECTED] wrote: when I doing a migration project, I found that many places using filter and replace to replace java in ant scripts, so It's necessary to have a plugin to replace java code. Does anyone knows how to do it? BR//Rex On Jan 22, 2008

mvn release problem when use properties as version

2008-01-25 Thread Rex Huang
I set artifact version using properties in pom file: properties product.version1.0-SNAPSHOT/product.version /properties modelVersion4.0.0/modelVersion groupIdcom.mycompany.app/groupId artifactIdmy-app/artifactId packagingjar/packaging version${product.version}/version

mvn release perform error inMultiple Module Projects

2008-01-24 Thread Rex Huang
Multiple Module Projects as the link below: http://maven.apache.org/plugins/maven-eclipse-plugin/reactor.html module1 dependent on core in guide-ide-eclipse project, when I release guide-ide-eclipse 1.0, it will release module1 and core but when building module1, it raise error: [ERROR] BUILD

mvn release perform error in Multiple Module Projects

2008-01-24 Thread Rex Huang
Multiple Module Projects as the link below: http://maven.apache.org/plugins/maven-eclipse-plugin/reactor.html module1 dependent on core in guide-ide-eclipse project, when I release guide-ide-eclipse 1.0, it will release module1 and core but when building module1, it raise error: [ERROR] BUILD

Re: mvn release perform error inMultiple Module Projects

2008-01-24 Thread Rex Huang
It works! thank you very much~ :D Rex On Jan 24, 2008 10:59 AM, Rémy Sanlaville [EMAIL PROTECTED] wrote: Hi, It's a well-known problem (cf. archives) In situations like this it usually helps to run the prepare step with: mvn *release*:prepare -DpreparationGoals=clean install cf.

can maven solve circle dependencies problem in multiple module projects

2008-01-24 Thread Rex Huang
there are three modules A, B, C A depends on B, B depends on C, C depends on A To solve this problem, we can make one module use the old version build. In maven, even I make one module dependency in old version build, it still cause error. [ERROR] BUILD FAILURE [INFO] The projects in the reactor

can maven solve circle dependencies problem in multiple module projects

2008-01-24 Thread Rex Huang
there are three modules A, B, C A depends on B, B depends on C, C depends on A To solve this problem, we can make one module use the old version build. In maven, even I make one module dependency in old version build, it still cause error. [ERROR] BUILD FAILURE [INFO] The projects in the reactor

Re: how can I to use build time in pom files

2008-01-22 Thread Rex Huang
: Add this to your filter.properties: BUILDTIME=${buildNumber} On Jan 21, 2008 9:10 AM, Rex Huang [EMAIL PROTECTED] wrote: yah, use buildnumber-maven-plugin may be better. one strange thing is I can't use ${buildNumber} in filter, when I want to replace $BUILDTIME

how can I replace a java file?

2008-01-22 Thread Rex Huang
I want to use filter to generate a src/main/resources/filter/hello.java to replace the old one in src/main/java/com/my-company/hello.java resource in pom.xml resource directorysrc/main/resources/filter//directory filteringtrue/filtering includes

how can I replace a java file?

2008-01-22 Thread Rex Huang
I want to use filter to generate a src/main/resources/filter/hello.java to replace the old one in src/main/java/com/my-company/hello.java resource in pom.xml resource directorysrc/main/resources/filter//directory filteringtrue/filtering includes

how to replace a java file

2008-01-22 Thread Rex Huang
I want to use filter to generate a src/main/resources/filter/hello.java to replace the old one in src/main/java/com/my-company/hello.java resource in pom.xml resource directorysrc/main/resources/filter//directory filteringtrue/filtering includes

Re: including properties in the pom.xml from an external file

2008-01-22 Thread Rex Huang
Take out the properties from pom file is sensible, it make it easy to configuration. I don't know whether profile can do this. Rex On Jan 22, 2008 5:32 PM, Wayne Fay [EMAIL PROTECTED] wrote: Yes, it is no longer available. What is your use case? Most things can be handled with filters and/or

Re: how to replace a java file

2008-01-22 Thread Rex Huang
. This is not easy to accomplish. Maybe you could first answer a question: why are you trying to accomplish this? Hth, Nick Stolwijk -Original Message- From: Rex Huang [mailto:[EMAIL PROTECTED] Sent: Tue 1/22/2008 4:21 PM To: users@maven.apache.org Subject: how to replace a java file I

Re: how can I to use build time in pom files

2008-01-21 Thread Rex Huang
. *http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html* Regards, Mark Rex Huang wrote: Does maven has build time property, which I can use in pom files my-property${build time}my-property BR//Rex

Re: How to handle Incremental Versions

2008-01-21 Thread Rex Huang
try to use Dependency Version Ranges http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution Rex On Jan 21, 2008 8:49 AM, amit kumar [EMAIL PROTECTED] wrote: I am using buildnumber plugin now to append timestamp to the builds. But at continuous integration (

Re: how can I to use build time in pom files

2008-01-21 Thread Rex Huang
yah, use buildnumber-maven-plugin may be better. one strange thing is I can't use ${buildNumber} in filter, when I want to replace $BUILDTIME in the resource file. such as: in pom.xml properties BUILDTIME${buildNumber}/BUILDTIME /properties resource

how can I to use build time in pom files

2008-01-18 Thread Rex Huang
Does maven has build time property, which I can use in pom files my-property${build time}my-property BR//Rex

how filter not use some properities in pom.xml

2008-01-17 Thread Rex Huang
by default in pom.xml there has properity name such as: modelVersion4.0.0/modelVersion groupIdcom.mycompany.app/groupId artifactIdmy-app/artifactId packagingjar/packaging version1.1-SNAPSHOT/version namemy-app/name and I use filtering like this: build

Re: how filter not use some properities in pom.xml

2008-01-17 Thread Rex Huang
but I need to use filtering in other files with other properties, so filtering must be set to true, but name is set by default, I don't want to use it as filter. BR//Rex 2008/1/17 Jeff MAURY [EMAIL PROTECTED]: Change filtering from true to false. On Jan 17, 2008 12:03 PM, Rex Huang [EMAIL

Re: how filter not use some properities in pom.xml

2008-01-17 Thread Rex Huang
MAURY [EMAIL PROTECTED]: Either you change the name of the property in your file or use the properties tag in your pom but I'm afraid it will affect Maven. Jeff 2008/1/17 Rex Huang [EMAIL PROTECTED]: but I need to use filtering in other files with other properties, so filtering must