Re: How to customize eclipse project files with maven-eclipse-plugin

2008-07-10 Thread Julien Giovaresco

Thanks,

I totally miss this web page !

Regards,
Julien

Eugene Kuleshov a écrit :

  You can specify content of the additional config files or copy them from a
specified location. See plugin documentation at
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html#additionalConfig

  regards,
  Eugene


Julien Giovaresco wrote:
  
I've searched on the web and through the mailing list, but I didn't find 
a way to add lines in the eclipse project files.

I'd like to add lines in 2 files :
- "org.eclipse.jdt.core.prefs" (such as 
"org.eclipse.jdt.core.formatter.align_type_members_on_columns=false" )

- "org.eclipse.jdt.ui.prefs" (such as "sp_cleanup.organize_imports=true").

Is there a means to add new lines in these files or maybe tell the 
plugin to use specific files ?





  



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



Re: error !!!

2008-07-10 Thread Wendy Smoak
On Thu, Jul 10, 2008 at 10:43 PM, nikhil123 <[EMAIL PROTECTED]> wrote:
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
> plugin/2.2/maven-clean-plugin-2.2.pom
...
> [INFO] Failed to resolve artifact.

Not a lot to go on here, but the usual problem is that you're behind
an http proxy and haven't told Maven about it.  Is that the case?

-- 
Wendy

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



error !!!

2008-07-10 Thread nikhil123

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\GURt0753>mvn clean install
[INFO] Scanning for projects...
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [clean, install]
[INFO]

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.2/maven-clean-plugin-2.2.pom
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.2/maven-clean-plugin-2.2.pom
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-clean-plugin
Version: 2.2

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-clean-plugin:pom:2.2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO]

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

[INFO] Total time: 44 seconds
[INFO] Finished at: Fri Jul 11 11:08:54 IST 2008
[INFO] Final Memory: 1M/2M
[INFO]
---




i think ther is a problem downloadingthe plugins . how can i fix it
-- 
View this message in context: 
http://www.nabble.com/error-%21%21%21-tp18397193p18397193.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: getting started ......

2008-07-10 Thread Wendy Smoak
On Thu, Jul 10, 2008 at 10:10 PM, nikhil123 <[EMAIL PROTECTED]> wrote:
>
> whats the diff between mvn --version and maven --v?
> in my comp mvn --version works but not maven -v

'mvn -v' and 'mvn --version' should do the same thing, with Maven 2.

'maven' was used for the prior version, Maven 1.x, which you may not
even have installed.

-- 
Wendy

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



error !!!

2008-07-10 Thread nikhil123

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\GURt0753>mvn clean install
[INFO] Scanning for projects...
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [clean, install]
[INFO]

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.2/maven-clean-plugin-2.2.pom
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.2/maven-clean-plugin-2.2.pom
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-clean-plugin
Version: 2.2

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-clean-plugin:pom:2.2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO]

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

[INFO] Total time: 44 seconds
[INFO] Finished at: Fri Jul 11 11:08:54 IST 2008
[INFO] Final Memory: 1M/2M
[INFO]
---




i think ther is a problem downloadingthe plugins . how can i fix it
-- 
View this message in context: 
http://www.nabble.com/error-%21%21%21-tp18397148p18397148.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]



getting started ......

2008-07-10 Thread nikhil123

whats the diff between mvn --version and maven --v? 

in my comp mvn --version works but not maven -v
-- 
View this message in context: 
http://www.nabble.com/getting-started-..-tp18396875p18396875.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]



Including non-standard named artifacts

2008-07-10 Thread Brian Albers
Maven gurus-

I'm running into a problem which seems like it should be simple, but
I've had no luck in solving it with various Maven plugins.

In a nutshell, I'm trying to use the assembly plugin to produce a .zip
file for my project, and as part of this I wish to include a full,
expanded version of Apache ActiveMQ. In particular, I'm trying to
include the version assembled by the ActiveMQ Maven and located in the
central repository at:
  http://repo1.maven.org/maven2/org/apache/activemq/apache-activemq/5.1.0/

