Re: Tip about Skinny Wars

2008-07-02 Thread Martin Höller
On Tuesday 01 July 2008 Michael McCallum wrote:
  On Tue, Jul 1, 2008 at 2:58 PM, Martin Höller [EMAIL PROTECTED] wrote:
   I think I found one BIG problem with your workaround: it only works
   if you already have (the latest version of) your WAR's pom.xml file
   in the repository, otherwise maven 2.0.9 reports a missing
   dependency.
  
   So this approach is not useable with the maven-release-plugin :-(

 Rubbish i use this all the time with 2.0.9 without any problems. Have
 been since 2.0.5 and for at least for the last 6 months.

Did you try the sample project I posted? What are your results?

 It might be because I use ranges for deps though, and I don't use
 modules.

So you don't have a multimodule project? Well, that's what I was talking 
about! In a single-module project your declared dependencies have to be in 
a (local  or remote) repository anyway.

- martin


signature.asc
Description: This is a digitally signed message part.


Re: maintaining versions across multi-module project

2008-07-02 Thread Martin Höller
On Monday 30 June 2008 Kallin Nagelberg wrote:
 Can anyone tell me what is the best/simplest way to maintain a version
 number across all the poms in a multi-module project?

 They are all to be deployed with the same version every time.

Use the maven-release-plugin to release your project. The plugin will take 
care to replace alle version occurences in any pom.xml file.

hth,
- martin


signature.asc
Description: This is a digitally signed message part.


Re: problem installing the oracle library ojdbc14.jar

2008-07-02 Thread María Isabel López Sánchez-Huete

Hi, Stefan

The firts time I executed without the -X optión.

I try one more time, and this is the output:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: ' install'.
[WARNING] POM for 'org.apache.maven.plugins:maven- 
install-plugin:pom:LATEST' is invalid. It will be ignored for artifact 
resolution. Reason: Failed to validate POM for project 
org.apache.maven.plugins:maven- install-plugin at Artifact 
[org.apache.maven.plugins:maven- install-plugin:pom:LATEST]
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Failed to resolve artifact.
GroupId: org.apache.maven.plugins
ArtifactId: maven- install-plugin
Version: LATEST
Reason: Unable to determine the latest version
  org.apache.maven.plugins:maven- install-plugin:pom:LATEST
[INFO] 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build 
project information for plugin 'org.apache.maven.plugins:maven- 
install-plugin': POM 'org.apache.maven.plugins:maven- install-plugin' 
not found in repository: Unable to determine the latest version

  org.apache.maven.plugins:maven- install-plugin:pom:LATEST
 for project org.apache.maven.plugins:maven- install-plugin
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1291)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542)

(...)

Thanks again.

Stefan Seidel escribió:

Ok, it just seemed to be because the output is very weird:

  [INFO] Searching repository for plugin with prefix: ' -X install'.
  [INFO] org.apache.maven.plugins: checking for updates from central
  [INFO] org.codehaus.mojo: checking for updates from central
  [INFO] artifact org.apache.maven.plugins:maven- -X install-plugin:
  checking for updates from central
  [WARNING] POM for 'org.apache.maven.plugins:maven- -X
  install-plugin:pom:LATEST' is invalid. It will be ignored for
  artifact resolution. Reason: Failed to validate POM for project
  org.apache.maven.plugins:maven- -X install-plugin at Artifact
  [org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST]

Do you see all the -X? it seemed to search for a maven- -X 
install-plugin and it surely won't find that.


Stefan

María Isabel López Sánchez-Huete wrote:

   Thank you, for your rapid answer.

   I guess it´s not the problem. These options only shows a more 
detailled error message. The build error is the same without these 
options.


   Any other idea?

Stefan Seidel escribió:

hi,

the problem seems to be your -X. Try without -e and without -X.

Stefan

María Isabel López Sánchez-Huete wrote:

Hí,

I'm a beginner in this matter, and I'm lost. I expect somebody 
can help me.


I´m trying to install dspace 1.5 on Solaris 10 in a SPARC computer.

I read the installation documentation, and follow the steps.

My problems is about installing the oracle library ojdbc14.jar. 
I put in my current directory the ojdbc14.jar file, but when I run
mvn -e -X install:install-file -Dfile=ojdbc14.jar 
-DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.2.0 
-Dpackaging=jar -DgeneratePom=true

The following error appears (I reproduce only the first lines):
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: ' -X install'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven- -X install-plugin: 
checking for updates from central
[WARNING] POM for 'org.apache.maven.plugins:maven- -X 
install-plugin:pom:LATEST' is invalid. It will be ignored for 
artifact resolution. Reason: Failed to validate POM for project 
org.apache.maven.plugins:maven- -X install-plugin at Artifact 
[org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST]
[INFO] 
 


[ERROR] BUILD ERROR
[INFO] 
 


[INFO] Failed to resolve artifact.
GroupId: org.apache.maven.plugins
ArtifactId: maven- -X install-plugin
Version: LATEST
Reason: Unable to determine the latest version
  org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST
[INFO] 
 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to 
build project information for plugin 
'org.apache.maven.plugins:maven- -X install-plugin': POM 
'org.apache.maven.plugins:maven- -X install-plugin' not found in 
repository: Unable to determine the latest version

  

Best practices for corporate poms

2008-07-02 Thread Benjamin Voigt

Hello,

I'd like to know the best practices for using a corporate or a 
company-wide pom, e.g. what do you put in it except for 
distributionManagement ?
I've read that some people don't use SNAPSHOT versions for the corporate 
pom and instead only increase a single number for every new version of 
the corporate pom (e.g. version 2 to 3 to 4 etc.).
Maybe those facts could be documented somewhere on the maven site (like 
a how to).


Every idea is appreciated :)

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



Re: Best practices for corporate poms

2008-07-02 Thread nicolas de loof
I've set some default plugins configuration (source encoding for example),
fix plugin default versions, attach enforcer plugin to the build process,
set the defaut reporting plugins, some profiles to help configure eclipse
...

see
http://repo1.maven.org/maven2/com/capgemini/platina/platina/4/platina-4.pom

2008/7/2 Benjamin Voigt [EMAIL PROTECTED]:

 Hello,

 I'd like to know the best practices for using a corporate or a company-wide
 pom, e.g. what do you put in it except for distributionManagement ?
 I've read that some people don't use SNAPSHOT versions for the corporate
 pom and instead only increase a single number for every new version of the
 corporate pom (e.g. version 2 to 3 to 4 etc.).
 Maybe those facts could be documented somewhere on the maven site (like a
 how to).

 Every idea is appreciated :)

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




RE: Best practices for corporate poms

2008-07-02 Thread nicklist
In our super pom we have the following elements:

prerequisites
maven2.0.7/maven
/prerequisites

So each developer has at least the recommended version of maven.

Two profiles, one default on, which defines our artifactory as central and 
takes care of the distribution management and one athome which doesn't define 
our artifactory as central repository.

Pluginmanagement section, which nails down all the versions of the plugins we 
use.

Reporting section, so the generated sites of the projects have the same layout, 
same settings, etc.

Dependencymanagement, so all the projects use the same dependendency versions.

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



-Original Message-
From: Benjamin Voigt [mailto:[EMAIL PROTECTED]
Sent: Wed 7/2/2008 08:58
To: users@maven.apache.org
Subject: Best practices for corporate poms
 
Hello,

I'd like to know the best practices for using a corporate or a 
company-wide pom, e.g. what do you put in it except for 
distributionManagement ?
I've read that some people don't use SNAPSHOT versions for the corporate 
pom and instead only increase a single number for every new version of 
the corporate pom (e.g. version 2 to 3 to 4 etc.).
Maybe those facts could be documented somewhere on the maven site (like 
a how to).

Every idea is appreciated :)

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




Re: problem installing the oracle library ojdbc14.jar

2008-07-02 Thread Martin Höller
On Wednesday 02 July 2008 María Isabel López Sánchez-Huete wrote:
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.
 GroupId: org.apache.maven.plugins
 ArtifactId: maven- install-plugin
 Version: LATEST
 Reason: Unable to determine the latest version
org.apache.maven.plugins:maven- install-plugin:pom:LATEST

The ArtifactId should be maven-install-plugin not maven- install-plugin. 
Note the additional whitespace!

What _exactly_ is your commandline? Did you put quotes around install? Or 
did you specify the install plugin somewhere in your pom.xml?

hth,
- martin


signature.asc
Description: This is a digitally signed message part.


[Need Help] Why is maven trying to download files with different extension?

2008-07-02 Thread Sahoo
I am seeing build failures, because maven is downloading files with 
.bundle extension as opposed to .jar as shown below:
Downloading 
http://download.java.net/maven/glassfish/org/glassfish/admin/admin-cli/10.0-SNAPSHOT/admin-cli-10.0-SNAPSHOT.bundle   



It is true the above artifact was produced by a plugin which uses custom 
packaging type called bundle. But, why should that matter? Let me know 
if you want any further info. I need some help immediately.


Thanks,
Sahoo

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



Re: mvn test uses wrong resources

2008-07-02 Thread Martin Höller
On Tuesday 01 July 2008 M. Dahm wrote:
 There is a file META-INF/persistence.xml as well in

 src/test/resources

 as in

 src/main/resources

 But when I execute mvn test in the UBI-ALS-NG/UBI-ALS-NG-datamodel
 folder the wrong persistence.xml
 is loaded, i.e. the one in src/main/resources.

What surefire version are you using? Have a look at this thread [0] for more
information.

hth,
- martin

[0] 
http://www.nabble.com/Surefire-2.4.1-classpath-order-to15498825.html#a15544026


signature.asc
Description: This is a digitally signed message part.


Re: [Need Help] Why is maven trying to download files with different extension?

2008-07-02 Thread Stuart McCulloch
2008/7/2 Sahoo [EMAIL PROTECTED]:

 I am seeing build failures, because maven is downloading files with .bundle
 extension as opposed to .jar as shown below:
 Downloading
 http://download.java.net/maven/glassfish/org/glassfish/admin/admin-cli/10.0-SNAPSHOT/admin-cli-10.0-SNAPSHOT.bundle

 It is true the above artifact was produced by a plugin which uses custom
 packaging type called bundle. But, why should that matter? Let me know if
 you want any further info. I need some help immediately.


this is possibly related to http://jira.codehaus.org/browse/MNG-1682

I think you'll need to provide the Maven debug output somewhere (mvn -X ...)
and perhaps also the dependency details of the artifact being downloaded
ie. does the dependency have typebundle/type, or no type ?

the Maven version and platform are always useful when reporting any issue

there have been issues with this in the past on various multi-module
projects
where Maven tried to install the artifact using the packaging name rather
than
the extension set in the component descriptor (we currently workaround this
issue in the plugin) but this is the first time I've seen it wrt downloading

Thanks,
 Sahoo

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




-- 
Cheers, Stuart


Re: Best practices for corporate poms

2008-07-02 Thread Guillaume Lederrey
We are in the process of migrating our organization to Maven. We are a
pretty large organization, with multiple departments and quite a lot
of projects (around 40 projects just in my department).

We found that for our organization, inheritance is not the best way to
manage versions (dependencyManagement/ section). So we use
inheritance almost only for the build process itself (build/,
pluginManagemen/, reporting/, ... sections). Dependencies are
managed in different poms that have only a dependencyManagement/
section. This pom is use via composition (a dependencyManagement entry
with scope import). We do so because different people are
responsible for the build process and the versioning. It also give us
more flexibility because different departments have different
versioning requirements. Managing dependencies via composition give us
the ability to import dependencies from different poms, which is not
possible with inheritance as there is no multiple inheritance in
Maven.

In general, we found out that inheritance is a very strong relation,
that doesnt give us enough flexibility in most cases. So my advice is
to use composition as much as you can and be very suspicious of
inheritance ...

We also found out that Maven is lacking some functionalities for large
organizations with lots of different projects. For example, if we
release a new version of our parent pom, we have about 40 projects to
update. We had to create specialized tools to handle that case.
Version range might be able to solve this issue, but it is currently
not possible to use version range in the parent/ or
dependencyManagement/ sections ...

