satr / intellij-idea-plugin-connector-for-aws-lambda

The plugin for the IntelliJ IDEA: connector for AWS Lambda functions.
MIT License
14 stars 4 forks source link

No JAR-artifacts found #6

Closed dementiev closed 6 years ago

dementiev commented 6 years ago

I run mvn package with success result, jar was created. But after clicking of refresh button i don't see any jars available.

DEBUG: Refresh list of JAR-artifacts in the project DEBUG: Refresh JAR-artifact list. INFO: No JAR-artifacts found.

satr commented 6 years ago

I probably did not test the way you build the artefact. Could you try this sample app (following instruction in the wiki). If it works - is it possible to get a sample app similar to one you faced issue with and an instruction how to reproduce it?

ghost commented 6 years ago

I have the same problem as @dementiev. It's easy to reproduce. Create a maven project with jar packaging and build the project. The plugin won't find the resulting jar.

satr commented 6 years ago

I see. Let me look at this.

satr commented 6 years ago

Could you check if the artifact appeared in the project out? If so - it is needed to hit a button "Refresh lits of Jar artifacts" to show it in the artifact list (step 6 in the image below). I have planned a task to-do - to update it automatically.

If the project and a Jar-artifact is done differently in your case - could you describe steps, so I can reproduce it? Thank you

jar-not-show-in-maven-project-01 jar-not-show-in-maven-project-02 jar-not-show-in-maven-project-03 jar-not-show-in-maven-project-04

ghost commented 6 years ago

The default output dir for maven is target.

Example:

mtest01/target/myjar-1.0-SNAPSHOT.jar

satr commented 6 years ago

Artifact list is automatically refreshed after a project or artifact build - implemented in Pre-release 1.5.RC3

satr commented 6 years ago

I think I managed to reproduce the issue properly now (image below). Seems I need to find the way to add this approach in addition to the implemented (and described above). Thank you for your report. maven-jar-artifact-not-found-in-its-target

satr commented 6 years ago

Maven project artifacts supported - build an artifact with a Maven project and hit the button "Refresh list of JAR artifacts". Please try this in the pre-release v1.5.RC4

jar-shown-in-maven-project-01