I am trying to get annoatation based generation of my vso.xml to work. But it is not working 😞
What i did so far
- Added required libraries to build.classpath in maven-build.xml (the maven-build.xml of the plugin itsel, not model, core, etc.)
- Added ant task
| <target name="generate-vso"> |
<java fork="true" failonerror="yes"
classname="com.vmware.o11n.plugin.sdk.plugen.vso.VsoGenerator"
classpathref="build.classpath">
<jvmarg line="-Dlog4j.configuration=file:C:\temp\log4j.properties"/>
<arg line="-name ${plugin.build.name}" />
<arg line="-vsoDirectory ${maven.build.darDir}/VSO-INF" />
<arg line="-scanPackage target/classes/de/witcom" />
<!--
<arg line="-moduleBuilder de.witcom.firstPlugin" />
-->
</java>
</target>
- Annotated my classes
Whe starting the task nothing happens. A new vso.xml is created, with the contents of the existing one. Thats it. I enabled logging so i can see, that no classes are found
[java] 11.07.2014 15:49:28 com.vmware.o11n.plugin.sdk.annotation.support.AnnotationClassPathModuleDefinitionScanner findCandidateComponents
[java] INFO: Scanning for resources using pattern classpath*:target/classes/de/witcom/**/*.class
[java] 11.07.2014 15:49:28 com.vmware.o11n.plugin.sdk.annotation.support.AnnotationClassPathModuleDefinitionScanner findCandidateComponents
[java] INFO: Founded [0] matching resources
[java] 11.07.2014 15:49:28 com.vmware.o11n.plugin.sdk.annotation.support.AnnotationClassPathModuleDefinitionScanner doScan
[java] INFO: Candidates found:0
I believe i am giving the wrong Path for scanning....
Any help available ?
We are using vCo 5.1 and SDK for that Version..
Thanks
Carsten