Of course, those choices are strongly related to the way we are
organized, your requirements might differ ...

  Good luck !

2008/7/2  [EMAIL PROTECTED]:
 In our super pom we have the following elements:

 prerequisites
maven2.0.7/maven
 /prerequisites

 So each developer has at least the recommended version of maven.

 Two profiles, one default on, which defines our artifactory as central and 
 takes care of the distribution management and one athome which doesn't 
 define our artifactory as central repository.

 Pluginmanagement section, which nails down all the versions of the plugins we 
 use.

 Reporting section, so the generated sites of the projects have the same 
 layout, same settings, etc.

 Dependencymanagement, so all the projects use the same dependendency versions.

 Hth,

 Nick Stolwijk
 ~Java Developer~

 Iprofs BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 www.iprofs.nl



 -Original Message-
 From: Benjamin Voigt [mailto:[EMAIL PROTECTED]
 Sent: Wed 7/2/2008 08:58
 To: users@maven.apache.org
 Subject: Best practices for corporate poms

 Hello,

 I'd like to know the best practices for using a corporate or a
 company-wide pom, e.g. what do you put in it except for
 distributionManagement ?
 I've read that some people don't use SNAPSHOT versions for the corporate
 pom and instead only increase a single number for every new version of
 the corporate pom (e.g. version 2 to 3 to 4 etc.).
 Maybe those facts could be documented somewhere on the maven site (like
 a how to).

 Every idea is appreciated :)

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






-- 
Jabber : [EMAIL PROTECTED]
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.ledcom.ch/

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



Re: problem installing the oracle library ojdbc14.jar

2008-07-02 Thread María Isabel López Sánchez-Huete

Hi, Martin.

This is the commandline:

$ mvn -e install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle 
-DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar -DgeneratePom=true


	It´s the same command tath appears in the installation instruction of 
Dspace.


Do I mistaked something?

Martin Höller escribió:

On Wednesday 02 July 2008 María Isabel López Sánchez-Huete wrote:


[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.
GroupId: org.apache.maven.plugins
ArtifactId: maven- install-plugin
Version: LATEST
Reason: Unable to determine the latest version
   org.apache.maven.plugins:maven- install-plugin:pom:LATEST


The ArtifactId should be maven-install-plugin not maven- install-plugin. 
Note the additional whitespace!


What _exactly_ is your commandline? Did you put quotes around install? Or 
did you specify the install plugin somewhere in your pom.xml?


hth,
- martin



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



RE: problem installing the oracle library ojdbc14.jar

2008-07-02 Thread Jörg Schaible
Hi María,

María Isabel López Sánchez-Huete wrote:
   Hi, Martin.
 
   This is the commandline:
 
 $ mvn -e install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle
 -DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar
 -DgeneratePom=true
 
   It´s the same command tath appears in the installation
 instruction of
 Dspace.
 
   Do I mistaked something?

Is in your current directory already a pom.xml that might be implicitly loaded 
also?

- Jörg

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



Re: problem installing the oracle library ojdbc14.jar

2008-07-02 Thread María Isabel López Sánchez-Huete

Hi, Jörg

	No, I don´t have any pom.xml in my current directory. I don´t know how 
maven works, and I only follow exactly the instalation instruction of 
dspace:


	Setting up oracle is a bit different now. You will need still need to 
get a Copy of the oracle JDBC driver, but instead of copying it into a 
lib directory you will need to install it into your local Maven 
repository. You'll need to download it first from this location: 
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html


$ mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle \
-DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar -DgeneratePom=true
-

	There don´t talk about any pom.xml file. Do I must create it? What must 
I write in it?


Thanks,

Marisa.


Jörg Schaible escribió:

Hi María,

María Isabel López Sánchez-Huete wrote:

Hi, Martin.

This is the commandline:

$ mvn -e install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle
-DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar
-DgeneratePom=true

It´s the same command tath appears in the installation
instruction of
Dspace.

Do I mistaked something?


Is in your current directory already a pom.xml that might be implicitly loaded 
also?

- Jörg

-
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]



Correct way to filtering web.xml with maven-war-plugin 2.1-alpha-1

2008-07-02 Thread Henri Gomez
Hi to all,

I need to filter the web.xml in some webapp :

I tried with :

  build

plugins

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
  execution
phasegenerate-resources/phase
goals
  goalrun/goal
/goals
configuration
  tasks
!-- Safety --
mkdir dir=${project.build.directory} /

tstamp
  format property=last.updated pattern=-MM-dd
hh:mm:ss /
/tstamp
echo 
file=${basedir}/target/filter.propertiesbuild.time=${last.updated}${line.separator}os.infos=${os.name}
${os.version}${line.separator}user.infos=${user.name}${line.separator}java.infos=JDK
${java.vendor} ${java.runtime.version}${line.separator}/echo
  /tasks
/configuration
  /execution
/executions
  /plugin

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
configuration
  archiveClassestrue/archiveClasses
  filters
filter${basedir}/target/filter.properties/filter
  /filters
  webResources
webResource
  directory${basedir}/src/main/webapp/WEB-INF/directory
  includes
includeweb.xml/include
  /includes
  targetPathWEB-INF/targetPath
  filteringtrue/filtering
/webResource
  /webResources
/configuration
  /plugin

  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdtomcat-maven-plugin/artifactId
version1.0-SNAPSHOT/version
  /plugin

/plugins

  /build


I found the right stuff in the target/filter.properties :

build.time=2008-07-02 11:23:43
os.infos=Windows XP 5.1
user.infos=hgomez
java.infos=JDK Sun Microsystems Inc. 1.5.0_15-b04

My web.xml is :

!-- last modification date of the current file --
context-param
param-namedate/param-name
param-value${build.time}/param-value
/context-param

context-param
param-nameWEBAPP.VERSION/param-name
param-value${project.version}/param-value
/context-param
context-param
param-nameWEBAPP.CANOPEE/param-name
param-value${project.parent.name} 
v${project.parent.version}/param-value
/context-param
context-param
param-nameWEBAPP.CREATION/param-name
param-valuebuilt by ${user.infos} on ${os.infos} with
${java.infos}/param-value
/context-param


After mvn package ${build.time}, ${user.infos}, ${os.infos} and
${java.infos} and not filtered.

${project.version} and ${project.parent.name}
v${project.parent.version} are filtered.

What could be wrong ?

Regards

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



Re: Issue with ProGuard Maven plugin.

2008-07-02 Thread Dirk Olmes

Mikel Cármenes Cavia wrote:
Isn't that feature enabled automatically? 


It definitely is if you specify it in your POM.

 I thought that Maven took care of

the dependencies specified in the POM by passing these over to ProGuard...
It'd be lovely to get this all to work!


I'm pretty sure that the plugin works as I use at - albeit a little bit 
different due to different requirements.


-dirk

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



Re: problem installing the oracle library ojdbc14.jar

2008-07-02 Thread Martin Höller
You don't need a pom.xml file for installing an artifact. Jörg just 
suspected there existed one which could be the cause for your problems.

The problems you are facing is not really maven related. Maven gets the 
wrong arguments somehow. Does a 'mvn -version' (without quotes) work? What 
does it say? It should say something like

  $ mvn -version
  Maven version: 2.0.9
  Java version: 1.5.0_15
  OS name: linux version: 2.4.34.5-xss-std arch: i386 Family: unix

- martin

On Wednesday 02 July 2008 María Isabel López Sánchez-Huete wrote:
   Hi, Jörg

   No, I don´t have any pom.xml in my current directory. I don´t know how
 maven works, and I only follow exactly the instalation instruction of
 dspace:
 
   Setting up oracle is a bit different now. You will need still need to
 get a Copy of the oracle JDBC driver, but instead of copying it into a
 lib directory you will need to install it into your local Maven
 repository. You'll need to download it first from this location:
 http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc
_10201.html

 $ mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle \
 -DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar
 -DgeneratePom=true -

   There don´t talk about any pom.xml file. Do I must create it? What must
 I write in it?

   Thanks,

   Marisa.

 Jörg Schaible escribió:
  Hi María,
 
  María Isabel López Sánchez-Huete wrote:
 Hi, Martin.
 
 This is the commandline:
 
  $ mvn -e install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle
  -DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar
  -DgeneratePom=true
 
 It´s the same command tath appears in the installation
  instruction of
  Dspace.
 
 Do I mistaked something?
 
  Is in your current directory already a pom.xml that might be implicitly
  loaded also?
 
  - Jörg
 
  -
  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]




signature.asc
Description: This is a digitally signed message part.


Re: problem installing the oracle library ojdbc14.jar

2008-07-02 Thread María Isabel López Sánchez-Huete

Hi, Martin

Yes, that works fine:

$ mvn -version
Maven version: 2.0.9
Java version: 1.5.0_06
OS name: sunos version: 5.10 arch: sparc Family: unix

It's the way I probe that maven was correctly installed in my computer.

Marisa.

Martin Höller escribió:
You don't need a pom.xml file for installing an artifact. Jörg just 
suspected there existed one which could be the cause for your problems.


The problems you are facing is not really maven related. Maven gets the 
wrong arguments somehow. Does a 'mvn -version' (without quotes) work? What 
does it say? It should say something like


  $ mvn -version
  Maven version: 2.0.9
  Java version: 1.5.0_15
  OS name: linux version: 2.4.34.5-xss-std arch: i386 Family: unix

- martin

On Wednesday 02 July 2008 María Isabel López Sánchez-Huete wrote:

Hi, Jörg

No, I don´t have any pom.xml in my current directory. I don´t know how
maven works, and I only follow exactly the instalation instruction of
dspace:

Setting up oracle is a bit different now. You will need still need to
get a Copy of the oracle JDBC driver, but instead of copying it into a
lib directory you will need to install it into your local Maven
repository. You'll need to download it first from this location:
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc
_10201.html

$ mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle \
-DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar
-DgeneratePom=true -

There don´t talk about any pom.xml file. Do I must create it? What must
I write in it?

Thanks,

Marisa.

Jörg Schaible escribió:

Hi María,

María Isabel López Sánchez-Huete wrote:

Hi, Martin.

This is the commandline:

$ mvn -e install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle
-DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar
-DgeneratePom=true

It´s the same command tath appears in the installation
instruction of
Dspace.

Do I mistaked something?

Is in your current directory already a pom.xml that might be implicitly
loaded also?

- Jörg

-
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]






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



custom packaging problem

2008-07-02 Thread Guillaume Boucherie
Hi all,

I'm trying to make my own packaging type for my skin project.
So I create a plugin with a components.xml that define my ArtifactHandler
and my LifecycleMapping.
But when I launch an mvn clean install on a project with my own packaging I
have the following error :

[FATAL ERROR] com.ideo.maven.plugins.skin.SkinBundledMojo#execute() caused a
linkage error (java.lang.IncompatibleClassChangeError) and may be
out-of-date. Check the realms:
[FATAL ERROR] Plugin realm =
app0.child-container[com.ideo.maven.plugins:maven-skin-plugin]
urls[0] =
file:/E:/tools/maven/repository-maven2/com/ideo/maven/plugins/maven-skin-plugin/1.0-SNAPSHOT/maven-skin-plugin-1.0-SNAPSHOT.jar
urls[1] =
file:/E:/tools/maven/repository-maven2/org/apache/maven/maven-archiver/2.3/maven-archiver-2.3.jar
urls[2] =
file:/E:/tools/maven/repository-maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[3] =
file:/E:/tools/maven/repository-maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar
urls[4] =
file:/E:/tools/maven/repository-maven2/org/codehaus/plexus/plexus-component-api/1.0-alpha-15/plexus-component-api-1.0-alpha-15.jar