The catch is that I'm trying to include the fully-contained Windows
ZIP file ( apache-activemq-5.1.0-bin.zip ), and I have not found a way
to declare a dependency on it since it has been assembled end in
"-bin.zip" rather than ".zip". I figured that if I could declare a
dependency on it, I could use a few different options to extract it
into my own assembly. However, I haven't been able to configure Maven
to locate the .zip I want because of its name.

Is there a way to declare a dependency on that specific .zip? Or am I
going at this entirely the wrong way.

Thanks in advance!

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



Re: How to customize eclipse project files with maven-eclipse-plugin

2008-07-10 Thread Eugene Kuleshov


  You can specify content of the additional config files or copy them from a
specified location. See plugin documentation at
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html#additionalConfig

  regards,
  Eugene


Julien Giovaresco wrote:
> 
> I've searched on the web and through the mailing list, but I didn't find 
> a way to add lines in the eclipse project files.
> I'd like to add lines in 2 files :
> - "org.eclipse.jdt.core.prefs" (such as 
> "org.eclipse.jdt.core.formatter.align_type_members_on_columns=false" )
> - "org.eclipse.jdt.ui.prefs" (such as "sp_cleanup.organize_imports=true").
> 
> Is there a means to add new lines in these files or maybe tell the 
> plugin to use specific files ?
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-customize-eclipse-project-files-with-maven-eclipse-plugin-tp18376486p18395863.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]



Assembly plugin Unpack dependency source for compile

2008-07-10 Thread Clifton

I jsut read and re-read the docs on the Assembly plugin. It looks like just
the thing I need but I have one problem. I can't figure out which features
to use to do what I need. I need to unpack the source of
runtime-dependencies into a specified directory. The dependencies in
question already have source classified archives in our internal repo. I
know there's a simple way to do this I'm just too overwhelemd with all of
the docs and examples almost getting to the point but missing it. This is
what I have so far:

maven-assembly-plugin
2.2-beta-2


   mobileshared
   com.mapquest.mobile.shared
   1.7-SNAPSHOT




unpack-dependencies
generate-sources
unpack

zip

   
src/main/resources/assembly.xml





and my assembly.xml located under src/main/resources/assembly.xml:


  

  runtime
  gensrc
  true

  


The working dir is populated with all dependency extracts but I don't get
anything in my gensrc folder. What am I doing wrong?

-
Cliff
http://codeforfun.wordpress.com
http://www.nabble.com/file/u156847/Cliff-in-the-lab.png 
-- 
View this message in context: 
http://www.nabble.com/Assembly-plugin-Unpack-dependency-source-for-compile-tp18395851p18395851.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]



[m2] Incremental build for self-developed src generation mojo

2008-07-10 Thread Adrian Shum
Dear all,
 
Is there any reference for how to do incremental build in self-developed
mojo?
 
We have developed a mojo in our company that will perform source
generation
base on annotations in our source files.  It seems that generation
happens
 everytime I run mvn install, no matter the original source file is
updated or 
not.  Is there any way I can 'detect' the file is dirty so that I do can
skip the
generation if it is not modified?
 
Or I gotta do it by handcraft: storing the information somewhere for
subsequent
build, or inspect the previously generated files to compare the
timestamp to decide
whether to do the generation?
 
Thanks a lot  :)
 
Adrian
 


