| 16 Jul 2022 |
Yuu Yin | Wanja Hentze: looking into it; i'll try it in a future project, thanks for the link | 17:56:05 |
Wanja Hentze | lmk if it breaks, it's a 'diamond in the rough' atm 😝 | 17:58:18 |
| 17 Jul 2022 |
Yuu Yin | i almost got my hopes up with mavenfod
modelio> [ERROR] Internal error: java.lang.IllegalArgumentException: Could not find specification for custom execution environment profile 'JavaSE-17' in the target platform -> [Help 1]
modelio> org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Could not find specification for custom execution environment profile 'JavaSE-17' in the target platform
modelio> at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:120)
modelio> at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
modelio> at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
modelio> at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
modelio> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
modelio> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
modelio> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
modelio> at java.lang.reflect.Method.invoke (Method.java:568)
modelio> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
modelio> at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
modelio> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
modelio> at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
modelio> Caused by: java.lang.IllegalArgumentException: Could not find specification for custom execution environment profile 'JavaSE-17' in the target platform
modelio> at org.eclipse.tycho.p2.target.ee.CustomEEResolutionHandler.findSpecificationUnit (CustomEEResolutionHandler.java:49)
modelio> at org.eclipse.tycho.p2.target.ee.CustomEEResolutionHandler.readFullSpecification (CustomEEResolutionHandler.java:38)
modelio> at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:200)
modelio> at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:128)
modelio> at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:1)
modelio> at org.eclipse.tycho.p2.manager.ReactorRepositoryManagerImpl.computePreliminaryTargetPlatform (ReactorRepositoryManagerImpl.java:84)
modelio> at org.eclipse.tycho.p2.resolver.P2DependencyResolver.computePreliminaryTargetPlatform (P2DependencyResolver.java:226)
modelio> at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveWithCurrentEE (DefaultTychoResolver.java:207)
modelio> at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:132)
modelio> at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:95)
modelio> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:253)
modelio> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
modelio> at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
modelio> at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
modelio> at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
modelio> at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
modelio> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
modelio> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
modelio> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
modelio> at java.lang.reflect.Method.invoke (Method.java:568)
modelio> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
modelio> at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
modelio> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
modelio> at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
modelio> [ERROR]
modelio> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
modelio> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
modelio> [ERROR]
modelio> [ERROR] For more information about the errors and possible solutions, please read the following articles:
modelio> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
| 00:53:08 |
Yuu Yin | only ant is ok in Nix. To this day I couldn't package a maven app | 00:55:40 |
Yuu Yin | mavenfod is basically what zakaria documented in the fzakaria blog. | 01:00:31 |
Yuu Yin | * mavenfod is basically what zakaria documented in the fzakaria blog on java fod. | 01:01:01 |
Yuu Yin | * only ant is ok in Nix. To this day I couldn't build a maven app | 01:02:56 |
Yuu Yin | hmm https://github.com/NixOS/nixpkgs/commit/60566767704d7eea7273dbc453374d4f7440ebda | 01:32:52 |
Yuu Yin | modelio> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:1.7.0:package-plugin (default-package-plugin) on project org.modelio.documentation.copyright: /build/source/doc/plugins/en/documentation.copyright.org/build.properties: bin.includes value(s) [index/] do not match any files. -> [Help 1]
modelio> [ERROR]
modelio> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
modelio> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
modelio> [ERROR]
modelio> [ERROR] For more information about the errors and possible solutions, please read the following articles:
modelio> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
modelio> [ERROR]
modelio> [ERROR] After correcting the problems, you can resume the build with the command
modelio> [ERROR] mvn <goals> -rf :org.modelio.documentation.copyright
error: builder for '/nix/store/93dwrh1rjpmww2135qfd0zxbzrzz8mn6-modelio-5.1.0-maven-deps.drv' failed with exit code 1;
https://github.com/ModelioOpenSource/Modelio/blob/v5.1.0/doc/plugins/en/documentation.copyright.org/build.properties
bin.includes = plugin.xml,\
META-INF/,\
html/,\
tocs/,\
index/
probably due to
# keep only *.{pom,jar,sha1,nbm} and delete all ephemeral files with lastModified timestamps inside
installPhase = ''
find $out -type f \
-name \*.lastUpdated -or \
-name resolver-status.properties -or \
-name _remote.repositories \
-delete
'';
| 02:19:35 |
Yuu Yin | * modelio> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:1.7.0:package-plugin (default-package-plugin) on project org.modelio.documentation.copyright: /build/source/doc/plugins/en/documentation.copyright.org/build.properties: bin.includes value(s) [index/] do not match any files. -> [Help 1]
modelio> [ERROR]
modelio> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
modelio> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
modelio> [ERROR]
modelio> [ERROR] For more information about the errors and possible solutions, please read the following articles:
modelio> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
modelio> [ERROR]
modelio> [ERROR] After correcting the problems, you can resume the build with the command
modelio> [ERROR] mvn <goals> -rf :org.modelio.documentation.copyright
error: builder for '/nix/store/93dwrh1rjpmww2135qfd0zxbzrzz8mn6-modelio-5.1.0-maven-deps.drv' failed with exit code 1;
https://github.com/ModelioOpenSource/Modelio/blob/v5.1.0/doc/plugins/en/documentation.copyright.org/build.properties
bin.includes = plugin.xml,\
META-INF/,\
html/,\
tocs/,\
index/
probably due to https://github.com/NixOS/nixpkgs/blob/377cb19b000664c59e30370d13175bed1f0ff703/pkgs/development/java-modules/maven-fod.nix#L33-L40
# keep only *.{pom,jar,sha1,nbm} and delete all ephemeral files with lastModified timestamps inside
installPhase = ''
find $out -type f \
-name \*.lastUpdated -or \
-name resolver-status.properties -or \
-name _remote.repositories \
-delete
'';
| 02:20:06 |
Yuu Yin | Redacted or Malformed Event | 02:23:20 |
Yuu Yin | * modelio> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:1.7.0:package-plugin (default-package-plugin) on project org.modelio.documentation.copyright: /build/source/doc/plugins/en/documentation.copyright.org/build.properties: bin.includes value(s) [index/] do not match any files. -> [Help 1]
modelio> [ERROR]
modelio> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
modelio> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
modelio> [ERROR]
modelio> [ERROR] For more information about the errors and possible solutions, please read the following articles:
modelio> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
modelio> [ERROR]
modelio> [ERROR] After correcting the problems, you can resume the build with the command
modelio> [ERROR] mvn <goals> -rf :org.modelio.documentation.copyright
error: builder for '/nix/store/93dwrh1rjpmww2135qfd0zxbzrzz8mn6-modelio-5.1.0-maven-deps.drv' failed with exit code 1;
https://github.com/ModelioOpenSource/Modelio/blob/v5.1.0/doc/plugins/en/documentation.copyright.org/build.properties
bin.includes = plugin.xml,\
META-INF/,\
html/,\
tocs/,\
index/
| 02:43:18 |
Yuu Yin | having to download all dependencies everytime i need to build the derivation is probably the worst developer experience i have had on nixpkgs | 03:56:37 |
| 19 Jul 2022 |
fzakaria | hi! | 16:31:31 |
Yuu Yin | fzakaria: hi there what's up? that nix/jvm was pretty good btw. is it really a lost cause trying to integrate nix and maven, gradle? what do you think about current ant state in nix in comparison to maven and gradle? | 16:56:45 |
Yuu Yin | * fzakaria: hi there what's up? that nix/jvm talk was pretty good btw. is it really a lost cause trying to integrate nix and maven, gradle? what do you think about current ant state in nix in comparison to maven and gradle? | 16:58:08 |
fzakaria | I think gradle is a lot easier since it can generate a lock file | 16:59:16 |
fzakaria | Although that lock file might be missing everything; it tends to only include runtime dependencies and not preprocessors, plugins etc.. | 16:59:35 |
fzakaria | If we could hack Maven to legitimately output all dependencies downloaded in a fresh m2 store then its doable | 16:59:36 |
fzakaria | noChRoot is also pretty doable but not "pure nix" | 17:00:01 |
Yuu Yin | In reply to @fzakaria:one.ems.host If we could hack Maven to legitimately output all dependencies downloaded in a fresh m2 store then its doable is there a pattern for which dependencies aren't put in the m2 store? like maybe plugins are left out? | 17:11:08 |
fzakaria | well if you write a plugin to analyze dependencies you cannot get those | 17:19:36 |
fzakaria | so you need to hack maven deeper | 17:19:44 |
fzakaria | the other problem i had was that an artifact can be vended from multiple artifactories | 17:20:09 |
fzakaria | same version but different SHA :( | 17:20:13 |
fzakaria | which is silly | 17:20:22 |
| 22 Jul 2022 |
Yuu Yin | In reply to @fzakaria:one.ems.host same version but different SHA :( i've encountered it while packaging this https://github.com/NixOS/nixpkgs/pull/154188/checks?check_run_id=7473713573 using the usual fod. so basically non-reproducible | 18:47:02 |
Yuu Yin | In reply to @fzakaria:one.ems.host same version but different SHA :( * i've encountered maybe a similar issue while packaging this https://github.com/NixOS/nixpkgs/pull/154188/checks?check_run_id=7473713573 using the usual fod. so basically non-reproducible | 18:52:55 |
| 24 Jul 2022 |
| jkxyz joined the room. | 18:35:51 |
| 1 Aug 2022 |
| better_sleeping joined the room. | 09:13:59 |