urls[5] =
file:/E:/tools/maven/repository-maven2/org/codehaus/plexus/plexus-classworlds/1.2-alpha-6/plexus-classworlds-1.2-alpha-6.jar
urls[6] =
file:/E:/tools/maven/repository-maven2/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/E:/tools/maven/maven-2.0.9/lib/maven-2.0.9-uber.jar
urls[1] =
file:/E:/tools/maven/repository-maven2/com/ideo/sweetdev/sweetdev-build-tools/1.0/sweetdev-build-tools-1.0.jar
urls[2] =
file:/E:/tools/maven/repository-maven2/com/ideo/maven/ideo-build-tools/1.0/ideo-build-tools-1.0.jar
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Class org.codehaus.plexus.logging.console.ConsoleLogger does not
implement the requested interface org.codehaus.plexus.logging.Logger

[INFO]

[INFO] Trace
java.lang.IncompatibleClassChangeError: Class
org.codehaus.plexus.logging.console.ConsoleLogger does not implement the
requested interface org.codehaus.plexus.logging.Logger
at
org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:318)
at
org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:242)
at
org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:673)
at
com.ideo.maven.plugins.skin.SkinBundledMojo.performPackaging(SkinBundledMojo.java:143)
at
com.ideo.maven.plugins.skin.SkinBundledMojo.execute(SkinBundledMojo.java:124)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Can someone help me please ?
Thanks

Guillaume Boucherie


Re: [Need Help] Why is maven trying to download files with different extension?

2008-07-02 Thread Stuart McCulloch
2008/7/2 Sahoo [EMAIL PROTECTED]:

 Stuart McCulloch wrote:

 2008/7/2 Sahoo [EMAIL PROTECTED]:



 I am seeing build failures, because maven is downloading files with
 .bundle
 extension as opposed to .jar as shown below:
 Downloading

 http://download.java.net/maven/glassfish/org/glassfish/admin/admin-cli/10.0-SNAPSHOT/admin-cli-10.0-SNAPSHOT.bundle

 It is true the above artifact was produced by a plugin which uses custom
 packaging type called bundle. But, why should that matter? Let me know
 if
 you want any further info. I need some help immediately.




 this is possibly related to http://jira.codehaus.org/browse/MNG-1682


 Yes, it looks like that. I looked at the Felix bug
 (https://issues.apache.org/jira/browse/FELIX-198) and it does have an
 interesting note that says this bug appears when atleast three custom
 packaging types are involved, which appear to be true in my case as
 well. I use maven-bundle-plugin and two other home grown plugins.

 I think you'll need to provide the Maven debug output somewhere (mvn -X
 ...)


 Please see the attachment.

 and perhaps also the dependency details of the artifact being downloaded
 ie. does the dependency have typebundle/type, or no type ?


 Unfortunately, the dependencies are not published in any public repo
 yet, otherwise I would have been able to provide the URL. How do I check
 this detail? I looked at admin-cli-10.0-SNAPSHOT.pom in my local
 repository and I do see it has packagingbundle/packaging.


I was thinking more about the pom that is pulling down this
dependency - for example do you use something like this:

dependency
  groupIdfoo/groupId
  artifactIdbar/artifactId
  version1.0/version
  typebundle/type
/dependency

or:

dependency
  groupIdfoo/groupId
  artifactIdbar/artifactId
  version1.0/version
/dependency

in whichever pom defines this dependency?


  the Maven version and platform are always useful when reporting any issue

 there have been issues with this in the past on various multi-module
 projects
 where Maven tried to install the artifact using the packaging name rather
 than
 the extension set in the component descriptor (we currently workaround
 this
 issue in the plugin) but this is the first time I've seen it wrt
 downloading


 My env. is like this:

 Maven version: 2.0.7
 Java version: 1.5.0_13-rev
 OS name: sunos version: 5.11 arch: x86


 Thanks a lot for your help. I really appreciate it.

 Best regards,
 Sahoo


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




-- 
Cheers, Stuart


Re: Maven AntRun Plugin - Phase Required?

2008-07-02 Thread ertnutler

Maven supports Ant scripts as Maven plugins.  Once you have your script
packaged as a Maven plugin, you can invoke it from the command line.  See
section 5 of the Better Builds With Maven book.



Elliot Barlas wrote:
 
 Hi all, I would like to define a ant task in a AntRun plugin configuration
 that isn't tied to any phase.  I would like to be able to invoke it from
 the command line with mvn antrun:run.  Is this possible?  I haven't been
 able to get it working.
 
 Thanks,
 Elliot
 

-- 
View this message in context: 
http://www.nabble.com/Maven-AntRun-Plugin---Phase-Required--tp18225255p18234364.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: problem installing the oracle library ojdbc14.jar

2008-07-02 Thread Martin Höller
One more idea: what shell are you using? Try echo $SHELL to find out. 
Maybe the colon sign : is interpreted by it? Try putting all arguments in 
quotes like this:

mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=...

- martin

On Wednesday 02 July 2008 María Isabel López Sánchez-Huete wrote:
   Hi, Martin

   Yes, that works fine:

 $ mvn -version
 Maven version: 2.0.9
 Java version: 1.5.0_06
 OS name: sunos version: 5.10 arch: sparc Family: unix

   It's the way I probe that maven was correctly installed in my computer.

   Marisa.

 Martin Höller escribió:
  You don't need a pom.xml file for installing an artifact. Jörg just
  suspected there existed one which could be the cause for your problems.
 
  The problems you are facing is not really maven related. Maven gets the
  wrong arguments somehow. Does a 'mvn -version' (without quotes) work?
  What does it say? It should say something like
 
$ mvn -version
Maven version: 2.0.9
Java version: 1.5.0_15
OS name: linux version: 2.4.34.5-xss-std arch: i386 Family:
  unix
 
  - martin
 
  On Wednesday 02 July 2008 María Isabel López Sánchez-Huete wrote:
 Hi, Jörg
 
 No, I don´t have any pom.xml in my current directory. I don´t know
  how maven works, and I only follow exactly the instalation instruction
  of dspace:
  
 Setting up oracle is a bit different now. You will need still need to
  get a Copy of the oracle JDBC driver, but instead of copying it into a
  lib directory you will need to install it into your local Maven
  repository. You'll need to download it first from this location:
  http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/j
 dbc _10201.html
 
  $ mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle \
  -DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar
  -DgeneratePom=true -
 
 There don´t talk about any pom.xml file. Do I must create it? What
  must I write in it?
 
 Thanks,
 
 Marisa.
 
  Jörg Schaible escribió:
  Hi María,
 
  María Isabel López Sánchez-Huete wrote:
   Hi, Martin.
 
   This is the commandline:
 
  $ mvn -e install:install-file -Dfile=ojdbc14.jar
  -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.2.0
  -Dpackaging=jar
  -DgeneratePom=true
 
   It´s the same command tath appears in the installation
  instruction of
  Dspace.
 
   Do I mistaked something?
 
  Is in your current directory already a pom.xml that might be
  implicitly loaded also?
 
  - Jörg
 
  -
  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]

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




signature.asc
Description: This is a digitally signed message part.


Re: problem installing the oracle library ojdbc14.jar

2008-07-02 Thread María Isabel López Sánchez-Huete

Hi, Martin.

	You are my hero! I have some tears in my eyes! I spend the last days 
thinking about this. You are right: there were two stupid quotation 
marks. I only quoted the argument install:install-file, and then

(...)
[INFO] 


[INFO] BUILD SUCCESSFUL
[INFO] 


[INFO] Total time: 31 seconds
[INFO] Finished at: Wed Jul 02 12:37:26 CEST 2008
[INFO] Final Memory: 3M/124M
[INFO] 



Thank you very much!

Marisa.

Martin Höller escribió:
One more idea: what shell are you using? Try echo $SHELL to find out. 
Maybe the colon sign : is interpreted by it? Try putting all arguments in 
quotes like this:


mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=...

- martin

On Wednesday 02 July 2008 María Isabel López Sánchez-Huete wrote:

Hi, Martin

Yes, that works fine:

$ mvn -version
Maven version: 2.0.9
Java version: 1.5.0_06
OS name: sunos version: 5.10 arch: sparc Family: unix

It's the way I probe that maven was correctly installed in my computer.

Marisa.

Martin Höller escribió:

You don't need a pom.xml file for installing an artifact. Jörg just
suspected there existed one which could be the cause for your problems.

The problems you are facing is not really maven related. Maven gets the
wrong arguments somehow. Does a 'mvn -version' (without quotes) work?
What does it say? It should say something like

  $ mvn -version
  Maven version: 2.0.9
  Java version: 1.5.0_15
  OS name: linux version: 2.4.34.5-xss-std arch: i386 Family:
unix

- martin

On Wednesday 02 July 2008 María Isabel López Sánchez-Huete wrote:

Hi, Jörg

No, I don´t have any pom.xml in my current directory. I don´t know
how maven works, and I only follow exactly the instalation instruction
of dspace:

Setting up oracle is a bit different now. You will need still need to
get a Copy of the oracle JDBC driver, but instead of copying it into a
lib directory you will need to install it into your local Maven
repository. You'll need to download it first from this location:
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/j
dbc _10201.html

$ mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle \
-DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar
-DgeneratePom=true -

There don´t talk about any pom.xml file. Do I must create it? What
must I write in it?

Thanks,

Marisa.

Jörg Schaible escribió:

Hi María,

María Isabel López Sánchez-Huete wrote:

Hi, Martin.

This is the commandline:

$ mvn -e install:install-file -Dfile=ojdbc14.jar
-DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.2.0
-Dpackaging=jar
-DgeneratePom=true

It´s the same command tath appears in the installation
instruction of
Dspace.

Do I mistaked something?

Is in your current directory already a pom.xml that might be
implicitly loaded also?

- Jörg

-
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]

-
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: [Need Help] Why is maven trying to download files with different extension?

2008-07-02 Thread Sahoo

Stuart McCulloch wrote:


and perhaps also the dependency details of the artifact being downloaded
ie. does the dependency have typebundle/type, or no type ?


  

Unfortunately, the dependencies are not published in any public repo
yet, otherwise I would have been able to provide the URL. How do I check
this detail? I looked at admin-cli-10.0-SNAPSHOT.pom in my local
repository and I do see it has packagingbundle/packaging.




I was thinking more about the pom that is pulling down this
dependency - 
  
No, the dependant POM does not use type. It specifies the dependency 
like this:

  dependency
  groupIdorg.glassfish.admin/groupId
  artifactIdadmin-cli/artifactId
  version${glassfish.version}/version
  /dependency


Thanks,
Sahoo

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



Re: lifecycle with version lock and default configuration of plugins

2008-07-02 Thread Raphaël Piéroni
Any thoughs

Raphaël

2008/6/24 Raphaël Piéroni [EMAIL PROTECTED]:
 Hi folks,

 In a plugin, i create a lifecycle (in lifecycle.xml) in which i managed
 to call a specific goal in another plugin (appassembler) with some
 configuration and without locking that plugin version.

 In another plugin, i defined a new packaging (in componenet.xml),
 in which i manage to call the same goal with locking the version
 and without being able to define a configuration.

 Is there a way to merge the two approaches?

 My aim is to define a new packaging, creating mojos only for the
 glue between external plugins and providing sensible default for
 those. With locking the external plugins versions in the packaging
 and leaving the pom free from default values (which are defaults in
 the way the packaging uses the external plugins, but not default
 for the average usage of these plugins).

 Regards,

 Raphaël



Re: mvn test uses wrong resources

2008-07-02 Thread M. Dahm

Thanks for the link, that may be the same problem.

The solution I found was to configure the SureFire-Plugin with an explicit
version:

version2.4.3/version

and it worked!

Still a bit puzzled
Markus
-- 
View this message in context: 
http://www.nabble.com/%22mvn-test%22-uses-wrong-resources-tp18219384p18235353.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Surefire 2.4.1 classpath order

2008-07-02 Thread M. Dahm

Hi,

I think I had the same problem (the wrong resource was loaded).
may solution was to add an explicit version to the SureFire-Plugin
configuration:

...
version2.4.3/version
...