This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Taifook 
Securities Group, its group companies and their content providers ("Parties") 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parties do not accept 
liability for any damage caused by this email.




Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-10 Thread David Brown
Hello Pedro, I'm not sure by your statements if you are using a HOT deploy or 
not. In the case you are using a hot deploy try using an exploded war under 
server/default/deploy and see if you see any difference. The JSPs are compiled 
by the container once they are invoked at the browser. As an experiment: create 
a second virtual JBoss (4.2.1/4.2.2) server on a port like 8989 that deploys a 
single JSP and see if you can get it to recompile. There are instructions int 
the JBoss /examples directory on how to do this. HTH, David.
Pedro Viegas wrote ..
> Hi all,
> 
> I've been trying to build an environment for developing web applications
> that generate WAR files with a productive debug/development process.
> I'm using JBoss as the application server. Tomcat is a no go and Jetty has
> issues with some bytecode APIs I use.
> 
> All is working fine in the traditional way. I package the WAR, deploy it to
> the server with the cargo plugin and test it.
> Through JBoss Eclipse Plugin I have debug and hotcode replacement for java
> classes, BUT not for JSPs!
> How can I make JBoss aware of JSP/CSS/JS changes?
> 
> I have seen a bunch of examples for Tomcat and Jetty to indicate a path to
> the webapp folder.
> For JBoss the only solution so far has always included building an exploded
> WAR somewhere and point JBoss deploy URLs to it so it deploys them.
> Even the solution of using the war:inplace is not functional since JBoss
> deployer only scans WAR/JAR/EAR/etc files. A directory like
> "src/main/webapp" is simply ignored.
> 
> All I wanted to do was deploy the application through Maven a Eclipse
> lanched debug JBoss instance and be able to change my JSP files and refresh
> them on the browser.
> As anyone been able to do this?
> 
> Thanks,
> 
> -- 
> Pedro Viegas
> 
> 
> Walking on water and developing software
> from a specification are easy if both are
> frozen.
> - Edward V. Berard
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: Archetype sample for multi-projects

2008-07-10 Thread Lee Meador
You might look at the AppFuse archetype. Something in the back of my head
tells me there are multiple projects in there somehow.

https://appfuse.dev.java.net/servlets/NewsItemView?newsItemID=5991

-- lee

On Thu, Jul 10, 2008 at 6:17 PM, Wendy Smoak <[EMAIL PROTECTED]> wrote:

> On Thu, Jul 10, 2008 at 10:18 AM, s[e]th & h[o]lth <[EMAIL PROTECTED]>
> wrote:
>
> > Since monday i'm trying to build a multi-projects archetype without
> > success...
>
> The first version of the Archetype plugin didn't support creating
> multi-module projects with a single command.  I'm interested to know
> whether the new version does.  Last time I checked, the archetype
> bundles hadn't been added back to trunk so the only examples I know of
> are the old ones on the branch, and all of those are necessarily
> single module.
>
> What happens if you try archetype:create-from-project on an existing
> multi-module project?
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Archetype sample for multi-projects

2008-07-10 Thread Wendy Smoak
On Thu, Jul 10, 2008 at 10:18 AM, s[e]th & h[o]lth <[EMAIL PROTECTED]> wrote:

> Since monday i'm trying to build a multi-projects archetype without
> success...

The first version of the Archetype plugin didn't support creating
multi-module projects with a single command.  I'm interested to know
whether the new version does.  Last time I checked, the archetype
bundles hadn't been added back to trunk so the only examples I know of
are the old ones on the branch, and all of those are necessarily
single module.

What happens if you try archetype:create-from-project on an existing
multi-module project?

-- 
Wendy

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



Re: How to stop maven from assembling war file

2008-07-10 Thread Lee Meador
You could let maven generate its own WAR but configure to put it somewhere
out of the way. You ignore this WAR file and use the one your tool
generates.

-- Lee

On Thu, Jul 3, 2008 at 11:34 AM, Sebastien Hadjifotis <[EMAIL PROTECTED]>
wrote:

