Unable to find artifact version under unpack goal
I have problem when unpacking the dependency jar if no version is specified. I have the following structure: root |-- module1 |-- module2 |-- assembly |-- cli And the following is extracted from root/assembly/cli/pom.xml: execution idunpack/id phasepackage/phase goals goalunpack/goal /goals configuration artifactItems artifactItem groupIdgroupX/groupId artifactIdmoduleX/artifactId outputDirectory${pom.basedir }/target/resources/outputDirectory /artifactItem /artifactItems /configuration /execution I did not include version, because I have included groupX:moduleX:0.1.0under dependencyManagement in root/pom.xml However, it works if I execute from: root/assembly/cli mvn package But it complaint Unable to find artifact version of groupX:moduleX in project's dependency management. if it is executed from: root/assembly mvn package Anybody knows what is happening? Please let me know if you required more information. thanks, Ty
Re: Unable to find artifact version under unpack goal
I just solved it by installing all parent POMs. On 11/3/06, Ty Cuz [EMAIL PROTECTED] wrote: I have problem when unpacking the dependency jar if no version is specified. I have the following structure: root |-- module1 |-- module2 |-- assembly |-- cli And the following is extracted from root/assembly/cli/pom.xml: execution idunpack/id phasepackage/phase goals goalunpack/goal /goals configuration artifactItems artifactItem groupIdgroupX/groupId artifactIdmoduleX/artifactId outputDirectory${pom.basedir }/target/resources/outputDirectory /artifactItem /artifactItems /configuration /execution I did not include version, because I have included groupX:moduleX:0.1.0under dependencyManagement in root/pom.xml However, it works if I execute from: root/assembly/cli mvn package But it complaint Unable to find artifact version of groupX:moduleX in project's dependency management. if it is executed from: root/assembly mvn package Anybody knows what is happening? Please let me know if you required more information. thanks, Ty
Execute ant task in order
Hi I am trying to run ant task with maven2. The ant task is to generate native header by executing javah, thus it requires the class file. The problem is the ant task was executing first before the java sources compiled into class file, so I got the error of class could not be found when executing ant task. Is there a way to control the ant task to be executed at last? Ty
Re: Execute ant task in order
Yes, it works now by changing the lifecycle phase, it was at process-resources before. Thanks for the help! Ty On 7/10/06, Tim Kettler [EMAIL PROTECTED] wrote: Hi, I assume you use the antrun-plugin to execute the ant task? If yes, just bind it to a lifecycle phase after the 'compile' phase. 'process-classes' for example. As a sidenode. The native-maven-plugin [1] can create the header files and build a library from them (See [2] for an example for creating a msvc dll from javah generated headers). But I don't know if that is what you want. Hope this helps -Tim [1] http://mojo.codehaus.org/maven-native/native-maven-plugin/ [2] http://mojo.codehaus.org/maven-native/native-maven-plugin/examples.html Ty Cuz schrieb: Hi I am trying to run ant task with maven2. The ant task is to generate native header by executing javah, thus it requires the class file. The problem is the ant task was executing first before the java sources compiled into class file, so I got the error of class could not be found when executing ant task. Is there a way to control the ant task to be executed at last? Ty - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]