bloxbean / avm-archetype

Maven archetype which is used to generate Aion AVM based smart contract project in java
MIT License
0 stars 3 forks source link

Build fails #9

Open fulldecent opened 5 years ago

fulldecent commented 5 years ago

I am unable to use this as advertised.

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for fdgroupid:fdartifactid:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 64, column 21
[WARNING] 'dependencies.dependency.systemPath' for org.aion:avm-api:jar refers to a non-existing file /Users/williamentriken/Desktop/tmp5/fdartifactid/lib/org-aion-avm-api.jar @ line 28, column 25
[WARNING] 'dependencies.dependency.systemPath' for org.aion:avm-userlib:jar refers to a non-existing file /Users/williamentriken/Desktop/tmp5/fdartifactid/lib/org-aion-avm-userlib.jar @ line 35, column 25
[WARNING] 'dependencies.dependency.systemPath' for org.aion:avm-tooling:jar refers to a non-existing file /Users/williamentriken/Desktop/tmp5/fdartifactid/lib/org-aion-avm-tooling.jar @ line 42, column 25
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] -----------------------< fdgroupid:fdartifactid >-----------------------
[INFO] Building fdartifactid 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for fdgroupid.fdartifactid:avm:jar:1.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.220 s
[INFO] Finished at: 2019-07-05T04:48:57-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project fdartifactid: Could not resolve dependencies for project fdgroupid:fdartifactid:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.aion:avm-api:jar:0.0.0, org.aion:avm-userlib:jar:0.0.0, org.aion:avm-tooling:jar:0.0.0, fdgroupid.fdartifactid:avm:jar:1.0-SNAPSHOT: Could not find artifact org.aion:avm-api:jar:0.0.0 at specified path /Users/williamentriken/Desktop/tmp5/fdartifactid/lib/org-aion-avm-api.jar -> [Help 1]
[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/DependencyResolutionException
satran004 commented 5 years ago

Try "mvn initialize" first.

You should see log message like below

[INFO] [INFO] --- maven-install-plugin:2.5:install-file (default) @ HelloWorldContract --- [INFO] pom.xml not found in avm.jar [INFO] Installing /Users/OsDev/work/satran004/HelloWorldContract/lib/avm.jar to /Users/OsDev/.m2/repository/org/satran004/HelloWorldContract/avm/1.0-SNAPSHOT/avm-1.0-SNAPSHOT.jar

fulldecent commented 5 years ago

Could this please be added to the instructions?

satran004 commented 5 years ago

Thanks. It has been updated now https://docs.aion.network/docs/maven-and-aion4j-create-a-project

fulldecent commented 4 years ago

Broken link