[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-980) Byteman dependency is not properly scoped
Karel Piwko (JIRA)
noreply at atlassian.com
Tue Nov 22 06:30:21 EST 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44373#comment-44373 ]
Karel Piwko commented on HSEARCH-980:
-------------------------------------
Sanne,
the problem here is that mvn dependency:tree uses Maven 2 resolution, so it is not the same as actually used in your project. You have to use either eclipse pom editor or mvn -X + grep to get the real dependency tree.
See
https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-DependencyResolution for further details.
If you want a use case:
1/ create a project with hibernate-search dependency
2/ (go offline)
3/ remove all Byteman stuff from local repository
4/ try to build the project in offline mode (mvn -o)
Note: Marked as critical because of the way how we ship Hibernate Search.
> Byteman dependency is not properly scoped
> -----------------------------------------
>
> Key: HSEARCH-980
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-980
> Project: Hibernate Search
> Issue Type: Bug
> Components: build
> Affects Versions: 4.0.0.CR2
> Reporter: Karel Piwko
> Assignee: Sanne Grinovero
> Priority: Critical
> Fix For: 4.0.0.Final
>
>
> The <dependencyManagement> section hibernate-search-parent contains following:
> {code}
> <dependency>
> <groupId>org.jboss.byteman</groupId>
> <artifactId>byteman</artifactId>
> <version>${bytemanVersion}</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.byteman</groupId>
> <artifactId>byteman-install</artifactId>
> <version>${bytemanVersion}</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.byteman</groupId>
> <artifactId>byteman-bmunit</artifactId>
> <version>${bytemanVersion}</version>
> <scope>test</scope>
> </dependency>
> {code}
> Following modules reference it:
> * hibernate-search-orm
> * hibernate-search-engine
> The former correctly specifies scope to test, the latter however pushed it to compile and therefore byteman becomes a hibernate-search dependency. As byteman is *NOT* synced to Maven Central, this renders project unusable.
> Please correct dependency management in your project. There should be no scopes in depedencyManagement section and every module should specify the scope.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list