mde-optimiser / mde_optimiser

Multi-objective optimisation of domain-specific models
https://mde-optimiser.github.io/
2 stars 7 forks source link

maven compile issue #47

Closed isaac-muhumuza closed 5 years ago

isaac-muhumuza commented 6 years ago

Hi Alex,

When I run 'mvn clean compile' on the src folder after cloning the repository onto my local machine - I get an artifact not found. Please see the attached file.. mvn-clean-compile-error.txt

Many thanks, Isaac

alxbrd commented 6 years ago

Hi Isaac,

There was a problem with the version of the missing dependency so I updated it to a new version in my p2 repo.

I will update the master branch with a new version that fixes this issue and your problem should be resolved. Before then, you can use this commit that has a working version of the code: 3f103ec9f1d342fec3d22ce37a68d30fe03dc211

Thanks.

isaac-muhumuza commented 6 years ago

Hi Alex,

Thanks for getting back. I have tried that commit but its also giving me errors. This time it finds the artifact but there's an error while fetching it. Please see attached file.

Regards,

Isaac


From: Alex Burdusel notifications@github.com Sent: 28 November 2018 14:54 To: mde-optimiser/mde_optimiser Cc: isaac-muhumuza; Author Subject: Re: [mde-optimiser/mde_optimiser] maven compile issue (#47)

Hi Isaac,

There was a problem with the version of the missing dependency so I updated it to a new version in my p2 repo.

I will update the master branch with a new version that fixes this issue and your problem should be resolved. Before then, you can use this commit that has a working version of the code: 3f103echttps://github.com/mde-optimiser/mde_optimiser/commit/3f103ec9f1d342fec3d22ce37a68d30fe03dc211

Thanks.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mde-optimiser/mde_optimiser/issues/47#issuecomment-442474818, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ajk48qtuzkZxZ5KK_PGCbAjlsQ_-BkAoks5uzqO-gaJpZM4Y1SRv.

Z:\Z_KCL\Dissertation\mde_optimiser\src>mvn clean compile [INFO] Scanning for projects... [INFO] Computing target platform for MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\plugins\uk.ac.kcl.mdeoptimise\pom.xml [INFO] Adding repository http://download.eclipse.org/modeling/emft/mwe/updates/releases/2.9.1 [INFO] Fetching p2.index from http://download.eclipse.org/releases/photon/ [INFO] Adding repository http://download.eclipse.org/releases/photon [INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/photon/ [INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/photon/ [INFO] Fetching p2.index from http://download.eclipse.org/releases/photon/201806271001/ [INFO] Fetching p2.index from http://download.eclipse.org/releases/photon/201806271001/ [INFO] Fetching p2.index from http://download.eclipse.org/modeling/mdt/ocl/updates/releases/6.1.1/ [INFO] Fetching p2.index from http://download.eclipse.org/modeling/mdt/ocl/updates/releases/6.1.1/ [INFO] Adding repository http://download.eclipse.org/modeling/mdt/ocl/updates/releases/6.1.1 [INFO] Fetching p2.index from http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.14.0/ [INFO] Fetching p2.index from http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.14.0/ [INFO] Adding repository http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.14.0 [INFO] Fetching p2.index from http://download.eclipse.org/modeling/emft/henshin/updates/nightly/ [INFO] Fetching p2.index from http://download.eclipse.org/modeling/emft/henshin/updates/nightly/ [INFO] Adding repository http://download.eclipse.org/modeling/emft/henshin/updates/nightly [INFO] Fetching p2.index from http://blog.onboot.org/org.sidiff.serge/deploy/serge-p2-repo/target/repository/ (172B) [INFO] Fetching p2.index from http://blog.onboot.org/org.sidiff.serge/deploy/serge-p2-repo/target/repository/ (172B) [INFO] Adding repository http://blog.onboot.org/org.sidiff.serge/deploy/serge-p2-repo/target/repository [INFO] Fetching p2.index from http://download.eclipse.org/tools/orbit/downloads/drops/S20180504181223/repository/ [INFO] Adding repository http://download.eclipse.org/tools/orbit/downloads/drops/S20180504181223/repository [INFO] Fetching p2.index from http://download.eclipse.org/tools/orbit/downloads/drops2/S20180504181223/repository/ [INFO] Fetching p2.index from http://download.eclipse.org/tools/orbit/downloads/drops2/S20180504181223/repository/ [INFO] Adding repository http://blog.onboot.org/mopt-p2-repo/target/repository [INFO] Resolving dependencies of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\plugins\uk.ac.kcl.mdeoptimise\pom.xml [INFO] Resolving class path of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\plugins\uk.ac.kcl.mdeoptimise\pom.xml [INFO] Computing target platform for MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.ide:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\plugins\uk.ac.kcl.mdeoptimise.ide\pom.xml [INFO] Resolving dependencies of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.ide:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\plugins\uk.ac.kcl.mdeoptimise.ide\pom.xml [INFO] Resolving class path of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.ide:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\plugins\uk.ac.kcl.mdeoptimise.ide\pom.xml [INFO] Computing target platform for MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.ui:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\plugins\uk.ac.kcl.mdeoptimise.ui\pom.xml [INFO] Resolving dependencies of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.ui:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\plugins\uk.ac.kcl.mdeoptimise.ui\pom.xml [INFO] Resolving class path of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.ui:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\plugins\uk.ac.kcl.mdeoptimise.ui\pom.xml [INFO] Computing target platform for MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.feature:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\features\uk.ac.kcl.mdeoptimise.feature\pom.xml [INFO] Resolving dependencies of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.feature:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\features\uk.ac.kcl.mdeoptimise.feature\pom.xml [INFO] Resolving class path of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.feature:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\features\uk.ac.kcl.mdeoptimise.feature\pom.xml [INFO] Computing target platform for MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.repository:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\releng\uk.ac.kcl.mdeoptimise.repository\pom.xml [INFO] Resolving dependencies of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.repository:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\releng\uk.ac.kcl.mdeoptimise.repository\pom.xml [INFO] Resolving class path of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.repository:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\releng\uk.ac.kcl.mdeoptimise.repository\pom.xml [INFO] Computing target platform for MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.repository.standalone:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\releng\uk.ac.kcl.mdeoptimise.repository.standalone\pom.xml [INFO] Resolving dependencies of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.repository.standalone:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\releng\uk.ac.kcl.mdeoptimise.repository.standalone\pom.xml [INFO] Resolving class path of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.repository.standalone:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\releng\uk.ac.kcl.mdeoptimise.repository.standalone\pom.xml [INFO] Computing target platform for MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.tests:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\plugins\uk.ac.kcl.mdeoptimise.tests\pom.xml [INFO] Resolving dependencies of MavenProject: uk.ac.kcl.mdeoptimise:uk.ac.kcl.mdeoptimise.tests:1.0.0-SNAPSHOT @ Z:\Z_KCL\Dissertation\mde_optimiser\src\plugins\uk.ac.kcl.mdeoptimise.tests\pom.xml [INFO] Fetching 201806271001&countryCode=gb&timeZone=0&format=xml from http://www.eclipse.org/downloads/download.php?format=xml&file=/releases/photon/ [INFO] Fetching org.eclipse.core.net_1.3.200.v20180515-0858.jar.pack.gz from http://mirror.internode.on.net/pub/eclipse/releases/photon/201806271001/plugins/ (33.62kB) [INFO] Fetching org.eclipse.core.net_1.3.200.v20180515-0858.jar.pack.gz from http://mirror.internode.on.net/pub/eclipse/releases/photon/201806271001/plugins/ (33.62kB) [INFO] Fetching org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar.pack.gz from http://mirror.internode.on.net/pub/eclipse/releases/photon/201806271001/plugins/ (30.7kB) [INFO] Fetching org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar.pack.gz from http://mirror.internode.on.net/pub/eclipse/releases/photon/201806271001/plugins/ (30.7kB) [INFO] Fetching org.eclipse.ui.ide.application_1.2.100.v20180416-2050.jar.pack.gz from http://mirror.internode.on.net/pub/eclipse/releases/photon/201806271001/plugins/ (51.88kB) [INFO] Fetching org.eclipse.ui.ide.application_1.2.100.v20180416-2050.jar.pack.gz from http://mirror.internode.on.net/pub/eclipse/releases/photon/201806271001/plugins/ (51.88kB) [INFO] Fetching org.eclipse.xtext.builder.standalone_2.14.0.v20180522-1833.jar.pack.gz from http://mirror.dkm.cz/eclipse/releases/photon/201806271001/plugins/ (33.22kB) [INFO] Fetching org.eclipse.xtext.builder.standalone_2.14.0.v20180522-1833.jar.pack.gz from http://mirror.dkm.cz/eclipse/releases/photon/201806271001/plugins/ (33.22kB) [INFO] Fetching org.eclipse.xtext.junit4_2.14.0.v20180523-0437.jar.pack.gz from http://mirror.dkm.cz/eclipse/releases/photon/201806271001/plugins/ (94.36kB) [INFO] Fetching org.eclipse.xtext.junit4_2.14.0.v20180523-0437.jar.pack.gz from http://mirror.dkm.cz/eclipse/releases/photon/201806271001/plugins/ (94.36kB) [INFO] Fetching org.junit_4.12.0.v201504281640.jar.pack.gz from http://mirror.dkm.cz/eclipse/releases/photon/201806271001/plugins/ (283.72kB) [INFO] Fetching org.junit_4.12.0.v201504281640.jar.pack.gz from http://mirror.dkm.cz/eclipse/releases/photon/201806271001/plugins/ (283.72kB) [INFO] Fetching org.eclipse.xtext.testing_2.14.0.v20180522-1821.jar.pack.gz from http://ftp.halifax.rwth-aachen.de/eclipse//releases/photon/201806271001/plugins/ (85.5kB) [INFO] Fetching org.eclipse.xtext.testing_2.14.0.v20180522-1821.jar.pack.gz from http://ftp.halifax.rwth-aachen.de/eclipse//releases/photon/201806271001/plugins/ (85.5kB) [INFO] Fetching org.eclipse.xtext.ui.testing_2.14.0.v20180523-0437.jar.pack.gz from http://mirror.dkm.cz/eclipse/releases/photon/201806271001/plugins/ (41.65kB) [INFO] Fetching org.eclipse.xtext.ui.testing_2.14.0.v20180523-0437.jar.pack.gz from http://mirror.dkm.cz/eclipse/releases/photon/201806271001/plugins/ (41.65kB) [INFO] Fetching org.eclipse.xtext.xbase.junit_2.14.0.v20180523-0437.jar.pack.gz from http://ftp.halifax.rwth-aachen.de/eclipse//releases/photon/201806271001/plugins/ (85.78kB) [INFO] Fetching org.eclipse.xtext.xbase.junit_2.14.0.v20180523-0437.jar.pack.gz from http://ftp.halifax.rwth-aachen.de/eclipse//releases/photon/201806271001/plugins/ (85.78kB) [INFO] Fetching org.eclipse.xtext.xbase.testing_2.14.0.v20180522-1833.jar.pack.gz from http://ftp.halifax.rwth-aachen.de/eclipse//releases/photon/201806271001/plugins/ (70.07kB) [INFO] Fetching org.eclipse.xtext.xbase.testing_2.14.0.v20180522-1833.jar.pack.gz from http://ftp.halifax.rwth-aachen.de/eclipse//releases/photon/201806271001/plugins/ (70.07kB) [INFO] Fetching org.hamcrest.core_1.3.0.v20180420-1519.jar.pack.gz from http://mirror.dkm.cz/eclipse/releases/photon/201806271001/plugins/ (29.18kB) [INFO] Fetching org.hamcrest.core_1.3.0.v20180420-1519.jar.pack.gz from http://mirror.dkm.cz/eclipse/releases/photon/201806271001/plugins/ (29.18kB) [INFO] Fetching org.mockito.mockito-core_2.19.0.jar from http://blog.onboot.org/mopt-p2-repo/target/repository/plugins/ (543.44kB) [INFO] Fetching org.mockito.mockito-core_2.19.0.jar from http://blog.onboot.org/mopt-p2-repo/target/repository/plugins/ (543.44kB) [INFO] Fetching org.mockito.mockito-core_2.19.0.jar from http://blog.onboot.org/mopt-p2-repo/target/repository/plugins/ (4kB of 543.44kB at 4kB/s) [INFO] Fetching org.mockito.mockito-core_2.19.0.jar from http://blog.onboot.org/mopt-p2-repo/target/repository/plugins/ (4kB of 543.44kB at 1B/s) [INFO] Fetching org.mockito.mockito-core_2.19.0.jar from http://blog.onboot.org/mopt-p2-repo/target/repository/plugins/ (4.01kB of 543.44kB at 1B/s) [INFO] Fetching org.mockito.mockito-core_2.19.0.jar from http://blog.onboot.org/mopt-p2-repo/target/repository/plugins/ (8.01kB of 543.44kB at 1B/s) [ERROR] An error occurred while transferring artifact canonical: osgi.bundle,org.mockito.mockito-core,2.19.0 from repository http://blog.onboot.org/mopt-p2-repo/target/repository: [ERROR] Unable to read repository at http://blog.onboot.org/mopt-p2-repo/target/repository/plugins/org.mockito.mockito-core_2.19.0.jar. [ERROR] Internal error: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,org.mockito.mockito-core,2.19.0 into the local Maven repository.See log output for details. Premature end of Content-Length delimited message body (expected: 556485; received: 9092 -> [Help 1] org.apache.maven.InternalErrorException: Internal error: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,org.mockito.mockito-core,2.19.0 into the local Maven repository.See log output for details. at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:120) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,org.mockito.mockito-core,2.19.0 into the local Maven repository.See log output for details. at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadArtifact (MirroringArtifactProvider.java:226) at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeOneFormatLocallyAvailable (MirroringArtifactProvider.java:211) at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeLocallyAvailable (MirroringArtifactProvider.java:182) at org.eclipse.tycho.repository.local.MirroringArtifactProvider.getArtifactFile (MirroringArtifactProvider.java:121) at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProvider.getArtifactFile (CompositeArtifactProvider.java:85) at org.eclipse.tycho.p2.target.TargetPlatformBaseImpl.getLocalArtifactFile (TargetPlatformBaseImpl.java:128) at org.eclipse.tycho.p2.resolver.P2ResolverImpl.addUnit (P2ResolverImpl.java:254) at org.eclipse.tycho.p2.resolver.P2ResolverImpl.toResolutionResult (P2ResolverImpl.java:217) at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:208) at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:115) at org.eclipse.tycho.p2.resolver.P2DependencyResolver.doResolveDependencies (P2DependencyResolver.java:367) at org.eclipse.tycho.p2.resolver.P2DependencyResolver.resolveDependencies (P2DependencyResolver.java:335) at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:117) at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:95) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:264) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 556485; received: 9092 at org.apache.http.impl.io.ContentLengthInputStream.read (ContentLengthInputStream.java:178) at org.apache.http.conn.EofSensorInputStream.read (EofSensorInputStream.java:137) at java.io.FilterInputStream.read (FilterInputStream.java:133) at java.io.FilterInputStream.read (FilterInputStream.java:107) at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer (AbstractRetrieveFileTransfer.java:178) at org.eclipse.ecf.filetransfer.FileTransferJob.run (FileTransferJob.java:74) at org.eclipse.core.internal.jobs.Worker.run (Worker.java:60) [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/InternalErrorException

Z:\Z_KCL\Dissertation\mde_optimiser\src>

alxbrd commented 6 years ago

That commit works on the build server without issues. Try again on a different connection perhaps?

isaac-muhumuza commented 6 years ago

Hi Alex,

I tried it at home and all is fine. It must have been the connection at KCL.

Are you available at university to have a discussion about the code.

Many thanks. Isaac.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Alex Burdusel notifications@github.com Sent: Thursday, November 29, 2018 2:15 pm To: mde-optimiser/mde_optimiser Cc: isaac-muhumuza; Author Subject: Re: [mde-optimiser/mde_optimiser] maven compile issue (#47)

That commit works on the build server without issues. Try again on a different connection perhaps?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mde-optimiser/mde_optimiser/issues/47#issuecomment-442848120, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ajk48gc2HNPbZK0MgfShPuhS6K7Rw1Ajks5uz-vtgaJpZM4Y1SRv.

alxbrd commented 5 years ago

Glad it worked. Please send me an email to arrange a meeting.

I will close this issue now.