Re: [ANN] Maven Jar Plugin 2.2 for Maven 2 Released

2008-01-28 Thread Steinar Bang
> Steinar Bang <[EMAIL PROTECTED]>:

> Steinar Bang <[EMAIL PROTECTED]>:
> "Olivier Lamy" <[EMAIL PROTECTED]>:
>>> In order to save your fingers :-), you can use -DskipTests (with
>>> surefire 2.4) This will compile test classes but not execute units.

>> Thanx!  In addition to saving my fingers from typing, it seems to have
>> the effect that I don't get the dependency failures.

> Hmno... it seems to be stuck in the same sink hole it gets stuck in,
> when I try using -Dmaven.test.failure.ignore.  It gets a lot of
> compilation errors caused by missing symbols, and then the build just
> hangs. 

The reason it got stuck was that many POMs had explicit
maven-surefire-plugin configs, locking to 2.3.

A residue from a workaround from some earlier problem if I recall
correctly.

Removing those settings makes
 maven clean install -DskipTests
run through without failing (because it builds the test jars, and the
dependencies are satisfied, presumably...?).


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Maven Jar Plugin 2.2 for Maven 2 Released

2008-01-28 Thread Steinar Bang
> Steinar Bang <[EMAIL PROTECTED]>:

> Locking maven-jar-plugin to version 2.1 seems to be the least
> intrusive approach.  I'll try that first.

But how do I do that.  Just putting
 
  org.apache.maven.plugins
  maven-jar-plugin
  2.1
 
in the top pom, makes 2.1 be pulled into the local maven repo, but
that's in addition to 2.2, and I still get the missing test-jar issue.
So it probably still uses 2.2.

Do I have to introduce this setting into all POMs with
jar? 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Maven Jar Plugin 2.2 for Maven 2 Released

2008-01-28 Thread Steinar Bang
> Steinar Bang <[EMAIL PROTECTED]>:

> "Olivier Lamy" <[EMAIL PROTECTED]>:
>> In order to save your fingers :-), you can use -DskipTests (with
>> surefire 2.4) This will compile test classes but not execute units.

> Thanx!  In addition to saving my fingers from typing, it seems to have
> the effect that I don't get the dependency failures.

Hmno... it seems to be stuck in the same sink hole it gets stuck in,
when I try using -Dmaven.test.failure.ignore.  It gets a lot of
compilation errors caused by missing symbols, and then the build just
hangs. 

> So... I won't have to try out any of the workarounds I pondered during
> lunch...:-)  (either removing the test dependencies, or
> locking maven-jar-plugin to version 2.1 in the top POM)

Locking maven-jar-plugin to version 2.1 seems to be the least intrusive
approach.  I'll try that first.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Maven Jar Plugin 2.2 for Maven 2 Released

2008-01-28 Thread Steinar Bang
> "Olivier Lamy" <[EMAIL PROTECTED]>:

> In order to save your fingers :-), you can use -DskipTests (with
> surefire 2.4) This will compile test classes but not execute units.

Thanx!  In addition to saving my fingers from typing, it seems to have
the effect that I don't get the dependency failures.

So... I won't have to try out any of the workarounds I pondered during
lunch...:-)  (either removing the test dependencies, or
locking maven-jar-plugin to version 2.1 in the top POM)

Thanx again!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Maven Jar Plugin 2.2 for Maven 2 Released

2008-01-28 Thread Olivier Lamy
Hi,
In order to save your fingers :-), you can use -DskipTests (with surefire 2.4)
This will compile test classes but not execute units.

--
Olivier

