Re: Create complicated client jar release target(s)

2010-12-09 Thread Antonio Petrelli
2010/12/9 fhomasp thomas.peet...@realdolmen.com:
 You're talking about Tiles and accessing the parent directory.  Could you
 explain a bit further?

I have a better idea, here is the source:
http://svn.apache.org/repos/asf/tiles/framework/trunk/assembly/

 And the idea of an extra distribution module, that's not the way to go
 then?

I guess that *one* assembly module is enough. In Tiles, within that
single module, we build source, library, documentation assemblies from
one single module.

Antonio

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



Re: avoiding overwriting newer file when using maven resources plugin copy-resources with filtering

2010-12-09 Thread Stephen Connolly
Sounds like you might be better served by writing your own plugin to do the
filtering, that way you can take the timestamps into consideration.

Also I hope you are putting the filtered java source into a sub-folder of
 ${basedir}/target

-Stephen

On 8 December 2010 22:49, Marshall Schor m...@schor.com wrote:



 On 12/8/2010 4:40 PM, Anders Hammar wrote:
  I guess the dependency plugin can't really tell, as the filtering takes a
  value outside of the source file which could have changed since the last
  time the file was filtered.
  The price you pay for filtering I guess?

 I was wondering (since I know the source of the filtered values) if there
 was
 a Maven-way of telling it this information?

 Something like being able to declare: file xyz depends on files abc and
 def, so
 if abc and def are both older than xyz, don't bother updating xyz.

 -Marshall Schor
  /Anders
 
  On Wed, Dec 8, 2010 at 18:02, Marshall Schor m...@schor.com wrote:
 
  The Maven resources plugin has a goal copy-resources which has a
  configuration
  parameter overwrite.  The default is false - meaning not to
 overwrite a
  target file if not needed (if the target has  a later date than the
  source).
 
  This setting is ignored, however, if the file is being filtered.
 
  I'm using this to inject version info from the POM into a Java source
 file.
   So
  everytime this module is built, it always updates this file even though
  nothing
  (usually) has changed.
 
  Is there a better Maven way to do this?
 
  -Marshall
 
  -
  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: Create complicated client jar release target(s)

2010-12-09 Thread fhomasp

One for each artifact that needs to be released is ok, that wasn't my
question.

I now also have a distributionmodule that takes info from the release
modules in order to group the libraries and to create one release bundle, as
it is explained in the link you don't like much :-)

I'll take a look at this



Antonio Petrelli wrote:
 
 2010/12/9 fhomasp thomas.peet...@realdolmen.com:
 You're talking about Tiles and accessing the parent directory.  Could you
 explain a bit further?
 
 I have a better idea, here is the source:
 http://svn.apache.org/repos/asf/tiles/framework/trunk/assembly/
 
 And the idea of an extra distribution module, that's not the way to go
 then?
 
 I guess that *one* assembly module is enough. In Tiles, within that
 single module, we build source, library, documentation assemblies from
 one single module.
 
 Antonio
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Create-complicated-client-jar-release-target-s-tp3295582p3298637.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



Re: Using annotationProcessor in maven-compiler-plugin

2010-12-09 Thread Anders Hammar
I assume you tried the default value for generatedSourcesDirectory?
Haven't used annotation processors myself, my Maven experience just suggests
going with the defaults as much as possible. But if even the defaults don't
work, something is clearly wrong. Either in the plugin or in your config.
:-)

There is an integration-test regarding this for the maven-compiler-plugin.
Have look at that to see how that differs from your setup. Possible also
test with Maven 2.2.1 to see if Maven 3 is the problem.

/Anders

On Thu, Dec 9, 2010 at 05:35, lilyevsky leonidilyev...@yahoo.com wrote:


 I am trying to learn how to use annotationProcessor feature with
 maven-compiler-plugin 2.3.2 under maven 3.
 My configuration is below.
 The processor indeed works and it generates the files.
 My problem is that the compiler does not see those files during compile
 phase. What am I doing wrong?
 I tried to put my generated-sources in different places, under target,
 directly under the project folder.
 I tried to use generated-sources/src/main/java structure. Nothing works.

 =

 build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.3.2/version
configuration
source1.6/source
target1.6/target


 generatedSourcesDirectorygenerated-sources/src/main/java/generatedSourcesDirectory
annotationProcessors


 annotationProcessorcom.newamsterdam.framework.flexrecord.FlexRecordProcessor/annotationProcessor
/annotationProcessors
/configuration
/plugin
/plugins
/build
 --
 View this message in context:
 http://maven.40175.n5.nabble.com/Using-annotationProcessor-in-maven-compiler-plugin-tp3298435p3298435.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




Re: Multiple JDKs

2010-12-09 Thread Asmann, Roland
On 07.12.2010 11:29, Stephen Connolly wrote:
 On 7 December 2010 10:14, Asmann, Roland roland.asm...@adesso.at wrote:

   Hi all,
  
   I was wondering if anybody ever had this problem...
  
   I have a customer who is running a machine with a SUN JDK and one with
   an IBM JDK. Now, we've noticed there are some differences between the
   two, so I thought it would be best to release their artefacts for both
   JDKs... Question is, can I do this somehow with Maven in a single
   release-cycle or do I need to make separate releases?
  
  
 I would consider running the tests twice and have just one set of
 artifacts... Otherwise you will have a nightmare of a dependency management.

I already have this... Yesterday I found out that one of my dependencies 
has a profile that is activated when I use the IBM JDK for building... 
This mad the EAR undeployable on the SUN JDK, because this dependency 
(jaxp) is probably included in the JDK for SUN.

So, I think my best solution would be to run Maven twice on all my 
projects -- once for SUN and once for IBM. Only question is, can I do 
this in a single go and how can I do this in the release-phase...

 Run the tests first with ibm and second with sun/oracle that way you know
 your artifacts work on both JREs

As I pointed out, this will not solve my problem completely, because I 
need 2 artifacts!


   Also, they currently have a problem in that they need SUN JDK 6 for most
   project, where one single module MUST be built with SUN JDK 5 because of
   a change in some classes. They are currently running the compiler-plugin
   with a bootclasspath for JDK 5, which isn't beautiful but works. Is
   there a way to have a single module use a different JDK from the others?
  

 Have a look at toolchains. Google is your friend. Toolchains support has
 been available for a while now, I know because I helped get it into a number
 of plugins.

If this can do what I want, then it might indeed be worth looking at. 
I'll give it a go in bit, I think I have some time today.

 Another thing you might consider is using
 animal-sniffer-maven-plu...@mojothat way you can verify that the JRE
 signatures you use are only public
 signatures and not internal classes that are not part of the published JRE
 API



-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock  T +43 1 2198790-27
Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
  business. people. technology. 
-

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



Re: Multiple JDKs

2010-12-09 Thread Asmann, Roland
On 07.12.2010 14:33, Jörg Schaible wrote:
 Hi Stephen,

 Stephen Connolly wrote:

   On 7 December 2010 10:37, Asmann, Roland roland.asm...@adesso.at wrote:
  
   On 07.12.2010 11:29, Stephen Connolly wrote:
On 7 December 2010 10:14, Asmann, Roland roland.asm...@adesso.at
   wrote:
   
 Hi all,

 I was wondering if anybody ever had this problem...

 I have a customer who is running a machine with a SUN JDK and one
 with an IBM JDK. Now, we've noticed there are some differences
 between the two, so I thought it would be best to release their
 artefacts for both JDKs... Question is, can I do this somehow with
 Maven in a single release-cycle or do I need to make separate
 releases?


I would consider running the tests twice and have just one set of
artifacts... Otherwise you will have a nightmare of a dependency
   management.
   
Run the tests first with ibm and second with sun/oracle that way you
know your artifacts work on both JREs
   
   OK, so that means I should configure my surefire to run with different
   JDKs?
   Also, with which JDK would you suggest that I run the complete build?
  
  
   If you use toolchains, it should not matter what JRE you use to run
 Maven,
   the compiler plugin will use the toolchain you specify.
  
   The question you need to ask yourself is which JDK should the
 toolchain be
   driving, and I cannot answer that... if animal-sniffer says that they are
   only using the public JRE api then it does not matter which JDK you use.

 It does, if the JDK is not compatible. And this is the case for some parts
 of JDBC 3 vs. 4 (included in Java 6).

Which appears to be the case here.

   And if you have surefire running with both JREs then you should be safe
   anyway

 If your module e.g. implements a JDBC Connector this is simply not possible
 (see commons-dbcp as precedence).

Any suggestions on how to solve this? The thing is that we really want 
to have the same version on both artifacts, since they are (more or 
less) the same.

 Also, they currently have a problem in that they need SUN JDK 6 for
   most
 project, where one single module MUST be built with SUN JDK 5
 because
   of
 a change in some classes. They are currently running the
   compiler-plugin
 with a bootclasspath for JDK 5, which isn't beautiful but works. Is
 there a way to have a single module use a different JDK from the
   others?

   
Have a look at toolchains. Google is your friend. Toolchains support
has been available for a while now, I know because I helped get it
 into
a
   number
of plugins.
   
