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

cdk init app --language=java generates incorrect dependencies in pom.xml #502

Closed
eranation opened this issue Aug 3, 2018 · 2 comments · Fixed by #523
Closed

cdk init app --language=java generates incorrect dependencies in pom.xml #502

eranation opened this issue Aug 3, 2018 · 2 comments · Fixed by #523

Comments

@eranation
Copy link

eranation commented Aug 3, 2018

It generates

 <dependency>
   <groupId>com.amazonaws.cdk</groupId>
   <artifactId>aws-cdk</artifactId>
   <version>LATEST</version>
 </dependency>

Whereas I think the correct one is

<dependency>
   <groupId>software.amazon.awscdk</groupId>
   <artifactId>cdk</artifactId>
   <version>0.8.0</version>
 </dependency>

if I'm not mistaken

@Leoat12
Copy link

Leoat12 commented Aug 6, 2018

Errors still came up here after I substituted the dependency and ran "mvn package" again. It does not find anything it seems:

[ERROR] /hello-cdk/src/main/java/com/myorg/HelloStack.java:[4,25] package com.amazonaws.cdk doesnot exist
[ERROR] /hello-cdk/src/main/java/com/myorg/HelloStack.java:[5,25] package com.amazonaws.cdk doesnot exist
[ERROR] /hello-cdk/src/main/java/com/myorg/HelloStack.java:[6,29] package com.amazonaws.cdk.iam does not exist
[ERROR] /hello-cdk/src/main/java/com/myorg/HelloStack.java:[7,29] package com.amazonaws.cdk.sns does not exist
[ERROR] /hello-cdk/src/main/java/com/myorg/HelloStack.java:[8,29] package com.amazonaws.cdk.sns does not exist
[ERROR] /hello-cdk/src/main/java/com/myorg/HelloStack.java:[9,29] package com.amazonaws.cdk.sqs does not exist
[ERROR] /hello-cdk/src/main/java/com/myorg/HelloStack.java:[10,29] package com.amazonaws.cdk.sqsdoes not exist
[ERROR] /hello-cdk/src/main/java/com/myorg/HelloStack.java:[12,33] cannot find symbol
[ERROR]   symbol: class Stack
[ERROR] /hello-cdk/src/main/java/com/myorg/HelloStack.java:[13,29] cannot find symbol
[ERROR]   symbol:   class App
[ERROR]   location: class com.myorg.HelloStack
[ERROR] /hello-cdk/src/main/java/com/myorg/HelloStack.java:[17,29] cannot find symbol
[ERROR]   symbol:   class App
[ERROR]   location: class com.myorg.HelloStack
[ERROR] /hello-cdk/src/main/java/com/myorg/HelloStack.java:[17,66] cannot find symbol
[ERROR]   symbol:   class StackProps```

@eladb
Copy link
Contributor

eladb commented Aug 6, 2018

The java cdk-init template is broken in 0.8.0. We will release a fix this week.

In the meantime, you can follow the getting started guide for Java.

@eladb eladb mentioned this issue Aug 8, 2018
RomainMuller pushed a commit that referenced this issue Aug 8, 2018
* Bump
* Added a `bump.sh` script ;-)

Fixes #467 (via aws/jsii#139)
Fixes #503 (via #517)
Fixes #502 (via #490)
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

Successfully merging a pull request may close this issue.

3 participants