Questions tagged [plexus]

Plexus is a software framework for building modular applications using dependency injection.

[Plexus][1] provides a number of pre-built modules for achieving common tasks such as i18n and interacting with frameworks such as Hibernate and Velocity.

The aims of the project are similar to that of Spring. It supports the following [features][5]:

  • Component lifecycles
  • Component instantiation strategies
  • Nested containers
  • Component configuration
  • Auto-wiring
  • Component dependencies
  • Various dependency injection techniques including constructor injection, setter injection, and private field injection.

Plexus is perhaps most widely known because of its use in [Maven][2].

Useful Links

  • [An example][3] showing how dependencies are wired together with Plexus
  • [The Plexus FAQ][4]
  • [Plexus – Plexus Feature Comparison][5] [1]: https://codehaus-plexus.github.io/ [2]: http://maven.apache.org/ [3]: http://www.sonatype.com/people/2009/05/plexus-container-five-minute-tutorial/ [4]: https://codehaus-plexus.github.io/faq.html [5]: https://codehaus-plexus.github.io/ref/feature-comparison.html
49 questions
2
votes
1 answer

Using XmlPlexusConfiguration to import more configuration for a bean-style Maven extension

I have a Maven extension that I've set up to be configured from a POM configuration object where ... ... ends up calling setFoo(...); setBar(...); methods. I'd like to allow configurations…
Mike Samuel
  • 118,113
  • 30
  • 216
  • 245
2
votes
0 answers

How to access local maven repository in plexus component?

I am writing a custom DependencyAnalyzer which plugs into the dependency:analyze goal. The analyzer is a plexus component whose sole parameter is the MavenProject instance. My analyzer needs access to the local repository to be able to invoke the…
Jens Bannmann
  • 4,845
  • 5
  • 49
  • 76
2
votes
1 answer

Howto inject Plexus component into Mojo

Is it possible to inject a Plexus component into a Mojo. Here's what I tried but myComponent is always null. My Component: import org.codehaus.plexus.component.annotations.Component; @Component(role = MyComponent.class, hint = "mine") public class…
DarVar
  • 16,882
  • 29
  • 97
  • 146
2
votes
2 answers

Wro4j maven plugin - required class is missing

I'm trying to run wro4j maven plugin according to the documentation I add the plugin to my pom.xml: ro.isdc.wro4j wro4j-maven-plugin 1.5.0 and run the…
Nailgun
  • 3,999
  • 4
  • 31
  • 46
1
vote
0 answers

Not finding automatic modules when compiling Java Application

I have a large multi module (100s) Java project and have been experimenting with adopting java module support. This is using Java 17 (temurin), gradle 7.6, and IntelliJ 2022.3. I have hit a couple of stubborn errors with java modules where the…
1
vote
1 answer

Newest version of plexus ftpd project

Can anyone provide the link to the svn repository latest version/tag of of Plexus FTP Server project? I only see version 1.0-alpha-1 at the Maven repository which is released in 2005. Is it the current latest version? Isn't there a stable release at…
ravana
  • 157
  • 1
  • 2
  • 9
1
vote
0 answers

Maven MOJO dependency injection and parameters

When using Plexus for MOJO plugin DI, is there a way to inject MOJO configuration parameter (annotated with @Parameter in the Mojo class) in other components as well? In other words: Is there a way I can share Mojo parameters with other Plexus…
mkvcvc
  • 1,515
  • 1
  • 18
  • 41
1
vote
1 answer

Custom MavenResourcesFiltering hard to implement?

I’d like to write a custom resource filter for some source files, in order to prepend a line // @sourceURL= during resource filtering, where is the path of the file relative to ${project.basedir}. I followed Maven…
jfrantzius
  • 623
  • 7
  • 16
1
vote
0 answers

impossible to extend maven plugin configuration

I am trying to extend the maven plugin: hibernate3 (org.codehaus). All I want to do is extend their base plugin class and change some functionality. The plugin compiles and installs just fine (after using maven-inherit-plugin [note: development of…
Justin
  • 4,437
  • 6
  • 32
  • 52
1
vote
0 answers

Is there a grammar for Maven/Plexus property expression syntax

I've been looking for documentation on the maven expression syntax. I managed to find the plexus-interpolation module which seems to do the work, but its documentation is pretty sparse. Is there any documentation on the expression format better than…
Mike Samuel
  • 118,113
  • 30
  • 216
  • 245
1
vote
1 answer

Maven- Error building pom

While trying mvn clean install I got the following error: [INFO] Error building POM (may not be this project's POM). Project ID: org.codehaus.plexus:plexus-components:pom:1.1.15 Reason: Cannot find parent: org.codehaus.plexus:plexus for project:…
Vishnu G S
  • 654
  • 2
  • 10
  • 27
1
vote
0 answers

Can you specify the hint for a Component from the pom.xml

If you define a component in your Mojo (groovy or java using maven-plugin-annotations), eg: @Component Parser parser; And you have multiple implementations of Parser, that have @Component(role=Parser.class, hint="simple") public class SimpleParser…
Ben
  • 4,785
  • 3
  • 27
  • 39
1
vote
0 answers

Injecting TarArchiver in a maven mojo

I'm trying to use plexus-archiver to inject an instance of TarArchiver in a maven plugin without much success. I declare the component /** * * @component role="org.codehaus.plexus.archiver.Archiver" roleHint="tar" */ protected…
mab
  • 176
  • 2
  • 13
1
vote
1 answer

possible bug in Maven + plexus + eclipse compiler on case sensitive packages?

I encounter a very strange problem with Maven and Eclipse compiler. While in Eclipse+m2eclipse, I have no problem compiling a small project (archetype quick start) with the following single class. package test.test; import…
1
vote
2 answers

Maven Java API : Standalone Dependency Resolution (i.e. not a Maven plugin)

I've been trying to develop a relatively simple application (used as pre-cursor to a custom build process) which will process some POMs and resolve all the dependencies in advance (transitevely) from a remote repo. I've succesfully been able to…
Tom
  • 251
  • 2
  • 13