> Hi James,
>
> Not possible to use mavens war plugin, as an external tool (Portlet
> Factory) is creating the war file.
> I need the packaging type to remain as war. This is  to ensure maven
> correctly performs the install operation into the repository, as well as
> the use of release plugin.
> So I really need to be able to turn off maven performing any compiling java
> files and assembling the war.
>
> Cheers,
> Sebastien Hadjifotis
>
>
>
> James William
> Dumay
> <[EMAIL PROTECTED]  To
> com>  "Maven Users List"
>   
> 03/07/2008 11:03   cc
> PM
>   Subject
>   Re: How to stop maven from
> Please respond to assembling war file
>   "Maven Users
>   List"
> <[EMAIL PROTECTED]
>  he.org>
>
>
>
>
>
>
> Sebastien,
> I'm not sure you can do that. You *could* try to change the packaging
> of your project from "war" to "jar" and see if that helps (But good
> luck with that).
>
> Id highly suggest that you use the maven war plugin.
>
> Cheers
> James
>
> On 03/07/2008, at 1:27 PM, Sebastien Hadjifotis wrote:
>
> >
> > Hello,
> >
> > I am using maven ant task that runs a tool to generate a war file.
> > This works fine. My issue is howdo Itell maven to not try to build
> > the war
> > file iteself using the war plugin?
> >
> > Cheers,
> > Sebastien Hadjifotis
> >
> >
> > -
> > 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]
>
>


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


Re: How to deploy a Flex library (swc)

2008-07-10 Thread Jeff MAURY
What is the message generated by Maven ?

Jeff


On Thu, Jul 10, 2008 at 11:33 PM, Rémy Sanlaville <[EMAIL PROTECTED]>
wrote:

> Yes it's true we have test it but I am not comfortable by the fact mvn
> validate complains.
> We want to can check that the pom is valid before to deploy it.
>
> Rémy
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal


Accessing artifact Final name in assembly plugin.

2008-07-10 Thread Kallin Nagelberg
Hi,

I'm using a dependency set in an assembly of mine using the following
config:



false
/


group:artifact1
group:artifact1
group:artifact1




I would like the artifacts to have the output name of whatever their
'finalName' was when they were built.
I understand the default outputFileName mapping is governed by the
following:
${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}
Looking at the Artifact API, I don't see a way to access the POM of that
artifact, or the finalName directly.

I guess what I can do is create a new dependency set for each one and
declare the output name thrice, but that doesn't seem so clean.

Any ideas?


Re: How to deploy a Flex library (swc)

2008-07-10 Thread Rémy Sanlaville
Yes it's true we have test it but I am not comfortable by the fact mvn
validate complains.
We want to can check that the pom is valid before to deploy it.

Rémy


Re: Does the maven version prerequisite only apply to plugins, or not?

2008-07-10 Thread Arnaud HERITIER
What I understood about this element :
- it's not inherited, you have to define it in all modules
- for any project/module, maven checks before to build if its own version is
greater than the one in the prerequisite
- for plugins, this value is also used in the update mechanism to check the
compatibility.

Arnaud

On Thu, Jul 10, 2008 at 7:01 PM, Wendy Smoak <[EMAIL PROTECTED]> wrote:

> In the model [1], the  element is described as:
>
> prerequisites - Describes the prerequisites a project can have.
>
> Element Description
> maven   The minimum version of Maven required to build the
> project, or to use this plugin.
>
> I thought this *only* applied to plugins, and seem to recall a recent
> commit where someone removed it from a non-plugin build.  (Not that I
> can find it now...)
>
> The description implies that it also applies to generic projects.
> Which is correct?
>
> [1]
> http://maven.apache.org/ref/2.0.9/maven-model/maven.html#class_prerequisites
>
> Thanks,
> Wendy
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


default-skin not found from central?

2008-07-10 Thread Zemian Deng
Hi,

I received this error when trying mvn site:stage on my project:

INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] The skin does not exist: Unable to locate resource in repository

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.skins
-DartifactId=maven-default-skin -Dversion=1.0 -Dpackaging=jar
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.skins
-DartifactId=maven-default-skin -Dversion=1.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.apache.maven.skins:maven-default-skin:jar:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


but the central repo from
http://repo1.maven.org/maven2/org/apache/maven/skins/maven-default-skin/1.0/
does exists, so what is the error mean?

