Re: Incorrect assembly created with Maven 3.0.3

2011-09-17 Thread Anders Hammar
Just a wild guess, do you have a dependencyManagament handling these
artifacts where the scope is defined? I've seen different behavior
between Maven 2.x and 3.0.x due to this (MJBOSSPACK-40 [1]).

/Anders

[1] http://jira.codehaus.org/browse/MJBOSSPACK-40

On Fri, Sep 16, 2011 at 22:43, WhiteMarlin wes_mun...@cytoanalytics.com wrote:

 Thorsten Heit wrote:

 ...snip ...

 But what puzzles me is that the archives created by Maven 2.2.1 and Maven
 3.0.3 are different, and I don't see a reason why...

 ...snip...


 Hi there,

 Did you ever get anywhere with this? I'm seeing the same problem: Maven
 3.0.3 adds batik-js-1.7.jar and omits serializer-2.7.1.jar.

 Though I am not positive, I believe this is the cause of an exception I see
 at runtime, the stack trace of which starts like this:

 java.lang.IllegalAccessError:
 org/apache/xml/serializer/ExtendedContentHandler
        at
 org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:1233)
        ...

 Thanks!


 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/Incorrect-assembly-created-with-Maven-3-0-3-tp4393328p4811951.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Accessing profiles via system properties etc.

2011-09-17 Thread Mirko Friedenhagen
Really no one? I would appreciate a negative answer as well ;-) .

On Sep 14, 2011 10:11 PM, Mirko Friedenhagen mfriedenha...@gmail.com
wrote:

 Hello,

 is there a possibility of accessing the activated Maven profile names
during test runs programmatically or in configuration files?

 I want to activate logging to Lilith in a Maven profile. Adding the
required dependency is no problem, but for adding the appended conditionally
seems not to be possible. Are the activated profile names exposed?

 Regards Mirko
 --
 Sent from my phone
 http://illegalstateexception.blogspot.com
 http://github.com/mfriedenhagen/


Re: Accessing profiles via system properties etc.

2011-09-17 Thread Anders Hammar
I would guess no.

/Anders

On Sat, Sep 17, 2011 at 16:04, Mirko Friedenhagen
mfriedenha...@gmail.com wrote:
 Really no one? I would appreciate a negative answer as well ;-) .

 On Sep 14, 2011 10:11 PM, Mirko Friedenhagen mfriedenha...@gmail.com
 wrote:

 Hello,

 is there a possibility of accessing the activated Maven profile names
 during test runs programmatically or in configuration files?

 I want to activate logging to Lilith in a Maven profile. Adding the
 required dependency is no problem, but for adding the appended conditionally
 seems not to be possible. Are the activated profile names exposed?

 Regards Mirko
 --
 Sent from my phone
 http://illegalstateexception.blogspot.com
 http://github.com/mfriedenhagen/


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Accessing profiles via system properties etc.

2011-09-17 Thread Martin Gainty

Mirko-

Profiles allow or restrict what is visible to the project hierarchy ... 
*usually* based on current environment conditions
For example developing in Scandanavia you may allow greater access to 
properties than you would say when you are running demonstrations in the US

can you provide an brief example of the profiles you are implementing in a 
comprehensive pom.xml so we may suggest an appropriate solution?

Takk,
Martin 
__ 
do not alter or disrupt this transmission.


 Date: Sat, 17 Sep 2011 16:04:14 +0200
 Subject: Re: Accessing profiles via system properties etc.
 From: mfriedenha...@gmail.com
 To: users@maven.apache.org
 
 Really no one? I would appreciate a negative answer as well ;-) .
 
 On Sep 14, 2011 10:11 PM, Mirko Friedenhagen mfriedenha...@gmail.com
 wrote:
 
  Hello,
 
  is there a possibility of accessing the activated Maven profile names
 during test runs programmatically or in configuration files?
 
  I want to activate logging to Lilith in a Maven profile. Adding the
 required dependency is no problem, but for adding the appended conditionally
 seems not to be possible. Are the activated profile names exposed?
 
  Regards Mirko
  --
  Sent from my phone
  http://illegalstateexception.blogspot.com
  http://github.com/mfriedenhagen/
  

Re: Accessing profiles via system properties etc.

