Distinguishing between host and container dependencies

2016-09-03 Thread org . apache . maven . user
Hello.

I'm working on an application that uses an embedded OSGi container to
provide a plugin system.

The problem I'm running into is that I don't seem to have any way to
distinguish between dependencies that are dependencies of the host, and
dependencies that will only be present in the container. The distinction
is that the former will be copied into a directory to be placed onto the
classpath when the application is started and the latter will not be on
the classpath but will instead be copied into a directory at build time
to be scanned/installed by the container at runtime.

I feel like the most natural way to specify this would be to be able to
add a custom scope:

  
x.y.z
example
0.1.0
container
  

The maven-dependency-plugin could then be instructed to copy host
dependencies to one location, and container dependencies to another.
This would also play nicely with IDEs that build classpaths from Maven
dependencies (container-scoped dependencies wouldn't be on the
classpath).

Ideally, this container scope would be propagated transitively
(although I'm not sure what happens if both the host and container
indirectly depend on the same dependency).

I can't distinguish based on types alone, as all of the dependencies
are a mix of plain jars and OSGi bundles (some host dependencies are
bundles, some are plain jars, all of the container dependencies are
bundles).

Is there some other way I can achieve this? Alternatives that don't
play nicely with IDEs aren't an option.

M


pgprmVe4iEg45.pgp
Description: OpenPGP digital signature


Regarding surefire plugin usage

2016-09-03 Thread Arfeen Khan
Hi There,

Not sure if this is the correct way to communicate for surefire related
help. Please forgive me if its not.

This is regarding suefire plugin feature for my use case.

I have maven project, and running running mvn test executes test cases
within a separate process.

My ask is: Is there any way to run tests by attaching to an existing
process? So that tests can use the attached process environment.

I found surefire has JVMproperty, found here
,
but could not get how to set it, if this is correct understanding.

 The reason is: Test cases are heavily depend on environment setup, for
each test i don't want to waste time for setup and configuration, rather
focusing on problem to solve by tests.

Thank you.

-Arfeen.


maven-site-plugin

2016-09-03 Thread Renato Francesco Miracco
Hi,

I'm trying to use the maven-site-plugin, i configure it into my pom.xml as:


org.apache.maven.plugins
maven-site-plugin
3.5.1

en,fr,it



I can see the site in different languages, but only if i change the url
path.

For example:

my-site/index.html -> uses the default locale, the first defined into
configuration (en).
my-site/fr/index.html -> uses the fr localized pages.

Is there a way to change the page language, just changing the browser
language?

Best regards,
   Renato Miracco