Another thing you might consider is using
animal-sniffer-maven-plu...@mojothat way you can verify that the JRE
signatures you use are only public
signatures and not internal classes that are not part of the published
   JRE
API
   
   Well, according to the customer they are definitely compiling against
   the API. They say there is a change in some DB drivers or something (at
   least something related to Oracle)... Have to inspect that a little
   further myself though...
  
  
   Might be the DB driver that is depending on non-public JRE classes

 Oracle provides two different drivers - one supporting JDBC 3, the other one
 JDBC 4.

 - Jörg


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


-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock  T +43 1 2198790-27
Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
  business. people. technology. 
-


Re: Using annotationProcessor in maven-compiler-plugin

2010-12-09 Thread Jörg Schaible
Hi,

lilyevsky wrote:

 
 I am trying to learn how to use annotationProcessor feature with
 maven-compiler-plugin 2.3.2 under maven 3.
 My configuration is below.
 The processor indeed works and it generates the files.
 My problem is that the compiler does not see those files during compile
 phase. What am I doing wrong?
 I tried to put my generated-sources in different places, under target,
 directly under the project folder.
 I tried to use generated-sources/src/main/java structure. Nothing works.
 
 =
 
 build
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 version2.3.2/version
 configuration
 source1.6/source
 target1.6/target

 generatedSourcesDirectorygenerated-
sources/src/main/java/generatedSourcesDirectory
 annotationProcessors

 
annotationProcessorcom.newamsterdam.framework.flexrecord.FlexRecordProcessor/annotationProcessor
 /annotationProcessors
 /configuration
 /plugin
 /plugins
 /build

I've never used the annotationProcessor myself, but you might define an  
execution for the source generation and tie it to the generate-source phase. 
I could imagine that the generation of source in the compile phase is simply 
too late.

- Jörg


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



Re: Multiple JDKs

2010-12-09 Thread Stephen Connolly
you need to add an exclusion on the dependency that is being brought in by
profile activation.

It was a mistake that profiles include the dependency section as there is
all manor of issues.

The profile gets activated based on the environment where maven is running,
not the environment where the artifact is deployed.

If you have 3rd party deps that use profile activation to pull in
dependencies, you will need to define exclusions on those dependencies...
that will stabilise your build.

If your build uses profile activation to pull in dependencies, that is your
bad, take it out

-Stephen

On 9 December 2010 10:14, Asmann, Roland roland.asm...@adesso.at wrote:

 On 07.12.2010 11:29, Stephen Connolly wrote:
  On 7 December 2010 10:14, Asmann, Roland roland.asm...@adesso.at
 wrote:
 
Hi all,
   
I was wondering if anybody ever had this problem...
   
I have a customer who is running a machine with a SUN JDK and one with
an IBM JDK. Now, we've noticed there are some differences between the
two, so I thought it would be best to release their artefacts for both
JDKs... Question is, can I do this somehow with Maven in a single
release-cycle or do I need to make separate releases?
   
   
  I would consider running the tests twice and have just one set of
  artifacts... Otherwise you will have a nightmare of a dependency
 management.

 I already have this... Yesterday I found out that one of my dependencies
 has a profile that is activated when I use the IBM JDK for building...
 This mad the EAR undeployable on the SUN JDK, because this dependency
 (jaxp) is probably included in the JDK for SUN.

 So, I think my best solution would be to run Maven twice on all my
 projects -- once for SUN and once for IBM. Only question is, can I do
 this in a single go and how can I do this in the release-phase...
 
  Run the tests first with ibm and second with sun/oracle that way you know
  your artifacts work on both JREs

 As I pointed out, this will not solve my problem completely, because I
 need 2 artifacts!
 
 
Also, they currently have a problem in that they need SUN JDK 6 for
 most
project, where one single module MUST be built with SUN JDK 5 because
 of
a change in some classes. They are currently running the
 compiler-plugin
with a bootclasspath for JDK 5, which isn't beautiful but works. Is
there a way to have a single module use a different JDK from the
 others?
   
 
  Have a look at toolchains. Google is your friend. Toolchains support has
  been available for a while now, I know because I helped get it into a
 number
  of plugins.

 If this can do what I want, then it might indeed be worth looking at.
 I'll give it a go in bit, I think I have some time today.
 
  Another thing you might consider is using
  animal-sniffer-maven-plu...@mojothat way you can verify that the JRE
  signatures you use are only public
  signatures and not internal classes that are not part of the published
 JRE
  API
 
 

 --
 Roland Asmann
 Senior Software Engineer

 adesso Austria GmbH
 Floridotower 26. Stock  T +43 1 2198790-27
 Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
 A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

 -
  business. people. technology. 
 -

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




Re: Multiple JDKs

2010-12-09 Thread Jörg Schaible
Hi Roland

Asmann, Roland wrote:

[snip]

   If you use toolchains, it should not matter what JRE you use to run
 Maven,
   the compiler plugin will use the toolchain you specify.
  
   The question you need to ask yourself is which JDK should the
 toolchain be
   driving, and I cannot answer that... if animal-sniffer says that they
   are only using the public JRE api then it does not matter which JDK
   you use.

 It does, if the JDK is not compatible. And this is the case for some
 parts of JDBC 3 vs. 4 (included in Java 6).
 
 Which appears to be the case here.

   And if you have surefire running with both JREs then you should be
   safe anyway

 If your module e.g. implements a JDBC Connector this is simply not
 possible (see commons-dbcp as precedence).
 
 Any suggestions on how to solve this? The thing is that we really want
 to have the same version on both artifacts, since they are (more or
 less) the same.

We had the same problem for an artifact and took more or less the same 
solution like dbcp: One project with two version lines for the release - 
1.x for Java 5/JDBC 3 and 2.x for Java 6/JDBC 4. The code is the same, but 
compiling with Java 5 activated a profile that did filter the source code of 
the project before compiling (different source directory configured 
abviously) and set a different value for the property containing the 
project's version. The code filter used comments like (IIRC):

=== % =
/*JDBC4**/

... code depending on JDBC 4

//*JDBC4*/
=== % =

and replaced the starting comment with '/*JDBC4' and the ending comment with 
'JDBC4*/' when building for Java 5. However, this filter plugin is an 
internal one processing regular expressions on files, but I am quite sure 
there are some freely available that can do the same (or use antrunner 
plugin with an ant task).

- Jörg


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



Optional Plugins in War project

2010-12-09 Thread kdannies

Hi!

I'm developing in a war-project. This war project have some plugins. For
different purposes i do need different plugin sets. Of course, it's easy
just to add or remove the plugins as dependency in the POM of the main
project, but I'm supposed to do this in an easier way like a config file so
users of my project, not aware of maven, can build their project with a
specified plugin set on your own.

Are their any suggestions to realize this?

Best regards
Kai Dannies
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Optional-Plugins-in-War-project-tp3298747p3298747.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



Re: Maven 3 Sufire 2.6 errors

2010-12-09 Thread Rémy

Hi,

It doesn't work, and there is no option testErrorIgnore... I'm surprised not
to have the same behavior with Maven 2 and Maven 3.

Thanks.

Rémy
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-3-Sufire-2-6-errors-tp3297429p3298743.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



Re: Optional Plugins in War project

2010-12-09 Thread Stephen Connolly
if they are going to be building your project, they need to install maven,
and such so they will need to have at least some awareness of maven.

But I would instead have a plugin installation mechanism and get the users
to install the plugins into a standard deployed web-app, e.g. how hudson
works

On 9 December 2010 11:15, kdannies kai.dann...@gmail.com wrote:


 Hi!

 I'm developing in a war-project. This war project have some plugins. For
 different purposes i do need different plugin sets. Of course, it's easy
 just to add or remove the plugins as dependency in the POM of the main
 project, but I'm supposed to do this in an easier way like a config file so
 users of my project, not aware of maven, can build their project with a
 specified plugin set on your own.

 Are their any suggestions to realize this?

 Best regards
 Kai Dannies
 --
 View this message in context:
 http://maven.40175.n5.nabble.com/Optional-Plugins-in-War-project-tp3298747p3298747.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




Re: Multiple JDKs

2010-12-09 Thread Asmann, Roland
On 09.12.2010 11:29, Stephen Connolly wrote:
 you need to add an exclusion on the dependency that is being brought in by
 profile activation.

 It was a mistake that profiles include the dependency section as there is
 all manor of issues.

 The profile gets activated based on the environment where maven is running,
 not the environment where the artifact is deployed.

 If you have 3rd party deps that use profile activation to pull in
 dependencies, you will need to define exclusions on those dependencies...
 that will stabilise your build.

 If your build uses profile activation to pull in dependencies, that is your
 bad, take it out

 -Stephen

No, this is NOT the solution, since I will need the artifact on both SUN 
and JDK machines. The problem is that when I build with only one of 
those, I can also only deploy it to one of those! Therefor, I need to 
build one artifact with IBM JDK, which will then be deployed to the IBM 
JDK server, and one with SUN, which will likewise be deployed to the SUN 
server.

I understand that I can build both versions on either JDK by either 
adding or excluding dependencies, the fact is that I don't want to do 
this manually, but let Maven handle it (as it can!) depending on which 
JDK I build.