2011-09-17 Thread Mirko Friedenhagen
Well, I will try. I use slf4j for logging. I normally log using
logback to stderrr. When
de.huxhorn.lilith.logback.appender.multiplex-classic is available, I
want to log to Lilith (http://lilith.huxhorn.de/), a graphical
logviewer.

I think the relevant parts are:

   !-- logging --
dependency
groupIdorg.slf4j/groupId
artifactIdslf4j-api/artifactId
version1.6.1/version
/dependency

profile
idlilith/id
dependencies
dependency·
groupIdde.huxhorn.lilith/groupId·

artifactIdde.huxhorn.lilith.logback.appender.multiplex-classic/artifactId·
version0.9.41/version·
scopetest/scope·
/dependency
/dependencies
/profile

And in my logback-test.xml I have:

if condition='property(maven.profile).contains(lilith)'
appender name=multiplex
class=de.huxhorn.lilith.logback.appender.ClassicMultiplexSocketAppender
Compressingtrue/Compressing !-- will automatically
use correct default port -- !-- Default port for compressed is 1
and uncompressed 10001 --
ReconnectionDelay1/ReconnectionDelay
IncludeCallerDatatrue/IncludeCallerData
RemoteHostslocalhost/RemoteHosts
/appender
/if

I think I could workaround this by specify a system property
-Dlogback.configurationFile=src/test/resources/logback-with-lilith.xml
in the surefire plugin but just wanted to know if there is an easier
way to do this.

Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/



On Sat, Sep 17, 2011 at 16:20, Martin Gainty mgai...@hotmail.com wrote:

 Mirko-

 Profiles allow or restrict what is visible to the project hierarchy ... 
 *usually* based on current environment conditions
 For example developing in Scandanavia you may allow greater access to 
 properties than you would say when you are running demonstrations in the US

 can you provide an brief example of the profiles you are implementing in a 
 comprehensive pom.xml so we may suggest an appropriate solution?

 Takk,
 Martin
 __
 do not alter or disrupt this transmission.


 Date: Sat, 17 Sep 2011 16:04:14 +0200
 Subject: Re: Accessing profiles via system properties etc.
 From: mfriedenha...@gmail.com
 To: users@maven.apache.org

 Really no one? I would appreciate a negative answer as well ;-) .

 On Sep 14, 2011 10:11 PM, Mirko Friedenhagen mfriedenha...@gmail.com
 wrote:
 
  Hello,
 
  is there a possibility of accessing the activated Maven profile names
 during test runs programmatically or in configuration files?
 
  I want to activate logging to Lilith in a Maven profile. Adding the
 required dependency is no problem, but for adding the appended conditionally
 seems not to be possible. Are the activated profile names exposed?
 
  Regards Mirko
  --
  Sent from my phone
  http://illegalstateexception.blogspot.com
  http://github.com/mfriedenhagen/


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Accessing profiles via system properties etc.

2011-09-17 Thread Mirko Friedenhagen
I just implemented the solution with the system property for the
location of the logfile
(https://github.com/mfriedenhagen/sardine/commit/74f2736bce4bb7d599ab9cf003135b1212c77ea6).
Still interested in better solutions, though :-).

Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/



On Sat, Sep 17, 2011 at 21:16, Mirko Friedenhagen
mfriedenha...@gmail.com wrote:
 Well, I will try. I use slf4j for logging. I normally log using
 logback to stderrr. When
 de.huxhorn.lilith.logback.appender.multiplex-classic is available, I
 want to log to Lilith (http://lilith.huxhorn.de/), a graphical
 logviewer.

 I think the relevant parts are:

       !-- logging --
        dependency
            groupIdorg.slf4j/groupId
            artifactIdslf4j-api/artifactId
            version1.6.1/version
        /dependency

        profile
            idlilith/id
            dependencies
                dependency·
                    groupIdde.huxhorn.lilith/groupId·

 artifactIdde.huxhorn.lilith.logback.appender.multiplex-classic/artifactId·
                    version0.9.41/version·
                    scopetest/scope·
                /dependency
            /dependencies
        /profile

 And in my logback-test.xml I have:

    if condition='property(maven.profile).contains(lilith)'
        appender name=multiplex
 class=de.huxhorn.lilith.logback.appender.ClassicMultiplexSocketAppender
            Compressingtrue/Compressing !-- will automatically
 use correct default port -- !-- Default port for compressed is 1
 and uncompressed 10001 --
            ReconnectionDelay1/ReconnectionDelay
            IncludeCallerDatatrue/IncludeCallerData
            RemoteHostslocalhost/RemoteHosts
        /appender
    /if

 I think I could workaround this by specify a system property
 -Dlogback.configurationFile=src/test/resources/logback-with-lilith.xml
 in the surefire plugin but just wanted to know if there is an easier
 way to do this.

 Regards Mirko
 --
 http://illegalstateexception.blogspot.com/
 https://github.com/mfriedenhagen/
 https://bitbucket.org/mfriedenhagen/



 On Sat, Sep 17, 2011 at 16:20, Martin Gainty mgai...@hotmail.com wrote:

 Mirko-

 Profiles allow or restrict what is visible to the project hierarchy ... 
 *usually* based on current environment conditions
 For example developing in Scandanavia you may allow greater access to 
 properties than you would say when you are running demonstrations in the US

 can you provide an brief example of the profiles you are implementing in a 
 comprehensive pom.xml so we may suggest an appropriate solution?

 Takk,
 Martin
 __
 do not alter or disrupt this transmission.


 Date: Sat, 17 Sep 2011 16:04:14 +0200
 Subject: Re: Accessing profiles via system properties etc.
 From: mfriedenha...@gmail.com
 To: users@maven.apache.org

 Really no one? I would appreciate a negative answer as well ;-) .

 On Sep 14, 2011 10:11 PM, Mirko Friedenhagen mfriedenha...@gmail.com
 wrote:
 
  Hello,
 
  is there a possibility of accessing the activated Maven profile names
 during test runs programmatically or in configuration files?
 
  I want to activate logging to Lilith in a Maven profile. Adding the
 required dependency is no problem, but for adding the appended conditionally
 seems not to be possible. Are the activated profile names exposed?
 
  Regards Mirko
  --
  Sent from my phone
  http://illegalstateexception.blogspot.com
  http://github.com/mfriedenhagen/



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Need a Maven repo simulator for redirection

2011-09-17 Thread Manfred Moser

On 11-09-14 06:07 PM, Wayne Fay wrote:

Get Sonatype Nexus Professional. it is designed to do just that with the
Procurement feature.

Way cheaper than trying to build your own solution.

A series of Apache rewrite rules is pretty simple (and thus
inexpensive) to write, if he wants a free solution and only needs to
handle this specific use case. Longer term, I agree with moving to
Nexus (Pro or free, depending on needs) or another Repo Manager
solution.

Wayne


True but a large organization like he mentions should already be using a 
repository server anyway. Just for the mere convenience and speed 
improvements alone and the courtesy to reduce load off central.


manfred


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org