Thanks,
-Z
-- 
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala

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



Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-10 Thread Siarhei Dudzin
What's wrong with JBoss Tools? We use maven-eclipse-plugin + JBoss Tools,
works well so far...

Siarhei

On Thu, Jul 10, 2008 at 7:37 PM, Pedro Viegas <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I've been trying to build an environment for developing web applications
> that generate WAR files with a productive debug/development process.
> I'm using JBoss as the application server. Tomcat is a no go and Jetty has
> issues with some bytecode APIs I use.
>
> All is working fine in the traditional way. I package the WAR, deploy it to
> the server with the cargo plugin and test it.
> Through JBoss Eclipse Plugin I have debug and hotcode replacement for java
> classes, BUT not for JSPs!
> How can I make JBoss aware of JSP/CSS/JS changes?
>
> I have seen a bunch of examples for Tomcat and Jetty to indicate a path to
> the webapp folder.
> For JBoss the only solution so far has always included building an exploded
> WAR somewhere and point JBoss deploy URLs to it so it deploys them.
> Even the solution of using the war:inplace is not functional since JBoss
> deployer only scans WAR/JAR/EAR/etc files. A directory like
> "src/main/webapp" is simply ignored.
>
> All I wanted to do was deploy the application through Maven a Eclipse
> lanched debug JBoss instance and be able to change my JSP files and refresh
> them on the browser.
> As anyone been able to do this?
>
> Thanks,
>
> --
> Pedro Viegas
>
> 
> Walking on water and developing software
> from a specification are easy if both are
> frozen.
> - Edward V. Berard
>


Re: How to deploy a Flex library (swc)

2008-07-10 Thread Jeff MAURY
If I remember correctly, if you assign the swc packaging to your pom, then
the deploy plugin will deploy it to the repository.

Jeff MAURY

On Thu, Jul 10, 2008 at 6:43 PM, Rémy Sanlaville <[EMAIL PROTECTED]>
wrote:

> Yes I know but my problem is not how to create the flex library but how to
> deploy it with the maven-deploy-plugin to a repository.
>
> I would like to know what is the best practice for the pom's packaging
> node.
>
> Regards,
>
> Rémy
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal


Newbie problem with Geronimo / war

2008-07-10 Thread CLIFFORD HAYDEN
Hi,
I am porting an existing application into maven2 and have not had much 
luck with it.  The target platform is IBM WAS CE 1.1.1, which is based on 
Geronimo.  I am doing all of my maven work using Q for Eclipse, but have 
tried the entire process with the command line, too.

I have resolved all of my (somewhat complex) dependencies in the pom, but 
when the built war is deployed I get java.lang.ClassCastException: 
org.apache.struts.action.ActionServlet incompatible with 
javax.servlet.Servlet.

I would deeply appreciate some help identifying what I did wrong.

Here is the pom:
http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
4.0.0
MyAppWeb
MyAppWeb
war
1.0-SNAPSHOT
MyAppWeb Maven Webapp
http://maven.apache.org


junit
junit
3.8.1
test


org.apache.geronimo.specs
geronimo-j2ee_1.4_spec
1.1
provided


antlr
antlr
2.7.2
compile


avalon-logkit
avalon-logkit
2.1
compile


bsf
bsf
2.3.0
compile


commons-beanutils
commons-beanutils
1.7.0
compile


commons-chain
commons-chain
1.1
compile


commons-collections
commons-collections
3.1
compile


commons-digester
commons-digester
1.8
compile


commons-fileupload
commons-fileupload
1.1.1
compile


commons-io
commons-io
1.1
compile


commons-lang
commons-lang
2.1
compile


commons-logging
commons-logging
1.0.4
compile


commons-validator
commons-validator
1.3.1
compile


org.dbunit
dbunit
2.2
test


log4j
log4j
1.2.14
compile


jdom
jdom
1.0
compile


javax.servlet
jstl
1.0.2
provided


oro
oro
2.0.8
compile


taglibs
standard
1.0.2
compile


org.apache.struts
struts-core
1.3.8
compile