See 
http://www.nabble.com/%22mvn-test%22-uses-wrong-resources-to18219384.html
http://www.nabble.com/%22mvn-test%22-uses-wrong-resources-to18219384.html 

Cheers
   Markus
-- 
View this message in context: 
http://www.nabble.com/Surefire-2.4.1-classpath-order-tp15498825p18235397.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Issue with ProGuard Maven plugin.

2008-07-02 Thread Mikel Cármenes Cavia
Hmm, I am still getting the same error/warning messages after adding that to
my POM. It seems like the jar's specified in the POM are being included,
judging from this:

*[INFO] proguard jar: C:\Documents and
Settings\Mikel\.m2\repository\net\sf\proguard\proguard\4.1\proguard-4.1.jar
 [proguard] ProGuard, version 4.1
 [proguard] Reading input...
 [proguard] Reading program jar
[C:\iBuilder~Storage\GITSYSTEMS\target\GITSYSTEMS-1.0-jar-with-dependencies.jar]
(filtered)
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\AbsoluteLayout\AbsoluteLayout\1.0.1\AbsoluteLayout-1.0.1.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\org\antlr\antlr\2.7.6\antlr-2.7.6.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\org\apache\ant\ant-antlr\1.6.5\ant-antlr-1.6.5.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1_3.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\commons-beanutils\commons-beanutils\1.7.0\commons-beanutils-1.7.0.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\commons-collections\commons-collections\2.1.1\commons-collections-2.1.1.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\commons-digester\commons-digester\1.7\commons-digester-1.7.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\concurrent\concurrent\1.3.2\concurrent-1.3.2.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\gnujaxp\gnujaxp\1.0.0\gnujaxp-1.0.0.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\org\hibernate\hibernate\3.2.6.ga
\hibernate-3.2.6.ga.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\net\sf\ehcache\ehcache\1.2.3\ehcache-1.2.3.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\javax\transaction\jta\1.0.1\jta-1.0.1.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\asm\asm-attrs\1.5.3\asm-attrs-1.5.3.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\antlr\antlr\2.7.6\antlr-2.7.6.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\cglib\cglib\2.1_3\cglib-2.1_3.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\asm\asm\1.5.3\asm-1.5.3.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\ini4j\ini4j\0.3.2\ini4j-0.3.2.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\jacob\jacob\1.14\jacob-1.14.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\net\sf\jasperreports\jasperreports\3.0.0\jasperreports-3.0.0.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\jfree\jfreechart\1.0.9\jfreechart-1.0.9.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\jfree\jcommon\1.0.12\jcommon-1.0.12.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\jna\jna\3.0.3\jna-3.0.3.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\log4j\log4j\1.2.11\log4j-1.2.11.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\mysql-connector-java\mysql-connector-java\5.0.3\mysql-connector-java-5.0.3.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\poi\poi\2.5.1-final-20040804\poi-2.5.1-final-20040804.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\servlet\servlet\4.1.31\servlet-4.1.31.jar]
 [proguard] Reading library jar [C:\Documents and
Settings\Mikel\.m2\repository\swingx\swingx\0.9.3\swingx-0.9.3.jar]
 [proguard] Reading library jar [C:\Program
Files\Java\jdk1.6.0_06\jre\lib\rt.jar]
 [proguard] Reading library jar [C:\Program
Files\Java\jdk1.6.0_06\jre\lib\jsse.jar]
 [proguard] Initializing...
*

However, I then get a series of warnings, and then the whole process ends,
with the following messages:

*...
[proguard] Warning: there were 33 unresolved references to superclasses or
interfaces.
 [proguard]  You may need to specify additional library jars (using
'-libraryjars'),
 [proguard]  or perhaps the '-dontskipnonpubliclibraryclasses'
option.
 

Re: Issue with ProGuard Maven plugin.

2008-07-02 Thread Mikel Cármenes Cavia
I wonder if this could have anything to do with the libraries themselves
being obfuscated, thus why some stuff can't be found. Is there any way to
prevent these from being obfuscated? I know of the easiest way, and that
would be for all the jar's to sit outside of the main application .jar,
however I would like to keep them inside. Other than that, I can't really
think of why this would be happening...

On Wed, Jul 2, 2008 at 08:51, Mikel Cármenes Cavia [EMAIL PROTECTED] wrote:

 Hmm, I am still getting the same error/warning messages after adding that
 to my POM. It seems like the jar's specified in the POM are being included,
 judging from this:

 *[INFO] proguard jar: C:\Documents and
 Settings\Mikel\.m2\repository\net\sf\proguard\proguard\4.1\proguard-4.1.jar
  [proguard] ProGuard, version 4.1
  [proguard] Reading input...
  [proguard] Reading program jar
 [C:\iBuilder~Storage\GITSYSTEMS\target\GITSYSTEMS-1.0-jar-with-dependencies.jar]
 (filtered)
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\AbsoluteLayout\AbsoluteLayout\1.0.1\AbsoluteLayout-1.0.1.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\org\antlr\antlr\2.7.6\antlr-2.7.6.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\org\apache\ant\ant-antlr\1.6.5\ant-antlr-1.6.5.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1_3.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\commons-beanutils\commons-beanutils\1.7.0\commons-beanutils-1.7.0.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\commons-collections\commons-collections\2.1.1\commons-collections-2.1.1.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\commons-digester\commons-digester\1.7\commons-digester-1.7.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\concurrent\concurrent\1.3.2\concurrent-1.3.2.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\gnujaxp\gnujaxp\1.0.0\gnujaxp-1.0.0.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\org\hibernate\hibernate\3.2.6.ga
 \hibernate-3.2.6.ga.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\net\sf\ehcache\ehcache\1.2.3\ehcache-1.2.3.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\javax\transaction\jta\1.0.1\jta-1.0.1.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\asm\asm-attrs\1.5.3\asm-attrs-1.5.3.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\antlr\antlr\2.7.6\antlr-2.7.6.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\cglib\cglib\2.1_3\cglib-2.1_3.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\asm\asm\1.5.3\asm-1.5.3.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\ini4j\ini4j\0.3.2\ini4j-0.3.2.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\jacob\jacob\1.14\jacob-1.14.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\net\sf\jasperreports\jasperreports\3.0.0\jasperreports-3.0.0.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\jfree\jfreechart\1.0.9\jfreechart-1.0.9.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\jfree\jcommon\1.0.12\jcommon-1.0.12.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\jna\jna\3.0.3\jna-3.0.3.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\log4j\log4j\1.2.11\log4j-1.2.11.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\mysql-connector-java\mysql-connector-java\5.0.3\mysql-connector-java-5.0.3.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\poi\poi\2.5.1-final-20040804\poi-2.5.1-final-20040804.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\servlet\servlet\4.1.31\servlet-4.1.31.jar]
  [proguard] Reading library jar [C:\Documents and
 Settings\Mikel\.m2\repository\swingx\swingx\0.9.3\swingx-0.9.3.jar]
  [proguard] 

Maven build assembly manifest executable jar not working

2008-07-02 Thread David Brown
Hello Maven dev, gurus and users. I have a curious situation where I want to 
make my Swing App into an executable jar. I went to the Maven guides site: 
http://maven.apache.org/guides/mini/guide-manifest.html and I used the build 
snippet displayed below. I inserted the snippet and edited the MANIFEST.MF as 
displayed below. Lo-and-behold: it returns the usual (follows) 
NoClassDefFoundError when I try to exectue. I have successfully hand built 
executable jars in the past but I would like to have Maven doing this job. The 
particulars follow. TIA and please advise, David.

OS: Ubuntu 2.6.24-17-generic GNU/LINUX
Arch: i686 SMP
Error condition:

java -jar XSFileUploadApp-1.0.jar
Exception in thread main java.lang.NoClassDefFoundError:  
com/fds/ar/apps/util/fileupload/XSFileUploadApp
Caused by: java.lang.ClassNotFoundException:  
com.fds.ar.apps.util.fileupload.XSFileUploadApp

MANIFEST.MF:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: dwbrown
Package: com.fds.ar.apps.util.fileupload.XSFileUploadApp
Build-Jdk:  1.6.0-b09
Extension-Name: XSFileUploadApp
Specification-Vendor: FA
Implementation-Vendor: FA
Implementation-Title: XSFileUploadApp
Implementation-Version: 1.0-SNAPSHOT
Main-Class:  com.fds.ar.apps.util.fileupload.XSFileUploadApp
mode: development
url: http://www.flooddata.com


Yet some, not wise, go to the other side of the globe, to barbarous and 
unhealthy regions, and devote ten or twenty years, in that they may live,-that 
is, keep comfortably warm,- and die in New England at last. 

Henry David Thoreau - Walden - 1845

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



Re: Proper Dependency Management - HowTo?

2008-07-02 Thread Peter Horlock
Could you be a bit more precise? (Just make it plain simple, this increases
the chance that I get it! ;-)

Thanks,

Peter


Re: Issue with ProGuard Maven plugin.

2008-07-02 Thread Dirk Olmes

Mikel Cármenes Cavia wrote:

I wonder if this could have anything to do with the libraries themselves
being obfuscated, thus why some stuff can't be found. Is there any way to
prevent these from being obfuscated? I know of the easiest way, and that
would be for all the jar's to sit outside of the main application .jar,
however I would like to keep them inside. Other than that, I can't really
think of why this would be happening...


I think your analysis is spot on, Mikel. I worked around this using a 
slightly different approach:


- only the artifacts in my jar are obfuscated
- I use the dependency plugin to list all the other dependencies into 
a temporary file
- I use the exec plugin to read in that file and fill out a proguard 
template file which is then passed as config into the proguard plugin.


While this approach is somewhat complicated to set up it has been 
working flawlessly for me for quite some time now.


-dirk

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



Re: Issue with ProGuard Maven plugin.

2008-07-02 Thread Mikel Cármenes Cavia
Well, that sure sounds like another very intelligent way to do it. Would you
mind sharing the portion of your POM that takes care of this sort of
functionality? Further, do you incorporate your other dependencies into
the jar after ProGuard is done with the obfuscation, or do you always keep
them outside? Thanks so much for the insight Dirk!

Cheers.

On Wed, Jul 2, 2008 at 09:43, Dirk Olmes [EMAIL PROTECTED] wrote:

 Mikel Cármenes Cavia wrote:

 I wonder if this could have anything to do with the libraries themselves
 being obfuscated, thus why some stuff can't be found. Is there any way to
 prevent these from being obfuscated? I know of the easiest way, and that
 would be for all the jar's to sit outside of the main application .jar,
 however I would like to keep them inside. Other than that, I can't really
 think of why this would be happening...


 I think your analysis is spot on, Mikel. I worked around this using a
 slightly different approach:

 - only the artifacts in my jar are obfuscated
 - I use the dependency plugin to list all the other dependencies into a
 temporary file
 - I use the exec plugin to read in that file and fill out a proguard
 template file which is then passed as config into the proguard plugin.

 While this approach is somewhat complicated to set up it has been working
 flawlessly for me for quite some time now.


 -dirk

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




autoadded property

2008-07-02 Thread Nicola Benaglia

Hi,
I my project I need to use richfaces 3.2.1.GA so I added a property to 
set the version.


My final ear contains a different version of richfaces so I am trying to 
figure out th reason.


Using: mvn help:effective-pom I see:

properties
   hibernate.version3.2.6.GA/hibernate.version
   project.version1.0/project.version
*--version.richfaces3.1.4.GA/version.richfaces
   hibernate-ejb3.version3.3.0.ga/hibernate-ejb3.version
   version.wicket1.3.0-SNAPSHOT/version.wicket
   richfaces.version3.2.1.GA/richfaces.version
   seam.version2.1.0.A1/seam.version
   drools.version4.0.7/drools.version
/properties

The * line appear in the effective POM.
How can I better understand which dependency causes this line to appear?

Thank you,
Nicola


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



Re: mvn site / reports / scm plugin

2008-07-02 Thread Peter Horlock
Hm,