Like I said before, the real problem is that I want to have my release 
build BOTH artifacts at once, and I am not sure how I could achieve this 
goal...

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock  T +43 1 2198790-27
Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
  business. people. technology. 
-

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



Re: Multiple JDKs

2010-12-09 Thread Ron Wheeler

On 09/12/2010 7:52 AM, Asmann, Roland wrote:

On 09.12.2010 11:29, Stephen Connolly wrote:

you need to add an exclusion on the dependency that is being brought in by
profile activation.

It was a mistake that profiles include thedependency  section as there is
all manor of issues.

The profile gets activated based on the environment where maven is running,
not the environment where the artifact is deployed.

If you have 3rd party deps that use profile activation to pull in
dependencies, you will need to define exclusions on those dependencies...
that will stabilise your build.

If your build uses profile activation to pull in dependencies, that is your
bad, take it out

-Stephen


No, this is NOT the solution, since I will need the artifact on both SUN
and JDK machines. The problem is that when I build with only one of
those, I can also only deploy it to one of those! Therefor, I need to
build one artifact with IBM JDK, which will then be deployed to the IBM
JDK server, and one with SUN, which will likewise be deployed to the SUN
server.

I understand that I can build both versions on either JDK by either
adding or excluding dependencies, the fact is that I don't want to do
this manually, but let Maven handle it (as it can!) depending on which
JDK I build.




Like I said before, the real problem is that I want to have my release
build BOTH artifacts at once, and I am not sure how I could achieve this
goal...


2 maven projects and a batch script.

Ron

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



Re: Optional Plugins in War project

2010-12-09 Thread Ron Wheeler

On 09/12/2010 6:15 AM, kdannies wrote:

Hi!

I'm developing in a war-project. This war project have some plugins. For
different purposes i do need different plugin sets. Of course, it's easy
just to add or remove the plugins as dependency in the POM of the main
project, but I'm supposed to do this in an easier way like a config file so
users of my project, not aware of maven, can build their project with a
specified plugin set on your own.

Are their any suggestions to realize this?

Best regards
Kai Dannies
Perhaps you can explain a bit more about what you are doing with the 
plug-ins and what the user's of the project actually need to do and why 
they need to build your  project.


Ron

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



Re: avoiding overwriting newer file when using maven resources plugin copy-resources with filtering

2010-12-09 Thread Marshall Schor


On 12/9/2010 3:59 AM, Stephen Connolly wrote:
 Sounds like you might be better served by writing your own plugin to do the
 filtering, that way you can take the timestamps into consideration.

OK, I just thought that since this might be common scenario, there might be an
existing Maven way to do this.
 Also I hope you are putting the filtered java source into a sub-folder of
  ${basedir}/target

Yes, we do that in all cases except one - that of building Eclipse feature
projects. 
For that case, I'm injecting the version info into the feature.xml, which I
believe Eclipse (by convention) wants to find at the project top level.

-Marshall
 -Stephen

 On 8 December 2010 22:49, Marshall Schor m...@schor.com wrote:


 On 12/8/2010 4:40 PM, Anders Hammar wrote:
 I guess the dependency plugin can't really tell, as the filtering takes a
 value outside of the source file which could have changed since the last
 time the file was filtered.
 The price you pay for filtering I guess?
 I was wondering (since I know the source of the filtered values) if there
 was
 a Maven-way of telling it this information?

 Something like being able to declare: file xyz depends on files abc and
 def, so
 if abc and def are both older than xyz, don't bother updating xyz.

 -Marshall Schor
 /Anders

 On Wed, Dec 8, 2010 at 18:02, Marshall Schor m...@schor.com wrote:

 The Maven resources plugin has a goal copy-resources which has a
 configuration
 parameter overwrite.  The default is false - meaning not to
 overwrite a
 target file if not needed (if the target has  a later date than the
 source).

 This setting is ignored, however, if the file is being filtered.

 I'm using this to inject version info from the POM into a Java source
 file.
  So
 everytime this module is built, it always updates this file even though
 nothing
 (usually) has changed.

 Is there a better Maven way to do this?

 -Marshall

 -
 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



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



RE: Maven 3 Sufire 2.6 errors

2010-12-09 Thread Martin Gainty

Bonjour Remy

i reverted all my builds to use surefire 2.4.2
the introduction of Juice IOC injector code for 2.5 and 2.6 caused grief
i dont know if there is a workaround for errors thrown in 2.5 or 2.6 
artifacts...i would suggest reverting to 2.4.2

Bon Chance,
Martin  
__ 
Note de déni et de confidentialité
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Thu, 9 Dec 2010 03:10:38 -0800
 From: remy.tempora...@gmail.com
 To: users@maven.apache.org
 Subject: Re: Maven 3  Sufire 2.6 errors
 
 
 Hi,
 
 It doesn't work, and there is no option testErrorIgnore... I'm surprised not
 to have the same behavior with Maven 2 and Maven 3.
 
 Thanks.
 
 Rémy
 -- 
 View this message in context: 
 http://maven.40175.n5.nabble.com/Maven-3-Sufire-2-6-errors-tp3297429p3298743.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
 
  

Re: Maven 3 Sufire 2.6 errors

2010-12-09 Thread Stuart McCulloch
On 9 December 2010 11:10, Rémy remy.tempora...@gmail.com wrote:


 Hi,

 It doesn't work, and there is no option testErrorIgnore... I'm surprised
 not
 to have the same behavior with Maven 2 and Maven 3.


FYI... just tried this locally with Maven3 and Surefire 2.5 (and 2.6) and:

   -Dmaven.test.failure.ignore

on the command does ignore test errors, and I can get the same using:

   testFailureIgnoretrue/testFailureIgnore

in the Surefire plugin configuration in the Maven POM

unfortunately this doesn't explain why you get different results :/

to do that you'd need to capture the output of mvn clean test
-X which you
could then attach to an issue on http://jira.codehaus.org/browse/SUREFIRE

Thanks.

 Rémy
 --
 View this message in context:
 http://maven.40175.n5.nabble.com/Maven-3-Sufire-2-6-errors-tp3297429p3298743.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




-- 
Cheers, Stuart


Re: Create complicated client jar release target(s)

2010-12-09 Thread fhomasp

I guess I'm going to go with the original approach seeing that I got allmost
everything working.  There is only one problem...  I'll clarify.


The 2.2 assembly plugin includes the projects artifacts by default in the
dependencySet tag.  However there is a tag that *should* resolve this.  I've
set it (useProjectArtifact set to false) but it does not help.  So I figure
I'll try a beta version but this has as major setback that the earlier tag
useAllReactorProjects is now an unrecognized tag, breaking my build.  If I
omit it, none of my modules get built even if I include them.  I mean, uhh.
I'm at a loss here.  Here's the moduleSet part of my assembly descriptor. 
Is this a bug or something? I thought backward compatibility was rather
important.

moduleSets
moduleSet
useAllReactorProjectstrue/useAllReactorProjects
!--TODO: add future release modules here !?--
includes
   
includecom.touchatag.ps.project.coa:JavaClientLauncher-releaseModule/include
   
includecom.touchatag.ps.project.coa:SavingClient-releaseModule/include
/includes

binaries
outputDirectory/common/lib/outputDirectory
unpackfalse/unpack
dependencySets
dependencySet
outputDirectory/common/lib/outputDirectory
   
useTransitiveDependenciestrue/useTransitiveDependencies
useProjectArtifactfalse/useProjectArtifact
useProjectAttachmentsfalse/useProjectAttachments
excludes
   
excludecom.touchatag.ps.project.coa:JavaClientLauncher/exclude

   
excludecom.touchatag.ps.project.coa:SavingClient/exclude


/excludes
/dependencySet
/dependencySets
/binaries
/moduleSet
/moduleSets
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Create-complicated-client-jar-release-target-s-tp3295582p3299051.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



Re: Create complicated client jar release target(s)

2010-12-09 Thread Antonio Petrelli
Start a new thread, I cannot help here.

2010/12/9 fhomasp thomas.peet...@realdolmen.com:

 I guess I'm going to go with the original approach seeing that I got allmost
 everything working.  There is only one problem...  I'll clarify.


 The 2.2 assembly plugin includes the projects artifacts by default in the
 dependencySet tag.  However there is a tag that *should* resolve this.  I've
 set it (useProjectArtifact set to false) but it does not help.  So I figure
 I'll try a beta version but this has as major setback that the earlier tag
 useAllReactorProjects is now an unrecognized tag, breaking my build.  If I
 omit it, none of my modules get built even if I include them.  I mean, uhh.
 I'm at a loss here.  Here's the moduleSet part of my assembly descriptor.
 Is this a bug or something? I thought backward compatibility was rather
 important.

 moduleSets
        moduleSet
            useAllReactorProjectstrue/useAllReactorProjects
            !--TODO: add future release modules here !?--
            includes

 includecom.touchatag.ps.project.coa:JavaClientLauncher-releaseModule/include

 includecom.touchatag.ps.project.coa:SavingClient-releaseModule/include
            /includes

            binaries
                outputDirectory/common/lib/outputDirectory
                unpackfalse/unpack
                dependencySets
                    dependencySet
                        outputDirectory/common/lib/outputDirectory

 useTransitiveDependenciestrue/useTransitiveDependencies
                        useProjectArtifactfalse/useProjectArtifact
                        useProjectAttachmentsfalse/useProjectAttachments
                        excludes

 excludecom.touchatag.ps.project.coa:JavaClientLauncher/exclude


 excludecom.touchatag.ps.project.coa:SavingClient/exclude


                        /excludes
                    /dependencySet
                /dependencySets
            /binaries
        /moduleSet
    /moduleSets
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/Create-complicated-client-jar-release-target-s-tp3295582p3299051.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: Maven 3 Sufire 2.6 errors

