Questions tagged [mojo]

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].

232 questions
168
votes
4 answers

What is MOJO in Maven?

I'm reading about Maven right now and everywhere in a text I see this word (mojo). I approximately understand what it means, but I would not refuse from a good explanation. I tried to google, but found only non-maven explanations. POJO - ok, but…
dnim
  • 2,291
  • 3
  • 17
  • 17
58
votes
1 answer

How to get the current MavenSession or MavenExecutionRequest from a Plexus Component

I created a Plexus component to house common logic for several Mojos I want to create. I have been able to pass information like localRepository and project from the Mojo (and test cases). I was wondering if there is a way to get the MavenSession or…
Thomas
  • 2,097
  • 18
  • 24
28
votes
5 answers

Java Maven MOJO - getting information from project POM

I am working on a maven plugin. I seem to have a hard time figuring out, what would be a good way to get POM information from project in which you execute the MOJO ? For instance if I execute my mojo in another maven project I would like to get…
Xeperis
  • 1,397
  • 2
  • 20
  • 38
21
votes
9 answers

A required class was missing while executing org.apache.maven.plugins:maven-war-plugin:2.1.1:war

Here is my clean install -x result: [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building test…
Ufuk Alp Topçu
  • 215
  • 1
  • 2
  • 6
11
votes
0 answers

Cordova Android build stops by MojoBudgetService

My meteor app started to give an error as follows: I20170929-15:49:50.694(3)? 09-29 15:49:49.915 6294 6340 E chromium: [ERROR:service_manager.cc(156)] Connection InterfaceProviderSpec prevented service: content_renderer from binding interface:…
mcnk
  • 779
  • 1
  • 9
  • 23
10
votes
2 answers

How to define a default mojo for a maven plugin

I've written a plugin that generate one file in target/generated-sources/. This plugin only has one mojo. This mojo is declared with the following : /** * @goal convertsql * @phase generate-sources * @requiresProject */ public class…
Jerome VDL
  • 3,016
  • 3
  • 26
  • 31
10
votes
7 answers

How do you force a maven MOJO to be executed only once at the end of a build?

I have a MOJO I would like executed once, and once only after the test phase of the last project in the reactor to run. Using: if (!getProject().isExecutionRoot()) { return ; } at the start of the execute() method means my mojo gets…
npellow
  • 1,965
  • 1
  • 16
  • 21
8
votes
2 answers

Shutting down a Mojo::IOLoop recurring event connected to a Mojo websocket

I'm playing around with Mojolicious and websockets. I want to send the output of multiple external commands on the server to the webpage. I have no problems with connecting and receiving messages, but I also want to send a message back to the server…
brian d foy
  • 121,466
  • 31
  • 192
  • 551
8
votes
2 answers

Any way to specify a FileSet as command line parameter?

I'm creating a Mojo which doesn't need a project to run. I would like to use something similar to org.apache.maven.model.FileSet (providing multiple directories with includes and excludes) as a @parameter but my problem is that I need to be able to…
Cristiano
  • 1,165
  • 8
  • 18
8
votes
1 answer

Maven, Webstart, and Java 8 Headaches

I am trying to convert a project from compiling with Java 6 to Java 8. We are using the webstart-maven-plugin for which there is currently a workaround (http://mojo.10943.n7.nabble.com/jira-MWEBSTART-269-Java-8-support-td44357.html) for compiling…
user3689299
  • 81
  • 1
  • 3
8
votes
3 answers

Why is my use of hypnotoad crashing on Heroku?

I'm trying to get hypnotoad with a Mojolicious::Lite app running on Heroku with Perloku. There's something that doesn't happen when hypnotoad gets into its run loop that causes it to crash. I figure I'm missing something simple, but the Heroku docs…
brian d foy
  • 121,466
  • 31
  • 192
  • 551
7
votes
2 answers

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: myGroupId myArtifactId someVersion
Gili
  • 76,473
  • 85
  • 341
  • 624
6
votes
1 answer

Maven Codehaus findbugs plugin "onlyAnalyze" option not working as expected

Update for the impatient: it's simple, use package.- for sub-package scanning instead of package.*, as-per martoe's answer below! I cannot seem to get onlyAnalyze working for my multi-module project: regardless of what package (or pattern) I set,…
Alex
  • 7,405
  • 5
  • 46
  • 72
6
votes
1 answer

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:
Marinescu
  • 293
  • 9
6
votes
1 answer

lighttpd + perl + mojolicious =?

Does mojolicious working under the lighttpd web-server? How to cofigure? Does I need setup the FastCGI? It's my first usage of lighttpd.
VeroLom
  • 3,518
  • 8
  • 32
  • 47
1
2 3
15 16