How to take archetypeVersion in archetype-resources ?

2010-06-11 Thread NGUYEN Cong Kinh
Hi everybody, I create a maven-archetype as the following: - myArchetype + pom.xml (1) + src/main/resources + META-INF... + archetype-resources - pom.xml (2) - src/... In the second POM (pom.xml - 2) which module will be genera

[internal-repository] How to use relative path in the declaration of repository

2010-06-02 Thread NGUYEN Cong Kinh
Hi everybody, I have a problem with deploying an internal repository. In fact, I have some modules as the following: - module A + module A1 + module A11 + pom.xml + src + libs + module A12 + module A2 In the module A11, I us

[maven-javadoc-plugin] error when using "mvn site site-deploy"

2010-03-02 Thread NGUYEN Cong Kinh
Hello everybody, I have a problem when using maven-javadoc-plugin. My problem is as the following: - I have some modules, they are complied successfully with the "mvn clean install" command - Then when I use the "mvn site site-deploy", there's an error: [ERROR] BUILD ERROR [INFO] ---

Re: modules are built but not copied to local repository?

2009-12-11 Thread NGUYEN Cong Kinh
Please send this error to me. Because I haven't seen it. Thank you. Kinh Anders Hammar a écrit : After checking out and building for ages I get a NPE in helloworld ex 1... /Anders On Fri, Dec 11, 2009 at 13:55, NGUYEN Cong Kinh < cong_kinh.ngu...@it-sudparis.eu> wrote: In f

Re: modules are built but not copied to local repository?

2009-12-11 Thread NGUYEN Cong Kinh
g artifact...". You can check at svn co svn+ssh://gu...@picoforge.int-evry.fr/cosmos/trunk with "guest" as password (twice for entering password) Kinh Anders Hammar a écrit : What does the build output say - any errors? /Anders On Fri, Dec 11, 2009 at 13:38, NGUYEN Cong Kinh &

modules are built but not copied to local repository?

2009-12-11 Thread NGUYEN Cong Kinh
Hello everybody, I'm using Maven 2.2.1, JDK 6. I have a problem concerning compilation by Maven. In fact, for example I have the following structure: - trunk + pom.xml +-- A + pom.xml +-- A1 + pom.xml +-- A11 ... +-- A12 ... +-- A2 +-- A3 +-- B

how to easily release a version and change to new version?

2009-12-09 Thread NGUYEN Cong Kinh
Hello everybody, I have a problem with automatically deploying modules in Maven. I suppose that I have a Maven's hierachy as the following: - trunk + pom.xml +-- A + pom.xml +-- A1 + pom.xml +-- A11 ... +-- A12 ... +-- A2 +-- A3 +-- B

[extrends AbstractMojo]

2009-12-07 Thread NGUYEN Cong Kinh
Hello everybody, I'm creating a plugin maven (extends AbstractMojo). In fact, in the code of the plugin, I want to load a file in the resources directory of the plugin maven. How I can do that? Because normally the current directory is directory of the module that uses the plugin maven. Than

Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread NGUYEN Cong Kinh
in my POM? Kinh Paul Benedict a écrit : You could set it in your mvn.bat, right? On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh wrote: Hello everybody, Is there anyway to configure MAVEN_OPTS from the POM file (no variable)? For example, I want to configure Maven's memo

Re: [Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread NGUYEN Cong Kinh
Hello Paul, In fact, I don't want to set this. My question is that how to directly do this in my POM? Kinh Paul Benedict a écrit : You could set it in your mvn.bat, right? On Wed, Oct 7, 2009 at 10:14 AM, NGUYEN Cong Kinh wrote: Hello everybody, Is there anyway to conf

[Maven's memory] How to avoid adding the MAVEN_OPTS variable?

2009-10-07 Thread NGUYEN Cong Kinh
Hello everybody, Is there anyway to configure MAVEN_OPTS from the POM file (no variable)? For example, I want to configure Maven's memory is 768m. But I don't want to add the MAVEN_OPTS variable in the environment. This is possible to configure my POM? If yes, please send to me how to do this.

[mojo Maven-plugin] how to load generated classes in the process-classes phase

2009-08-21 Thread NGUYEN Cong Kinh
Hello everybody, I want to create a Maven plugin using AbstractMojo for the process-classes phase. In my plugin, I want to call classes generated by the compile phase. But, I don't know how to execute them. Could anyone give me some suggestions? Thanks in advance for any help! Kinh --

Re: [archetype] Creating a new archetype Maven

2009-08-12 Thread NGUYEN Cong Kinh
Hello, In fact, I see that if I replace this "parent" by : maven-archetype-bundles org.apache.maven.archetypes 3 it works. Could anyone explain it? NGUYEN Cong Kinh a écrit : Hello, I want to write a new archetype Maven. But I have a problem. Here is my "t

[archetype] Creating a new archetype Maven

2009-08-12 Thread NGUYEN Cong Kinh
Hello, I want to write a new archetype Maven. But I have a problem. Here is my "top" pom: http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0