2010-12-09 Thread Kristian Rosenvold
Martin,

Is there an issue for this problem ? surefire 2.7 is about this -- --
close and if there is an issue I can look at it.

Kristian


to., 09.12.2010 kl. 09.09 -0500, skrev Martin Gainty:
 Bonjour Remy
 
 i reverted all my builds to use surefire 2.4.2
 the introduction of Juice IOC injector code for 2.5 and 2.6 caused grief
 i dont know if there is a workaround for errors thrown in 2.5 or 2.6 
 artifacts...i would suggest reverting to 2.4.2
 
 Bon Chance,
 Martin  
 __ 
 Note de déni et de confidentialité
  Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
 destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
 l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
 est interdite. Ce message sert à l'information seulement et n'aura pas 
 n'importe quel effet légalement obligatoire. Étant donné que les email 
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
 aucune responsabilité pour le contenu fourni.
 
 
 
 
  Date: Thu, 9 Dec 2010 03:10:38 -0800
  From: remy.tempora...@gmail.com
  To: users@maven.apache.org
  Subject: Re: Maven 3  Sufire 2.6 errors
  
  
  Hi,
  
  It doesn't work, and there is no option testErrorIgnore... I'm surprised not
  to have the same behavior with Maven 2 and Maven 3.
  
  Thanks.
  
  Rémy
  -- 
  View this message in context: 
  http://maven.40175.n5.nabble.com/Maven-3-Sufire-2-6-errors-tp3297429p3298743.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



maven-assembly-plugin 2.2 flag useProjectArtifact (false) not working

2010-12-09 Thread fhomasp


More context on how I got to this phase:

http://maven.40175.n5.nabble.com/Create-complicated-client-jar-release-target-s-td3295582.html

The 2.2 assembly plugin includes the projects artifacts by default in the
dependencySet tag.  However there is a tag that *should* resolve this.  I've
set it (useProjectArtifact set to false) but it does not help.  So I figure
I'll try a beta version but this has as major setback that the earlier tag
useAllReactorProjects is now an unrecognized tag, breaking my build.  If I
omit it, none of my modules get built even if I include them.  I mean, uhh.
I'm at a loss here.  Here's the moduleSet part of my assembly descriptor. 
Is this a bug or something? I thought backward compatibility was rather
important.

moduleSets
moduleSet
useAllReactorProjectstrue/useAllReactorProjects
!--TODO: add future release modules here !?--
includes
   
includecom.touchatag.ps.project.coa:JavaClientLauncher-releaseModule/include
   
includecom.touchatag.ps.project.coa:SavingClient-releaseModule/include
/includes

binaries
outputDirectory/common/lib/outputDirectory
unpackfalse/unpack
dependencySets
dependencySet
outputDirectory/common/lib/outputDirectory
   
useTransitiveDependenciestrue/useTransitiveDependencies
useProjectArtifactfalse/useProjectArtifact
useProjectAttachmentsfalse/useProjectAttachments
excludes
   
excludecom.touchatag.ps.project.coa:JavaClientLauncher/exclude
   
   
excludecom.touchatag.ps.project.coa:SavingClient/exclude
   
   
/excludes
/dependencySet
/dependencySets
/binaries
/moduleSet
/moduleSets 
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/maven-assembly-plugin-2-2-flag-useProjectArtifact-false-not-working-tp3299078p3299078.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



Re: Maven 3 Sufire 2.6 errors

2010-12-09 Thread Stuart McCulloch
On 9 December 2010 15:35, Kristian Rosenvold
kristian.rosenv...@gmail.comwrote:

 Martin,

 Is there an issue for this problem ?


afaik only http://jira.codehaus.org/browse/SUREFIRE-655 which no-one was
able to reproduce


 surefire 2.7 is about this -- --
 close and if there is an issue I can look at it.

 Kristian


 to., 09.12.2010 kl. 09.09 -0500, skrev Martin Gainty:
  Bonjour Remy
 
  i reverted all my builds to use surefire 2.4.2
  the introduction of Juice IOC injector code for 2.5 and 2.6 caused grief
  i dont know if there is a workaround for errors thrown in 2.5 or 2.6
 artifacts...i would suggest reverting to 2.4.2
 
  Bon Chance,
  Martin
  __
  Note de déni et de confidentialité
   Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
 le destinataire prévu, nous te demandons avec bonté que pour satisfaire
 informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
 de ceci est interdite. Ce message sert à l'information seulement et n'aura
 pas n'importe quel effet légalement obligatoire. Étant donné que les email
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
 aucune responsabilité pour le contenu fourni.
 
 
 
 
   Date: Thu, 9 Dec 2010 03:10:38 -0800
   From: remy.tempora...@gmail.com
   To: users@maven.apache.org
   Subject: Re: Maven 3  Sufire 2.6 errors
  
  
   Hi,
  
   It doesn't work, and there is no option testErrorIgnore... I'm
 surprised not
   to have the same behavior with Maven 2 and Maven 3.
  
   Thanks.
  
   Rémy
   --
   View this message in context:
 http://maven.40175.n5.nabble.com/Maven-3-Sufire-2-6-errors-tp3297429p3298743.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




-- 
Cheers, Stuart


M2Eclipse deploy to Nexus Repo Failure

2010-12-09 Thread ginni

I am able to log in via the browser (just using the defaults as we're just
getting started with Nexus, so admin/admin123) to see our repositories. 
I've added to local settings:

server
  idSnapshots/id 
  usernameadmin/username 
  passwordadmin123/password 
/server

And in the POM, added the repository:
repository
idSnapshots/id

urlhttp://ourserver:8080/nexus-webapp-1.8.0.1/content/repositories/snapshots/url
layoutdefault/layout
snapshots
enabledtrue/enabled 
/snapshots 
/repository

Plus under distributionManagement:
snapshotRepository
idSnapshots/id
nameAerospace Application Development Department Internal
Repository/name
urlhttp://ourserver:8080/nexus/content/repositories/snapshots/url
/snapshotRepository

But when I try to deploy (inside Eclipse - Run As...) I get these errors:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) on
project common-util: Error deploying artifact: Authorization failed:
Transfer failed: [403]
http://agologdev01:8080/nexus-webapp-1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
- [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy
(default-deploy) on project common-util: Error deploying artifact:
Authorization failed: Transfer failed: [403]
http://agologdev01:8080/nexus-webapp-1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:585)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:324)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying
artifact: Authorization failed: Transfer failed: [403]
http://agologdev01:8080/nexus-webapp-1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
at 
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:105)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:577)
... 14 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
Error deploying artifact: Authorization failed: Transfer failed: [403]
http://agologdev01:8080/nexus-webapp-1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:92)
at 
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)
... 16 more
Caused by: org.apache.maven.wagon.TransferFailedException: Authorization
failed: Transfer failed: [403]
http://agologdev01:8080/nexus-webapp-1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
at
org.apache.maven.repository.legacy.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:537)
at
org.apache.maven.repository.legacy.DefaultWagonManager.putArtifact(DefaultWagonManager.java:450)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:82)
... 17 more
Caused by: org.apache.maven.wagon.authorization.AuthorizationException:
Transfer failed: [403]
http://agologdev01:8080/nexus-webapp-1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
at
org.apache.maven.wagon.providers.http.JettyClientHttpWagon.put(JettyClientHttpWagon.java:562)
at

RE: M2Eclipse deploy to Nexus Repo Failure

2010-12-09 Thread KARR, DAVID (ATTSI)
 -Original Message-
 From: ginni [mailto:gi...@aero.org]
 Sent: Thursday, December 09, 2010 8:23 AM
 To: users@maven.apache.org
 Subject: M2Eclipse deploy to Nexus Repo Failure
 
 
 I am able to log in via the browser (just using the defaults as we're
 just
 getting started with Nexus, so admin/admin123) to see our
repositories.
 I've added to local settings:
 
 server
   idSnapshots/id
   usernameadmin/username
   passwordadmin123/password
 /server

Just a guess, but perhaps you should use the deployment credentials here
instead of the admin credentials.  It's probably more correct, in any
case.

 And in the POM, added the repository:
 repository
   idSnapshots/id
 
 urlhttp://ourserver:8080/nexus-webapp-
 1.8.0.1/content/repositories/snapshots/url
   layoutdefault/layout
   snapshots
   enabledtrue/enabled
   /snapshots
 /repository
 
 Plus under distributionManagement:
 snapshotRepository
   idSnapshots/id
   nameAerospace Application Development Department Internal
 Repository/name