could noone help me, plase? :-(((

To make a long story short:

I would like to use the changelog plugin as part of my site generation.
The changelog plugin again is using the scm plugin, to retrieve changes from
subversion.
I am looking for the best / easiest way of how to configure the thing so
that it generates those reports for all my sub projects
that all are sharing the same parent pom.

Anyone???

Thanks,

Peter


j2ee project exmple with maven

2008-07-02 Thread johndavid_p

Hi folks 
could you please suggest me the link for a full fledged J2EE app with maven

thanks in advance 
regards
David

-- 
View this message in context: 
http://www.nabble.com/j2ee-project-exmple-with-maven-tp18237495p18237495.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: j2ee project exmple with maven

2008-07-02 Thread Geoffrey Wiseman
On Wed, Jul 2, 2008 at 9:29 AM, johndavid_p [EMAIL PROTECTED] wrote:


 Hi folks
 could you please suggest me the link for a full fledged J2EE app with maven

 thanks in advance
 regards
 David


Well, there are lots of real project in the open-source world that would
qualify for that, but you might want to start with an example like the one
referenced by and linked to in the Sonatype book:
http://www.sonatype.com/book/reference/multimodule-web-spring.html#

-- 
Geoffrey Wiseman


filtering java sources

2008-07-02 Thread Henri Gomez
Hi to all,

I'm trying to filter some of my java source file before compile phase.

public interface DefaultProps {

public static final String NAME = 
${pom.artifactId};
public static final String VERSION  = 
${pom.version};
}


maven-resources-plugin is only for resource (non code).

How could we do this ?

Regards

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



Re: custom packaging problem

2008-07-02 Thread Guillaume Boucherie
Hi,

I found a workaround. I use the version 2.2 of plexus-archiver instead of
version 2.3.

Guillaume Boucherie


2008/7/2 Guillaume Boucherie [EMAIL PROTECTED]:

 Hi all,

 I'm trying to make my own packaging type for my skin project.
 So I create a plugin with a components.xml that define my ArtifactHandler
 and my LifecycleMapping.
 But when I launch an mvn clean install on a project with my own packaging I
 have the following error :

 [FATAL ERROR] com.ideo.maven.plugins.skin.SkinBundledMojo#execute() caused
 a linkage error (java.lang.IncompatibleClassChangeError) and may be
 out-of-date. Check the realms:
 [FATAL ERROR] Plugin realm =
 app0.child-container[com.ideo.maven.plugins:maven-skin-plugin]
 urls[0] =
 file:/E:/tools/maven/repository-maven2/com/ideo/maven/plugins/maven-skin-plugin/1.0-SNAPSHOT/maven-skin-plugin-1.0-SNAPSHOT.jar
 urls[1] =
 file:/E:/tools/maven/repository-maven2/org/apache/maven/maven-archiver/2.3/maven-archiver-2.3.jar
 urls[2] =
 file:/E:/tools/maven/repository-maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
 urls[3] =
 file:/E:/tools/maven/repository-maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar
 urls[4] =
 file:/E:/tools/maven/repository-maven2/org/codehaus/plexus/plexus-component-api/1.0-alpha-15/plexus-component-api-1.0-alpha-15.jar

 urls[5] =
 file:/E:/tools/maven/repository-maven2/org/codehaus/plexus/plexus-classworlds/1.2-alpha-6/plexus-classworlds-1.2-alpha-6.jar
 urls[6] =
 file:/E:/tools/maven/repository-maven2/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar
 [FATAL ERROR] Container realm = plexus.core
 urls[0] = file:/E:/tools/maven/maven-2.0.9/lib/maven-2.0.9-uber.jar
 urls[1] =
 file:/E:/tools/maven/repository-maven2/com/ideo/sweetdev/sweetdev-build-tools/1.0/sweetdev-build-tools-1.0.jar
 urls[2] =
 file:/E:/tools/maven/repository-maven2/com/ideo/maven/ideo-build-tools/1.0/ideo-build-tools-1.0.jar
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] Class org.codehaus.plexus.logging.console.ConsoleLogger does not
 implement the requested interface org.codehaus.plexus.logging.Logger

 [INFO]
 
 [INFO] Trace
 java.lang.IncompatibleClassChangeError: Class
 org.codehaus.plexus.logging.console.ConsoleLogger does not implement the
 requested interface org.codehaus.plexus.logging.Logger
 at
 org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:318)
 at
 org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:242)
 at
 org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:673)
 at
 com.ideo.maven.plugins.skin.SkinBundledMojo.performPackaging(SkinBundledMojo.java:143)
 at
 com.ideo.maven.plugins.skin.SkinBundledMojo.execute(SkinBundledMojo.java:124)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
 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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

 Can someone help me please ?
 Thanks

 Guillaume Boucherie



Re: Canoo WebTest Plugin 0.2 for M2 is available for field testing ...

2008-07-02 Thread Martijn Dashorst
I've downloaded the latest (0.6.1) and built it from the source but
any plugin invocation results in npe's in maven. For example:

$ mvn help:describe -Dplugin=webtest -Dfull=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
WAGON_VERSION: 1.0-beta-2
[INFO] 
[INFO] Building quickstart
[INFO]task-segment: [help:describe] (aggregator-style)
[INFO] 
[INFO] [help:describe]
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] null
[INFO] 
[INFO] Trace
java.lang.NullPointerException
at 
org.apache.maven.plugins.help.DescribeMojo.describePlugin(DescribeMojo.java:452)
at 
org.apache.maven.plugins.help.DescribeMojo.execute(DescribeMojo.java:223)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 
[INFO] Total time: 1 second
[INFO] Finished at: Wed Jul 02 17:42:11 CEST 2008
[INFO] Final Memory: 5M/508M
[INFO] 


On Thu, Oct 25, 2007 at 4:22 PM, Siegfried Goeschl
[EMAIL PROTECTED] wrote:
 Hi folks,

 I created a rough cut of a M2 plugin to be downloaded from

 http://people.apache.org/~sgoeschl/download/maven-plugins/

 Krystian Novak did some field testing - thanks a lot  :-)

 A few points to keep in mind

 +) it is my very first M2 plugin so it could be quite shaky ...
 +) Canoo WebTest uses a lot of custom libraries - they are found in lib
 with a shell script to import them into the local repo
 +) the javax.mail-1.3.3.jar needs to be provided manually
 +) after some more testing it should go to Codehaus

 If someone feels brave enough - don't forget to provide feedback 

 Thanks in advance

 Siegfried Goeschl


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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: maintaining versions across multi-module project

2008-07-02 Thread Kallin Nagelberg
So what do you use for the version label in the root pom and the 'parent'
tags of all the modules?
For inter-module dependencies ${project.version} seems to work..

On Wed, Jul 2, 2008 at 2:52 AM, Martin Höller [EMAIL PROTECTED] wrote:

 On Monday 30 June 2008 Kallin Nagelberg wrote:
  Can anyone tell me what is the best/simplest way to maintain a version
  number across all the poms in a multi-module project?
 
  They are all to be deployed with the same version every time.

 Use the maven-release-plugin to release your project. The plugin will take
 care to replace alle version occurences in any pom.xml file.

 hth,
 - martin



Re: Maven build assembly manifest executable jar not working

2008-07-02 Thread Wayne Fay
Are you sure that file exists in the jar? I've had zero problems
constructing executable jars with Maven.

Unzip the jar and check things out. Adjust the manifest file and
rezip, then test again, until you get it working. Then you know what
you need to adjust in Maven.

Wayne

On 7/2/08, David Brown [EMAIL PROTECTED] wrote:
 Hello Maven dev, gurus and users. I have a curious situation where I want to 
 make my Swing App into an executable jar. I went to the Maven guides site: 
 http://maven.apache.org/guides/mini/guide-manifest.html and I used the build 
 snippet displayed below. I inserted the snippet and edited the MANIFEST.MF as 
 displayed below. Lo-and-behold: it returns the usual (follows) 
 NoClassDefFoundError when I try to exectue. I have successfully hand built 
 executable jars in the past but I would like to have Maven doing this job. 
 The particulars follow. TIA and please advise, David.

 OS: Ubuntu 2.6.24-17-generic GNU/LINUX
 Arch: i686 SMP
 Error condition:

 java -jar XSFileUploadApp-1.0.jar
 Exception in thread main java.lang.NoClassDefFoundError:  
 com/fds/ar/apps/util/fileupload/XSFileUploadApp
 Caused by: java.lang.ClassNotFoundException:  
 com.fds.ar.apps.util.fileupload.XSFileUploadApp

 MANIFEST.MF:

 Manifest-Version: 1.0
 Archiver-Version: Plexus Archiver
 Created-By: Apache Maven
 Built-By: dwbrown
 Package: com.fds.ar.apps.util.fileupload.XSFileUploadApp
 Build-Jdk:  1.6.0-b09
 Extension-Name: XSFileUploadApp
 Specification-Vendor: FA
 Implementation-Vendor: FA
 Implementation-Title: XSFileUploadApp
 Implementation-Version: 1.0-SNAPSHOT
 Main-Class:  com.fds.ar.apps.util.fileupload.XSFileUploadApp
 mode: development
 url: http://www.flooddata.com


 Yet some, not wise, go to the other side of the globe, to barbarous and 
 unhealthy regions, and devote ten or twenty years, in that they may 
 live,-that is, keep comfortably warm,- and die in New England at last.

 Henry David Thoreau - Walden - 1845

 -
 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: mvn site / reports / scm plugin

2008-07-02 Thread Dennis Lundberg
Server certificate verification failed: certificate issued for a 
different hostname, issuer is not trusted


Seems that you have a problem with the certificate.

Can you run the failing svn command on the command line?

svn --non-interactive log -v -r {2008-05-31 16:02:01+}:{2008-07-01 
16:02:01 +} https://myURL:443/myMainProject/TRUNK/subprojectXY


Peter Horlock wrote:

Hi folks,

I am using Maven 2.09 with site plugin 2.0-beta-6,
maven-project-info-reports-plugin 2.0.1 and the maven-changelog-plugin 2.1.

In my parent pom I got:
[…]
   scm
  connectionscm:svn:https://myURL:443/myMainProject/TRUNK
/connection
  developerConnectionscm:svn:https://myURL:443/myMainProject/TRUNK
/developerConnection
  urlhttps://myURL:443/myMainProject/TRUNK
//url
   /scm
[…]
1. Running mvn site just for the parent pom works fine. Running mvn site
for sub projects works fine,* IF*:
a) I am running it by typing mvn site from the parent pom project
*AND*
b) I added the foldername of the sub project to the scm url

2. When I am in the folder of a sub project, and run mvn site –o, it also
works. I guess the offline mode will exclude the scm report.

3. When I am in the folder of a sub project, and I run mvn site, *without
*adding the name of the sub project to the scm url, I get this error:
[INFO] Error during page generation

Embedded error: Error rendering Maven report: Cannot run changelog command :
*The scm url does not contain a valid delimiter.*

4. When I add the name of the sub folder to the scm url, like this:
   scm
connectionscm:svn:https://myURL:443/myMainProject/TRUNK/*mySubProjectXY*
/connection
  developerConnectionscm:svn:https://myURL:443/myMainProject/TRUNK/*
mySubProjectXY*
/developerConnection
  urlhttps://myURL:443/myMainProject/TRUNK
//*mySubProjectXY*//url
   /scm
I get:
[INFO] Generating changed sets xml to: target\changelog.xml
[INFO] Executing: svn --non-interactive log -v -r {2008-05-31 16:02:01
+}:{
2008-07-01 16:02:01 +}
https://myURL:443/myMainProject/TRUNK/subprojectXY
[INFO] Working directory: C:\subprojectXY
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: PROPFIND request failed on '/myMainProject/TRUNK/subprojectXY'
svn: PROPFIND of '/myMainProject/TRUNK/subprojectXY': *Server certificate
verification fail
ed: certificate issued for a different hostname, issuer is not trusted
(https://
myURL)

*- while the same thing* IS *working when I am calling mvn site from the
parent pom folder.*
*
Question:

