mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
107 stars 77 forks source link

Problem with ${project.basedir} #31

Closed olegls2000 closed 9 years ago

olegls2000 commented 9 years ago

Hello. I am use plugin in my project: `

org.codehaus.mojo jaxb2-maven-plugin 2.1 xjc xjc ${project.basedir}/src/main/resources/commission-rule-schema/CommissionRule.xsd com.exigen.chartis.premier.commission.dto.generated_sources ${project.build.directory}/generated-sources/jaxb/com/exigen/chartis/premier/commission/dto/generated_sources

` When I build blugin can't find sources file ${project.basedir}/src/main/resources/commission-rule-schema/CommissionRule.xsd Looks like plugin incorrect define project.basedir variable and tru to substitute project.basedir from root pom file.

lennartj commented 9 years ago

You do not need to include the project.basedir in the source element. Simply use "src/main/resources/commission-rule-schema/CommissionRule.xsd" or even "src/main/resources" to recursively include all XSD files under the resource directory.