urlhttp://ourserver:8080/nexus/content/repositories/snapshots/
 url
 /snapshotRepository
 
 But when I try to deploy (inside Eclipse - Run As...) I get these
 errors:
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-
 deploy) on
 project common-util: Error deploying artifact: Authorization failed:
 Transfer failed: [403]
 http://agologdev01:8080/nexus-webapp-
 1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-
 SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
 - [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
 execute
 goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy
 (default-deploy) on project common-util: Error deploying artifact:
 Authorization failed: Transfer failed: [403]
 http://agologdev01:8080/nexus-webapp-
 1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-
 SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
 cycleExecutor.java:585)
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
 cycleExecutor.java:324)
   at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
   at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
   at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
 va:39)
   at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
 rImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at

org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch
 er.java:290)
   at

org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
 230)
   at

org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun
 cher.java:409)
   at

org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:35
 2)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error
 deploying
 artifact: Authorization failed: Transfer failed: [403]
 http://agologdev01:8080/nexus-webapp-
 1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-
 SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
   at
 org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195)
   at

org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBu
 ildPluginManager.java:105)
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
 cycleExecutor.java:577)
   ... 14 more
 Caused by:
 org.apache.maven.artifact.deployer.ArtifactDeploymentException:
 Error deploying artifact: Authorization failed: Transfer failed: [403]
 http://agologdev01:8080/nexus-webapp-
 1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-
 SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
   at

org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defau
 ltArtifactDeployer.java:92)
   at
 org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)
   ... 16 more
 Caused by: org.apache.maven.wagon.TransferFailedException:
 Authorization
 failed: Transfer failed: [403]
 http://agologdev01:8080/nexus-webapp-
 1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-
 SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
   at

org.apache.maven.repository.legacy.DefaultWagonManager.putRemoteFile(De
 faultWagonManager.java:537)
   at

org.apache.maven.repository.legacy.DefaultWagonManager.putArtifact(Defa
 ultWagonManager.java:450)
   at

org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defau
 ltArtifactDeployer.java:82)
  

Re: Multiple JDKs

2010-12-09 Thread Jon Paynter
why 2 projects?
it seems 1 maven project with profiles and a batch script will work

something like so:
mvn deploy -P SunProfileName
mvn deploy -P IBMProfileName

On Thu, Dec 9, 2010 at 5:15 AM, Ron Wheeler
rwhee...@artifact-software.comwrote:

 On 09/12/2010 7:52 AM, Asmann, Roland wrote:

 On 09.12.2010 11:29, Stephen Connolly wrote:

 you need to add an exclusion on the dependency that is being brought in
 by
 profile activation.

 It was a mistake that profiles include thedependency  section as there
 is
 all manor of issues.

 The profile gets activated based on the environment where maven is
 running,
 not the environment where the artifact is deployed.

 If you have 3rd party deps that use profile activation to pull in
 dependencies, you will need to define exclusions on those dependencies...
 that will stabilise your build.

 If your build uses profile activation to pull in dependencies, that is
 your
 bad, take it out

 -Stephen

  No, this is NOT the solution, since I will need the artifact on both SUN
 and JDK machines. The problem is that when I build with only one of
 those, I can also only deploy it to one of those! Therefor, I need to
 build one artifact with IBM JDK, which will then be deployed to the IBM
 JDK server, and one with SUN, which will likewise be deployed to the SUN
 server.

 I understand that I can build both versions on either JDK by either
 adding or excluding dependencies, the fact is that I don't want to do
 this manually, but let Maven handle it (as it can!) depending on which
 JDK I build.


  Like I said before, the real problem is that I want to have my release
 build BOTH artifacts at once, and I am not sure how I could achieve this
 goal...

  2 maven projects and a batch script.

 Ron


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




Re: Multiple JDKs

2010-12-09 Thread Ron Wheeler

On 09/12/2010 1:08 PM, Jon Paynter wrote:

why 2 projects?
it seems 1 maven project with profiles and a batch script will work

something like so:
mvn deploy -P SunProfileName
mvn deploy -P IBMProfileName
If it works, I would have no objection but 2 projects will work for sure 
and everyone knows how to set up a simple project.
The same can not be said about profiles and they seem to encourage 
complex solutions that generate lots of traffic and frustrated Maven 
users here.


Sometimes it is a lot easier to do 2 simple things that are 90% 
identical than 1 complex thing that has no redundant code.


Ron


On Thu, Dec 9, 2010 at 5:15 AM, Ron Wheeler
rwhee...@artifact-software.comwrote:


On 09/12/2010 7:52 AM, Asmann, Roland wrote:


On 09.12.2010 11:29, Stephen Connolly wrote:


you need to add an exclusion on the dependency that is being brought in
by
profile activation.

It was a mistake that profiles include thedependency   section as there
is
all manor of issues.

The profile gets activated based on the environment where maven is
running,
not the environment where the artifact is deployed.

If you have 3rd party deps that use profile activation to pull in
dependencies, you will need to define exclusions on those dependencies...
that will stabilise your build.

If your build uses profile activation to pull in dependencies, that is
your
bad, take it out

-Stephen

  No, this is NOT the solution, since I will need the artifact on both SUN

and JDK machines. The problem is that when I build with only one of
those, I can also only deploy it to one of those! Therefor, I need to
build one artifact with IBM JDK, which will then be deployed to the IBM
JDK server, and one with SUN, which will likewise be deployed to the SUN
server.

I understand that I can build both versions on either JDK by either
adding or excluding dependencies, the fact is that I don't want to do
this manually, but let Maven handle it (as it can!) depending on which
JDK I build.



  Like I said before, the real problem is that I want to have my release

build BOTH artifacts at once, and I am not sure how I could achieve this
goal...

  2 maven projects and a batch script.

Ron


-
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: Multiple JDKs

2010-12-09 Thread Jon Paynter
good point there.

id opt for the simple solution too.

On Thu, Dec 9, 2010 at 10:18 AM, Ron Wheeler rwhee...@artifact-software.com
 wrote:

 On 09/12/2010 1:08 PM, Jon Paynter wrote:

 why 2 projects?
 it seems 1 maven project with profiles and a batch script will work

 something like so:
 mvn deploy -P SunProfileName
 mvn deploy -P IBMProfileName

 If it works, I would have no objection but 2 projects will work for sure
 and everyone knows how to set up a simple project.
 The same can not be said about profiles and they seem to encourage complex
 solutions that generate lots of traffic and frustrated Maven users here.

 Sometimes it is a lot easier to do 2 simple things that are 90% identical
 than 1 complex thing that has no redundant code.

 Ron


  On Thu, Dec 9, 2010 at 5:15 AM, Ron Wheeler
 rwhee...@artifact-software.comwrote:

  On 09/12/2010 7:52 AM, Asmann, Roland wrote:

  On 09.12.2010 11:29, Stephen Connolly wrote:

  you need to add an exclusion on the dependency that is being brought in
 by
 profile activation.

 It was a mistake that profiles include thedependency   section as
 there
 is
 all manor of issues.

 The profile gets activated based on the environment where maven is
 running,
 not the environment where the artifact is deployed.

 If you have 3rd party deps that use profile activation to pull in
 dependencies, you will need to define exclusions on those
 dependencies...
 that will stabilise your build.

 If your build uses profile activation to pull in dependencies, that is
 your
 bad, take it out

 -Stephen

  No, this is NOT the solution, since I will need the artifact on both
 SUN

 and JDK machines. The problem is that when I build with only one of
 those, I can also only deploy it to one of those! Therefor, I need to
 build one artifact with IBM JDK, which will then be deployed to the IBM
 JDK server, and one with SUN, which will likewise be deployed to the SUN
 server.

 I understand that I can build both versions on either JDK by either
 adding or excluding dependencies, the fact is that I don't want to do
 this manually, but let Maven handle it (as it can!) depending on which
 JDK I build.


   Like I said before, the real problem is that I want to have my release

 build BOTH artifacts at once, and I am not sure how I could achieve this
 goal...

  2 maven projects and a batch script.

 Ron


 -
 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: M2Eclipse deploy to Nexus Repo Failure

2010-12-09 Thread Jon Paynter
Can you deploy from the commandline?

I followed the nexus setup instructions from the sonatype site here:
http://www.sonatype.com/books/nexus-book/reference/maven.html
And it worked great the first time.

If it works from the command line, then chanes are its a m2eclipse issue.

On Thu, Dec 9, 2010 at 9:42 AM, KARR, DAVID (ATTSI) dk0...@att.com wrote:

  -Original Message-
  From: ginni [mailto:gi...@aero.org]
  Sent: Thursday, December 09, 2010 8:23 AM
  To: users@maven.apache.org
  Subject: M2Eclipse deploy to Nexus Repo Failure
 
 
  I am able to log in via the browser (just using the defaults as we're
  just
  getting started with Nexus, so admin/admin123) to see our
 repositories.
  I've added to local settings:
 
  server
idSnapshots/id
usernameadmin/username
passwordadmin123/password
  /server

 Just a guess, but perhaps you should use the deployment credentials here
 instead of the admin credentials.  It's probably more correct, in any
 case.

  And in the POM, added the repository:
  repository
