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

Trying to compile the project locally #2

Open
meneguzzi opened this issue Nov 22, 2017 · 4 comments
Open

Trying to compile the project locally #2

meneguzzi opened this issue Nov 22, 2017 · 4 comments

Comments

@meneguzzi
Copy link

I've been trying to compile the project locally using maven, but I keep running into dependency problems. I tried adding the alive repository to the pom.xml (adding the code below to the repositories section of the pom.xml) to see if it would download these dependencies, but I've had no success.

   <repository>
        <id>jones</id>
        <name>jones-releases</name>
        <url>http://jones.felk.cvut.cz/artifactory/pub-release-local</url>
    </repository>

Would it be possible to provide additional instructions as to how I could compile the project locally with maven?

@stolba
Copy link
Owner

stolba commented Nov 24, 2017

I have added missing sources and removed unnecessary dependencies, it should work now, please let me know if not

@meneguzzi
Copy link
Author

Hi,

I just cloned the repository afresh and ran mvn test, but I get the following errors when trying to resolve dependencies locally:

mvn test
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building MADLA Planner
[INFO]    task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
Downloading: http://clojars.org/repo//cz/agents/alite/alite/1.0-SNAPSHOT/alite-1.0-SNAPSHOT.pom
[INFO] Unable to find resource 'cz.agents.alite:alite:pom:1.0-SNAPSHOT' in repository clojars (http://clojars.org/repo/)
Downloading: http://clojars.org/repo//cz/agents/alite/zeromq/1.0-SNAPSHOT/zeromq-1.0-SNAPSHOT.pom
[INFO] Unable to find resource 'cz.agents.alite:zeromq:pom:1.0-SNAPSHOT' in repository clojars (http://clojars.org/repo/)
Downloading: http://clojars.org/repo//cz/agents/alite/alite/1.0-SNAPSHOT/alite-1.0-SNAPSHOT.jar
[INFO] Unable to find resource 'cz.agents.alite:alite:jar:1.0-SNAPSHOT' in repository clojars (http://clojars.org/repo/)
Downloading: http://clojars.org/repo//cz/agents/alite/zeromq/1.0-SNAPSHOT/zeromq-1.0-SNAPSHOT.jar
[INFO] Unable to find resource 'cz.agents.alite:zeromq:jar:1.0-SNAPSHOT' in repository clojars (http://clojars.org/repo/)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) cz.agents.alite:alite:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=cz.agents.alite -DartifactId=alite -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=cz.agents.alite -DartifactId=alite -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  	1) cz.agents:madla-planner:jar:1.0-SNAPSHOT
  	2) cz.agents.alite:alite:jar:1.0-SNAPSHOT

2) cz.agents.alite:zeromq:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=cz.agents.alite -DartifactId=zeromq -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=cz.agents.alite -DartifactId=zeromq -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  	1) cz.agents:madla-planner:jar:1.0-SNAPSHOT
  	2) cz.agents.alite:zeromq:jar:1.0-SNAPSHOT

----------
2 required artifacts are missing.

for artifact:
  cz.agents:madla-planner:jar:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  clojars (http://clojars.org/repo/)



[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Nov 24 13:17:08 BRST 2017
[INFO] Final Memory: 11M/309M
[INFO] ------------------------------------------------------------------------

@meneguzzi
Copy link
Author

The repository does run the software with the binaries downloaded from the repo, but, while it runs, I get NullPointerExceptions and warnings about actions not assigned to any agents. Specifically:

Exception in thread "main" java.lang.NullPointerException
	at cz.agents.dimaptools.input.sas.SASPreprocessor.getProblemForAgent(SASPreprocessor.java:378)
	at cz.agents.madla.creator.ProtobufCreator.initWorld(ProtobufCreator.java:54)
	at cz.agents.madla.creator.SASCreator.createEntities(SASCreator.java:213)
	at cz.agents.madla.creator.SASCreator.create(SASCreator.java:152)
	at cz.agents.alite.Main.main(Main.java:18)

@stolba
Copy link
Owner

stolba commented Nov 24, 2017 via email

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

2 participants