SDK for development of webOS 1.x and 2.x apps using JavaScript and HTML. or... Most commonly used to designate plugin development in Maven (Java build tool). For the Perl web toolkit, use [tag:mojolicious] Mojo is also a programming language and superset of Python. Check https://www.modular.com/mojo for more details.
Questions tagged [mojo]
244 questions
6
votes
4 answers
ClassCaseException org.slf4j.impl.SimpleLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext
A type incompatibility occurred while executing com.cerner.clinicaldev:gatling-plugin:1.0.0-SNAPSHOT:run: org.slf4j.impl.SimpleLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext
I am writing a maven mojo that spins up a Jetty…

cbm64
- 1,059
- 2
- 12
- 24
6
votes
1 answer
Starting and stopping listeners in Mojo framework (WebOS)
I am starting WebOS dev and I have a doubt on where should I start and stop my listeners
?
I am reading this book but I couldn't find a clear explanation about this. In the sample the author set the listeners in the setup function but I wonder why?…

nacho4d
- 43,720
- 45
- 157
- 240
6
votes
2 answers
Maven: How can my mojo access its own resources?
I have a project (here called my-artifact) which needs to generate sources from a model file. I've created a maven-plugin (my-code-generator) which is used as described in the pom.xml excerpt below. It loads and processes the model.xml from…

anonymous
- 181
- 3
- 6
6
votes
1 answer
Unit Testing Maven Mojo - Components and parameters are null
Based on the documentation and mailing threads I have seen 3 ways to inject the maven project into my mojo:
/**
* Project instance
*
* @parameter default-value="${project}"
* @required
* @readonly
*/
private MavenProject…

Eddie
- 9,696
- 4
- 45
- 58
6
votes
4 answers
Maven Password Encryption for Other Properties
I would like to use Maven's password encryption such as it uses for nodes for properties of a Mojo. I tried just pasting an encrypted password into the correct property for the mojo, but it treated it as plain text. I was hoping there was an…

Colselaw
- 1,069
- 9
- 21
5
votes
1 answer
Mojo::DOM - XPath - Question
Why did the Mojo::DOM developers create their own Selectors and not use the XPath syntax?

sid_com
- 24,137
- 26
- 96
- 187
5
votes
3 answers
How do I run a Maven Plugin on all modules?
I have a custom plugin that I run on all our projects as part of the release:perform goal.
We are just starting to use multi-module builds, and I notice that my plugin only runs at the top module. What do I have to do to my plugin to make it run on…

Ben
- 4,785
- 3
- 27
- 39
5
votes
1 answer
Mojolicious re-using a previously established connection
I'm trying to reuse a previously established websocket connection to avoid the websocket handshake. I found that a custom websocket transaction can be built using build_websocket_tx (more details here), and there's a connection identifier for every…

Apoorv Joshi
- 389
- 3
- 15
5
votes
2 answers
Maven Plugin Logger Compatibility
I am writing a Maven plugin (Mojo) that imports a Jar library used by other projects. At least one of the classes in that library use Apache Log4j for logging, but Log4j is not going to be properly configured by the logger that Maven provides to the…

Jonathan
- 13,354
- 4
- 36
- 32
5
votes
2 answers
Maven: Read encrypted password from settings.xml in pom.xml
I am trying to use an encrypted password in my settings.xml. I have in my pom.xml a plugin connecting to the database, usin sql-maven-plugin:
org.codehaus.mojo
sql-maven-plugin
…

Daniel Hernández
- 4,078
- 6
- 27
- 38
5
votes
1 answer
How to get ${basedir} value (or other properties) within the Mojo.execute()?
I'm trying to get the value of the ${basedir} within a Mojo. I thought I could see that as a normal System property but
System.getProperty("basedir")
returns null.
public void execute() throws MojoExecutionException, MojoFailureException {
…

Andrea
- 2,714
- 3
- 27
- 38
5
votes
1 answer
How to get "[DEBUG] Executing command line:" when running exec-maven-plugin java
I am running someone else's pom.xml which has:
org.codehaus.mojo
exec-maven-plugin
1.3.2
…

user3722575
- 71
- 1
- 2
- 8
5
votes
1 answer
Maven Plugin Logging
I implemented my own Maven plugin mojo in which I used log4j + slf4j. In the plugin project I have included the correct jars and can see correct logging of statements from code.
Now I want use this new maven plugin in another client project but…

jakstack
- 2,143
- 3
- 20
- 37
4
votes
1 answer
How do I specify the return type for fn functions in Mojo
I am running a piece of code that calculates the factorial in Mojo:
fn fact(x:Int):
var mul:Int=1
for i in range(1,x+1):
mul = mul*i
return mul
print(fact(7))
But when I run this, I get the error: cannot implicitly convert 'Int'…

Pramey Dongre
- 41
- 1
4
votes
1 answer
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 file and use it as an element in the configuration…

frdsprtrdr
- 384
- 1
- 2
- 11