org.apache.struts
struts-taglib
1.3.8
compile


org.apache.velocity
velocity
1.5
compile


werken-xpath
werken-xpath
0.9.4
compile


 

Iterating a build based on activated profiles

2008-07-10 Thread Balasubramanian, Ravi Shankar
Hi all, 
I am facing a situation where i need to iterate through (or build ) the
same maven projects depending upon the list of active profiles. To be
precise, we run some tests (testNG through the maven surefire plugin)
against a database and i need a way to run the tests against different
databases based on the list of active profiles or through some other
mechanism. I tried having a seperate maven profile for each database
type and pointing to a different properties file in each profile. But i
still could not get to the point where i can iterate through the build
(or run the tests) depending upon the list of active profiles.
 
Precisely, i want to have a setup similar to the following:
 
mvn -Pmysql test   &  mvn -Poracle test - should run the tests against a
mysql database and an oracle database respectively(which i could do ) 
 
mvn -Pmysql,oracle test - This should run the tests against both mysql
and oracle for which i need a solution. 
 
Can somebody suggest something for this ? 
 
PS: I dont want to change the number of mvn commands that i issue. The
build machine always runs "mvn test" once and we provide a list of
active profiles depending on the requirement. 
 
Regards,
Ravi 


How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-10 Thread Pedro Viegas
Hi all,

I've been trying to build an environment for developing web applications
that generate WAR files with a productive debug/development process.
I'm using JBoss as the application server. Tomcat is a no go and Jetty has
issues with some bytecode APIs I use.

All is working fine in the traditional way. I package the WAR, deploy it to
the server with the cargo plugin and test it.
Through JBoss Eclipse Plugin I have debug and hotcode replacement for java
classes, BUT not for JSPs!
How can I make JBoss aware of JSP/CSS/JS changes?

I have seen a bunch of examples for Tomcat and Jetty to indicate a path to
the webapp folder.
For JBoss the only solution so far has always included building an exploded
WAR somewhere and point JBoss deploy URLs to it so it deploys them.
Even the solution of using the war:inplace is not functional since JBoss
deployer only scans WAR/JAR/EAR/etc files. A directory like
"src/main/webapp" is simply ignored.

All I wanted to do was deploy the application through Maven a Eclipse
lanched debug JBoss instance and be able to change my JSP files and refresh
them on the browser.
As anyone been able to do this?

Thanks,

-- 
Pedro Viegas


Walking on water and developing software
from a specification are easy if both are
frozen.
- Edward V. Berard


Archetype sample for multi-projects

2008-07-10 Thread s[e]th & h[o]lth
Hello,

Since monday i'm trying to build a multi-projects archetype without
success...
I tried many differents way to do it but i didn't reach this goal :x
- I tried by myself after reading the (poor ?) documentation on the website
- I tried using some sample (like j2ee archetype but there is no java
classes in the subprojects)
- I tried using archetype:create-from-project with not result

If someone can send me an example with a pom parent and at least one
subproject with some java classes inside that can be package "relocatable"
with a -Dpackage option when using "mvn archetype:create" it would be GREAT
! :)

Thank you very much !


Does the maven version prerequisite only apply to plugins, or not?

2008-07-10 Thread Wendy Smoak
In the model [1], the  element is described as:

prerequisites - Describes the prerequisites a project can have.

Element Description
maven   The minimum version of Maven required to build the
project, or to use this plugin.

I thought this *only* applied to plugins, and seem to recall a recent
commit where someone removed it from a non-plugin build.  (Not that I
can find it now...)

The description implies that it also applies to generic projects.
Which is correct?

[1] http://maven.apache.org/ref/2.0.9/maven-model/maven.html#class_prerequisites

Thanks,
Wendy

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



Re: How to deploy a Flex library (swc)

2008-07-10 Thread Rémy Sanlaville
Yes I know but my problem is not how to create the flex library but how to
deploy it with the maven-deploy-plugin to a repository.

I would like to know what is the best practice for the pom's packaging node.

