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] Mojo is also a programming language and superset of Python. Check https://www.modular.com/mojo for more details.

244 questions
0
votes
1 answer

Unable to see generated test source folder with mojo's build-helper

I have added the mojo's plugin build-helper to my project pom to generate a new test source folder for my integration tests. When I run the phase, generate-test-sources mvn generate-test-sources I could see the below console output showing the…
0
votes
2 answers

Getting contents and natures of all projects in a Maven build

Currently I'm working on a Maven plugin that should generate files in all projects (OSGi bundles) that have a certain Eclipse project nature. How can I access the contents of the projects included in the build and the project natures by using the…
user1056903
  • 921
  • 9
  • 26
0
votes
1 answer

How to create integration test for a mojo that provides a custom packaging

I've created a mojo using maven 3.2.2 that provides a custom packaging. This custom package triggers the generation of a custom compacted file. I would like to create a functional test for it and given a project with a pom to verify if the file was…
Cristiano
  • 1,414
  • 15
  • 22
0
votes
1 answer

Maven MOJO: Get execution configuration in runtime

I am developing a maven plugin. When maven instantiates the mojo class, fields annotated as @Parameter will be "dependency injected" by maven, as childenodes are defined inside the project/build/plugins/plugin/executions/execution tag. Like…
Androrider
  • 1,050
  • 2
  • 13
  • 20
0
votes
1 answer

Accessing Jenkins environmental variables through a custom mojo

Is it possible to do this? For example could one do something like: System.getEnv("$(env.BUILD_URL)"); I do not have access to Jenkins, so can't try it out myself :( Any help would be greatly appreciated.
John S
  • 1,687
  • 6
  • 21
  • 28
0
votes
1 answer

How can I redirect or capture session timeout event in Mojolicious?

I'm writing a small application written with Mojolicious and I was wondering how I could go about alerting and/or redirect a user on session timeout? Many thanks.
user1768233
  • 1,409
  • 3
  • 20
  • 28
0
votes
2 answers

Domain dependent routing in Mojolicious

I am writing a website in Mojolicious which needs to route to certain files depending on the domain name. Ie: mydomain.com/foo -> controllerA#foo mydomain.es/foo -> controllerB#foo The documentation gives the following…
0
votes
1 answer

Does Mojo use jslint nomen flag backwards?

In my pom.xml file which I use for my project I've set the following up for jsLint: org.codehaus.mojo jslint-maven-plugin 1.0.1
staffang
  • 176
  • 10
0
votes
1 answer

how to parse the following html?

I have following html i would like to extract information and reshape them into a table-like database:
Var1 observation 1 …
0
votes
1 answer

how to search maven artifact using mojo?

I'm wring mojo to download artifact from repo (Nexus). But most of the time I know only artifact Id , and version. Is there any way to download artifact only using artifact Id and group id?
user1741249
  • 43
  • 1
  • 8
0
votes
1 answer

"GWT module may need to be (re)compiled" when deployed into the Tomcat and the war is generated with maven

I got the issue( "GWT module 'SmartWPS' may need to be (re)compiled") while accessing the url. I have generated the war file by running maven-clean-install. I placed the same war file in the /webapp folder. I have developed application using GWT…
Saritha
  • 181
  • 17
0
votes
1 answer

pass string with white space using commandlineArgs in maven commandlineArgs plugin

Is it possible to add double quote to the commandlineArgs of the maven mojo plugin? On the batch i have %1 - getting just first part of the string until the first white space I tried quot: " but it didnt help e.g.…
JavaSheriff
  • 7,074
  • 20
  • 89
  • 159
0
votes
2 answers

Maven: Java classes don't compile after Ant task

My project generates source code using the Rats! parser generator. Rats! doesn't have a Maven plugin that I'm aware of, so I'm trying to build the parser using an Ant Java task, like so: maven-antrun-plugin
Chris Conway
  • 55,321
  • 43
  • 129
  • 155
0
votes
1 answer

Can I use Mojo.Controller.showAlertDialog within PhoneGap?

This afternoon I'm trying PhoneGap 1.5, and I cannot use navigator.notification.alert("Hello", function() {}, "OK") but navigator.notification.alert("Hello") works. I checked phonegap.js and did find the definition that Notification.prototype.alert…
Kinka
  • 425
  • 6
  • 15
-1
votes
1 answer

How can i set Mojo Paramater from the pom.xml of Mojo plugin without project

I write a Mojo Plugin. It has a Pamameter like: *@Mojo(name = "showModus", requiresProject = false, defaultPhase = LifecyclePhase.PROCESS_RESOURCES)
public class ShowModus extends AbstractMojo {
@Parameter (property = "modus", defaultValue…
NAT
  • 1
1 2 3
16
17