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

javacgopal does not build: cannot find symbol class AllocationSiteBasedPointsToCallGraphKey$ #320

Closed
plaird opened this issue Oct 27, 2021 · 2 comments
Assignees

Comments

@plaird
Copy link

plaird commented Oct 27, 2021

Describe the bug

I am looking forward to your talk at EclipseCon. I wanted to try the project tonight so I can ask more detailed questions, but I am having issues adding the plugin to my project.

To Reproduce

I followed the instructions here: add fasten maven plugin to pom.xml.
But the plugin seems not to be available in Maven Central.
So I then tried to follow the instructions here to build Fasten plugin myself.

git clone [email protected]:fasten-project/fasten-maven-plugin.git
mvn clean install
[ERROR] Failed to execute goal on project fasten-maven-plugin: Could not resolve dependencies for project eu.fasten:fasten-maven-plugin:maven-plugin:1.0-SNAPSHOT: Could not find artifact eu.fasten.analyzer:javacg-opal:jar:0.0.1-SNAPSHOT -> [Help 1]

Which failed because I need to build Fasten locally. So I tried to build Fasten, but this is the problem:

git clone https://github.com/fasten-project/fasten
mvn clean install
...
javacg-opal 0.0.1-SNAPSHOT ......................... FAILURE [  0.500 s]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project javacg-opal: Compilation failure: Compilation failure: 
[ERROR] /Users/plaird/dev/fasten/analyzer/javacg-opal/src/main/java/eu/fasten/analyzer/javacgopal/data/CallGraphConstructor.java:[35,24] cannot find symbol
[ERROR]   symbol:   class AllocationSiteBasedPointsToCallGraphKey$
[ERROR]   location: package org.opalj.tac.cg
[ERROR] /Users/plaird/dev/fasten/analyzer/javacg-opal/src/main/java/eu/fasten/analyzer/javacgopal/data/CallGraphConstructor.java:[39,24] cannot find symbol
[ERROR]   symbol:   class TypeBasedPointsToCallGraphKey$
[ERROR]   location: package org.opalj.tac.cg

Expected behavior

Successful build of Fasten, then a successful build of the Maven plugin.

Environment (please complete the following information):

  • OS: MacOS
  • Java version: 11.0.10
@ashkboos
Copy link
Contributor

@plaird thanks for opening the issue. I just ran these commands and it was successful:

git clone https://github.com/fasten-project/fasten
cd fasten/
mvn clean install 

The class files that you are missing are for a local library that we use. Perhaps they are not downloaded properly when you cloned the project. Could you check if you have this file in your cloned project?
fasten/analyzer/javacg-opal/lib/de/opal-project/three-address-code_2.12/3.0.0-SNAPSHOT/three-address-code_2.12-3.0.0-SNAPSHOT.jar

@proksch
Copy link
Contributor

proksch commented Jan 29, 2022

Is this issue still relevant? We are in the process of migrating to a new loader platform, where all Maven dependencies are properly released (admittedly, only as GitHub packages for now). We will migrate all tools and repositories to that infrastructure over the next weeks, which should solve accessibility problems like the one at hand. Please re-open this issues if you need further help.

@proksch proksch closed this as completed Jan 29, 2022
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

3 participants