248 questions
0
votes
0
answers
10
views
Are packages such as PIL, Holidays, and Rich compatible at all with Mojo?
I am interested in Mojo and would ideally like to update my command line calendaring app from Python to Mojo. I'm not as interested in the performance optimization as I am features such as binary ...
0
votes
0
answers
116
views
How to solve Mojo SDK initialization error in VScode?
I installed Max and Mojo, and set up the path correctly, and Mojo works just fine in both Ubuntu wsl and VScode. However, each time I start up VScode, the below message persists:
"Mojo SDK ...
0
votes
0
answers
64
views
running python rest server in mojo
Since python rest server would be running in mojo and not in cpython we could get multithreading and not be worried about gil is this assumption correct? if anyone tried this combination do share ...
0
votes
0
answers
43
views
Run Yolov5 model in Max engine using Mojo
Issues in loading and compiling the yolov5s.torchscript model in MAX Engine using Mojo.
Referred the documents at https://docs.modular.com/max/mojo/get-started and https://docs.modular.com/max/model-...
2
votes
1
answer
110
views
Converting H2O MOJOmodels to Binary
I am trying to upgrade a binary (DRF) H2O model to a higher version (from v3.28.1.2 to v3.42.0.3). Due to tecnical restrictions I cannot use the MOJO format for deployment. Is it possible to do the ...
1
vote
0
answers
69
views
Writing tests for apache maven resolver
I have a class in my maven project that is used to resolve artifacts during a mojo execution. However I need to write tests for this ArtifactResolver class that tests it on a real repo which is let's ...
0
votes
1
answer
82
views
Resolving maven dependencies at runtime during plugin execution
I have a maven plugin that checks some dependencies. Those dependencies at unknown at first, so I can't add them to the pom file. Thus, I need a way to resolve dependencies at runtime during the ...
0
votes
0
answers
47
views
How to install remote dependencies using MavenSession?
How can I install remote dependencies using MavenSession in a Maven plugin that I am working on?
I wasn't able to try because of the poor documentation of maven. I am new to maven so I don't know how ...
2
votes
1
answer
143
views
How to make a Maven plugin Mojo parameter's default value an empty string?
How can a Maven plugin Mojo parameter be configured so that the default value is an empty String?
The defaultValue property of the Parameter annotation already defaults to "", so configuring ...
1
vote
5
answers
2k
views
how to set the path of MODULAR HOME on VS Code?
I'm seemingly new to the VS Code environment and I was tinkering about with Mojo. However, the Mojo extension can't find it's path and I can't understand how to set it. Please help.
I tried going to ...
1
vote
0
answers
156
views
Mojolicious, Mojo::Promise, DBI, and parallel requests
I am new in Mojolicious and playing around with this simple application to return rows from database. It seems to work fine for a single request, however when I use "xargs -n 1 -P 4" to run ...
0
votes
0
answers
1k
views
OpenAPI Generator Maven Plugin 6.6.0 creates Build Failure in Maven Clean Install
I have to produce a OpenAPI Specification from an existing REST based project. One thing i did was to include the springdoc-openapi and swagger-webmvc-ui dependency and it was creating the desired ...
0
votes
1
answer
67
views
Calibrated probabilities from mojo object
I have a model developed with h2o 3.38. I calibrated it with a separate data. Now when I score a new data set, I see the calibrated probabilities. If I save the model as:
h2o.save_model(gbm_model, ...
1
vote
0
answers
181
views
Mojo::IOLoop::Subprocess how to pass parameter and wait for the result
I am trying to get idea how subprocesses work in the Mojolicious.
This is a code I am running:
use Mojo::Base -strict, -signatures;
use Mojo::IOLoop::Subprocess;
show "BEFORE";
for(...
1
vote
1
answer
127
views
How to write a utf8 string as binary
I have an epub that has been double encoded to utf8. I wanted to fix it by decoding it once and write it as binary but I get "wide character in subroutine" error. I'm using Mojo::File.
use ...
1
vote
1
answer
4k
views
org/springframework/boot/maven/BuildInfoMojo has been compiled by a more recent version of the Java Runtime
i'm getting this error when i mvn clean install my project:
org/springframework/boot/maven/BuildInfoMojo has been compiled by a more recent
version of the Java Runtime (class file version 61.0), this ...
2
votes
1
answer
117
views
Example ws doesn't work on https with Mojo
Uncaught DOMException: The operation is insecure.
I get this in firefox when running the example code:
$ MOJO_LISTEN=http://*:5000 morbo index.pl
use Mojolicious::Lite -signatures;
# ...
0
votes
1
answer
168
views
RunMojo compatibility problem with camel plugin
I have installed Camel plugin for IntelliJ.
To start debugging, we must create an ad-hoc application
The problem is that it gives me that error running it, when building the war file
org/apache/...
2
votes
1
answer
2k
views
How to convert LIGHTGBM to PMML?
I would like to know if there exist a way to convert a LightGBM model to a PMML. Starting from the lightgbm.basic.Booster object I would like to know how to convert it to a PMML or MOJO/POJO object. ...
1
vote
0
answers
208
views
H2O Mojo model always return the same value for prediction
I have trained a stacked ensemble model with automl() function provided by H2O (3.36.0.4)for R. Once the model is trained, i have exported it to .zip format with the download_mojo() function.
I have ...
0
votes
1
answer
109
views
Need jar for WebLogic exporter "https://github.com/oracle/weblogic-monitoring-exporter#Configuration"
Can you please help me to get the jar file for WebLogic exporter "https://github.com/oracle/weblogic-monitoring-exporter#Configuration" . I am new to java packaging and tried many times with ...
0
votes
0
answers
1k
views
Maven compilation failure due to mojo compiler
I've downloaded java 1.8 and maven 3.8.2 but whenever I run my app I keep getting this:
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ project >>>
[INFO]...
0
votes
1
answer
2k
views
How do I fix “Latches may be generated from incomplete case or if statements” messages in a case-when?
Please Help me
I was trying to do ALU for 4 bit with selector.
I'm getting errors like this:
**WARNING:Xst:737 - Found 1-bit latch for signal <Z<1>>. Latches may be generated from ...
1
vote
1
answer
425
views
Perl PAR PP - Don't work /tmp/par-726f6f74/inc/lib/Mojo/resources/html_entities.txt
I've been using pp
https://metacpan.org/pod/pp
A while ago!
However when hiring another hosting, when I run the pp command the scripts do not run on the server
CentOS Linux release 7.9.2009 (Core)
...
1
vote
1
answer
162
views
Mojo::DOM - How to parse sets of data out of a dom object?
I have data in an html results page and I want to iteratively parse sets of data out of it. In the general "results page" format, there is a main results section (div), which contains a ...
0
votes
1
answer
132
views
Maven ignores plugin configuration from pom.xml
While executing a phase everything works as expected, when I try to call a plugin (mojo) directly like
mvn net.masterthought:maven-cucumber-reporting:5.5.0:generate
maven seems to ignore <...
1
vote
1
answer
48
views
Extract base model prediction H2o stacked model mojo
Is it possible to extract base models prediction given the final stacked ensemble mojo model using java in production for scoring
0
votes
3
answers
1k
views
org.dbunit.database.AmbiguousTableNameException with MySQL 8
can anybody help me with this?
using dbunit-maven-plugin-1.0-beta-3 with mysql 8 to load meta data to database tables with mysql-connector-java-8.0.22.
Got the error as follows
org.apache.maven....
1
vote
1
answer
315
views
Maven plugin-development - How to detect modified files?
I'm writing new maven plugins, I've successfully used StaleSourceScanner in a combination with SuffixMapping, but it is just not working with SingleTargetSourceMapping. Always all files are detected ...
0
votes
0
answers
323
views
How to read multi module maven project information(like dependencies) separately with maven-project plugin
I'm trying to read POM information(dependencies) from multi module maven project. This maven project contains other maven project for which i have to read separately.
I am using maven-project-2.2.1....
3
votes
0
answers
72
views
How to extract the international dial code together with the input?
I wanted to optimize the registration process and I have added the international dial input.
I want to extract the input together with the dial code value.(I was thinking to do a concatenation between ...
6
votes
1
answer
343
views
International phone input issue
I am trying to implement the "international phone input" on the registration process.
I have the css file: /css/intlTelInput.css
And the js file: /js/intlTelInput.js
This is the html:
<...
1
vote
0
answers
184
views
How can i create html form that will save the results in another file using Mojolicious?
I have a task in the Mojolicious framework, not the Lite version. I create HTML form in the templates folder, when the user submitted the data from this folder will be saved in another HTML file in ...
1
vote
0
answers
73
views
How to pass custom input with mvn clean install and access this input in mojo class?
I am creating a custom maven-plugin which requires some json files in the the mojo class and do some further processing on them. I will be taking these files as input from the user. is there any way ...
0
votes
1
answer
680
views
H2o MOJO model load issue in pyspark
I am getting below error while trying to load MOJO using pyspark.
code:
settings = H2OMOJOSettings(convertUnknownCategoricalLevelsToNa = True, convertInvalidNumbersToNa = True)
model = H2OMOJOModel....
0
votes
1
answer
103
views
How to create a maven profile from custom maven mojo
I'm creating my own custom maven mojo to manage custom profiles, I'm using project.setActiveProfiles(profiles); to create profiles but I think this method only to activate profiles not create them.
...
2
votes
1
answer
204
views
H2O AI : Unsupported MOJO model 'word2vec'
I have 3 h2o models:
$ ls dataset/mojo
1. DeepLearning_model_python_1582176092021_2.zip
2. StackedEnsemble_BestOfFamily_AutoML_20200220_073620.zip
3. Word2Vec_model_python_1582176092021_1.zip
The ...
0
votes
1
answer
5k
views
MojoExecutionException: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed
When I execute command ./mvnw -Pprod,swagger,webpack clean package -X
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) on project --: ...
1
vote
0
answers
29
views
Maven Lifecycle and Plugin
I am currently writing a Maven Mojo that generates a class for the user so they don't have to create it manually (the class is essentially just boilerplate and my plugin fills in the information ...
0
votes
0
answers
404
views
IllegalArgumentException - H2O Importing MOJO File Failed in Python
MOJO model generation done in H2O(3.28.0.2). File named ep_gbm_grid03_model_49.zip exported.
When a MOJO import job (http://docs.h2o.ai/h2o/latest-stable/h2o-docs/save-and-load-model.html#mojo-models)...
0
votes
1
answer
283
views
Maven Mojo does not utilize the reactor when called through a phase. It works fine when called as independent goal
I have implemented a custom maven mojo to perform some operation on all modules mentioned in the input POM. The mojo works as expected when called from command line like:
mvn plugin_group_id:...
1
vote
0
answers
259
views
Trigger a Mojo programmatically from another Mojo
Can I make a Mojo that runs during integration-test phase trigger another Mojo that runs during verify phase?
This question is a follow up on my previous question. I extended the frontend-maven-...
0
votes
0
answers
240
views
How to run two Maven Mojos with different parameters
I wrote a Maven plugin with two Mojos. They are meant to be run in the command line, not attached to any phase of the build.
They happen to have different parameters, and I don't know how to specify ...
4
votes
1
answer
331
views
Passing value from Mojo to pom
I am developing a maven plugin , I have a parameter called "FinalVersion" which is created as a @Parameter in Mojo and its value is being set in Mojo class.
I need to pass "finalversion" to my pom ...
1
vote
1
answer
364
views
What version of Java should I use for developing my MOJO Maven Plugin?
I am currently implementing a new Maven Plugin and I would like to use Java 11 for compilation and execution.
However, I would like my Maven plugin to be used by most of our projects. Some of them ...
1
vote
1
answer
3k
views
Executing Mojo failed with `java.lang.NoSuchMethodError` org.codehaus.plexus.util.DirectoryScanner.setFilenameComparator
I have created 2 Mojos and recently decided to upgrade all my versions usign the maven version plugin.
Now, an executing one of my Mojos, I get this exception:
An API incompatibility was encountered ...
1
vote
1
answer
466
views
Unable to parse configuration of mojo org.owasp:dependency-check-maven:5.2.4:check
I'm getting error for configuration entry 'formats', which am not able to find under dependency-check-maven-5.2.4.pom & dependency-check-parent-5.2.4.pom
Unable to parse configuration of mojo ...
0
votes
1
answer
1k
views
How to retrieve H2O model from mojo zip file?
I saved H2O model using model.download_mojo(path="path", get_genmodel_jar=True).
I want retrieve that model to use in jupyter notebook again.
How can I do that? Thanks.
2
votes
1
answer
1k
views
how share a .properties file from parent project to child projects
I have a parent project with a .properties file, this file is filtering according to profiles defined over the project, this project has child projects or modules, I would like the .properties file ...
12
votes
2
answers
5k
views
How to specify a default goal for a Maven plugin?
I've defined a Maven plugin with multiple goals. Currently users run my plugin as follows:
<plugin>
<groupId>myGroupId</groupId>
<artifactId>myArtifactId</...