jboss-fuse / fuse-apicurito-generator

Fuse Apicurito Generator
5 stars 14 forks source link

'mvn clean package' does not work --> update fuse version? #26

Closed tsedmik closed 5 years ago

tsedmik commented 5 years ago

If I try to build generated project, I hit the following error:

➜  example git:(master) mvn clean package
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Failure to find org.jboss.redhat-fuse:fuse-springboot-bom:pom:7.2.0.fuse-720018 in https://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of maven.central has elapsed or updates are forced @ line 33, column 16
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-spring-boot-starter:jar is missing. @ line 44, column 15
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ line 48, column 15
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-actuator:jar is missing. @ line 52, column 15
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-servlet-starter:jar is missing. @ line 56, column 15
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-jackson-starter:jar is missing. @ line 60, column 15
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-swagger-java-starter:jar is missing. @ line 64, column 15
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project io.example:todo-app-api:1.0-SNAPSHOT (/home/tsedmik/devel/git/fuse-apicurito-generator-tests/target/example/pom.xml) has 7 errors
[ERROR]     Non-resolvable import POM: Failure to find org.jboss.redhat-fuse:fuse-springboot-bom:pom:7.2.0.fuse-720018 in https://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of maven.central has elapsed or updates are forced @ line 33, column 16 -> [Help 2]
[ERROR]     'dependencies.dependency.version' for org.apache.camel:camel-spring-boot-starter:jar is missing. @ line 44, column 15
[ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ line 48, column 15
[ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-actuator:jar is missing. @ line 52, column 15
[ERROR]     'dependencies.dependency.version' for org.apache.camel:camel-servlet-starter:jar is missing. @ line 56, column 15
[ERROR]     'dependencies.dependency.version' for org.apache.camel:camel-jackson-starter:jar is missing. @ line 60, column 15
[ERROR]     'dependencies.dependency.version' for org.apache.camel:camel-swagger-java-starter:jar is missing. @ line 64, column 15
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

It looks like, that old artifacts are deleted from https://repository.jboss.org/nexus/content/groups/ea/org/jboss/redhat-fuse/fuse-springboot-bom/ since https://repository.jboss.org/nexus/content/groups/ea/org/jboss/redhat-fuse/fuse-springboot-bom/7.2.0.fuse-720018/ is empty and https://repository.jboss.org/nexus/content/groups/ea/org/jboss/redhat-fuse/fuse-springboot-bom/7.2.0.fuse-720020/ has some content

Shouldn't we update the fuse.version?

apupier commented 5 years ago

see discussion on this subject https://github.com/jboss-fuse/fuse-apicurito-generator/issues/16#issuecomment-438355110

bfitzpat commented 5 years ago

@tsedmik Can you give this a try now that we have @cunningt 's PR (https://github.com/jboss-fuse/fuse-apicurito-generator/pull/29) merged ? Seems to work for me locally now that versions are more in sync with what's upstream for Fuse 7.2

tsedmik commented 5 years ago

@apupier yes, it works now --> Closing this issue - Out of Date