How can I make this work (best was if I just had to adjust the parent pom,
and not to adjust the scm url for each sub project…) – Do I have to add the
name of a sub project to the scm url? If so, why does it say issuer is not
trusted – when I am in the folder of the parent pom and do the same, it
does work without this error…


I know I had this working a while ago - maybe they changed the way the site
/ scm plugin is working???

Thanks in advance,

Peter




--
Dennis Lundberg

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



configuring a plugin while preventing its execution

2008-07-02 Thread Kallin Nagelberg
I'm trying to create a multi-module project that uses the same plugin for
source generation.
To make it as simple as possible I have a parent POM that contains the
configuration of the plugin in a

build
plugins
plugin

tag.

My problem is that the plugin is being executed when the parent is built,
even though it is of type 'pom', and i only want to use it to aggregate the
modules and define some standard config. Is there a way to configure a
plugin and prevent it's execution?


running Maven Tasks through Eclipse

2008-07-02 Thread Morgovsky, Alexander (US - Glen Mills)
Hello Maven Users.  In my MOJO I have:

 

/**

*  The project version.

* @parameter name=version required=true readonly=true
expression=${project.version}

*/

private String version;

 

..

..

getLog().info(The project.basedir is +basedir.getAbsolutePath());

getLog().info(The project.artifactId +artifactId);

getLog().info(The project.version +version);

 

[INFO] The project.basedir is
E:\development\workspace\deloitte-ecm-cm-core

[INFO] The project.artifactId deloitte-ecm-cm-core

[INFO] The project.version null

 

Above, the ${project.basedir} and ${project.artifactId} resolve
correctly.  However, ${project.version} does not.  I tried setting the
type of version to Integer, but that did not work either.  Could you
please help identify how I can correct this?  Thanks. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Re: maintaining versions across multi-module project

2008-07-02 Thread Siarhei Dudzin
We also use release plugin. During a release process the plugin asks for
versions of your modules and sets them for you.

Siarhei

On Wed, Jul 2, 2008 at 6:16 PM, Kallin Nagelberg [EMAIL PROTECTED]
wrote:

 So what do you use for the version label in the root pom and the 'parent'
 tags of all the modules?
 For inter-module dependencies ${project.version} seems to work..

 On Wed, Jul 2, 2008 at 2:52 AM, Martin Höller [EMAIL PROTECTED] wrote:

  On Monday 30 June 2008 Kallin Nagelberg wrote:
   Can anyone tell me what is the best/simplest way to maintain a version
   number across all the poms in a multi-module project?
  
   They are all to be deployed with the same version every time.
 
  Use the maven-release-plugin to release your project. The plugin will
 take
  care to replace alle version occurences in any pom.xml file.
 
  hth,
  - martin
 



Re: configuring a plugin while preventing its execution

2008-07-02 Thread Dennis Lundberg
You can put your plugin configuration in a pluginManagement [1] element 
inside the build element

  build
pluginManagement
  plugins
plugin

This only configures the plugins, but don't execute them.

[1] 
http://maven.apache.org/ref/current/maven-model/maven.html#class_pluginManagement


Kallin Nagelberg wrote:

I'm trying to create a multi-module project that uses the same plugin for
source generation.
To make it as simple as possible I have a parent POM that contains the
configuration of the plugin in a

build
plugins
plugin

tag.

My problem is that the plugin is being executed when the parent is built,
even though it is of type 'pom', and i only want to use it to aggregate the
modules and define some standard config. Is there a way to configure a
plugin and prevent it's execution?




--
Dennis Lundberg

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



Re: Maven build assembly manifest executable jar not working

2008-07-02 Thread David Brown
Hello Wayne, thanks for the speedy and informative reply. You're right this is 
not a Maven issue but I am running mvn in an attempt to get the job done. The 
results of jar tvf XSFileUploadApp.jar and the other operations are included 
below. TIA and please advise, David.

**
C:\Documents and Settings\dwbrown\My 
Documents\dev\java\XSFileUploadApp\targetjava -jar XSFileUploadApp-1.0.jar
Exception in thread main java.lang.NoClassDefFoundError:  
com/fds/ar/apps/util/fileupload/XSFileUploadApp
Caused by: java.lang.ClassNotFoundException:  
com.fds.ar.apps.util.fileupload.XSFileUploadApp
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My Documents\dev\java\XSFileUploadApp\target
C:\Documents and Settings\dwbrown\My 
Documents\dev\java\XSFileUploadApp\targetjar tvf XSFileUploadApp-1.0.jar
 0 Wed Jul 02 13:30:16 CDT 2008 META-INF/
   498 Wed Jul 02 13:30:14 CDT 2008 META-INF/MANIFEST.MF
 0 Wed Jul 02 13:30:12 CDT 2008 com/
 0 Wed Jul 02 13:30:12 CDT 2008 com/fds/
 0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/
 0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/apps/
 0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/apps/util/
 0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/apps/util/fileupload/
 0 Wed Jul 02 13:30:12 CDT 2008 
com/fds/ar/apps/util/fileupload/XSFileUploadApp/
   622 Wed Jul 02 13:30:12 CDT 2008 
com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp$1.class
  2250 Wed Jul 02 13:30:12 CDT 2008 
com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp$MultipartFileUploadFrame$1.class
  5307 Wed Jul 02 13:30:12 CDT 2008 
com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp$MultipartFileUploadFrame$2.class
  5633 Wed Jul 02 13:30:12 CDT 2008 
com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp$MultipartFileUploadFrame.class
  1690 Wed Jul 02 13:30:12 CDT 2008 
com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp.class
 0 Wed Jul 02 13:30:16 CDT 2008 META-INF/maven/
 0 Wed Jul 02 13:30:16 CDT 2008 
META-INF/maven/com.fds.ar.apps.util.fileupload/
 0 Wed Jul 02 13:30:16 CDT 2008 
META-INF/maven/com.fds.ar.apps.util.fileupload/XSFileUploadApp/
  2123 Wed Jul 02 13:24:50 CDT 2008 
META-INF/maven/com.fds.ar.apps.util.fileupload/XSFileUploadApp/pom.xml
   134 Wed Jul 02 13:30:16 CDT 2008 
META-INF/maven/com.fds.ar.apps.util.fileupload/XSFileUploadApp/pom.properties

C:\Documents and Settings\dwbrown\My 
Documents\dev\java\XSFileUploadApp\targetjava -jar XSFileUploadApp-1.0.jar
Exception in thread main java.lang.NoClassDefFoundError:  
com/fds/ar/apps/util/fileupload/XSFileUploadApp
Caused by: java.lang.ClassNotFoundException:  
com.fds.ar.apps.util.fileupload.XSFileUploadApp
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

C:\Documents and Settings\dwbrown\My 
Documents\dev\java\XSFileUploadApp\targettype 
..\src\main\java\com\fds\ar\apps\util\fileupload\XSFileUploadApp\M
ANIFEST.MF
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: dwbrown
Package: com.fds.ar.apps.util.fileupload.XSFileUploadApp
Build-Jdk:  1.6.0-b09
Extension-Name: XSFileUploadApp
Specification-Vendor: FA

obtaining modules as dependencies

2008-07-02 Thread Kallin Nagelberg
I have a multi module project with superpom of type 'pom'.
I was wondering how I can obtain all the modules as dependencies in another
project. I thought I could just declare a dependency on the superpom, but
that doesn't work.


Re: configuring a plugin while preventing its execution

2008-07-02 Thread Kallin Nagelberg
great, thanks for the help

On Wed, Jul 2, 2008 at 2:21 PM, Dennis Lundberg [EMAIL PROTECTED] wrote:

 You can put your plugin configuration in a pluginManagement [1] element
 inside the build element
  build
pluginManagement
  plugins
plugin

 This only configures the plugins, but don't execute them.

 [1]
 http://maven.apache.org/ref/current/maven-model/maven.html#class_pluginManagement


 Kallin Nagelberg wrote:

 I'm trying to create a multi-module project that uses the same plugin for
 source generation.
 To make it as simple as possible I have a parent POM that contains the
 configuration of the plugin in a

 build
plugins
plugin

 tag.

 My problem is that the plugin is being executed when the parent is built,
 even though it is of type 'pom', and i only want to use it to aggregate
 the
 modules and define some standard config. Is there a way to configure a
 plugin and prevent it's execution?



 --
 Dennis Lundberg

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




Re: Maven build assembly manifest executable jar not working

2008-07-02 Thread Wayne Fay
Your Main-Class is wrong...

You have:
Main-Class:  com.fds.ar.apps.util.fileupload.XSFileUploadApp

It seems you need:
Main-Class:  com.fds.ar.apps.util.fileupload.XSFileUploadApp.XSFileUploadApp

Wayne

On 7/2/08, David Brown [EMAIL PROTECTED] wrote:
 Hello Wayne, thanks for the speedy and informative reply. You're right this 
 is not a Maven issue but I am running mvn in an attempt to get the job done. 
 The results of jar tvf XSFileUploadApp.jar and the other operations are 
 included below. TIA and please advise, David.

 **
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\targetjava -jar XSFileUploadApp-1.0.jar
 Exception in thread main java.lang.NoClassDefFoundError:  
 com/fds/ar/apps/util/fileupload/XSFileUploadApp
 Caused by: java.lang.ClassNotFoundException:  
 com.fds.ar.apps.util.fileupload.XSFileUploadApp
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\target
 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\targetjar tvf XSFileUploadApp-1.0.jar
 0 Wed Jul 02 13:30:16 CDT 2008 META-INF/
   498 Wed Jul 02 13:30:14 CDT 2008 META-INF/MANIFEST.MF
 0 Wed Jul 02 13:30:12 CDT 2008 com/
 0 Wed Jul 02 13:30:12 CDT 2008 com/fds/
 0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/
 0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/apps/
 0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/apps/util/
 0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/apps/util/fileupload/
 0 Wed Jul 02 13:30:12 CDT 2008 
 com/fds/ar/apps/util/fileupload/XSFileUploadApp/
   622 Wed Jul 02 13:30:12 CDT 2008 
 com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp$1.class
  2250 Wed Jul 02 13:30:12 CDT 2008 
 com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp$MultipartFileUploadFrame$1.class
  5307 Wed Jul 02 13:30:12 CDT 2008 
 com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp$MultipartFileUploadFrame$2.class
  5633 Wed Jul 02 13:30:12 CDT 2008 
 com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp$MultipartFileUploadFrame.class
  1690 Wed Jul 02 13:30:12 CDT 2008 
 com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp.class
 0 Wed Jul 02 13:30:16 CDT 2008 META-INF/maven/
 0 Wed Jul 02 13:30:16 CDT 2008 
 META-INF/maven/com.fds.ar.apps.util.fileupload/
 0 Wed Jul 02 13:30:16 CDT 2008 
 META-INF/maven/com.fds.ar.apps.util.fileupload/XSFileUploadApp/
  2123 Wed Jul 02 13:24:50 CDT 2008 
 META-INF/maven/com.fds.ar.apps.util.fileupload/XSFileUploadApp/pom.xml
   134 Wed Jul 02 13:30:16 CDT 2008 
 META-INF/maven/com.fds.ar.apps.util.fileupload/XSFileUploadApp/pom.properties

 C:\Documents and Settings\dwbrown\My 
 Documents\dev\java\XSFileUploadApp\targetjava -jar XSFileUploadApp-1.0.jar
 Exception in thread main java.lang.NoClassDefFoundError:  
 com/fds/ar/apps/util/fileupload/XSFileUploadApp
 Caused by: java.lang.ClassNotFoundException:  
 com.fds.ar.apps.util.fileupload.XSFileUploadApp
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

 C:\Documents and Settings\dwbrown\My 
 

Re: Maven build assembly manifest executable jar not working

2008-07-02 Thread David Brown
Hello Wayne, thanks for the reply. When I read I thought: Of Course! but as you 
can see below:

