treblereel / gwt-resources

apt version of gwt-resources
Apache License 2.0
8 stars 5 forks source link

Compilation: Access Denied Error #23

Open tugalsan opened 4 years ago

tugalsan commented 4 years ago

@treblereel Hello,

Even though I am running netbeans in administrator mode, I am getting below error: "D:\me\Documents\ProgsCodes\Maven\gwt-resources-master\core\target\classes (Erişim engellendi)" Translation: Erişim engellendi -> Access Denied

Netbeans_console.txt

Could you look into it, when you have time.

Regards,

FrankHossfeld commented 4 years ago

This is interesting:

Failed to execute goal com.mycila:license-maven-plugin:3.0:check (default) on project gwt-resources-core: Some files do not have the expected license header -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.mycila:license-maven-plugin:3.0:check (default) on project gwt-resources-core: Some files do not have the expected license header

This tells us, that at least in one file the license header is wrong. (it looks like your are building the artifact from scratch)

You can try this: Run: mvn license:format and build again

treblereel commented 4 years ago

Thanks @FrankHossfeld let me take a close look. @tugalsan this module is published at vertispan repo so all you need to do is add this repo to your pom

tugalsan commented 4 years ago

Hello @treblereel When I looked at the gwt-resources-parent pom I can see:

<repository>
            <id>vertispan</id>
            <name>Vertispan Public Repo</name>
            <url>https://repo.vertispan.com/gwt-snapshot/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
        <repository>
            <id>vertispan-jre</id>
            <name>Vertispan Public Repo</name>
            <url>https://repo.vertispan.com/j2cl/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>

I am checking the child poms.... esspecially "gwt-resources-core"

gwt-resources-parent ............................... SUCCESS [  3.147 s]
gwt-resources-api .................................. SUCCESS [ 23.130 s]
gwt-resources-core ................................. FAILURE [ 51.406 s]
gwt-resources-processor ............................ SKIPPED
gwt-test-generators ................................ SKIPPED
j2cl-tests ......................................... SKIPPED
gwt2-tests ......................................... SKIPPED
tugalsan commented 4 years ago

Hello @treblereel As far as I understood. I need to add Vertispan repo to "gwt-resources-core" project. here is the modified pom of "gwt-resources-core": pom.xml.txt

I tried compiling many times... Unfortunately the problem still exists: Netbeans_console.txt

tugalsan commented 4 years ago

Hello @FrankHossfeld Here is output for mvn license:format Netbeans_console.txt

For the sake of sanity, here is the screenshot that pom is actually exist: image

treblereel commented 4 years ago

https://github.com/treblereel/gwt-resources/pull/24

added vertispan repo for tests.

maybe this error happens because of windows ? i have no windows pc so i can't check it @FrankHossfeld

tugalsan commented 4 years ago

Here is the output for commit #24 Netbeans_console.txt

FrankHossfeld commented 4 years ago

Just ran mvn clean verify locally withoput any problems:

INFO] Processed 42 files (0 non-complying).
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for gwt-resources-parent 1.0-SNAPSHOT:
[INFO] 
[INFO] gwt-resources-parent ............................... SUCCESS [  0.224 s]
[INFO] gwt-resources-api .................................. SUCCESS [  5.018 s]
[INFO] gwt-resources-core ................................. SUCCESS [  8.856 s]
[INFO] gwt-resources-processor ............................ SUCCESS [  0.203 s]
[INFO] gwt-test-generators ................................ SUCCESS [  0.135 s]
[INFO] j2cl-tests ......................................... SUCCESS [ 16.370 s]
[INFO] gwt2-tests ......................................... SUCCESS [02:03 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:34 min
[INFO] Finished at: 2020-07-15T22:03:37+02:00
[INFO] ------------------------------------------------------------------------

Here my log: test.log.zip

@treblereel I am working on macs ....

FrankHossfeld commented 4 years ago

@tugalsan as @treblereel already mentioned, you can use the compiled artifact from the vertispan repo. So, no need to build it.

But of course the build should work for you too ...

But I can not reproduce the bug. Can you describe, what you did?

tugalsan commented 4 years ago

Hello @FrankHossfeld I just downloaded from https://github.com/treblereel/gwt-resources the project and try to compile it with setup below. My Setup: Windows10, OracleJDK 11, Netbeans 12.

As you have said, may be an OS issue.

Now I will try to find already compiled repo.

Thanks.