idSnapshots/id
 
  urlhttp://ourserver:8080/nexus-webapp-
  1.8.0.1/content/repositories/snapshots/url
layoutdefault/layout
snapshots
enabledtrue/enabled
/snapshots
  /repository
 
  Plus under distributionManagement:
  snapshotRepository
idSnapshots/id
nameAerospace Application Development Department Internal
  Repository/name
 
 urlhttp://ourserver:8080/nexus/content/repositories/snapshots/
  url
  /snapshotRepository
 
  But when I try to deploy (inside Eclipse - Run As...) I get these
  errors:
 
  [ERROR] Failed to execute goal
  org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-
  deploy) on
  project common-util: Error deploying artifact: Authorization failed:
  Transfer failed: [403]
  http://agologdev01:8080/nexus-webapp-
  1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-
  SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
  - [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
  execute
  goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy
  (default-deploy) on project common-util: Error deploying artifact:
  Authorization failed: Transfer failed: [403]
  http://agologdev01:8080/nexus-webapp-
  1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-
  SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
  cycleExecutor.java:585)
at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
  cycleExecutor.java:324)
at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
  va:39)
at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
  rImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
 
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch
  er.java:290)
at
 
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
  230)
at
 
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun
  cher.java:409)
at
 
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:35
  2)
  Caused by: org.apache.maven.plugin.MojoExecutionException: Error
  deploying
  artifact: Authorization failed: Transfer failed: [403]
  http://agologdev01:8080/nexus-webapp-
  1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-
  SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
at
  org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195)
at
 
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBu
  ildPluginManager.java:105)
at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
  cycleExecutor.java:577)
... 14 more
  Caused by:
  org.apache.maven.artifact.deployer.ArtifactDeploymentException:
  Error deploying artifact: Authorization failed: Transfer failed: [403]
  http://agologdev01:8080/nexus-webapp-
  1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1-
  SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar
at
 
 org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defau
  ltArtifactDeployer.java:92)
at
  org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)
... 16 more
  Caused by: org.apache.maven.wagon.TransferFailedException:
  Authorization
  failed: Transfer failed: [403]
  

Re: Using annotationProcessor in maven-compiler-plugin

2010-12-09 Thread lilyevsky

Thanks Anders,

I tried the default value and I got one step ahead, not 100% there yet.
First I run the clean build, it generates the source I want under
target/generated-sources-annotations. Still complains about the class not
found when trying to compile the main tree (I use the generated class there
for my test). It is interesting to note that the source generation actually
is done before it goes to javac, but apparently it is not visible in the
classpath at that point.

Then I run the build again (without clean). This time my processor is not
called at all - I guess, the framework knows it's job is done already. It
compiles the main tree and at this time everything is OK.

I tried maven 2.2.1, the same story.

So I hope there must be some trick I have to do in configuration to make it
run in two steps. What can it be?
You mentioned the integration test. How can I see it?
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Using-annotationProcessor-in-maven-compiler-plugin-tp3298435p3299293.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



Re: Multiple JDKs

2010-12-09 Thread Asmann, Roland
I don't like it. 2 Projects means that we have to share code somehow... 
Besides, if it was just a simple JAR-file, it would be OK. We have about 
7 modules, and I don't really feel like duplicating all of them.

Besides, the only difference we really have is that we trigger Maven 
with a different JDK, so we wouldn't even need profiles! I just don't 
want to have 2 different versions for the project.

I think I'll try something with the invoker-plugin, that would at least 
work for normal builds... Need to check it it would work on releases as 
well...


On 09-12-10 19:23, Jon Paynter wrote:
 good point there.

 id opt for the simple solution too.

 On Thu, Dec 9, 2010 at 10:18 AM, Ron Wheeler rwhee...@artifact-software.com
   wrote:

   On 09/12/2010 1:08 PM, Jon Paynter wrote:
  
   why 2 projects?
   it seems 1 maven project with profiles and a batch script will work
  
   something like so:
   mvn deploy -P SunProfileName
   mvn deploy -P IBMProfileName
  
   If it works, I would have no objection but 2 projects will work for sure
   and everyone knows how to set up a simple project.
   The same can not be said about profiles and they seem to encourage
 complex
   solutions that generate lots of traffic and frustrated Maven users here.
  
   Sometimes it is a lot easier to do 2 simple things that are 90% identical
   than 1 complex thing that has no redundant code.
  
   Ron
  
  
   On Thu, Dec 9, 2010 at 5:15 AM, Ron Wheeler
   rwhee...@artifact-software.comwrote:
  
   On 09/12/2010 7:52 AM, Asmann, Roland wrote:
  
   On 09.12.2010 11:29, Stephen Connolly wrote:
  
   you need to add an exclusion on the dependency that is being
 brought in
   by
   profile activation.
  
   It was a mistake that profiles include thedependency section as
   there
   is
   all manor of issues.
  
   The profile gets activated based on the environment where maven is
   running,
   not the environment where the artifact is deployed.
  
   If you have 3rd party deps that use profile activation to pull in
   dependencies, you will need to define exclusions on those
   dependencies...
   that will stabilise your build.
  
   If your build uses profile activation to pull in dependencies,
 that is
   your
   bad, take it out
  
   -Stephen
  
   No, this is NOT the solution, since I will need the artifact on both
   SUN
  
   and JDK machines. The problem is that when I build with only one of
   those, I can also only deploy it to one of those! Therefor, I need to
   build one artifact with IBM JDK, which will then be deployed to
 the IBM
   JDK server, and one with SUN, which will likewise be deployed to
 the SUN
   server.
  
   I understand that I can build both versions on either JDK by either
   adding or excluding dependencies, the fact is that I don't want to do
   this manually, but let Maven handle it (as it can!) depending on which
   JDK I build.
  
  
   Like I said before, the real problem is that I want to have my release
  
   build BOTH artifacts at once, and I am not sure how I could
 achieve this
   goal...
  
   2 maven projects and a batch script.
  
   Ron
  
  
   -
   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
  
  


-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock  T +43 1 2198790-27
Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
  business. people. technology. 
-

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



Re: M2Eclipse deploy to Nexus Repo Failure

2010-12-09 Thread ginni

Thanks for responses. Turns out I needed to include my .ssh and passphrase in
addition to the username and password to make it work.
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/M2Eclipse-deploy-to-Nexus-Repo-Failure-tp3299138p3299294.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



Re: Using annotationProcessor in maven-compiler-plugin

2010-12-09 Thread Anders Hammar
Check the source in svn of maven-compiler-plugin.

/Anders (mobile)
Den 9 dec 2010 19.34 skrev lilyevsky leonidilyev...@yahoo.com:

 Thanks Anders,

 I tried the default value and I got one step ahead, not 100% there yet.
 First I run the clean build, it generates the source I want under
 target/generated-sources-annotations. Still complains about the class not
 found when trying to compile the main tree (I use the generated class
there
 for my test). It is interesting to note that the source generation
actually
 is done before it goes to javac, but apparently it is not visible in the
 classpath at that point.

 Then I run the build again (without clean). This time my processor is not
 called at all - I guess, the framework knows it's job is done already. It
 compiles the main tree and at this time everything is OK.

 I tried maven 2.2.1, the same story.

 So I hope there must be some trick I have to do in configuration to make
it
 run in two steps. What can it be?
 You mentioned the integration test. How can I see it?
 --
 View this message in context:
http://maven.40175.n5.nabble.com/Using-annotationProcessor-in-maven-compiler-plugin-tp3298435p3299293.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



Re: Multiple JDKs

2010-12-09 Thread Ron Wheeler

On 09/12/2010 1:57 PM, Asmann, Roland wrote:

I don't like it. 2 Projects means that we have to share code somehow...
Besides, if it was just a simple JAR-file, it would be OK. We have about
7 modules, and I don't really feel like duplicating all of them.


You must have heard of libraries?  Java runs on libraries
You put your code into projects that make JDK independent libraries.
Do not even think about duplicating source code. Very bad idea.

Your JDK dependent projects will very likely have no code at all and 
only a few dependencies on your libraries, unless you have JDK dependent 
modules for special test cases.




Besides, the only difference we really have is that we trigger Maven
with a different JDK, so we wouldn't even need profiles! I just don't
want to have 2 different versions for the project.

I think I'll try something with the invoker-plugin, that would at least
work for normal builds... Need to check it it would work on releases as
well...


If you like complexity, go ahead.

There is no need to make such a complex system.
Get it working with a simple structure and then after 6 months of 
working your way around Maven with the simple set up then tackle some 
optimization projects.
At least you will get your project working with Maven and start 
optimizing with a working build that does what you want even if it is 
not optimal (in your eyes at least).


Ron

On 09-12-10 19:23, Jon Paynter wrote:

good point there.

id opt for the simple solution too.

On Thu, Dec 9, 2010 at 10:18 AM, Ron Wheelerrwhee...@artifact-software.com
wrote:

On 09/12/2010 1:08 PM, Jon Paynter wrote:
  
why 2 projects?
it seems 1 maven project with profiles and a batch script will work
  