C:\Documents and Settings\dwbrown\My 
Documents\dev\java\XSFileUploadApp\targetjava -jar XSFileUploadApp-1.0.jar
Exception in thread main java.lang.NoClassDefFoundError:  
com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp
Caused by: java.lang.ClassNotFoundException:  
com.fds.ar.apps.util.fileupload.XSFileUploadApp.XSFileUploadApp
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

C:\Documents and Settings\dwbrown\My 
Documents\dev\java\XSFileUploadApp\targettype 
..\src\main\java\com\fds\ar\apps\util\fileupload\XSFileUploadApp\M
ANIFEST.MF
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: dwbrown
Package: com.fds.ar.apps.util.fileupload.XSFileUploadApp
Build-Jdk:  1.6.0-b09
Extension-Name: XSFileUploadApp
Specification-Vendor: FA
Implementation-Vendor: FA
Implementation-Title: XSFileUploadApp
Implementation-Version: 1.0-SNAPSHOT
Main-Class:  com.fds.ar.apps.util.fileupload.XSFileUploadApp.XSFileUploadApp
Class-Path: XSFileUploadApp-1.0.jar
mode: development
url: http://www.flooddata.com

Wayne Fay wrote ..
 Your Main-Class is wrong...
 
 You have:
 Main-Class:  com.fds.ar.apps.util.fileupload.XSFileUploadApp
 
 It seems you need:
 Main-Class:  com.fds.ar.apps.util.fileupload.XSFileUploadApp.XSFileUploadApp
 
 Wayne
 
 On 7/2/08, David Brown [EMAIL PROTECTED] wrote:
  Hello Wayne, thanks for the speedy and informative reply. You're right this 
  is
 not a Maven issue but I am running mvn in an attempt to get the job done. The 
 results
 of jar tvf XSFileUploadApp.jar and the other operations are included below. 
 TIA
 and please advise, David.
 
  **
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\targetjava
 -jar XSFileUploadApp-1.0.jar
  Exception in thread main java.lang.NoClassDefFoundError:  
  com/fds/ar/apps/util/fileupload/XSFileUploadApp
  Caused by: java.lang.ClassNotFoundException:  
  com.fds.ar.apps.util.fileupload.XSFileUploadApp
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\target
  C:\Documents and Settings\dwbrown\My 
  Documents\dev\java\XSFileUploadApp\targetjar
 tvf XSFileUploadApp-1.0.jar
  0 Wed Jul 02 13:30:16 CDT 2008 META-INF/
498 Wed Jul 02 13:30:14 CDT 2008 META-INF/MANIFEST.MF
  0 Wed Jul 02 13:30:12 CDT 2008 com/
  0 Wed Jul 02 13:30:12 CDT 2008 com/fds/
  0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/
  0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/apps/
  0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/apps/util/
  0 Wed Jul 02 13:30:12 CDT 2008 com/fds/ar/apps/util/fileupload/
  0 Wed Jul 02 13:30:12 CDT 2008 
  com/fds/ar/apps/util/fileupload/XSFileUploadApp/
622 Wed Jul 02 13:30:12 CDT 2008 
  com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp$1.class
   2250 Wed Jul 02 13:30:12 CDT 2008 
  com/fds/ar/apps/util/fileupload/XSFileUploadApp/XSFileUploadApp$MultipartFileUploadFrame$1.class
   5307 Wed Jul 02 13:30:12 CDT 2008 
  

Re: obtaining modules as dependencies

2008-07-02 Thread Dennis Lundberg

Kallin Nagelberg wrote:

I have a multi module project with superpom of type 'pom'.
I was wondering how I can obtain all the modules as dependencies in another
project. I thought I could just declare a dependency on the superpom, but
that doesn't work.



No it won't, because the modules themselves are not dependencies of the 
parent POM, they are just modules.


You will have to specify each of the modules you need to use as 
dependencies in your other project.


--
Dennis Lundberg

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



Creating an assembly with a symlink

2008-07-02 Thread Dan Fabulich


Is there a way to create a symlink in a Maven assembly?  How would I 
describe that in an assembly descriptor?


-Dan

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



Re: configuring a plugin while preventing its execution

2008-07-02 Thread Kallin Nagelberg
I've noticed that using the pluginmanagment the plugin is not associated to
lifecycle events by default in the children. Is there a way to make this
happen so that I don't have to declare the plugin in every child?

On Wed, Jul 2, 2008 at 3:22 PM, Kallin Nagelberg [EMAIL PROTECTED]
wrote:

 great, thanks for the help


 On Wed, Jul 2, 2008 at 2:21 PM, Dennis Lundberg [EMAIL PROTECTED]
 wrote:

 You can put your plugin configuration in a pluginManagement [1] element
 inside the build element
  build
pluginManagement
  plugins
plugin

 This only configures the plugins, but don't execute them.

 [1]
 http://maven.apache.org/ref/current/maven-model/maven.html#class_pluginManagement


 Kallin Nagelberg wrote:

 I'm trying to create a multi-module project that uses the same plugin for
 source generation.
 To make it as simple as possible I have a parent POM that contains the
 configuration of the plugin in a

 build
plugins
plugin

 tag.

 My problem is that the plugin is being executed when the parent is built,
 even though it is of type 'pom', and i only want to use it to aggregate
 the
 modules and define some standard config. Is there a way to configure a
 plugin and prevent it's execution?



 --
 Dennis Lundberg

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





Assembly Not Installing with appendAssemblyIdfalseappendAssemblyId

2008-07-02 Thread Geoffrey Wiseman
A friend of mine and I were both experimenting with the assembly plugin this
morning.  It seems as if putting the appendAsssemblyId parameter to false
causes the assembly not to get installed.

I've got a multiproject build.  Let's say the overall project is
com.mycompany.myproject:myproject:1.0.  I have a top-level pom that
(packaging pom, with modules) and submodules that use the top-level as
parent POM and that create artifacts that I want to bundle into a
distribution assembly.  Because of the build order issue (top-level project
will be packaged before sub-modules), I've put the distribution into a
module.  That module becomes
com.mycompany.myproject:myproject-distribution:1.0.

Because the module is already specific to the creation of a distribution, I
don't really want an additional classifier.  Right now, if my assembly id is
'distribution', I end up with the following in my repo:
com/mycompany/myproject/myproject-distribution/1.0/myproject-distribution-1.0-distribution.zip
(and .tar.gz).

myproject-distribution-1.0-distribution.zip is a pretty ugly name, I imagine
you'd agree.  So I turned off appendAssemblyId, which gets me a good archive
(myproject-distribution-1.0.zip), but no longer installs to the repository.
I'm open to suggestions that either allow me not to append the assembly id,
or other alternate suggestions that can get me an archive with a non-stupid
(subjective, I know) name.

  - Geoffrey
-- 
Geoffrey Wiseman


Re: running Maven Tasks through Eclipse

2008-07-02 Thread Lee Meador
Your email says I am prohibited from taking any action, which would include
replying I think, based on the email.

There is humor everywhere.

Thanks.

-- Lee

On Wed, Jul 2, 2008 at 11:56 AM, Morgovsky, Alexander (US - Glen Mills) 
[EMAIL PROTECTED] wrote:

 Hello Maven Users.  In my MOJO I have:



 /**

*  The project version.

* @parameter name=version required=true readonly=true
 expression=${project.version}

*/

private String version;



 ..

 ..

 getLog().info(The project.basedir is +basedir.getAbsolutePath());

 getLog().info(The project.artifactId +artifactId);

 getLog().info(The project.version +version);



 [INFO] The project.basedir is
 E:\development\workspace\deloitte-ecm-cm-core

 [INFO] The project.artifactId deloitte-ecm-cm-core

 [INFO] The project.version null



 Above, the ${project.basedir} and ${project.artifactId} resolve
 correctly.  However, ${project.version} does not.  I tried setting the
 type of version to Integer, but that did not work either.  Could you
 please help identify how I can correct this?  Thanks.


 This message (including any attachments) contains confidential information
 intended for a specific individual and purpose, and is protected by law.  If
 you are not the intended recipient, you should delete this message.


 Any disclosure, copying, or distribution of this message, or the taking of
 any action based on it, is strictly prohibited. [v.E.1]




-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com


how modules gets other modules as dependencies?

2008-07-02 Thread Zemian Deng
Hi list,

I a parent pom with two sub modules, one war and one jar. the war
depends on jar. When I tries to run jetty:run on war modules, it can't
find the artifact from jar module that it depends on. It only works
when I install the jar into local repo.

Is there better way to do this?

Thanks.
-Z

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



How to get the path of local repository in pom.xml?

2008-07-02 Thread Vickey

I wonder how to refer to the path of local repository with a ${} variable in
the pom.xml?
-- 
View this message in context: 
http://www.nabble.com/How-to-get-the-path-of-local-repository-in-pom.xml--tp18249969p18249969.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Enabling Eclipse 3.4.0 Ganymede in the maven repository

2008-07-02 Thread Rakesh Sinha
Hi -
  To  develop a plugin of ours - we need to port it to Eclipse 3.4.0
and we have the maven build script for the same.

   Can we have the jars available for 3.4.0 here at the maven repository.

http://repo1.maven.org/maven2/org/eclipse/swt/

  If not - could there be a different repository to add them to. Thanks.

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



Maven dependency quandary: apache xml-rpc + servlet-api-2.4.jar = javax not found?

2008-07-02 Thread briantd

Hi, I am a recent maven user.

The Good:
* Servlet code compiles after adding pom.xml dependencies for group_ids
javax.servlet (server-api) and org.apache.xmlrpc (xmlrpc-*).

The Bad:
* Executing java -jar MyNewServletService-1.0-SNAPSHOT.jar yields --
Exception in thread main java.lang.NoClassDefFoundError:
javax/servlet/http/HttpServlet

From the pom.xml...
dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.4/version
scopeprovided/scope
/dependency

I'm guessing that the problem is related to the scope.  Perhaps OSX Leopard
doesn't include EE javax jars?

Changing the scope to runtime yields a compile-time error:
cannot access javax.servlet.http.HttpServlet file
javax/servlet/http/HttpServlet.class not found

Why I'm perplexed:
* maven automatically downloads
~/.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar -- which
appears to include all the missing classes. 

For example:
jar -tf ~/.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar
...
javax/servlet/http/HttpServlet.class
...

Any suggestions?

Thanks!
-B
-- 
View this message in context: 
http://www.nabble.com/Maven-dependency-quandary%3A-apache-xml-rpc-%2B-servlet-api-2.4.jar-%3D-javax-not-found--tp18250354p18250354.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: j2ee project exmple with maven

2008-07-02 Thread Martin
as EARs are slightly different for the encompassing EJB Containers this 
really depends on which application server you will be implementing to..


