maven


No schemas have been found | XJC


Can someone please help me on this issue. I have more than 2 schema files in the same directory and trying to generate the java classes using xjc in maven.
Here is my pom.xml
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>${jaxb2.version}</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<clearOutputDir>false</clearOutputDir>
<extension>true</extension>
<schemaFiles>${root.dir}/schemas/PnTCacheSchema.xsd</schemaFiles>
<schemaDirectory>${root.dir}/schemas/</schemaDirectory>
<packageName>com.superpages.nbt.gen.pnt</packageName>
<outputDirectory>${root.dir}/nbt/src</outputDirectory>
</configuration>
</execution>
<execution>
<id>xjc1</id>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<clearOutputDir>false</clearOutputDir>
<extension>true</extension>
<schemaFiles>${root.dir}/schemas/AdCacheSchema.xsd</schemaFiles>
<schemaDirectory>${root.dir}/schemas/</schemaDirectory>
<packageName>com.superpages.nbt.gen.cache</packageName>
<outputDirectory>${root.dir}/nbt/src</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Getting this exception
[ERROR] Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc (default-cli) on project gypsygen: No schemas have been found -> [Help 1]

Related Links

How do I get GroovyDoc to properly document return types with generic type parameters?
maven runtime scope but transitive dependencies have compile scope
Sonar + Multi Module Maven Projects
Maven Compiled files list
Does Mojo use jslint nomen flag backwards?
Sonar analysed projects not shown
Running Sonar from Maven: SQL driver not found
Maven version used by Netbeans 6.7.1
Tell maven to copy artifacts from directory other than maven-repo
Can Flyway execute SQL scripts that are not treated as migrations?
How does mvn --encrypt-master-password <password> work?
possible to parameterise junit tests and run with maven?
How to get the last build date in Hudson [closed]
Which antlr4-runtime?
Grails: Ivy: Google Code: How do I add a Google Code dependency to Grails?
No sub JAR or directory WEB-INF/classes

Categories

HOME
client
pypi
heroku
google-api-php-client
iterator
iot
electron
grep
filtering
cmd
webpack-2
swagger-ui
autotools
slurm
google-translate
gorm
gnupg
midi
izpack
etl
windows-7-x64
ef-migrations
google-static-maps
interop
scichart
physics-engine
cloudhub
sylius
dcevm
vlsi
su
web-api-testing
fifo
minitab
xacml
bpel
librato
vsts-build-task
hybridauth
phpfreechat
asset-pipeline
form-data
accelerate-framework
hockeyapp
libraries
turbogears
heightmap
.net-4.6.2
businessworks
sage-one
recursive-datastructures
carrot
nodebb
dtexec
flutterwave
mcafee
bind9
topbeat
pintos
angular-strap
nested-sets
instant
vmware-tools
android-textview
underscore.js-templating
merge-conflict-resolution
clang-static-analyzer
rvest
design-by-contract
asp.net5
energy
comobject
sysinternals
sailfish-os
apache-commons-fileupload
npapi
codeigniter-url
cdt
applescript-objc
xcode-6.2
document-classification
typeof
java.nio.file
spring-io
tws
dataadapter
padarn
angularjs-controller
e4x
bluepill
newtonscript
parametric-equations
regsvr32
spring-portlet-mvc
mercurial-server
external-accessory
xmlspy
netbeans-7.1
floating
h.323
revisions
modelstate
nhibernate.search
asp.net-profiles
vc90
ext3
rescale
data-driven
uimenucontroller
putchar
.net-1.0

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App