something like so:
mvn deploy -P SunProfileName
mvn deploy -P IBMProfileName
  
If it works, I would have no objection but 2 projects will work for sure
and everyone knows how to set up a simple project.
The same can not be said about profiles and they seem to encourage
complex
solutions that generate lots of traffic and frustrated Maven users here.
  
Sometimes it is a lot easier to do 2 simple things that are 90% identical
than 1 complex thing that has no redundant code.
  
Ron
  
  
On Thu, Dec 9, 2010 at 5:15 AM, Ron Wheeler
rwhee...@artifact-software.comwrote:
  
On 09/12/2010 7:52 AM, Asmann, Roland wrote:
  
On 09.12.2010 11:29, Stephen Connolly wrote:
  
you need to add an exclusion on the dependency that is being
brought in
by
profile activation.
  
It was a mistake that profiles include thedependency  section as
there
is
all manor of issues.
  
The profile gets activated based on the environment where maven is
running,
not the environment where the artifact is deployed.
  
If you have 3rd party deps that use profile activation to pull in
dependencies, you will need to define exclusions on those
dependencies...
that will stabilise your build.
  
If your build uses profile activation to pull in dependencies,
that is
your
bad, take it out
  
-Stephen
  
No, this is NOT the solution, since I will need the artifact on both
SUN
  
and JDK machines. The problem is that when I build with only one of
those, I can also only deploy it to one of those! Therefor, I need to
build one artifact with IBM JDK, which will then be deployed to
the IBM
JDK server, and one with SUN, which will likewise be deployed to
the SUN
server.
  
I understand that I can build both versions on either JDK by either
adding or excluding dependencies, the fact is that I don't want to do
this manually, but let Maven handle it (as it can!) depending on which
JDK I build.
  
  
Like I said before, the real problem is that I want to have my release
  
build BOTH artifacts at once, and I am not sure how I could
achieve this
goal...
  
2 maven projects and a batch script.
  
Ron
  
  
-
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
  
  




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



Maven dependency resolution failure?

2010-12-09 Thread Elliot Huntington
Hi,

Maven is having problems downloading dependencies. Any suggestions?

Here is the command line output


