All Questions
14 questions
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 ...
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
1
answer
274
views
Mojo complex dependency injection
I'm trying to use the @Parameter above a field in a mojo.
@Parameter(required = false)
public Map authentication;
In plugin usage I'm passing:
<configuration>
<authentication>
...
0
votes
0
answers
53
views
Access a maven resource jar from java code
I am creating a maven plugin and need to retrieve a jar from within my code. I don't want to just search through the .m2 folder, but actualy use maven to retrieve the requested resource (both local ...
1
vote
0
answers
504
views
Change property of Maven POM
I need to change a property of my pom.xml.
I searched and I didnt found any plugin that changes properties in the pom.xml. So I decided to write my own pPlugin. Is there any way to persist the ...
1
vote
0
answers
264
views
how to create maven mojo plugin to overwrite files directories in target project
I am writing a maven plugin which generates java source code based on input text file and some additional configuration.
e.g. User creates maven project and adds my plugin in his project's pom.xml as ...
0
votes
0
answers
119
views
Auto-create XSD for Maven plugin mojo
I am creating a new Maven plugin, following the instructions here.
I can create a new parameter, as per the documentation, like this:
@Parameter( property = "sayhi.greeting", defaultValue = "Hello ...
0
votes
0
answers
17
views
Use sql-maven-plugin inside my own plugin implementation [duplicate]
I'm developing in Java a maven plugin which needs to run different SQL scripts, among other things. I don't know how to run existing SQL Scripts from Java so I started to wonder if I can use the sql-...
4
votes
2
answers
505
views
Maven docs after codehaus terminated? [closed]
Where can I get all the org.codehaus.mojo Maven plugins docs and sources once Codehaus.org was terminated?
4
votes
1
answer
3k
views
Cannot set parameter using annotations on a maven plugin
I'm trying to develop a maven plugin and it does not work when I use @Parameter annotation.
My dependencies:
...
<dependency>
<groupId>org.apache.maven</groupId>
...
0
votes
2
answers
52
views
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 ...
0
votes
1
answer
679
views
Loading "modules" in Mojolicious
Need for help. Necessary to implement the installation and loading of "modules". "Module" plug-in is located in the file like lib//. I think I should somehow take the search subdirectories lib/ for "...