Regards,

Rémy


Re: [Maven2] - exluding some source files from a war

2008-07-10 Thread Geoffrey Wiseman
On Thu, Jul 10, 2008 at 10:51 AM, Jörg Schaible <
[EMAIL PROTECTED]> wrote:

> You can do this in the same POM. Simply execute the jar plugin (also with
> includes), attach it to the package phase, but configure the resulting
> artifact with a classifier.
>

Although it wouldn't hurt to note that this would typically be accomplished
using a multi-module buld in Maven.

  - Geoffrey
-- 
Geoffrey Wiseman


RE: [Maven2] - exluding some source files from a war

2008-07-10 Thread Jörg Schaible
Hi Jan,

Jan Verstuyft wrote:
> Hello,
> 
> I'm getting started to use maven2, but we have still some problems.
> One of them occurs in the following situation:
> 
> We have a project with in the src folder the following structure:
> src\com\clarify\... src\com\ideal\...
> 
> the old ant scripts compiles both of them, but put the com\clarify
> packages in the WEB-INF\classes folder and the com\ideal packages in a
> jar file and in the lib folder.
> 
> I've already made a pom file that delivers a war file, but with the
> both packages in the WEB-INF\classes folder.

Yes, you can, see the configuration of the war file, it has excludes. The 
pattern matches the files in target/classes though.

> Now is my question, can I exclude the ideal package of being compile
> and added to tho WEB-INF\classes folder.  i will make another pom
> file for the ideal packages. 

You can do this in the same POM. Simply execute the jar plugin (also with 
includes), attach it to the package phase, but configure the resulting artifact 
with a classifier.

- Jörg

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



question about scm:tag

2008-07-10 Thread sachin . x . mahajan
Hi,

I am using scm:tag to create tag. 
I am running this command

maven scm:tag -Dmaven.scm.tag=RELEASE_121 -Dmaven.scm.message=jiranumber 
-Dmaven.scm.username=xyz -Dmaven.scm.password=xyz

This command is failing due to pre-commit hook. We have a pre-commit hook 
to add jira number as a comment while tagging. 
For some reason the jiranumber -Dmaven.scm.message=jiranumber is not 
appearing in the final command. Is this ignored?

Command line: svn --username xyz --password xyz --non-interactive copy 
--file C:\DOCUME~1\D137242\LOCALS~1\Temp\maven-scm-1608315512.commit . 
http://.RELEASE_121


I am using following version.
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2


Not sure if it was delivered last time. 



Thanks,
Sachin Mahajan
 
