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
1
vote
1 answer

How do I stop my command-line arguments being escaped in a maven plugin?

I have a plugin that uses the Plexus Commandline to invoke some external process and capture the output. One of the arguments is in a funny format with spaces and quotes, e.g. --range:"25 Aug 2008"-"04 Aug 2009". I have no way to change the required…
talk to frank
  • 1,821
  • 4
  • 20
  • 21
1
vote
2 answers

What does "Supported source version 'RELEASE_5' from annotation processor..." mean?

What does it mean and how it can be removed (reformatted for better readability)? [INFO] Compiling 30 source files to ...\target\test-classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO]…
yegor256
  • 102,010
  • 123
  • 446
  • 597
0
votes
1 answer

Do plexus annotations work in a maven plugin?

I'm working on a custom maven plugin and I'm trying to use the Plexus annotations for dependency injection as shown on the Sonotype blog. I have a field defined in my mojo: /** */ @Requirement(hint = "rhino") private RhinoRunner rhinoRunner; And…
slashnick
  • 26,167
  • 10
  • 55
  • 67
0
votes
1 answer

Overriding defaults

I am currently trying to extend an existing project. Unfortunately I am completely new to plexus. I am greatly Spring biassed, so please tell me if the approach is completely wrong. Let me describe what I want to do: In the existing project there is…
Christofer Dutz
  • 2,305
  • 1
  • 23
  • 34
0
votes
0 answers

Error mvn install java.lang.NoClassDefFoundError: org/codehaus/plexus/util/Scanner

Im trying compile the project but this error showing: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/Scanner Using Java 11 and Maven v3.8.1 by Intellij I set: org.apache.maven.plugins
0
votes
0 answers

Overriding ProjectDependenciesResolver and Default Implementation Invoking in Maven Extension

I want to override the ProjectDependenciesResolver class. This usually calls the default implementation in the DefaultProjectDependenciesResolver class. Attempt 1 import org.apache.maven.project.*; import…
Yair
  • 1
  • 1
0
votes
1 answer

Java Maven - CVE-2017-1000487 on plexus-utils-2.0.4.jar plexus-utils-3.0.10.jar

Small question regarding Java and maven please. With a very simple project, reproducible 100%, with just this code snippet (please feel free to copy paste)
PatPanda
  • 3,644
  • 9
  • 58
  • 154
0
votes
0 answers

How to get rid of Plexus Classworlds?

I have 2 different JAVA 11 child projects based on the same parent maven pom.xml. The first one was set up with Spring initializer for Maven from the beginning and the second one was set up initially without SpringBoot. The second one was giving me…
HelloWorld
  • 2,275
  • 18
  • 29
0
votes
1 answer

Error occurred during initialization of boot layer. plexus.container.default: Invalid module name: 'default' is not a Java identifier

I'm using IntelliJ IDEA 2020.2.3 and maven for my application. When I'm trying to call maven javafx:run plugin (like every maven plugin), I'm getting such warnings: [WARNING] Can't extract module name from plexus-container-default-1.7.1.jar:…
Hleb Shypula
  • 158
  • 1
  • 2
  • 12
0
votes
1 answer

How to make maven unpack overwrite read-only files?

My maven build uses unpack to extract some packages like zulu or postgres, which contain read-only files (e.g. -r-xr-xr-x pgsql/lib/libssl.so.1.0.0). When re-building, [WARNING] Unable to expand to file .../pgsql/lib/libssl.so.1.0.0 indicates that…
Bdot42
  • 11
  • 3
0
votes
2 answers

maven index search in jboss plexus error

Hi Im trying to search a maven repository from a seassion bean deployed on jboss this code works on javaSE PlexusContainer plexus = new DefaultPlexusContainer(); NexusIndexer n = (NexusIndexer) plexus.lookup(NexusIndexer.class); …
sherif
  • 2,282
  • 19
  • 21
0
votes
1 answer

How to edit some hard coded key in a java project made with Plexus Archiver and Apache Maven

We have a project in our AWS Lambda account which was developed by a Freelancer long back. In that project IAM Credentials API KEY ID and ACCESS KEY ID are hardcoded. Now we have to change those keys. But we don't have the project source code. We…
user10284651
0
votes
0 answers

three.js - Lines not rendered in 3D

I am trying to make a 3d figure of connected dots on Threejs (Plexus style), but for some reason the lines are "flat" (rendered on a flat surface rather than in a 3d space). Here is the code: // Variables var showred = false; var nx =…
0
votes
1 answer

Configuring Plexus Logging

I have a library that uses Plexus Logging facilities. My project configures it's own logging through slf4j with slf4j-simple. I've tried to mute the logging in the library through simplelogger.properties…
Vogel612
  • 5,620
  • 5
  • 48
  • 73
0
votes
1 answer

How to set extra fields for entries using plexus-archiver

I'm working with a maven plugin that is using plexus-archiver in order to create a zip file. Basically, I'm getting the component inject by Sisu, then I'm traversing a specified fileSet and registering the ones…
Cristiano
  • 1,414
  • 15
  • 22