Skip to main content

Arguments issue in maven-jaxb2-plugin with maven version

No replies
g_rohit7
Offline
Joined: 2013-03-14
Points: 0

I am using maven-jaxb2-plugin and passing some arguments in the configuration. With maven 2.2 the arguments are passed when classes are being generated from schema, but in 3.0.5 the arguments are not being passed.

pom.xml plugin configuration

org.jvnet.jaxb2.maven2
maven-jaxb2-plugin


pre-clean
generate

false



${maven.xjc2.schemaDirectory}

*.xsd

${maven.xjc2.generatePackage}
${maven.xjc2.generateDirectory}
true
true

-enableIntrospection
org.jvnet.jaxb2_commons
basic
0.4.1.5

Output with maven 2.2
[INFO] plugins:[Dependency {groupId=org.jvnet.jaxb2_commons, artifactId=basic, version=0.4.1.5, type=jar}]
[INFO] episodes:null
[INFO] useDependenciesAsEpisodes:false
[INFO] scanDependenciesForBindings:false
[INFO] xjcPlugins:[Dependency {groupId=org.jvnet.jaxb2_commons, artifactId=basic, version=0.4.1.5, type=jar}]
[INFO] xjcPluginURLs (resolved):[file:/d:/applications/.m2/repository/org/jvnet/jaxb2_commons/basic/0.4.1.5/basic-0.4.1.5.jar, file:/d:/appl
ications/.m2/repository/org/jvnet/jaxb2_commons/runtime/0.4.1.5/runtime-0.4.1.5.jar, file:/d:/applications/.m2/repository/commons-lang/commo
ns-lang/2.2/commons-lang-2.2.jar, file:/d:/applications/.m2/repository/org/jvnet/jaxb2_commons/tools/0.4.1.5/tools-0.4.1.5.jar, file:/d:/app
lications/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar, file:/d:/applications/.m2/repository/commons
-logging/commons-logging/1.1/commons-logging-1.1.jar]
[INFO] episodeArtifacts (resolved):[]
[INFO] episodeFiles (resolved):[]
[INFO] optionsConfiguration:OptionsConfiguration [specVersion=2.1
generateDirectory=f:\abc\src\main\java
generatePackage=com.sample.jaxb
schemaLanguage=null
schemas=[]
bindings=[]
plugins=[file:/d:/applications/.m2/repository/org/jvnet/jaxb2_commons/basic/0.4.1.5/basic-0.4.1.5.jar, file:/d:/applications/.m2/repository
/org/jvnet/jaxb2_commons/runtime/0.4.1.5/runtime-0.4.1.5.jar, file:/d:/applications/.m2/repository/commons-lang/commons-lang/2.2/commons-lan
g-2.2.jar, file:/d:/applications/.m2/repository/org/jvnet/jaxb2_commons/tools/0.4.1.5/tools-0.4.1.5.jar, file:/d:/applications/.m2/repositor
y/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar, file:/d:/applications/.m2/repository/commons-logging/commons-loggin
g/1.1/commons-logging-1.1.jar]
catalogs=[]
catalogResolver=org.jvnet.jaxb2.maven2.resolver.tools.MavenCatalogResolver@1362a63
readOnly=false
extension=true
strict=true
verbose=true
debugMode=false
arguments=[-enableIntrospection]]

Output with Maven 3.0.5
[INFO] plugins:null
[INFO] episodes:null
[INFO] useDependenciesAsEpisodes:false
[INFO] scanDependenciesForBindings:false
[INFO] xjcPlugins:null
[INFO] episodes:null
[INFO] bindingFiles (calculated):[]
[INFO] xjcPluginArtifacts (resolved):[]
[INFO] xjcPluginFiles (resolved):[]
[INFO] xjcPluginURLs (resolved):[]
[INFO] episodeArtifacts (resolved):[]
[INFO] episodeFiles (resolved):[]
[INFO] optionsConfiguration:OptionsConfiguration [specVersion=2.1
generateDirectory=f:\abc\src\main\java
generatePackage=com.sample.jaxb
schemaLanguage=null
schemas=[]
bindings=[]
plugins=[]
catalogs=[]
catalogResolver=org.jvnet.jaxb2.maven2.resolver.tools.MavenCatalogResolver@124e935
readOnly=false
extension=true
strict=true
verbose=true
debugMode=false
arguments=[]]

Any suggestions how I can pass arguments while using maven 3.0.5?