[jboss-jira] [JBoss JIRA] (DROOLS-837) Second (non-clean) build fails on -webapp modules

Petr Široký (JIRA) issues at jboss.org
Fri Jul 3 10:04:02 EDT 2015


     [ https://issues.jboss.org/browse/DROOLS-837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Petr Široký updated DROOLS-837:
-------------------------------
    Description: 
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 {initialize} phase.

  was:
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.



> 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 {initialize} phase.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)



More information about the jboss-jira mailing list