2008/1/28, Steinar Bang <[EMAIL PROTECTED]>:
> > "Olivier Lamy" <[EMAIL PROTECTED]>:
>
> > * [MJAR-90] - when maven.test.Skip is set, the test-jar artifact is 
> > empty
>
> The fix is to make no test-jar on maven.test.skip.
>
> This fix may have created a new bug, but I'm unsure of which plugin has
> the bug (ie. what plugin to report it on).  Is it maven-surefire-plugin
> or maven-dependency-plugin=
>
> I cleaned up my repo today to build our project from scratch.  And then
> it failed on "mvn clean install -Dmaven.test.skip" on dependencies with
>   test
>   test-jar
>
> The reason they failed are because the test-jar files are no longer
> present.  But since they have test they shouldn't be
> resolved with "-Dmaven.test.skip".  Or at least I think they shouldn't.
>
> (we have some test cross dependencies, that makes it neccessary to run
> through with maven.test.skip before we run with tests)
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Maven Jar Plugin 2.2 for Maven 2 Released

2008-01-28 Thread Steinar Bang
> "Olivier Lamy" <[EMAIL PROTECTED]>:

> * [MJAR-90] - when maven.test.Skip is set, the test-jar artifact is empty

The fix is to make no test-jar on maven.test.skip.

This fix may have created a new bug, but I'm unsure of which plugin has
the bug (ie. what plugin to report it on).  Is it maven-surefire-plugin
or maven-dependency-plugin=

I cleaned up my repo today to build our project from scratch.  And then
it failed on "mvn clean install -Dmaven.test.skip" on dependencies with
  test
  test-jar

The reason they failed are because the test-jar files are no longer
present.  But since they have test they shouldn't be
resolved with "-Dmaven.test.skip".  Or at least I think they shouldn't. 

(we have some test cross dependencies, that makes it neccessary to run
through with maven.test.skip before we run with tests)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANN] Maven Jar Plugin 2.2 for Maven 2 Released

2008-01-16 Thread Olivier Lamy
The Maven team is pleased to announce the release of the Maven Jar
Plugin, version 2.2.

http://maven.apache.org/plugins/maven-jar-plugin/

You can run mvn -up to get the latest version of the plugin, or
specify the version in your project's plugin configuration:


 org.apache.maven.plugins
 maven-jar-plugin
 2.2


Release Notes - Maven 2.x Jar Plugin - Version 2.2


** Bug
* [MJAR-49] - Jarsigner fails on windows due to spaces in pathnames
* [MJAR-50] - "Invalid Header" in jar's Manifest
(Specification-Title attribute) when tab char in pom Description
* [MJAR-57] - Specification and Implementation details missing from manifest
* [MJAR-59] - Impossible to create empty entries in MANIFEST
* [MJAR-60] - Adding directories to manifest classpath entry is not possible
* [MJAR-75] - [PATCH] Wrong artifact type attached to the project
by the test-jar goal
* [MJAR-77] - Link to MavenArchiveConfiguration javadoc is broken
* [MJAR-78] - jar:sign skip option does not work
* [MJAR-79] - META-INF/persistence.xml excluded from artifact when
index=true
* [MJAR-80] - excludes is not working for maven-jar-plugin
* [MJAR-83] - addClasspath is not respected for runtime dependencies
* [MJAR-88] - use maven-invoker-plugin instead of maven-embedder
for it tests
* [MJAR-90] - when maven.test.Skip is set, the test-jar artifact is empty

** Improvement
* [MJAR-30] - Allow includes/excludes specification
* [MJAR-51] - handle signing jars which are not project artifacts
and not "in place" signing
* [MJAR-58] - Update Jar Plugin Documentation (more examples for
manifest customization)
* [MJAR-64] - jar:jar ignores command line argument -DfinalName=xxx
* [MJAR-70] - Ability to skip jar recreation if any of resources
are older than existing jar
* [MJAR-71] - use manifest in classesdir/META-INF if exists
* [MJAR-74] - Upgrade maven-archiver dependency to 2.3-SNAPSHOT
* [MJAR-82] - Class-Path manifest entry should support maven
repository layout

** New Feature
* [MJAR-84] - Need ability to not attach a jar when not signing in place
* [MJAR-86] - Jarsigner option 'storetype' not supported by the plugin

** Task
* [MJAR-89] - release maven-invoker-plugin
* [MJAR-91] - release maven-archiver
* [MJAR-92] - release plexus-utils 1.4.9

Enjoy,

-The Maven team

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]