Martin
- Original Message - 
From: Geoffrey Wiseman [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Wednesday, July 02, 2008 10:11 AM
Subject: Re: j2ee project exmple with maven



On Wed, Jul 2, 2008 at 9:29 AM, johndavid_p [EMAIL PROTECTED] wrote:



Hi folks
could you please suggest me the link for a full fledged J2EE app with 
maven


thanks in advance
regards
David



Well, there are lots of real project in the open-source world that would
qualify for that, but you might want to start with an example like the one
referenced by and linked to in the Sonatype book:
http://www.sonatype.com/book/reference/multimodule-web-spring.html#

--
Geoffrey Wiseman




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



Re: Maven dependency quandary: apache xml-rpc + servlet-api-2.4.jar = javax not found?

2008-07-02 Thread Wayne Fay
You're specifying scope provided which means I will provide this jar
when it is needed. And then in your command line, you're not
providing it. So you get the NPE.

Add the servlet-api-2.4.jar to the classpath and try again, it should
work. And review what the various scopes mean on the Maven homepage if
you haven't already.

Wayne

On 7/2/08, briantd [EMAIL PROTECTED] wrote:

 Hi, I am a recent maven user.

 The Good:
 * Servlet code compiles after adding pom.xml dependencies for group_ids
 javax.servlet (server-api) and org.apache.xmlrpc (xmlrpc-*).

 The Bad:
 * Executing java -jar MyNewServletService-1.0-SNAPSHOT.jar yields --
 Exception in thread main java.lang.NoClassDefFoundError:
 javax/servlet/http/HttpServlet

 From the pom.xml...
dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.4/version
scopeprovided/scope
/dependency

 I'm guessing that the problem is related to the scope.  Perhaps OSX Leopard
 doesn't include EE javax jars?

 Changing the scope to runtime yields a compile-time error:
 cannot access javax.servlet.http.HttpServlet file
 javax/servlet/http/HttpServlet.class not found

 Why I'm perplexed:
 * maven automatically downloads
 ~/.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar -- which
 appears to include all the missing classes.

 For example:
 jar -tf ~/.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar
 ...
 javax/servlet/http/HttpServlet.class
 ...

 Any suggestions?

 Thanks!
 -B
 --
 View this message in context: 
 http://www.nabble.com/Maven-dependency-quandary%3A-apache-xml-rpc-%2B-servlet-api-2.4.jar-%3D-javax-not-found--tp18250354p18250354.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 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: How to get the path of local repository in pom.xml?

2008-07-02 Thread Timothy Reilly

 [Vickey  wrote:]
 I wonder how to refer to the path of local repository with a 
 ${} variable in the pom.xml?
 --

Try settings.localRepository

http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide

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



Any workaround for MANTRUN-68 Classworlds spaces in URI

2008-07-02 Thread Timothy Reilly
I'm running into the issue documented here. 
http://jira.codehaus.org/browse/MANTRUN-68

Actually I'm hitting it from maven-plugin-tools-ant.

Can anyone tell me if they have worked around this (without patching ant
to take an invalid uri.)
It seems to be fixed in Embedded 2.1 but I don't see how. If anyone
knows what fixed it and if I can force dependency or something it would
be much appreciated?


=
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at
org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)

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



Re: Proper Dependency Management - HowTo?

2008-07-02 Thread Michael McCallum
On Thu, 03 Jul 2008 00:44:20 Peter Horlock wrote:
 Could you be a bit more precise? (Just make it plain simple, this increases
 the chance that I get it! ;-)
I suppose

The things i do
1) parent version are always release versions

2) all depedencies are always release versions

3) release often

4) use version ranges to manage the contracts
e.g. 
project.api = 1.x
project.implementation uses api.[1,2-!)
project.consumer uses api.[1,2-!)
project.deployable uses implementation.[1,2-!) and consumer.[1,2-!)
obviously in the real world things aren't this simple and for simple cases 
this seems like excessive overhead

5) when ever you make a breaking change increment the major version

6) start version numbering 1.1 for new artifacts
 * makes ranges work better
 * who needs the extra .0 on the end, i save that for patches

7) in order to integrate 3p libraries i create a wrapping pom which follows 
the above version rules 
e.g.
for hibernate i have
hibernate.composite 7.x uses hibernate 3.2.6ga, uses ehcache 3.0, uses 
cglib... excludes commons-logging, excludes ehcache, excludes cglib-full
and all my projects the use hibernate use hibernate.composite.[7,8-!)
8) use mvn dependency:resolve and mvn depedendency:tree regularly to 
understand how things are working and to catch any transitions that i did not 
expect
9) set up aliases 
alias mvnsrc='mvn dependency:sources'
alias mvntag='mvn release:prepare -Penforce-no-snapshots'
alias mvntree='mvn dependency:tree'
alias mvnup='mvn release:perform -Dgoals=deploy'
alias mvndep='mvn dependency:resolve'
10) use the enforcer to ensure releases don't contain snapshots make sure to 
traverse transitions
11) don't mix inheritance and aggregation. that means a parent pom NEVER ever 
has modules, if you think about the concept for a minute - or longer - there 
will be a moment of enlightenment
12) set up parents that define plugins for particular types of projects i.e. 
webapps, jars, parents, 
13) define repositories in settings.xml, been meaning patch the settings 
resolver to load profiles from a directory so that i can source control the 
repositories for different projects independency
14) keep all artifacts granular to simplify resolution trees and isolate 
change
15) use the m2eclipse plugin so that deps work properly (or equivalent plugin 
for other ide of choice)
16) DONT use the same output folders for eclipse and for maven as eclipse 
instruments classes and it will break things
17) regularly refactor at the artifact level not just code level

Simple enough? I might diverge from common practise in some places but I'm 
pretty sure from watching the lists that I have way fewer problems as a 
result ;-)

-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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



[ANN] Maven Site Plugin 2.0-beta-7 Released

2008-07-02 Thread Dennis Lundberg

The Maven team is pleased to announce the release of the Maven Site
Plugin, version 2.0-beta-7

The Maven 2 Site plugin is used to generate a site for the project. The
generated site also includes the project's report distributions that was
configured in the reporting section of the pom.

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

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

plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-site-plugin/artifactId
 version2.0-beta-7/version
/plugin

Release Notes - Maven 2.x Site Plugin - Version 2.0-beta-7


** Bug
* [MSITE-25] - mvn site:deploy and site:stage-deploy ignores server
configuration in settings.xml
* [MSITE-143] - SCP works for deploy goal, but not for site-deploy
* [MSITE-174] - Default bundle used not correct
* [MSITE-211] - Can't deploy site using site:deploy due to a
ProxyHTTP error
* [MSITE-262] - site.xml not inherited if build run from parent
* [MSITE-270] - site.xml: menus inherited that should not
* [MSITE-271] - Page title reads Introduction to $project.name
* [MSITE-274] - space/newline added after added after anchor, link,
bold, italic and monospaced tags
* [MSITE-304] - site:stage-deploy creates different directory
structure than site:site
* [MSITE-313] - Use proper file encoding when storing site
descriptor in local repo
* [MSITE-316] - Broken links to submodules when staging site
* [MSITE-317] - User proper encoding when interpolating site descriptor
* [MSITE-341] - 'nonProxyHosts' element is not handled when we
deploy a site

** Improvement
* [MSITE-199] - Add publishDate position none
* [MSITE-280] - Fix FAQ entry about staging
* [MSITE-281] - Employ consistent typesetting/formatting
* [MSITE-290] - Move logic from AbstractSiteMojo and
AbstractSiteRenderingMojo for Doxia related stuff
* [MSITE-292] - Swedish translation for the site
* [MSITE-303] - Discard invalid characters from directory name
generated for staging site
* [MSITE-314] - use ${project.build.sourceEncoding} as default
value for inputEncoding parameter

** New Feature
* [MSITE-212] - Catalan Language
* [MSITE-251] - tr locale support
* [MSITE-328] - Danish internationalization properties file

** Task
* [MSITE-327] - Use Doxia 1.0-alpha-11
* [MSITE-335] - Use maven-doxia-tools 1.0.1

Enjoy,

-The Maven team


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



Re: problem deploying an additional artifact with maven-deploy-plugin (deploy:deploy-file)

2008-07-02 Thread Chris Berry

I figured most of it out. The corrected POM snippet is below

I still have one final question; Is there a better way to write this  
line :


url$ 
{project.distributionManagement.snapshotRepository.url}/url


We should not have to be specific about which repo it is using.
And we should only have to set the varible in one place.
So there must be a better way to get the url element??

The  corrected POM snippet ::

   plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-deploy-plugin/artifactId
inheritedtrue/inherited
configuration
!-- do not create unique binaries for each  
snapshot --

uniqueVersionfalse/uniqueVersion
/configuration
executions
execution
phasedeploy/phase
goals
goaldeploy-file/goal
/goals
configuration
packagingjar/packaging
!-- the Jar is generated by the War, and  
so is down in the target webapp --

file
${project.build.directory}/$ 
{project.artifactId}-${project.version}/WEB-INF/lib/$ 
{project.artifactId}-${project.version}.jar

/file
repositoryIdcodehaus.org/repositoryId

!-- TODO :: this should not have to be  
specific --
url$ 
{project.distributionManagement.snapshotRepository.url}/url


pomFile
   ${basedir}/pom.xml
/pomFile
/configuration
/execution
/executions
/plugin


On Jul 2, 2008, at 9:52 PM, Chris Berry wrote:


Greetings,

I am generating several artifacts from my build; a WAR, a TAR.GZ,  
and a JAR -- as required by downstream usage scenarios (embedded,  
standalone, or webapp)


I am having trouble deploying the JAR properly. (Note: I had to add  
an install:install-file section to my POM to get the JAR deployed  
locally in the first place).
I have the project successfully generating  all three artifacts (it  
is a War project), and installing locally (mvn install). And I can  
build dependent projects properly using the locally deployed artifacts


But when deploying the JAR remotely -- during the deploy phase --  
the maven-deploy-plugin  is overwriting my POM with a bogus one (see  
below) which consists only of project basics; id, version, etc. - no  
dependencies. This happens during the deploy:deploy-file phase for  
the JAR. (See the POM snippet  below). The generated bogus POM   
causes downstream dependencies to fail during  compilation.


I tried setting the generatePOM element to false, but it throws an  
NPE (See below). Does this work?
I do not know how to set the pomFile  element. Is there a variable  
available for the POM file??  e.g. ${project.pom} ?? Or even a  
variable available for the local repository - so I could point at  
the file? e.g. {maven.local.repo} ??


I must be messing up the wiring?? But Google Univ. isn't giving me  
any leads. ;-)


Anyone have any clues for me??
Thanks,
-- Chris

The snippet from my POM::

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-deploy-plugin/artifactId
inheritedtrue/inherited
configuration
!-- do not create unique binaries for each  
snapshot --

uniqueVersionfalse/uniqueVersion
/configuration
executions
execution
phasedeploy/phase
goals
goaldeploy-file/goal
/goals
configuration
packagingjar/packaging
artifactId${project.artifactId}/ 
artifactId

groupId${project.groupId}/groupId
version${project.version}/version
file
${project.build.directory}/$ 
{project.artifactId}-${project.version}/WEB-INF/lib/$ 
{project.artifactId}-${project.version}.jar

/file
repositoryIdcodehaus.org/repositoryId
urldav:https://dav.codehaus.org/snapshots.repository/atomserver/ 
/url

!-- generatePomfalse/generatePom --
!-- pomFile${project.pom}/pomFile --
/configuration
/execution
/executions
/plugin

The bogus (empty) generated POM

project

Re: filtering java sources

2008-07-02 Thread Stephen Connolly
Don't filter the sources... have a resource file and just get the
source code to read from the resource file.

On Wed, Jul 2, 2008 at 3:58 PM, Henri Gomez [EMAIL PROTECTED] wrote:
 Hi to all,

 I'm trying to filter some of my java source file before compile phase.

 public interface DefaultProps {

public static final String NAME = 
 ${pom.artifactId};
public static final String VERSION  = 
 ${pom.version};
 }


 maven-resources-plugin is only for resource (non code).

 How could we do this ?

 Regards

 -
 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: filtering java sources

2008-07-02 Thread Olivier Lamy
Or you can have a look at http://maven.apache.org/shared/maven-runtime/ .

The method [1] will help you . The returned bean
MavenProjectProperties has a method called getVersion() .

--
Olivier

[1] 
http://maven.apache.org/shared/maven-runtime/apidocs/org/apache/maven/shared/runtime/MavenRuntime.html#getProjectProperties(java.lang.Class)
.

[2] 
http://maven.apache.org/shared/maven-runtime/apidocs/org/apache/maven/shared/runtime/MavenProjectProperties.html

2008/7/3 Stephen Connolly [EMAIL PROTECTED]:
 Don't filter the sources... have a resource file and just get the
 source code to read from the resource file.

 On Wed, Jul 2, 2008 at 3:58 PM, Henri Gomez [EMAIL PROTECTED] wrote:
 Hi to all,

 I'm trying to filter some of my java source file before compile phase.

 public interface DefaultProps {

public static final String NAME = 
 ${pom.artifactId};
public static final String VERSION  = 
 ${pom.version};
 }


 maven-resources-plugin is only for resource (non code).

 How could we do this ?

 Regards

 -
 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]



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