C:\projectmvn -version
Apache Maven 2.0.11 (r909250; 2010-02-11 22:55:50-0700)
Java version: 1.6.0_21
Java home: C:\devtools\Java\jdk1.6.0_21\jre
Default locale: en_US, platform encoding: Cp1252
OS name: windows 7 version: 6.1 arch: amd64 Family: windows
C:\project
C:\project
C:\projectmvn shade:shade
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'shade'.
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
[INFO] Unable to find resource
'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
central (http://repo1.maven.org/maven2)
Downloading:
http://maven.springframework.org/release//org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
[INFO] Unable to find resource
'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
com.springsource.repository.maven.release (
http://maven.springframework.org/release/)
Downloading:
http://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
[INFO] Unable to find resource
'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository JBoss
Repo (http://repository.jboss.org/nexus/content/groups/public)
Downloading:
http://download.java.net/maven/2//org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
[INFO] Unable to find resource
'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
maven2-repository.dev.java.net (http://download.java.net/maven/2/)
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
[INFO] Unable to find resource
'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
central (http://repo1.maven.org/maven2)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-shade-plugin

Reason: POM 'org.apache.maven.plugins:maven-shade-plugin' not found in
repository: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3

from the specified remote repositories:
  JBoss Repo (http://repository.jboss.org/nexus/content/groups/public),
  com.springsource.repository.maven.release (
http://maven.springframework.org/release/),
  maven2-repository.dev.java.net (http://download.java.net/maven/2/),
  central (http://repo1.maven.org/maven2)

 for project org.apache.maven.plugins:maven-shade-plugin


[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Thu Dec 09 14:02:46 MST 2010
[INFO] Final Memory: 3M/121M
[INFO]

C:\project

-- 
Elliot


Re: Maven dependency resolution failure?

2010-12-09 Thread Justin Edelson
According to http://maven.apache.org/plugins/maven-shade-plugin/, the
current version of the stage plugin is 1.4, i.e. 1.4.3 hasn't been released.

On Thu, Dec 9, 2010 at 4:03 PM, Elliot Huntington 
elliot.hunting...@gmail.com wrote:

 Hi,

 Maven is having problems downloading dependencies. Any suggestions?

 Here is the command line output


 C:\projectmvn -version
 Apache Maven 2.0.11 (r909250; 2010-02-11 22:55:50-0700)
 Java version: 1.6.0_21
 Java home: C:\devtools\Java\jdk1.6.0_21\jre
 Default locale: en_US, platform encoding: Cp1252
 OS name: windows 7 version: 6.1 arch: amd64 Family: windows
 C:\project
 C:\project
 C:\projectmvn shade:shade
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'shade'.
 Downloading:

 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
 [INFO] Unable to find resource
 'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
 central (http://repo1.maven.org/maven2)
 Downloading:

 http://maven.springframework.org/release//org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
 [INFO] Unable to find resource
 'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
 com.springsource.repository.maven.release (
 http://maven.springframework.org/release/)
 Downloading:

 http://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
 [INFO] Unable to find resource
 'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository JBoss
 Repo (http://repository.jboss.org/nexus/content/groups/public)
 Downloading:

 http://download.java.net/maven/2//org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
 [INFO] Unable to find resource
 'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
 maven2-repository.dev.java.net (http://download.java.net/maven/2/)
 Downloading:

 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
 [INFO] Unable to find resource
 'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
 central (http://repo1.maven.org/maven2)
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: org.apache.maven.plugins:maven-shade-plugin

 Reason: POM 'org.apache.maven.plugins:maven-shade-plugin' not found in
 repository: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3

 from the specified remote repositories:
  JBoss Repo (http://repository.jboss.org/nexus/content/groups/public),
  com.springsource.repository.maven.release (
 http://maven.springframework.org/release/),
  maven2-repository.dev.java.net (http://download.java.net/maven/2/),
  central (http://repo1.maven.org/maven2)

  for project org.apache.maven.plugins:maven-shade-plugin


 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 1 second
 [INFO] Finished at: Thu Dec 09 14:02:46 MST 2010
 [INFO] Final Memory: 3M/121M
 [INFO]
 
 C:\project

 --
 Elliot



Re: Maven dependency resolution failure?

2010-12-09 Thread Elliot Huntington
Thank you! I don't know how I overlooked that. I thought I checked the
repository and saw it there.

Now, for some reason the plugin is not activated when I run mvn package

I have my pom.xml configured with this:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-shade-plugin/artifactId
version1.4/version
executions
execution
phasepackage/phase
goals
goalshade/goal
/goals
configuration

!--shadedArtifactAttachedtrue/shadedArtifactAttached--

shadedClassifierNameshadedClassifierName/shadedClassifierName
transformers
transformer
implementation=org.apache.maven.plugins.shade.resource.AppendingTransformer

resourceMETA-INF/spring.handlers/resource
/transformer
transformer
implementation=org.apache.maven.plugins.shade.resource.AppendingTransformer

resourceMETA-INF/spring.schemas/resource
/transformer
/transformers
/configuration
/execution
/executions
/plugin

What do I need to do so that running the command mvn package will generate
the artifact {$artifactId}-shadedClassifierName.jar?

On Thu, Dec 9, 2010 at 2:59 PM, Justin Edelson jus...@justinedelson.comwrote:

 According to http://maven.apache.org/plugins/maven-shade-plugin/, the
 current version of the stage plugin is 1.4, i.e. 1.4.3 hasn't been
 released.

 On Thu, Dec 9, 2010 at 4:03 PM, Elliot Huntington 
 elliot.hunting...@gmail.com wrote:

  Hi,
 
  Maven is having problems downloading dependencies. Any suggestions?
 
  Here is the command line output
 
 
  C:\projectmvn -version
  Apache Maven 2.0.11 (r909250; 2010-02-11 22:55:50-0700)
  Java version: 1.6.0_21
  Java home: C:\devtools\Java\jdk1.6.0_21\jre
  Default locale: en_US, platform encoding: Cp1252
  OS name: windows 7 version: 6.1 arch: amd64 Family: windows
  C:\project
  C:\project
  C:\projectmvn shade:shade
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'shade'.
  Downloading:
 
 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
  [INFO] Unable to find resource
  'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
  central (http://repo1.maven.org/maven2)
  Downloading:
 
 
 http://maven.springframework.org/release//org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
  [INFO] Unable to find resource
  'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
  com.springsource.repository.maven.release (
  http://maven.springframework.org/release/)
  Downloading:
 
 
 http://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
  [INFO] Unable to find resource
  'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
 JBoss
  Repo (http://repository.jboss.org/nexus/content/groups/public)
  Downloading:
 
 
 http://download.java.net/maven/2//org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
  [INFO] Unable to find resource
  'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
  maven2-repository.dev.java.net (http://download.java.net/maven/2/)
  Downloading:
 
 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
  [INFO] Unable to find resource
  'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
  central (http://repo1.maven.org/maven2)
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] Error building POM (may not be this project's POM).
 
 
  Project ID: org.apache.maven.plugins:maven-shade-plugin
 
  Reason: POM 'org.apache.maven.plugins:maven-shade-plugin' not found in
  repository: Unable to download the artifact from any repository
 
   org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3
 
  from the specified remote repositories:
   JBoss Repo (http://repository.jboss.org/nexus/content/groups/public),
   com.springsource.repository.maven.release (
  http://maven.springframework.org/release/),
   maven2-repository.dev.java.net (http://download.java.net/maven/2/),
   central (http://repo1.maven.org/maven2)
 
   for project org.apache.maven.plugins:maven-shade-plugin
 
 
  [INFO]
  
  [INFO] For more information, run Maven with the -e 

Re: svn multi-modules vs. or with. maven multi-modules

2010-12-09 Thread Zac Thompson
Leon, you really have not provided very much information here.  I
don't think you need to let them go, but certainly maven _rewards_
following the default or standard approach in most places; in the case
of SVN this would mean that your project root is directly on the
trunk, and the 'trunk' has sibling 'tags' and 'branches' directories
in the repo.  But not everyone uses SVN in this way and you can
probably continue to use your preferred approach if you want.

 with maven i get

 svn-home/projecthome/tags/project1-tag1
 svn-home/projecthome/tags/project2-tag1
 svn-home/projecthome/tags/project3-tag1

What do you mean, with maven you get this?  What commands are you
executing in order to get this?  How is the scm information
defined for project1, etc?  Sorry, not enough info.

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



Can't resolve dependency with version range

2010-12-09 Thread Phillip Hellewell
I'm using Maven 2.2.1.  It won't resolve a dependency with a locked
down version like [1.0.0.6] if the metadata xml file in the local repo
does not have that version.  It won't look in my remote repo, which
does have the version I need.  But if I delete the metadata xml
file(s) in my local repo, then it works.

I searched the mail archives and found a lot of topics similar to
this, but I couldn't find a clear enough explanation to understand
whether I'm doing something wrong or if this is just a bug.

Phillip

P.S.  Here's an example output of the error.

[ERROR] BUILD ERROR
[INFO] 
[INFO] Failed to resolve artifact.

Couldn't find a version in [1.0.0.4, 1.0.0.5] to match range [1.0.0.6,1.0.0.6]
  ad.core:cppunitlite:zip:null

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  adrepo-public (http://maven.example.com:8080/nexus/content/groups/public)

Path to dependency:
1) ad.core:core:pom:1.0.0.46-SNAPSHOT

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



Re: Can't resolve dependency with version range

2010-12-09 Thread Phillip Hellewell
Ok, some good news.  I just did the same test with Maven 3.0.1 and it
worked no problem.  It downloaded the new version from the remote repo
like it was supposed to.

But I don't know if I'm ready to migrate to Maven 3.x yet...

Phillip

On Thu, Dec 9, 2010 at 10:00 PM, Phillip Hellewell ssh...@gmail.com wrote:
 I'm using Maven 2.2.1.  It won't resolve a dependency with a locked
 down version like [1.0.0.6] if the metadata xml file in the local repo
 does not have that version.  It won't look in my remote repo, which
 does have the version I need.  But if I delete the metadata xml
 file(s) in my local repo, then it works.

 I searched the mail archives and found a lot of topics similar to
 this, but I couldn't find a clear enough explanation to understand
 whether I'm doing something wrong or if this is just a bug.

 Phillip

 P.S.  Here's an example output of the error.

 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Failed to resolve artifact.

 Couldn't find a version in [1.0.0.4, 1.0.0.5] to match range [1.0.0.6,1.0.0.6]
  ad.core:cppunitlite:zip:null

 from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  adrepo-public (http://maven.example.com:8080/nexus/content/groups/public)

 Path to dependency:
        1) ad.core:core:pom:1.0.0.46-SNAPSHOT


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



Re: Maven dependency resolution failure?

2010-12-09 Thread Anders Hammar
Do you have this snippet in the pluginManagement section by any chance? If
so, it does actually bind it.

/Anders

On Thu, Dec 9, 2010 at 23:32, Elliot Huntington elliot.hunting...@gmail.com
 wrote:

 Thank you! I don't know how I overlooked that. I thought I checked the
 repository and saw it there.

 Now, for some reason the plugin is not activated when I run mvn package

 I have my pom.xml configured with this:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-shade-plugin/artifactId
version1.4/version
executions
execution
phasepackage/phase
goals
goalshade/goal
/goals
configuration

 !--shadedArtifactAttachedtrue/shadedArtifactAttached--

 shadedClassifierNameshadedClassifierName/shadedClassifierName
transformers
transformer

 implementation=org.apache.maven.plugins.shade.resource.AppendingTransformer

 resourceMETA-INF/spring.handlers/resource
/transformer
transformer

 implementation=org.apache.maven.plugins.shade.resource.AppendingTransformer

 resourceMETA-INF/spring.schemas/resource
/transformer
/transformers
/configuration
/execution
/executions
/plugin

 What do I need to do so that running the command mvn package will
 generate
 the artifact {$artifactId}-shadedClassifierName.jar?

 On Thu, Dec 9, 2010 at 2:59 PM, Justin Edelson jus...@justinedelson.com
 wrote:

  According to http://maven.apache.org/plugins/maven-shade-plugin/, the
  current version of the stage plugin is 1.4, i.e. 1.4.3 hasn't been
  released.
 
  On Thu, Dec 9, 2010 at 4:03 PM, Elliot Huntington 
  elliot.hunting...@gmail.com wrote:
 
   Hi,
  
   Maven is having problems downloading dependencies. Any suggestions?
  
   Here is the command line output
  
  
   C:\projectmvn -version
   Apache Maven 2.0.11 (r909250; 2010-02-11 22:55:50-0700)
   Java version: 1.6.0_21
   Java home: C:\devtools\Java\jdk1.6.0_21\jre
   Default locale: en_US, platform encoding: Cp1252
   OS name: windows 7 version: 6.1 arch: amd64 Family: windows
   C:\project
   C:\project
   C:\projectmvn shade:shade
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'shade'.
   Downloading:
  
  
 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
   [INFO] Unable to find resource
   'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
   central (http://repo1.maven.org/maven2)
   Downloading:
  
  
 
 http://maven.springframework.org/release//org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
   [INFO] Unable to find resource
   'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
   com.springsource.repository.maven.release (
   http://maven.springframework.org/release/)
   Downloading:
  
  
 
 http://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
   [INFO] Unable to find resource
   'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
  JBoss
   Repo (http://repository.jboss.org/nexus/content/groups/public)
   Downloading:
  
  
 
 http://download.java.net/maven/2//org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
   [INFO] Unable to find resource
   'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
   maven2-repository.dev.java.net (http://download.java.net/maven/2/)
   Downloading:
  
  
 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
   [INFO] Unable to find resource
   'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
   central (http://repo1.maven.org/maven2)
   [INFO]
  
 
   [ERROR] BUILD ERROR
   [INFO]
  
 
   [INFO] Error building POM (may not be this project's POM).
  
  
   Project ID: org.apache.maven.plugins:maven-shade-plugin
  
   Reason: POM 'org.apache.maven.plugins:maven-shade-plugin' not found in
   repository: Unable to download the artifact from any repository
  
org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3
  
   from the specified remote repositories:
JBoss Repo (http://repository.jboss.org/nexus/content/groups/public),
com.springsource.repository.maven.release (
   http://maven.springframework.org/release/),

Re: Can't resolve dependency with version range

2010-12-09 Thread Anders Hammar
Did you try forcing an update (-U) with Maven 2? I don't know if that
should have worked, but I would have tried it...

/Anders
On Fri, Dec 10, 2010 at 06:19, Phillip Hellewell ssh...@gmail.com wrote:

 Ok, some good news.  I just did the same test with Maven 3.0.1 and it
 worked no problem.  It downloaded the new version from the remote repo
 like it was supposed to.

 But I don't know if I'm ready to migrate to Maven 3.x yet...

 Phillip

 On Thu, Dec 9, 2010 at 10:00 PM, Phillip Hellewell ssh...@gmail.com
 wrote:
  I'm using Maven 2.2.1.  It won't resolve a dependency with a locked
  down version like [1.0.0.6] if the metadata xml file in the local repo
  does not have that version.  It won't look in my remote repo, which
  does have the version I need.  But if I delete the metadata xml
  file(s) in my local repo, then it works.
 
  I searched the mail archives and found a lot of topics similar to
  this, but I couldn't find a clear enough explanation to understand
  whether I'm doing something wrong or if this is just a bug.
 
  Phillip
 
  P.S.  Here's an example output of the error.
 
  [ERROR] BUILD ERROR
  [INFO]
 
  [INFO] Failed to resolve artifact.
 
  Couldn't find a version in [1.0.0.4, 1.0.0.5] to match range
 [1.0.0.6,1.0.0.6]
   ad.core:cppunitlite:zip:null
 
  from the specified remote repositories:
   central (http://repo1.maven.org/maven2),
   adrepo-public (
 http://maven.example.com:8080/nexus/content/groups/public)
 
  Path to dependency:
 1) ad.core:core:pom:1.0.0.46-SNAPSHOT
 

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