IB - EIS Instrument and Static Data ( GDP: 308 2611 * Group Email: IB - 
EIS Instrument and Static Data 
( Direct Line: +91 22 3085 2611 * External Email: 
[EMAIL PROTECTED] § EIS Wiki 
Post: 11th Floor, Prizm Towers – B wing, Mind Space, Malad (West), Mumbai 
- 400064

-
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.

[Maven2] - exluding some source files from a war

2008-07-10 Thread Jan Verstuyft
Hello,

I'm getting started to use maven2, but we have still some problems.
One of them occurs in the following situation:

We have a project with in the src folder the following structure:
src\com\clarify\...
src\com\ideal\...

the old ant scripts compiles both of them, but put the com\clarify
packages in the WEB-INF\classes folder and the com\ideal packages in a
jar file and in the lib folder.

I've already made a pom file that delivers a war file, but with the
both packages in the WEB-INF\classes folder.
Now is my question, can I exclude the ideal package of being compile
and added to tho WEB-INF\classes folder.  i will make another pom file
for the ideal packages.

Kind Regards

Jan Verstuyft

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



How to include exe dependency in war distribution?

2008-07-10 Thread monika7

I have a  project that needs to include a shell script and C executable in
the war file. The C program is compiled into an executable in separate
(parallel) project using native-maven-plugin and deployed to local
repository. I have the executable included as runtime dependency in my war
project pom.xml


bmd
bmd
1
exe
runtime


If I run mvn package command, the executable is not included in the war
file.

As a workaround solution, I have added explicit declaration for
maven-war-plugin


org.apache.maven.plugins
maven-war-plugin
2.0.2



WEB-INF/classes

${basedir}/../bmd/target


bmd.exe






That works except for one problem. The executable permission (x) of the
original bmd.exe are stripped (the file has only rw). Same happens for a
shell script that I have in my resources directory of the war project. The
script is automatically copied to classes directory (during
process-resources phase), but also looses executable permissions.

BTW, I deploy this war file to a servlet engine during pre-integration-test
phase (using cargo plugin) so I need to make sure the permissions are set
correctly by the time the war is created.

Anybody has a suggestions how solve the problem?

Thanks,
Monika

-- 
View this message in context: 
http://www.nabble.com/How-to-include-exe-dependency-in-war-distribution--tp18382950p18382950.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: How to deploy a Flex library (swc)

2008-07-10 Thread Jeff MAURY
There are some Maven2 flex mojos out. You shoul look at them. The flex-mojos
(http://code.google.com/p/flex-mojos/) seems to be quite powerful.

Regards
Jeff MAURY

On Thu, Jul 10, 2008 at 1:41 PM, Rémy Sanlaville <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> I wonder how to deploy a Flex library (swc) in a repository.
>
> It does not exist the swc value for pom's packaging node (cf.
> http://maven.apache.org/maven-v4_0_0.xsd).
> So, if you indicate swc, mvn validate complains.
>
> One solution seems to indicate the pom value but I don't really like that
> because pom value is more for project with no artifact.
>
> The problem is similar for others libraries than jar,war or ear.
>
> Rémy
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal


How to deploy a Flex library (swc)

2008-07-10 Thread Rémy Sanlaville
Hi,

I wonder how to deploy a Flex library (swc) in a repository.

It does not exist the swc value for pom's packaging node (cf.
http://maven.apache.org/maven-v4_0_0.xsd).
So, if you indicate swc, mvn validate complains.

One solution seems to indicate the pom value but I don't really like that
because pom value is more for project with no artifact.

The problem is similar for others libraries than jar,war or ear.

Rémy


Release Plugin : handle broken builds

2008-07-10 Thread Baeriswyl Kuno - Extern (IT-BA-MV)
Hello!

What is common way to handle broken builds with Maven2, Release Plugin, 
Subversion and Maven Repository such as Artifactory or Archiva?

The versioning policy with m2 is defined like :

   - 

As a consequence, a possible build version sequence could as following:

  2.3-alpha-1
  2.3-beta-1
  2.3-beta-2
  2.3-beta-3
  2.3-rc-1
  2.3  => goes on production
  2.3.1   => bugfix release
  2.3.2   => bugfix release


What shall I do if a build brakes, e.g. 2.3-beta-2?

 * I can't increment the version to beta-3, because this release is planned 
with another deadline and content.

 * A version like 2.3-beta-2.1 doesn't work with current the Implementation of 
Maven versioning scheme : 
http://svn.apache.org/viewvc/maven/artifact/trunk/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java?view=markup

 * If I did a rollback with the release plugin, I could rebuild same version. 
However, the projects depending on this build wouldn't update to the fixed the 
build, since maven dependency mecanisme doens't check stable releases for new 
updates, e.g. on mvn install.

Thanks for your feedback and sharing our experiences.

Kuno








Re: copy artifacts between repositories

2008-07-10 Thread Martin Monsorno
> Yes, the maven-stage-plugin:
> see http://maven.apache.org/plugins/maven-stage-plugin/

Thanks for your hint, Martin.

Sadly, the stage-plugin is broken with file://-targets 
(http://jira.codehaus.org/browse/MSTAGE-6) and a fixed version is not available 
by now.

Are there any workarounds? I tried to use the deploy plugin, but couldn't make 
it use the pom and deploy the dependent plugins too.

-- 
Martin


GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]

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