Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Project definition in pom.xml contains wrong dependency definition (runtime) #89

Closed
mariuszs opened this issue Nov 18, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@mariuszs
Copy link
Collaborator

sample project configuration:

<dependencies>
    ....
    <dependency>
        <groupId>com.ofg</groupId>
        <artifactId>micro-infra-spring</artifactId>
        <version>0.6.0</version>
    </dependency>
</dependencies>
mvn dependency:tree
[INFO] \- com.ofg:micro-infra-spring:jar:0.6.0:compile
[INFO]    +- com.ofg:micro-infra-spring-base:jar:0.6.0:runtime
[INFO]    |  +- org.aspectj:aspectjweaver:jar:1.8.4:runtime
[INFO]    |  +- com.ofg:micro-deps-spring-config:jar:0.4.8:runtime
[INFO]    |  |  +- com.ofg:micro-deps:jar:0.6.2:runtime
[INFO]    |  |  |  +- org.codehaus.groovy:groovy-all:jar:indy:2.3.7:runtime
[INFO]    |  |  |  +- org.apache.curator:curator-x-discovery:jar:2.6.0:runtime
[INFO]    |  |  |  |  +- org.apache.curator:curator-recipes:jar:2.6.0:runtime

As a result @EnableMicroservice cannot be used, only EnableAutoConfiguration is visible in project code. The only way to configure project is by component scan - all packaged are visible at runtime.

Sample project: https://github.com/mariuszs/micro-infra-spring-issues

@mariuszs mariuszs added the bug label Nov 18, 2014
@mariuszs mariuszs added this to the 0.7,1 milestone Nov 18, 2014
@szpak szpak self-assigned this Nov 20, 2014
@szpak szpak changed the title Project definitiona in pom.xml contains wrong dependency definition (runtime) Project definition in pom.xml contains wrong dependency definition (runtime) Nov 20, 2014
@szpak szpak closed this as completed in ee21c8f Nov 20, 2014
@szpak
Copy link
Collaborator

szpak commented Nov 20, 2014

That's a known limitation of maven-publish plugin. Peter recommends a workaround.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants