Petr Široký created DROOLS-837:
----------------------------------
Summary: Second (non-clean) build fails on -webapp modules
Key: DROOLS-837
URL:
https://issues.jboss.org/browse/DROOLS-837
Project: Drools
Issue Type: Bug
Affects Versions: 6.3.0.Beta1
Reporter: Petr Široký
Assignee: Petr Široký
Running {{mvn clean install}} and then {{mvn install}} on e.g. guvnor-webapp or
drools-wb-webapp ends with transitive dependency check failure:
{code}
[[WARNING] Rule 0: de.is24.maven.enforcer.rules.IllegalTransitiveDependencyCheck failed
with message:
13:31:52 Found 231 illegal transitive type dependencies in artifact
'org.guvnor:guvnor-webapp:war:6.3.0.20150703-085055':
org.dashbuilder.dataprovider.DataSetProviderType
org.dashbuilder.dataset.ColumnType
org.dashbuilder.dataset.DataSet
org.dashbuilder.dataset.DataSetLookup
org.dashbuilder.dataset.DataSetMetadata
org.dashbuilder.dataset.DataSetOp
org.dashbuilder.dataset.backend.EditDataSetDef
...
{code}
The cause seems to be the Errai generated classes which are put into src/main during the
first build. The {{clean}} phase will remove them, but if the build is executed without
the {{clean}} they stay there, the enforcer picks them up and fails because some class
references there are not declared in the pom.
In ideal case this should be fixed by putting all the generated stuff into target/, but
that might to hard to do, since the current setup seems to be well established, even
directly in Errai.
The best possible fix right now seems to be running the clean plugin for every build,
binding it to `initiliaze` phase.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)