Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find artifact com.eureka.common:spring-eureka-common:jar:0.0.1-SNAPSHOT #5

Open
praveenmitian opened this issue Aug 11, 2019 · 3 comments

Comments

@praveenmitian
Copy link

Hi While I am trying to build project getting the maven error like below.
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project spring-eureka-auth: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags

@thamitulo
Copy link

thamitulo commented Sep 19, 2019

I had the same issue until I change the springboot-maven plugin to below
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <!-- This is so that we can use the jar from here as a dependency on another project --> <execution> <goals> <goal>repackage</goal> </goals> <configuration> <attach>false</attach> </configuration> </execution> </executions> </plugin> </plugins> </build>

@buildandship
Copy link

@thamitulo Thanks your solution works and it fixed the problem. This could be merged to the code.
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.0.0.RELEASE</version> <executions> <execution> <goals> <goal>repackage</goal> </goals> <configuration> <attach>false</attach> </configuration> </execution> </executions> </plugin> </plugins> </build>

@ramazansakin
Copy link

I had the same issue. I added a root pom.xml and adaptated other poms and run maven clean-compile-package orderly. Then it works. You can check it out here https://github.com/ramazansakin/microservices-spring-boot

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

No branches or pull requests

4 participants