Denis Golovin [
https://community.jboss.org/people/dgolovin] created the discussion
"Re: [m2e-wro4j] Anyone Have An Example Project?"
To view the discussion, visit:
https://community.jboss.org/message/744091#744091
--------------------------------------------------------------
Looks like you don't have wro.xml file in WEB-INF and it seems to be required to work
fro plugin or you get exception in standard output:
ro.isdc.wro.WroRuntimeException: Cannot create model using any of provided factories
at
ro.isdc.wro.extensions.model.factory.SmartWroModelFactory.create(SmartWroModelFactory.java:187)
at
ro.isdc.wro.extensions.model.factory.SmartWroModelFactory.create(SmartWroModelFactory.java:34)
at
ro.isdc.wro.model.factory.WroModelFactoryDecorator.create(WroModelFactoryDecorator.java:30)
at
ro.isdc.wro.model.factory.ModelTransformerFactory.create(ModelTransformerFactory.java:47)
at
ro.isdc.wro.model.factory.ModelTransformerFactory.create(ModelTransformerFactory.java:25)
at
ro.isdc.wro.model.factory.WroModelFactoryDecorator.create(WroModelFactoryDecorator.java:30)
at
ro.isdc.wro.model.factory.FallbackAwareWroModelFactory.create(FallbackAwareWroModelFactory.java:48)
at
ro.isdc.wro.model.factory.FallbackAwareWroModelFactory.create(FallbackAwareWroModelFactory.java:22)
at
ro.isdc.wro.model.factory.WroModelFactoryDecorator.create(WroModelFactoryDecorator.java:30)
at
ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory.access$101(InMemoryCacheableWroModelFactory.java:19)
at
ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory$1.initialize(InMemoryCacheableWroModelFactory.java:32)
at
ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory$1.initialize(InMemoryCacheableWroModelFactory.java:29)
at
ro.isdc.wro.util.DestroyableLazyInitializer.get(DestroyableLazyInitializer.java:36)
at
ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory.create(InMemoryCacheableWroModelFactory.java:42)
at
ro.isdc.wro.model.factory.InMemoryCacheableWroModelFactory.create(InMemoryCacheableWroModelFactory.java:19)
at
ro.isdc.wro.model.factory.WroModelFactoryDecorator.create(WroModelFactoryDecorator.java:30)
at ro.isdc.wro.manager.WroManager$3.create(WroManager.java:433)
at ro.isdc.wro.manager.WroManager$3.create(WroManager.java:428)
at
ro.isdc.wro.maven.plugin.AbstractWro4jMojo.getTargetGroupsAsList(AbstractWro4jMojo.java:198)
at ro.isdc.wro.maven.plugin.Wro4jMojo.doExecute(Wro4jMojo.java:113)
at ro.isdc.wro.maven.plugin.AbstractWro4jMojo.execute(AbstractWro4jMojo.java:106)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:312)
at
org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:45)
at
org.jboss.tools.m2e.wro4j.internal.Wro4jBuildParticipant.build(Wro4jBuildParticipant.java:82)
at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:180)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/744091#744091]
Start a new discussion in JBoss Tools at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]