How to send argument to plugin

2008-10-23 Thread sean.chen(陈思淼)
I know We can use mvn XXX -DmyArg=XXX to send the argument to the plugin.but
how can I get it in my plugin?


Module gives ClassNotFoundError when clean installing from parent pom

2008-10-23 Thread Vidar Moe
Hi!

 

I have a maven 2 issue I have not seen earlier, hopefully some of you have:

 

First a bit of module structure. My module structure looks like this:

 

common

bm_shcemas

bm_businessinterface

 

common holds the mother pom of bm_schemas and bm_businessinteface.

 

 

bm_businessinterface has a compile dependency to the bm_schemas module. If I
clean install these two modules separately, first bm_schemas, then
bm_businessinterface. Everything runs smoothly, and both install just fine.

 

But if I try to clean install from the common directory, I get ClassNotFound
/ Package Not Found Errors in bm_businessinterface. It misses classes from
bm_schemas. 

 

It looks like bm_schemas is built perfectly, and the jar copied to my m2
repo:

 

___

 

 

[INFO] Scanning for projects...

[INFO] Reactor build order: 

[INFO]   sb1-portal-modules-common-pom

[INFO]   bm_schemas

[INFO]   bm_businessinterface

[INFO]


[INFO] Building sb1-portal-modules-common-pom

[INFO]task-segment: [clean, install]

[INFO]


[INFO] [clean:clean]

[INFO] [site:attach-descriptor]

[INFO] [install:install]

[INFO] Installing C:\upgrade\portal\modules\common\pom.xml to C:\Documents
and
Settings\vidar.moe\.m2\repository\sb1-portal\sb1-portal-modules-common-pom\5
.0.0\sb1-portal-modules-common-pom-5.0.0.pom

[INFO] [dependency:copy {execution: copy-installed}]

[INFO] Configured Artifact:
sb1-portal:sb1-portal-modules-common-pom:5.0.0:pom

[INFO] Copying sb1-portal-modules-common-pom-5.0.0.pom to
C:\upgrade\portal\applications\sb1-portal-ear\EarContent\APP-INF\lib\sb1-por
tal-modules-common-pom-5.0.0.pom

[INFO]


[INFO] Building bm_schemas

..

 

stage:

   [delete] Deleting directory
C:\upgrade\portal\modules\common\bm_schemas\.staging

[mkdir] Created dir:
C:\upgrade\portal\modules\common\bm_schemas\.staging

 [copy] Copying 3189 files to
C:\upgrade\portal\modules\common\bm_schemas\.staging

 [copy] Copying 3101 files to
C:\upgrade\portal\modules\common\bm_schemas\.staging

 

archive:

  [zip] Building zip:
C:\upgrade\portal\modules\common\bm_schemas\bm_schemas.jar

[INFO] Executed tasks

[INFO] [install:install]

[INFO] Installing
C:\upgrade\portal\modules\common\bm_schemas\.\bm_schemas.jar to C:\Documents
and
Settings\vidar.moe\.m2\repository\sb1-portal\bm_schemas\5.0.0\bm_schemas-5.0
.0.jar

[INFO] [dependency:copy {execution: copy-installed}]

[INFO] Configured Artifact: sb1-portal:bm_schemas:5.0.0:workshopjar

[INFO] Copying bm_schemas-5.0.0.jar to
C:\upgrade\portal\applications\sb1-portal-ear\EarContent\APP-INF\lib\bm_sche
mas-5.0.0.jar

[INFO]


[INFO] Building bm_businessinterface

[INFO]task-segment: [clean, install]

[INFO]


[INFO] [clean:clean]

[INFO] Deleting directory
C:\upgrade\portal\modules\common\bm_businessinterface\target

[INFO] [resources:resources]

[INFO] Using default encoding to copy filtered resources.

[INFO] [compiler:compile]

[INFO] Compiling 22 source files to
C:\upgrade\portal\modules\common\bm_businessinterface\target\classes

[INFO]


[ERROR] BUILD FAILURE

[INFO]


[INFO] Compilation failure

 

C:/upgrade/portal/modules/common/bm_businessinterface/src/main/java/sb1/biz/
bm/filetransfer/businessinterface/IFiletransfer.java:[11,46] package
com.edb.cps.webservices.common.transvo does not exist

 

C:/upgrade/portal/modules/common/bm_businessinterface/src/main/java/sb1/biz/
bm/filetransfer/businessinterface/IFiletransfer.java:[12,46] package
com.edb.cps.webservices.common.transvo does not exist

 

C:/upgrade/portal/modules/common/bm_businessinterface/src/main/java/sb1/biz/
bm/filetransfer/businessinterface/IFiletransfer.java:[13,58] package
com.edb.cps.webservices.filearchive.common.transvo does not exist

 

C:/upgrade/portal/modules/common/bm_businessinterface/src/main/java/sb1/biz/
bm/filetransfer/businessinterface/IFiletransfer.java:[14,58] package
com.edb.cps.webservices.filearchive.common.transvo does not exist

 

___

 

But as you can see, I get errors for the bm_businessinterface module.

 

If I now go into bm_businessinterface and clean install just this module, it
successfully installs:

 

_

 

C:\upgrade\portal\modules\common\bm_businessinterfacemvn clean install

[INFO] Scanning for projects...

[INFO]


[INFO] Building bm_businessinterface

[INFO]task-segment: [clean, install]

[INFO]

Re: How to change workingDirectory for release:perform?

2008-10-23 Thread Anders Hammar

I've run into the same problem with specifying workingDirectory as a system
property on the command line. Couldn't find a jira filed by you (or anyone
else) so I created one:
http://jira.codehaus.org/browse/MRELEASE-382

Please update it regarding basedir also not being picked up!

/Anders

torsten.reinhard wrote:
 
 Hi, 
 
 any solution in sight? 
 I have exactly the same problem, using maven-release-plugin:2.0-beta-7
 
 C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-commonmvn 
 -Dbasedir=C:\Release -DworkingDirectory=C:\Release -X release:perform
 
 [DEBUG] Configuring mojo 
 'org.apache.maven.plugins:maven-release-plugin:2.0-beta-7:perform' --
 [DEBUG]   (s) basedir = 
 C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common
 [DEBUG]   (f) project = MavenProject: 
 com.gide.common:gide-common:3.2.0-SNAPSHOT @ 
 C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common\pom.xml
 [DEBUG]   (f) reactorProjects = [MavenProject: 
 com.gide.common:gide-common:3.2.0-SNAPSHOT @ 
 C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common\pom.xml]
 [DEBUG]   (f) scmCommentPrefix = [maven-release-plugin]
 [DEBUG]   (f) settings = [EMAIL PROTECTED]
 [DEBUG]   (f) useReleaseProfile = true
 [DEBUG]   (f) workingDirectory = 
 C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common\target\checkout
 [DEBUG] -- end configuration --
 [INFO] [release:perform]
 [INFO] Checking out the project to perform the release ...
 [DEBUG] viewName = 'reinhart-d167961-maven' ; configSpec = 'load 
 /pdv_cms/GDCAMS/src/gide-common'
 [DEBUG] executing checkout command...
 [DEBUG] Tag: gide-common-3.1.0
 [DEBUG] Running with CLEARCASE null
 [INFO] Executing: 
 C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common\targetcleartool
  
 mkview -snapshot -tag reinhart-d167961-maven-checkout -vws 
 \\d167961\kmdata\reinhart-d167961-maven-checkout.vws 
 C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common\target\checkout
 [ERROR] The cleartool command failed.
 [INFO] 
 
 [ERROR] BUILD FAILURE
 [INFO] 
 
 [INFO] Unable to checkout from SCM
 Provider message:
 The cleartool command failed.
 Command output:
 cleartool: Error: A view cannot be created under another view's storage 
 directory or snapshot view storage directory.
 
 [INFO] 
 
 [DEBUG] Trace
 org.apache.maven.BuildFailureException: Unable to checkout from SCM
 Provider message:
 The cleartool command failed.
 Command output:
 
 = The parameters -Dbasedir and -DworkingDirectory are not passed to the 
 plugin.
 
 thanx, Torsten
 

-- 
View this message in context: 
http://www.nabble.com/How-to-change-workingDirectory-for-release%3Aperform--tp15136167p20126145.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: Experience in maven-release-plugin using ClearCase SCM

2008-10-23 Thread Anders Hammar

Hi Torsten,

Found this old post. Any progress? I'm looking into this for a customer and
is working on some best practise for releasing with clearcase through Maven.
Have you tried working with branches?

/Anders


torsten.reinhard wrote:
 
 Hi, 
 
 I´m trying to establish our ReleaseBuild with the maven-release-plugin and 
 ClearCase (using Snapshot views)
 I´m using maven-release-plugin:2.0-beta-7
 
 The first Snapshotview (Developer SnapshotView) actually resides at
 
 C:\LocalViews\username_pcname_viewname\VOB_name\projectname
 
 In the pom.xml I have:
 
 ...
 scm
 !-- scm:checkout 
 -DcheckoutDirectory=C:\LocalViewsMaven\gide-common-view --
 connectionscm:clearcase:load 
 /pdv_cms/GDCAMS/src/gide-common/connection
 developerConnectionscm:clearcase:load 
 /pdv_cms/GDCAMS/src/gide-common/developerConnection
 tag/
 url/
 /scm 
 ...
 
 now i can mvn scm:checkout 
 -DcheckoutDirectory=C:\LocalViewsMaven\viewname 
 
 The second Snapshowview (for Maven Release purposes) now resides at
 
 C:\LocalViewsMaven\viewname
 
 now i can mvn release:prepare and the magic with the pom.xml 
 manipulation starts successfully.
 
 Finally, I want to mvn release:perform where I run into problems, 
 because ClearCase cannot checkout in the same directory of an existing 
 view.
 Therefore I configured in the pom.xml
 
 build
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-release-plugin/artifactId
 version2.0-beta-7/version
 configuration
  allowTimestampedSnapshotstrue/allowTimestampedSnapshots
  workingDirectoryc:\Release\${artifactId}\${version}/workingDirectory
 /configuration 
 /plugin
 /plugins
 build
 
 At this point, I couldn´t pass the workingDirectory via CommandLine 
 arguments
 
 The third Snapshotview is now created, but at .\nextRelease-SNAPSHOT, 
 containing the Release version.
 
 Is that the right way? Or am I doing something wrong / too much?
 Has anyone experience (and success) in using maven-release-plugin with 
 ClearCase?
 
 Any complete sample configuration ?
 
 Thanx, Torsten
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Experience-in-maven-release-plugin-using-ClearCase-SCM-tp15137971p20126232.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: Actual version of maven-resources-plugin 2.3 bug/dependcies ???

2008-10-23 Thread Nick Stolwijk
The way Maven works recently changed (I believe around 2.0.7 or
2.0.8). First, Maven tries to use the latest plugin by default, which
was considered bad behaviour, because it could break working builds,
even tagged ones. It was (and still is) considered best practice to
version every plugin you use. To enforce this you can use the Enforcer
Plugin [1].  Recent versions of Maven has the default plugins (all
plugins which are bound to a phase by default) versioned in the super
pom. So I recommend updating or enforcing your plugins to have a
version to have a really reproducible build.

[1]http://maven.apache.org/enforcer/enforcer-rules/requirePluginVersions.html

Hth,

Nick Stolwijk
~Java Developer~

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



On Wed, Oct 22, 2008 at 7:54 PM, Jinyuan Zhou [EMAIL PROTECTED] wrote:
 I had exactly the  same problem. My manager is nervous to upgrade. I was
 able to fix this without upgrade to 2.0.9. I just added the following
 section in bold
 build
   ...
  plugins
..
*plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-resources-plugin/artifactId
version2.3/version
/plugin*
   .
.plugins
 /build

 I also noticed the difference of the version 2.3 subdirectory in the
 repository. The fixed one has two more files. which usually present in other
 plugins.
 I just start to use mvn recently. I am guessing that the maven will always
 trying to use the most recent verion for this particular plugin. Or super
 POM is not static, this time the super POM tries to use version 2.3 but some
 how repository wasns't abot to set up properly. Ours has a local mirror.
 The line simple force to down load a correct directory structure to work.
 I wish some one can give more information on this issue.
 Thanks

 On Mon, Oct 20, 2008 at 4:39 AM, Nick Stolwijk [EMAIL PROTECTED]wrote:

 Yes, and it is very easy. Just add the plugin to your
 build/pluginManagement section. See [1]

 [1] http://maven.apache.org/pom.html#Plugin_Management.

 Hth,

 Nick Stolwijk
 ~Java Developer~

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



 On Mon, Oct 20, 2008 at 12:56 PM, Andreas Riedel [EMAIL PROTECTED]
 wrote:
  with 2.0.9 it's run.
 
  But for the next time this happens:
  Is it possible set maven to using a fix version of an depending plugin?
 
  TIA
  Andreas
 
 
  --- Olivier Lamy [EMAIL PROTECTED] schrieb am Mo, 20.10.2008:
 
  Von: Olivier Lamy [EMAIL PROTECTED]
  Betreff: Re: Actual version of maven-resources-plugin 2.3 bug/dependcies
 ???
  An: Maven Users List users@maven.apache.org, [EMAIL PROTECTED]
  Datum: Montag, 20. Oktober 2008, 12:47
  Which maven version are you using ?
 
  For me it works fine with 2.0.9.
 
  --
  Olivier
 
  2008/10/20 Andreas Riedel [EMAIL PROTECTED]:
   Actual, I've the following üroblem with the new
  version of the maven-resource-plugin:
  
   Any idea, what's wrong or how I can use the old
  version of the plugin??
  
   TIA
Andreas
  
  
  
  
  
   -
   [INFO]
  
   [ERROR] BUILD ERROR
   [INFO]
  
   [INFO] Internal error in the plugin manager executing
  goal
  'org.apache.maven.plugins:maven-resources-plugin:2.3:resources':
  Unable to find the mojo
  'org.apache.maven.plugins:maven-resources-plugin:2.3:resources'
  in the plugin
  'org.apache.maven.plugins:maven-resources-plugin'
   org/codehaus/plexus/interpolation/ValueSource
   [INFO]
  
   [INFO] Trace
  
  org.apache.maven.lifecycle.LifecycleExecutionException:
  Internal error in the plugin manager executing goal
  'org.apache.maven.plugins:maven-resources-plugin:2.3:resources':
  Unable to find the mojo
  'org.apache.maven.plugins:maven-resources-plugin:2.3:resources'
  in the plugin
  'org.apache.maven.plugins:maven-resources-plugin'
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
  at
  org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
  at
  org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
  

Re: Advice on dealing with hostility to Maven 2

2008-10-23 Thread Graham Leggett

Rusty Wright wrote:


I completely agree.

I'd go one step further with your building it on another machine and say 
that it has to build on another machine that's a different platform.  
I.e., if you're building on unix it must also build on Windows, or vice 
versa.  And if you're building it in eclipse with the maven plugin it 
must also build outside of eclipse from the command line.


An effective way of doing this is to actively make your CI server as 
different as humanly possible to your development environment. Different 
OS, different timezone.


The more different you make it, the more likely you are to find latent 
defects, like hard coded paths, or failures due to sloppy timezone handling.


In your CI environment you want to active give your code every possible 
reason to fail, because if the code succeeds despite this, your code 
very probably works bug free.


Developers tend to be resistant to this: Oh, it's Linux, that's why the 
test case fails, which is why this may need a bit of gentle (or not so 
gentle) discipline to enforce.


In the example I am referring to, calculations that were failing 
because of a different OS were actually failing because of bad 
timezone handling, and people were resistant to fixing it.


Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Not able to find repository for jdbcappender

2008-10-23 Thread antnewbie

Hi,

I am unable to find repository for jdbcappender. I want to add it to our
internal repository.Do I have to create a POM file to do so?
regards
newbie
-- 
View this message in context: 
http://www.nabble.com/Not-able-to-find-repository-for-jdbcappender-tp20127555p20127555.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: Not able to find repository for jdbcappender

2008-10-23 Thread Jeff MAURY
If you use the Maven deploy plugin (goal deploy-file), then it will generate
a POM for your JAR.

Jeff MAURY

On Thu, Oct 23, 2008 at 11:34 AM, antnewbie [EMAIL PROTECTED] wrote:


 Hi,

 I am unable to find repository for jdbcappender. I want to add it to our
 internal repository.Do I have to create a POM file to do so?
 regards
 newbie
 --
 View this message in context:
 http://www.nabble.com/Not-able-to-find-repository-for-jdbcappender-tp20127555p20127555.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]




-- 
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
Mes CDs à récupérer:
http://spreadsheets.google.com/ccc?key=pNeg4Doa_oCsh7CepKPaPTAhl=en


setting up maven2 projects with SVN?

2008-10-23 Thread Kristian Rink
Folks;

so far merrily using maven2 projects in a more or less wildly grown SVN
repository, I am about to get this mess slightly better organized... Can
anyone recommend any good starting points learning how to effectively get
maven2 and SVN set up to get the most out of maven2 here?

Thanks in advance and best regards,
Kristian

-- 
Kristian Rink
cell:  +49 176 2447 2771
business: http://www.planconnect.de
personal: http://pictorial.zimmer428.net
we command the system. calling all recievers.
we are noisy people for a better living.
(covenant - monochrome)


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



Re: Not able to find repository for jdbcappender

2008-10-23 Thread antnewbie

I am using this command, but not working
mvn deploy:deploy-file -Dfile=jdbcappender.jar -Drepositoryid=internal 
-Durl= -Dgroupid=jdbcappender -DartifactId=jdbcappender -Dversion=1.0
-Dpackaging=jar -DgeneratePom=true

Jeff MAURY wrote:
 
 If you use the Maven deploy plugin (goal deploy-file), then it will
 generate
 a POM for your JAR.
 
 Jeff MAURY
 
 On Thu, Oct 23, 2008 at 11:34 AM, antnewbie [EMAIL PROTECTED] wrote:
 

 Hi,

 I am unable to find repository for jdbcappender. I want to add it to our
 internal repository.Do I have to create a POM file to do so?
 regards
 newbie
 --
 View this message in context:
 http://www.nabble.com/Not-able-to-find-repository-for-jdbcappender-tp20127555p20127555.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]


 
 
 -- 
 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
 Mes CDs à récupérer:
 http://spreadsheets.google.com/ccc?key=pNeg4Doa_oCsh7CepKPaPTAhl=en
 
 
 -
 http://riadiscuss.blogspot.com 
 

-- 
View this message in context: 
http://www.nabble.com/Not-able-to-find-repository-for-jdbcappender-tp20127555p20128496.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]



Build only a subset of projects/modules in maven2

2008-10-23 Thread smceneaney

Hi,

Our build takes up to 20 minutes to complete using maven2.

Is it possible to have a profile that only builds certain modules? I had a
look at the docs but can't see a way of doing this.

Thanks in advance,

Shane
-- 
View this message in context: 
http://www.nabble.com/Build-only-a-subset-of-projects-modules-in-maven2-tp20128757p20128757.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]



ZipException in project info plugin

2008-10-23 Thread Benoit Decherf

Hi,

We have some problems with the dependencies report.
During the execution we receive a ZipException :

[ERROR] IOException: error in opening zip file
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.lt;initgt;(ZipFile.java:114)
at java.util.jar.JarFile.lt;initgt;(JarFile.java:133)
at java.util.jar.JarFile.lt;initgt;(JarFile.java:97)
at 
org.apache.maven.shared.jar.JarAnalyzer.lt;initgt;(JarAnalyzer.java:102)
at 
org.apache.maven.report.projectinfo.dependencies.Dependencies.getJarDependencyDetails(Dependencies.java:282)


And in the generated report :
/home/yahoo/.m2/repository/com/kelkoo/corecomponents/kelkooMonitoringAPI/0.0.16/kelkooMonitoringAPI-0.0.16-scripts.tgz 
error in opening zip file


It seems that tgz extension are not supported by this report ?

Benoit

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



Re: Not able to find repository for jdbcappender

2008-10-23 Thread antnewbie

ok,got it working.

antnewbie wrote:
 
 I am using this command, but not working
 mvn deploy:deploy-file -Dfile=jdbcappender.jar -Drepositoryid=internal 
 -Durl= -Dgroupid=jdbcappender -DartifactId=jdbcappender -Dversion=1.0
 -Dpackaging=jar -DgeneratePom=true
 
 Jeff MAURY wrote:
 
 If you use the Maven deploy plugin (goal deploy-file), then it will
 generate
 a POM for your JAR.
 
 Jeff MAURY
 
 On Thu, Oct 23, 2008 at 11:34 AM, antnewbie [EMAIL PROTECTED] wrote:
 

 Hi,

 I am unable to find repository for jdbcappender. I want to add it to our
 internal repository.Do I have to create a POM file to do so?
 regards
 newbie
 --
 View this message in context:
 http://www.nabble.com/Not-able-to-find-repository-for-jdbcappender-tp20127555p20127555.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]


 
 
 -- 
 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
 Mes CDs à récupérer:
 http://spreadsheets.google.com/ccc?key=pNeg4Doa_oCsh7CepKPaPTAhl=en
 
 
 -
 http://riadiscuss.blogspot.com 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Not-able-to-find-repository-for-jdbcappender-tp20127555p20129395.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]



Where to put text files used by tests

2008-10-23 Thread antnewbie

I am converting a project into maven.Some tests need text files.Where should
I put them?
I am getting this error
java.lang.AssertionError: Exception thrown: java.io.FileNotFoundException:
bin\xw\mca\tests\testdata\without_name (The system cannot find the path
specified)
thanks
-- 
View this message in context: 
http://www.nabble.com/Where-to-put-text-files-used-by-tests-tp20130114p20130114.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: Where to put text files used by tests

2008-10-23 Thread Okken,Brett
Most likely they should go at /src/test/resources. This will put those files on 
the classpath while the tests are run. 


Brett Okken | MMF Archive | Software Architect | 816.201.6112 | www.cerner.com 
| [EMAIL PROTECTED]

-Original Message-
From: antnewbie [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2008 7:44 AM
To: users@maven.apache.org
Subject: Where to put text files used by tests


I am converting a project into maven.Some tests need text files.Where should I 
put them?
I am getting this error
java.lang.AssertionError: Exception thrown: java.io.FileNotFoundException:
bin\xw\mca\tests\testdata\without_name (The system cannot find the path
specified)
thanks
--
View this message in context: 
http://www.nabble.com/Where-to-put-text-files-used-by-tests-tp20130114p20130114.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]

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

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



RE: How to send argument to plugin

2008-10-23 Thread EJ Ciramella
Via the configuration tags.

There you should have:

configuration
foobar/foo
/configuration

And if you need to pass it in on the command line, you may want to do something 
more like:

properties
foobar/foo
/properties 

...

configuration
foo${prop}/foo
/configuration

So if someone uses -Dfoo=someval, that will take precedence and if nothing is 
specified, the properties block will take precedence.

-Original Message-
From: sean.chen(陈思淼) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2008 2:15 AM
To: Maven Users List
Subject: How to send argument to plugin

I know We can use mvn XXX -DmyArg=XXX to send the argument to the plugin.but 
how can I get it in my plugin?


RE: Build only a subset of projects/modules in maven2

2008-10-23 Thread EJ Ciramella
Could you make the modules profile enabled?

This could wind up being messy though, what's the default set?

I think the true solution is to make the project more modular and have
aggregator poms where necessary.

-Original Message-
From: smceneaney [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2008 7:05 AM
To: users@maven.apache.org
Subject: Build only a subset of projects/modules in maven2


Hi,

Our build takes up to 20 minutes to complete using maven2.

Is it possible to have a profile that only builds certain modules? I had
a look at the docs but can't see a way of doing this.

Thanks in advance,

Shane
--
View this message in context:
http://www.nabble.com/Build-only-a-subset-of-projects-modules-in-maven2-
tp20128757p20128757.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: mvn site is ignoring index.apt

2008-10-23 Thread EJ Ciramella
If you're overriding the index file, then you need (from what I can
tell) to duplicate all the index info (so the reporting blocks etc).

Do you need to replace the index file entirely or do you just need to
change the look/feel and add content to the navigation? 

-Original Message-
From: Fernando Colombo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 22, 2008 9:47 PM
To: users@maven.apache.org
Subject: mvn site is ignoring index.apt

Greetings (If this is not the right place for this, please tell me where
it is).

I'm running the site goal using Maven Integration for Eclipse, but
it simply ignores the src/site/apt/index.apt.
Instead of generating my content, it generates an index.html file
containing only the About content, using whatever is listed on the
description and name elements of pom.xml. That index.html also does
not respect the site.xml file.

Also strange, all report files respect definitions of site.xml. Only the
index.html (the most important file!) is being generating with About
stuff, ignoring completely what is set on index.apt and site.xml.

What did I miss?


  

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



Re: How to exclude perticular class from dependent jar.

2008-10-23 Thread Dan Tran
truezip-maven-plugin can remove any thing in archive and that supports
virtual file system like ear,war.  There should be an example to
remove file in a archive within another archive
at the site

-D

On Wed, Oct 22, 2008 at 9:52 PM, Nitin B [EMAIL PROTECTED] wrote:

 My final output is ear. But I packag everthing into war.

 -Nitin B


 Dan Tran wrote:

 http://mojo.codehaus.org/truezip-maven-plugin

 what is your finally output?  war? ear?

 On Wed, Oct 22, 2008 at 8:01 AM, Nitin B [EMAIL PROTECTED] wrote:

 Thanks Dan Tran,

 I will try this. If you have any link explaning that please send it to
 me.


 Thanks,
 Nitin B


 Dan Tran wrote:

 You are brave!! but it can be done.

 Use truezip-maven-plugin ( still under MOJO' sandbox) the interested
 classes on the fly.



 On Wed, Oct 22, 2008 at 1:39 AM, Nitin B [EMAIL PROTECTED]
 wrote:

 Hi All,

 I am stuck at this point, Thanks in advance for any help/suggestion.

 -Nitin B



 Nitin B wrote:

 Hi,

 When I use jar with the DOMMessageProvider class. I get follwing error
 at
 the time of deployment and my deployment fails.

 I tried by removing this class from the jar and it works. My service
 get
 deployed succesfully.
 I got this solution from some forum.

 Using this version of cxf : cxf-2.1.2.jar



 (this is not a complete error stack )

 WSEE:14com.bea.core.repackaged.springframework.beans.factory.BeanCreationException:
 Error creating bean with name
 'org.apache.cxf.js.rhino.DOMMessageProvider': Instantiation of bean
 failed; nested exception is
 com.bea.core.repackaged.springframework.beans.BeanInstantiationException:
 Could not instantiate bean class
 [org.apache.cxf.js.rhino.DOMMessageProvider]: No default constructor
 found; nested exception is java.lang.NoSuchMethodException:
 org.apache.cxf.js.rhino.DOMMessageProvider.init()WSEEComponentContributor.newInstance:49
 Oct 17, 2008 4:27:37 PM IST Error HTTP BEA-101216 Servlet:
 org.apache.cxf.js.rhino.DOMMessageProvider failed to preload on
 startup
 in Web application: /DECService.
 java.lang.ClassNotFoundException:
 org.apache.cxf.js.rhino.DOMMessageProvider
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
   Truncated. see log file for complete stacktrace

 Oct 17, 2008 4:27:37 PM IST Error Deployer BEA-149265 Failure
 occurred in the execution of deployment request with ID '1227564547'
 for
 task '0'. Error is: 'weblogic.application.ModuleException:
 [HTTP:101216]Servlet: org.apache.cxf.js.rhino.DOMMessageProvider
 failed
 to preload on startup in Web application: /DECService.
 java.lang.ClassNotFoundException:
 org.apache.cxf.js.rhino.DOMMessageProvider
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)





 Thanks,
 Nitin B


 --
 View this message in context:
 http://www.nabble.com/How-to-exclude-perticular-class-from-dependent-jar.-tp20013814p20106348.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]




 --
 View this message in context:
 http://www.nabble.com/How-to-exclude-perticular-class-from-dependent-jar.-tp20013814p20112681.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]




 --
 View this message in context: 
 http://www.nabble.com/How-to-exclude-perticular-class-from-dependent-jar.-tp20013814p20124382.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: Build only a subset of projects/modules in maven2

2008-10-23 Thread Vincent Beretti
Hi,
The build takes 20 minutes with a clean install or only install ? with tests
compile and execution ?
You can do incremental builds, skip tests or move them to an integration
tests phase.
With incremental builds, if you split your project into modules, you will
manage to save even more compilation time. The projects whose sources are
almost never modified will not be rebuild every time. For a clean
incremental build (only install and no clean install), use
maven-incremental-build : https://maven-incremental-build.dev.java.net/

Vincent.

On Thu, Oct 23, 2008 at 1:05 PM, smceneaney [EMAIL PROTECTED]wrote:


 Hi,

 Our build takes up to 20 minutes to complete using maven2.

 Is it possible to have a profile that only builds certain modules? I had a
 look at the docs but can't see a way of doing this.

 Thanks in advance,

 Shane
 --
 View this message in context:
 http://www.nabble.com/Build-only-a-subset-of-projects-modules-in-maven2-tp20128757p20128757.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]




Filtering with Maven reosurce plug-in

2008-10-23 Thread solo1970

Would it be possible to set filtering on a particular string instead of a
variable?
Anyone has any experience doing this???

http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

Thanks

Sonia
-- 
View this message in context: 
http://www.nabble.com/Filtering-with-Maven-reosurce-plug-in-tp20132862p20132862.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]



What is the purpose of finalName? really?

2008-10-23 Thread Kent Närling
What IS really the purpose of finalName?

Apparently, the install plugin ignores the artifact name when deploying it
to the repository anyway??

We would like to have a version-less filename on the artifact in the
repository (the version is in the path anyway), is this possible?

If not, what is the real purpose of finalName if it is not used for the
name of the artifact/file in the end anyway... ?

Best regards
Kent


Re: Filtering with Maven reosurce plug-in

2008-10-23 Thread Olivier Lamy
No.
Currently only two tokens are supported : ${ } and @ @.

But can be done easily. Can you record an issue in jira with a project
test case ?

--
Olivier

2008/10/23 solo1970 [EMAIL PROTECTED]:

 Would it be possible to set filtering on a particular string instead of a
 variable?
 Anyone has any experience doing this???

 http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

 Thanks

 Sonia
 --
 View this message in context: 
 http://www.nabble.com/Filtering-with-Maven-reosurce-plug-in-tp20132862p20132862.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: What is the purpose of finalName? really?

2008-10-23 Thread Stephen Connolly
For us we use it to ensure that the war file in target is always the same,
so that other scripts we have can pick it up irrespective of the version.

If you are pulling the file out of the repo, you can always specify the name
to pull it out of the repo as

2008/10/23 Kent Närling [EMAIL PROTECTED]

 What IS really the purpose of finalName?

 Apparently, the install plugin ignores the artifact name when deploying it
 to the repository anyway??

 We would like to have a version-less filename on the artifact in the
 repository (the version is in the path anyway), is this possible?

 If not, what is the real purpose of finalName if it is not used for the
 name of the artifact/file in the end anyway... ?

 Best regards
 Kent



Re: What is the purpose of finalName? really?

2008-10-23 Thread Kent Närling
Exactly what we wanted too!

But when I do this, the filename in the repository gets the default name
anyway!!

When running it locally for instance, I get the following message:
[INFO] Installing
C:\Workspaces\main\requestparser\requestparser-servlet\target\requestparser-servletxx.war
to C:\Documents and
Settings\kent\.m2\repository\com\seamless\ers\requestparser-servlet\1.0rc3-SNAPSHOT\requestparser-servlet-1.0rc3-SNAPSHOT.war

ie, it seems the install plugin simply ignores the finalName tag?!?

I mean, obviously it is nice to have a war file have a fixed name since it
usually dictates the default path to the context in the container and you
don't want the version in that?!?

Naturally it is possible to manually re-name it, but that kind of defeats
the purpose of a company repository if you have to re-name the files before
you use them?!?

2008/10/23 Stephen Connolly [EMAIL PROTECTED]

 For us we use it to ensure that the war file in target is always the same,
 so that other scripts we have can pick it up irrespective of the version.

 If you are pulling the file out of the repo, you can always specify the
 name
 to pull it out of the repo as

 2008/10/23 Kent Närling [EMAIL PROTECTED]

  What IS really the purpose of finalName?
 
  Apparently, the install plugin ignores the artifact name when deploying
 it
  to the repository anyway??
 
  We would like to have a version-less filename on the artifact in the
  repository (the version is in the path anyway), is this possible?
 
  If not, what is the real purpose of finalName if it is not used for the
  name of the artifact/file in the end anyway... ?
 
  Best regards
  Kent
 




-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: [EMAIL PROTECTED]
www.seamless.se


RE: mvn site is ignoring index.apt

2008-10-23 Thread Fernando Colombo

Ciramella, thanks for your prompt answer.

I don't know if I'm overriding the index file. I just created an
apt/index.apt and would like this to be the main website page, with banners
and menus as defined in the site.xml file.

But somehow Maven ignores completly the contents of just that file. Any
other .apt file in the apt/ directory is correctly transformed into a nice
.html file, with banners and menus as described in my site.xml.

The only exception is with index.apt. The generated index.html is looking
more like an about page with unrelated menu, banners and so on.


EJ Ciramella-3 wrote:
 
 If you're overriding the index file, then you need (from what I can
 tell) to duplicate all the index info (so the reporting blocks etc).
 
 Do you need to replace the index file entirely or do you just need to
 change the look/feel and add content to the navigation? 
 
 -Original Message-
 From: Fernando Colombo [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 22, 2008 9:47 PM
 To: users@maven.apache.org
 Subject: mvn site is ignoring index.apt
 
 Greetings (If this is not the right place for this, please tell me where
 it is).
 
 I'm running the site goal using Maven Integration for Eclipse, but
 it simply ignores the src/site/apt/index.apt.
 Instead of generating my content, it generates an index.html file
 containing only the About content, using whatever is listed on the
 description and name elements of pom.xml. That index.html also does
 not respect the site.xml file.
 
 Also strange, all report files respect definitions of site.xml. Only the
 index.html (the most important file!) is being generating with About
 stuff, ignoring completely what is set on index.apt and site.xml.
 
 What did I miss?
 
 
   
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%22mvn-site%22-is-ignoring-index.apt-tp20124296p20133416.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: What is the purpose of finalName? really?

2008-10-23 Thread Stephen Connolly
But why are you pulling them from your repo by hand.

When we need to get the artifact we copy it out of the local repo with
either the dependencies:copy goal in a little project, or with maven ant
tasks

Both of these allow us to control the name.

2008/10/23 Kent Närling [EMAIL PROTECTED]

 Exactly what we wanted too!

 But when I do this, the filename in the repository gets the default name
 anyway!!

 When running it locally for instance, I get the following message:
 [INFO] Installing

 C:\Workspaces\main\requestparser\requestparser-servlet\target\requestparser-servletxx.war
 to C:\Documents and

 Settings\kent\.m2\repository\com\seamless\ers\requestparser-servlet\1.0rc3-SNAPSHOT\requestparser-servlet-1.0rc3-SNAPSHOT.war

 ie, it seems the install plugin simply ignores the finalName tag?!?

 I mean, obviously it is nice to have a war file have a fixed name since it
 usually dictates the default path to the context in the container and you
 don't want the version in that?!?

 Naturally it is possible to manually re-name it, but that kind of defeats
 the purpose of a company repository if you have to re-name the files before
 you use them?!?

 2008/10/23 Stephen Connolly [EMAIL PROTECTED]

  For us we use it to ensure that the war file in target is always the
 same,
  so that other scripts we have can pick it up irrespective of the version.
 
  If you are pulling the file out of the repo, you can always specify the
  name
  to pull it out of the repo as
 
  2008/10/23 Kent Närling [EMAIL PROTECTED]
 
   What IS really the purpose of finalName?
  
   Apparently, the install plugin ignores the artifact name when deploying
  it
   to the repository anyway??
  
   We would like to have a version-less filename on the artifact in the
   repository (the version is in the path anyway), is this possible?
  
   If not, what is the real purpose of finalName if it is not used for
 the
   name of the artifact/file in the end anyway... ?
  
   Best regards
   Kent
  
 



 --
 Kent Närling

 System Architect
 SEAMLESS
 Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
 Phone: +46 8 5648 7800, fax: +46 8 5648 7823
 Mobile: +46 70 836 9925
 Mail: [EMAIL PROTECTED]
 www.seamless.se



Dependencies and cargo plugin?

2008-10-23 Thread Wim Deblauwe
Hi,

It seems that I need to add all my dependencies in my pom.xml 2 times when I
use a war project with cargo. Is there a way to avoid this? This is very
annoying to try to find out all the dependencies (and their transitive
dependencies manually) and have to add those to the dependencies/ section
of the cargo plugin. According to the documentation (
http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars)
this is only needed if you want to share between web projects, but I only
have 1 and I still have to do it, otherwise I get ClassNotFoundExceptions.

This is my pom.xml (partially):

packagingwar/packaging
build
finalNameserver-web/finalName
plugins
plugin
groupIdorg.codehaus.cargo/groupId
artifactIdcargo-maven2-plugin/artifactId
version0.3/version
configuration
container
containerIdtomcat5x/containerId
zipUrlInstaller
url
http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip
/url
installDir${installDir}/installDir
/zipUrlInstaller
systemProperties

java.net.preferIPv4Stacktrue/java.net.preferIPv4Stack
/systemProperties
dependencies
LONG LIST OF DEPENDENCIES HERE


regards,

Wim


RE: Using ${} notation as a literal

2008-10-23 Thread Deneux, Christophe
I'm not an expert of the maven-resources-plugin but I think that its escaping 
mechanism is to use into resource files and not in the POM file.


___

Christophe DENEUX / Capgemini Sud / Méditerranée
Integration Architect / OW2 PEtALS Commiter
Tel: + 33 4 93 95 55 92 / www.capgemini.com
Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice / FRANCE
Join the Collaborative Business Experience
___

Please consider the environment and do not print this email unless absolutely
necessary. Capgemini encourages environmental awareness. 
-Message d'origine-
De : Kalle Korhonen [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 20 octobre 2008 19:01
À : Maven Users List
Objet : Re: Using ${} notation as a literal

On Mon, Oct 20, 2008 at 9:42 AM, Deneux, Christophe  [EMAIL PROTECTED] wrote:

 No escaping mechanism exists. See 
 http://jira.codehaus.org/browse/MNG-3558


Does the escaping mechanism in the new resource plugin work for this as well?
New features :
- New mojo to copy resources [1]
- escape mechanism for property interpolation [2]
-  configuring file extension to not filtering [3]
http://maven.apache.org/plugins/maven-resources-plugin/examples/escape-filtering.html

This has been working for any velocity templates: ${dollarSign}{value}.

Kalle




 __
 

 Christophe DENEUX / Capgemini Sud / Méditerranée Integration Architect 
 / OW2 PEtALS Commiter
 Tel: + 33 - -- -- -- -- / www.capgemini.com Porte de l'Arénas - Entrée 
 B / 455 Promenade des Anglais / 06200 Nice / FRANCE Join the 
 Collaborative Business Experience

 __
 _

 Please consider the environment and do not print this email unless 
 absolutely necessary. Capgemini encourages environmental awareness.
 -Message d'origine-
 De : Okken,Brett [mailto:[EMAIL PROTECTED] Envoyé : vendredi 17 
 octobre 2008 17:02 À : users@maven.apache.org Objet : Using ${} 
 notation as a literal


 In my pom, I need to pass a configuration value to a plugin which 
 contains ${...} as part of the string. Is there a way to prevent 
 maven from filtering this string? Currently the value passed to the 
 plugin replaces the ${...} wil null.

 Brett Okken | MMF Archive | Software Architect | 816.201.6112 | 
 www.cerner.com | [EMAIL PROTECTED]

 --
 CONFIDENTIALITY NOTICE This message and any included attachments are 
 from Cerner Corporation and are intended only for the addressee. The 
 information contained in this message is confidential and may 
 constitute inside or non-public information under international, 
 federal, or state securities laws. Unauthorized forwarding, printing, 
 copying, distribution, or use of such information is strictly 
 prohibited and may be unlawful. If you are not the addressee, please 
 promptly delete this message and notify the sender of the delivery 
 error by e-mail or you may call Cerner's corporate offices in Kansas City, 
 Missouri, U.S.A at (+1) (816)221-1024.






 This message contains information that may be privileged or 
 confidential and is the property of the Capgemini Group. It is 
 intended only for the person to whom it is addressed. If you are not 
 the intended recipient, you are not authorized to read, print, retain, 
 copy, disseminate, distribute, or use this message or any part 
 thereof. If you receive this message in error, please notify the 
 sender immediately and delete all copies of this message.


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








This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.


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



creating a maven project in eclipse very new bee

2008-10-23 Thread miro

I am very very new to maven need help in creating   a project . 
Eclipse 3.4.1  and installed maven eclipse project.
Please help me create a new java project to be built by  maven using
eclipse.
I did not find any article   doing this.
for my  trails I created a   new Maven project   which created project.xml 
next I tried create pom.xml it did nothing ,I am assuming maven gets all the
jars need for my project from its default  repository ,I  cannot edit my
environment variables to follow instruction in maven installation, I just
have eclipse and eclipse maven plugin. 
I assuming I tell in some config file I need common-logging, hibernate  etc
jars for my project and maven will bring them from default server repository
and   place it in my local repository.
Please help me  create maven based java project.

-- 
View this message in context: 
http://www.nabble.com/creating-a-maven-project-in-eclipse---very--new-bee-tp20135531p20135531.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: creating a maven project in eclipse very new bee

2008-10-23 Thread Henri Gomez

May i suggest you to install m2eclipse ?

Le 23 oct. 08 à 19:14, miro [EMAIL PROTECTED] a écrit :



I am very very new to maven need help in creating   a project .
Eclipse 3.4.1  and installed maven eclipse project.
Please help me create a new java project to be built by  maven using
eclipse.
I did not find any article   doing this.
for my  trails I created a   new Maven project   which created  
project.xml
next I tried create pom.xml it did nothing ,I am assuming maven gets  
all the
jars need for my project from its default  repository ,I  cannot  
edit my
environment variables to follow instruction in maven installation, I  
just

have eclipse and eclipse maven plugin.
I assuming I tell in some config file I need common-logging,  
hibernate  etc
jars for my project and maven will bring them from default server  
repository

and   place it in my local repository.
Please help me  create maven based java project.

--
View this message in context: 
http://www.nabble.com/creating-a-maven-project-in-eclipse---very--new-bee-tp20135531p20135531.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]



Disabling Javadoc Generation in Release Plugin

2008-10-23 Thread Blake Martin
I'm trying to perform a release of a legacy project, which isn't even close
to having functional Javadocs.

The release plugin fails because the Javadoc goal fails. How can I skip
Javadoc generation?


Re: Disabling Javadoc Generation in Release Plugin

2008-10-23 Thread Nick Stolwijk
Default the release plugin performs the phases deploy and site-deploy.
By giving the command -Dgoals=deploy, you tell the release:perform to
only deploy your application and not the generated site. Also, you can
use the -DuseReleaseProfile=false, which will stop generating the
sources and javadoc jar. See [1] for other options.

[1] http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html
Hth,

Nick Stolwijk
~Java Developer~

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



On Thu, Oct 23, 2008 at 8:10 PM, Blake Martin [EMAIL PROTECTED] wrote:
 I'm trying to perform a release of a legacy project, which isn't even close
 to having functional Javadocs.

 The release plugin fails because the Javadoc goal fails. How can I skip
 Javadoc generation?


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



RE: Actual version of maven-resources-plugin 2.3 bug/dependcies ???

2008-10-23 Thread Brian E. Fox
It was 2.0.9 that made this change. Details about how it works are here: 
http://blogs.sonatype.com/people/brian/2008/04/10/maven-209-released/

-Original Message-
From: Nick Stolwijk [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2008 5:08 AM
To: Maven Users List
Subject: Re: Actual version of maven-resources-plugin 2.3 bug/dependcies ???

The way Maven works recently changed (I believe around 2.0.7 or
2.0.8). First, Maven tries to use the latest plugin by default, which
was considered bad behaviour, because it could break working builds,
even tagged ones. It was (and still is) considered best practice to
version every plugin you use. To enforce this you can use the Enforcer
Plugin [1].  Recent versions of Maven has the default plugins (all
plugins which are bound to a phase by default) versioned in the super
pom. So I recommend updating or enforcing your plugins to have a
version to have a really reproducible build.

[1]http://maven.apache.org/enforcer/enforcer-rules/requirePluginVersions.html

Hth,

Nick Stolwijk
~Java Developer~

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



On Wed, Oct 22, 2008 at 7:54 PM, Jinyuan Zhou [EMAIL PROTECTED] wrote:
 I had exactly the  same problem. My manager is nervous to upgrade. I was
 able to fix this without upgrade to 2.0.9. I just added the following
 section in bold
 build
   ...
  plugins
..
*plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-resources-plugin/artifactId
version2.3/version
/plugin*
   .
.plugins
 /build

 I also noticed the difference of the version 2.3 subdirectory in the
 repository. The fixed one has two more files. which usually present in other
 plugins.
 I just start to use mvn recently. I am guessing that the maven will always
 trying to use the most recent verion for this particular plugin. Or super
 POM is not static, this time the super POM tries to use version 2.3 but some
 how repository wasns't abot to set up properly. Ours has a local mirror.
 The line simple force to down load a correct directory structure to work.
 I wish some one can give more information on this issue.
 Thanks

 On Mon, Oct 20, 2008 at 4:39 AM, Nick Stolwijk [EMAIL PROTECTED]wrote:

 Yes, and it is very easy. Just add the plugin to your
 build/pluginManagement section. See [1]

 [1] http://maven.apache.org/pom.html#Plugin_Management.

 Hth,

 Nick Stolwijk
 ~Java Developer~

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



 On Mon, Oct 20, 2008 at 12:56 PM, Andreas Riedel [EMAIL PROTECTED]
 wrote:
  with 2.0.9 it's run.
 
  But for the next time this happens:
  Is it possible set maven to using a fix version of an depending plugin?
 
  TIA
  Andreas
 
 
  --- Olivier Lamy [EMAIL PROTECTED] schrieb am Mo, 20.10.2008:
 
  Von: Olivier Lamy [EMAIL PROTECTED]
  Betreff: Re: Actual version of maven-resources-plugin 2.3 bug/dependcies
 ???
  An: Maven Users List users@maven.apache.org, [EMAIL PROTECTED]
  Datum: Montag, 20. Oktober 2008, 12:47
  Which maven version are you using ?
 
  For me it works fine with 2.0.9.
 
  --
  Olivier
 
  2008/10/20 Andreas Riedel [EMAIL PROTECTED]:
   Actual, I've the following üroblem with the new
  version of the maven-resource-plugin:
  
   Any idea, what's wrong or how I can use the old
  version of the plugin??
  
   TIA
Andreas
  
  
  
  
  
   -
   [INFO]
  
   [ERROR] BUILD ERROR
   [INFO]
  
   [INFO] Internal error in the plugin manager executing
  goal
  'org.apache.maven.plugins:maven-resources-plugin:2.3:resources':
  Unable to find the mojo
  'org.apache.maven.plugins:maven-resources-plugin:2.3:resources'
  in the plugin
  'org.apache.maven.plugins:maven-resources-plugin'
   org/codehaus/plexus/interpolation/ValueSource
   [INFO]
  
   [INFO] Trace
  
  org.apache.maven.lifecycle.LifecycleExecutionException:
  Internal error in the plugin manager executing goal
  'org.apache.maven.plugins:maven-resources-plugin:2.3:resources':
  Unable to find the mojo
  'org.apache.maven.plugins:maven-resources-plugin:2.3:resources'
  in the plugin
  'org.apache.maven.plugins:maven-resources-plugin'
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
  at
 
 

maven-compiler-plugin using eclipse

2008-10-23 Thread Hoover, William
In maven version 2.0.8 we originally tried the following, but it did not
resolve the generics issue that the plexus compiler has related to
http://jira.codehaus.org/browse/PLXCOMP-100:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
dependencies
dependency
groupIdorg.codehaus.plexus/groupId
artifactIdplexus-compiler-eclipse/artifactId
version1.5/version
/dependency
/dependencies
/plugin

... so we had to use the following settings to get maven to use the same
eclipse compiler that we were using in our ide environment (provided we
dropped the jar in maven/lib):

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
forktrue/fork
compilerVersion1.6/compilerVersion
executablejava -classpath
${MAVEN_HOME}/lib/org.eclipse.jdt.core_X.jar
org.eclipse.jdt.internal.compiler.batch.Main -classpath rt.jar
-sourcepath src/main/executable
/configuration
/plugin

In maven 2.0.9 using the above hack results in an exception. We even
tried a suggestion that was found on a forum:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
dependencies
dependency
groupIdorg.eclipse.jdt/groupId
artifactIdcore/artifactId
version3.3.0-v_771/version
/dependency
/dependencies
/plugin

The above had issues of it's own due to the common dependency version
range (we resolved by manually installing in our company repository). It
still did not work. Does anyone know how to accomplish this?


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



Re: What is the purpose of finalName? really?

2008-10-23 Thread Kent Närling
Well, when our deployment team wants to install eg a new version of a
component, they just download it from the repo.
And they don't run maven, for them the repo is just a download server,
which is kind of natural, or?
Why keep another copy of all artifact versions etc?
Is this a very unusual way of using a maven repo?

On 23/10/2008, Stephen Connolly [EMAIL PROTECTED] wrote:
 But why are you pulling them from your repo by hand.

 When we need to get the artifact we copy it out of the local repo with
 either the dependencies:copy goal in a little project, or with maven ant
 tasks

 Both of these allow us to control the name.

 2008/10/23 Kent Närling [EMAIL PROTECTED]

 Exactly what we wanted too!

 But when I do this, the filename in the repository gets the default name
 anyway!!

 When running it locally for instance, I get the following message:
 [INFO] Installing

 C:\Workspaces\main\requestparser\requestparser-servlet\target\requestparser-servletxx.war
 to C:\Documents and

 Settings\kent\.m2\repository\com\seamless\ers\requestparser-servlet\1.0rc3-SNAPSHOT\requestparser-servlet-1.0rc3-SNAPSHOT.war

 ie, it seems the install plugin simply ignores the finalName tag?!?

 I mean, obviously it is nice to have a war file have a fixed name since it
 usually dictates the default path to the context in the container and you
 don't want the version in that?!?

 Naturally it is possible to manually re-name it, but that kind of defeats
 the purpose of a company repository if you have to re-name the files
 before
 you use them?!?

 2008/10/23 Stephen Connolly [EMAIL PROTECTED]

  For us we use it to ensure that the war file in target is always the
 same,
  so that other scripts we have can pick it up irrespective of the
  version.
 
  If you are pulling the file out of the repo, you can always specify the
  name
  to pull it out of the repo as
 
  2008/10/23 Kent Närling [EMAIL PROTECTED]
 
   What IS really the purpose of finalName?
  
   Apparently, the install plugin ignores the artifact name when
   deploying
  it
   to the repository anyway??
  
   We would like to have a version-less filename on the artifact in the
   repository (the version is in the path anyway), is this possible?
  
   If not, what is the real purpose of finalName if it is not used for
 the
   name of the artifact/file in the end anyway... ?
  
   Best regards
   Kent
  
 



 --
 Kent Närling

 System Architect
 SEAMLESS
 Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
 Phone: +46 8 5648 7800, fax: +46 8 5648 7823
 Mobile: +46 70 836 9925
 Mail: [EMAIL PROTECTED]
 www.seamless.se




-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: [EMAIL PROTECTED]
www.seamless.se

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



Re: creating a maven project in eclipse very new bee

2008-10-23 Thread miro

I tried this plugin before , unfortunately I am unable to install this plugin
. 
here my eclipse  version

Eclipse Platform

Version: 3.4.1
Build id: M20080911-1700

(c) Copyright Eclipse contributors and others 2000, 2008.  All rights
reserved.
Visit http://www.eclipse.org/platform

This product includes software developed by the
Apache Software Foundation http://www.apache.org/

I got this eclipse from wtp.

here  the error messages  . please help me get going with maven in eclipse 



Cannot complete the request.  See the details.
Unsatisfied dependency:
[org.maven.ide.eclipse.subclipse.feature.feature.group 0.9.7.200810211352]
requiredCapability:
org.eclipse.equinox.p2.iu/org.tigris.subversion.subclipse.ui/0.0.0
Unsatisfied dependency:
[org.maven.ide.eclipse.subclipse.feature.feature.group 0.9.7.200810211352]
requiredCapability:
org.eclipse.equinox.p2.iu/org.tigris.subversion.subclipse.core/0.0.0
Unsatisfied dependency: [org.maven.ide.eclipse.ajdt.feature.feature.group
0.9.7.200810211352] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.ajdt.feature.group/1.5.0
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.ui.workbench/[3.4.0.I20080606-1300,3.4.0.I20080606-1300]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.ui.workbench/[3.4.1.M20080827-0800a,3.4.1.M20080827-0800a]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt/[3.4.0.v3448f,3.4.0.v3448f]] and
Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt/[3.4.1.v3449c,3.4.1.v3449c]] can
be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt.win32.win32.x86/[3.4.0.v3448f,3.4.0.v3448f]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt.win32.win32.x86/[3.4.1.v3449c,3.4.1.v3449c]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.osgi/[3.4.0.v20080605-1900,3.4.0.v20080605-1900]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.osgi/[3.4.2.R34x_v20080826-1230,3.4.2.R34x_v20080826-1230]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.rcp.feature.jar/[3.4.0.v20080324a-989JERhEk-jWnd5IY8K5tjxB,3.4.0.v20080324a-989JERhEk-jWnd5IY8K5tjxB]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.rcp.feature.jar/[3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341,3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341]]
can be satisfied.
Unsatisfied dependency: [org.maven.ide.eclipse.ajdt 0.9.7.200810211349]
requiredCapability: osgi.bundle/org.eclipse.ajdt.core/1.5.0
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.ui/[3.4.0.I20080610-1200,3.4.0.I20080610-1200]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.ui/[3.4.1.M20080910-0800,3.4.1.M20080910-0800]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.equinox.preferences/[3.2.200.v20080421-2006,3.2.200.v20080421-2006]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.equinox.preferences/[3.2.201.R34x_v20080709,3.2.201.R34x_v20080709]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.update.configurator/[3.2.200.v20080417,3.2.200.v20080417]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.update.configurator/[3.2.201.R34x_v20080819,3.2.201.R34x_v20080819]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.help/[3.3.100.v20080610,3.3.100.v20080610]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.help/[3.3.101.v20080702_34x,3.3.101.v20080702_34x]]
can be satisfied.
Unsatisfied dependency: [org.maven.ide.eclipse.subclipse 0.9.7.200810211342]
requiredCapability: osgi.bundle/org.tigris.subversion.subclipse.ui/0.0.0
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.equinox.launcher.win32.win32.x86/[1.0.100.v20080509-1800,1.0.100.v20080509-1800]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.equinox.launcher.win32.win32.x86/[1.0.101.R34x_v20080731,1.0.101.R34x_v20080731]]
can be satisfied.
Unsatisfied dependency: [org.maven.ide.eclipse.subclipse 0.9.7.200810211342]
requiredCapability: osgi.bundle/org.tigris.subversion.subclipse.core/0.0.0
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt/[3.4.0.v3448f,3.4.0.v3448f]] and
Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt/[3.4.1.v3449c,3.4.1.v3449c]] can
be satisfied.
Cannot find a solution where both Match[requiredCapability:

Re: creating a maven project in eclipse very new bee

2008-10-23 Thread David C. Hicks
After reading your first email, I think you have some ideas backwards.  
Eclipse does not necessarily control what Maven does.  Maven's 
activities are all governed by the pom.xml file.  To help simplify 
things, why not take it one step at a time.


First, create your Maven project.  Use an archetype to generate the 
starting point for yourself:  
http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
Next, build the project using Maven:  mvn install  (this will get all 
your dependencies pulled into your local repository)
Next, create the necessary Eclipse project files from the Maven 
pom.xml:  mvn eclipse:eclipse
Now, when you open Eclipse, you can import the project and it will be 
all happy with itself.


Any time you need to add a dependency, it should be done through the 
pom.xml.  M2Eclipse (the Eclipse plugin) can help with this, but isn't 
strictly necessary.


Good luck!


miro wrote:

I tried this plugin before , unfortunately I am unable to install this plugin
. 
here my eclipse  version


Eclipse Platform

Version: 3.4.1
Build id: M20080911-1700

(c) Copyright Eclipse contributors and others 2000, 2008.  All rights
reserved.
Visit http://www.eclipse.org/platform

This product includes software developed by the
Apache Software Foundation http://www.apache.org/

I got this eclipse from wtp.

here  the error messages  . please help me get going with maven in eclipse 




Cannot complete the request.  See the details.
Unsatisfied dependency:
[org.maven.ide.eclipse.subclipse.feature.feature.group 0.9.7.200810211352]
requiredCapability:
org.eclipse.equinox.p2.iu/org.tigris.subversion.subclipse.ui/0.0.0
Unsatisfied dependency:
[org.maven.ide.eclipse.subclipse.feature.feature.group 0.9.7.200810211352]
requiredCapability:
org.eclipse.equinox.p2.iu/org.tigris.subversion.subclipse.core/0.0.0
Unsatisfied dependency: [org.maven.ide.eclipse.ajdt.feature.feature.group
0.9.7.200810211352] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.ajdt.feature.group/1.5.0
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.ui.workbench/[3.4.0.I20080606-1300,3.4.0.I20080606-1300]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.ui.workbench/[3.4.1.M20080827-0800a,3.4.1.M20080827-0800a]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt/[3.4.0.v3448f,3.4.0.v3448f]] and
Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt/[3.4.1.v3449c,3.4.1.v3449c]] can
be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt.win32.win32.x86/[3.4.0.v3448f,3.4.0.v3448f]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt.win32.win32.x86/[3.4.1.v3449c,3.4.1.v3449c]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.osgi/[3.4.0.v20080605-1900,3.4.0.v20080605-1900]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.osgi/[3.4.2.R34x_v20080826-1230,3.4.2.R34x_v20080826-1230]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.rcp.feature.jar/[3.4.0.v20080324a-989JERhEk-jWnd5IY8K5tjxB,3.4.0.v20080324a-989JERhEk-jWnd5IY8K5tjxB]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.rcp.feature.jar/[3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341,3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341]]
can be satisfied.
Unsatisfied dependency: [org.maven.ide.eclipse.ajdt 0.9.7.200810211349]
requiredCapability: osgi.bundle/org.eclipse.ajdt.core/1.5.0
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.ui/[3.4.0.I20080610-1200,3.4.0.I20080610-1200]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.ui/[3.4.1.M20080910-0800,3.4.1.M20080910-0800]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.equinox.preferences/[3.2.200.v20080421-2006,3.2.200.v20080421-2006]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.equinox.preferences/[3.2.201.R34x_v20080709,3.2.201.R34x_v20080709]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.update.configurator/[3.2.200.v20080417,3.2.200.v20080417]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.update.configurator/[3.2.201.R34x_v20080819,3.2.201.R34x_v20080819]]
can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.help/[3.3.100.v20080610,3.3.100.v20080610]]
and Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.help/[3.3.101.v20080702_34x,3.3.101.v20080702_34x]]
can be satisfied.
Unsatisfied dependency: [org.maven.ide.eclipse.subclipse 0.9.7.200810211342]
requiredCapability: 

How do i upload sources for a 3rd party jar?

2008-10-23 Thread ez

i'm using nexus as my repository.
i'm working with jboss portal and want to upload its jars and their sources
to the repository.
i tried following the instructions in
http://maven.apache.org/guides/mini/guide-central-repository-upload.html but
failed..
i created a jar that contains the jar and the sources (jar-ed).
then i called mvn deploy:deploy-file..
however, the entire jar was uploaded as the classes jar..

so how should this be done?
-- 
View this message in context: 
http://www.nabble.com/How-do-i-upload-sources-for-a-3rd-party-jar--tp20138845p20138845.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 do i upload sources for a 3rd party jar?

2008-10-23 Thread Wendy Smoak
On Thu, Oct 23, 2008 at 1:25 PM, ez [EMAIL PROTECTED] wrote:

 i created a jar that contains the jar and the sources (jar-ed).
 then i called mvn deploy:deploy-file..
 however, the entire jar was uploaded as the classes jar..

Typically the -sources jars in the repository contain *only* the
source code.  When you have that, try mvn deploy:deploy-file again
with the additional parameter -Dclassifier=sources .

http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-classifiers.html

If you're still having trouble, paste the entire command you tried.

-- 
Wendy

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



assembly - grabbing runtime classpath for bat script

2008-10-23 Thread carlos f

jar-with-dependencies is not a practical option for our project so we have
come up with a custom assembly that generates a zip/tar of:
- our projects jar
- a lib dir with all of our projects dependencies
- bat scripts to execute the jar

However I still need to add all of the jars in the lib to the classpath when
invoking java in the bat scripts.

Is there any way to have maven add the appropriate dependencies entries for
the bat script based on the current runtime classpath?

Carlos
-- 
View this message in context: 
http://www.nabble.com/assembly---grabbing-runtime-classpath-for-bat-script-tp20138852p20138852.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]



Problem executing jar file from Maven.

2008-10-23 Thread David C. Hicks
I'm trying to execute a jar file from a Maven profile.  Liquibase 
actually has a plugin, but the command I want to use is not supported.  
This profile should do the trick, but I'm seeing an ArrayStoreException 
from it.  The debug information didn't really lead me anywhere.  
Hopefully, I've just got some little something in the wrong place and 
someone will spot it quickly.


Thanks!
Dave

Here is my profile:

   profile
   idgenerate_changelog_xml/id
   properties
   executionClassliquibase.commandline.Main/executionClass
   /properties
   build
   plugins
   plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdexec-maven-plugin/artifactId
   dependencies
   dependency
   groupIdorg.liquibase/groupId
   artifactIdliquibase-core/artifactId
   version1.8.1/version
   /dependency
   dependency
   groupIdmysql/groupId
   
artifactIdmysql-connector-java/artifactId

   version5.0.4/version
   /dependency
   /dependencies
   executions
   execution
   goals
   goaljava/goal
   /goals
   /execution
   /executions
   configuration
   
includeProjectDependenciesfalse/includeProjectDependencies
   
includePluginDependenciestrue/includePluginDependencies

   executableDependency
   groupIdorg.liquibase/groupId
   artifactIdliquibase-core/artifactId
   /executableDependency
   
mainClassliquibase.commandline.Main/mainClass

   arguments
   argument-classpath/argument
   classpath
   
dependencymysql:mysql-connector-java/dependency

   /classpath
   /arguments
   commandlineArgs
   
argument--driver=com.mysql.jdbc.Driver/argument
   
argument--url=jdbc:mysql://localhost:3306/harvey/argument

   argument--username=harvey/argument
   argument--password=harvey/argument
   
argument--changeLogFile=changelog.xml/argument

   argumentgenerateChangeLog/argument
   /commandlineArgs
   /configuration
   /plugin
   /plugins
   /build
   /profile


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



Re: assembly - grabbing runtime classpath for bat script

2008-10-23 Thread Stephen Connolly
have you had a look at the appassembler-mavn-plugin on mojo?

I use it and antrun and buildhelper to create a zip with batch files and
bash scripts and all the dependencies for projects

-Stephen

2008/10/23 carlos f [EMAIL PROTECTED]


 jar-with-dependencies is not a practical option for our project so we have
 come up with a custom assembly that generates a zip/tar of:
 - our projects jar
 - a lib dir with all of our projects dependencies
 - bat scripts to execute the jar

 However I still need to add all of the jars in the lib to the classpath
 when
 invoking java in the bat scripts.

 Is there any way to have maven add the appropriate dependencies entries for
 the bat script based on the current runtime classpath?

 Carlos
 --
 View this message in context:
 http://www.nabble.com/assembly---grabbing-runtime-classpath-for-bat-script-tp20138852p20138852.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: Disabling Javadoc Generation in Release Plugin

2008-10-23 Thread Blake Martin
Thank you, that did the trick.

Also, I've noticed that if you want to deploy the sources, but not the
javadocs, you can set the javadoc plugin's sourcepath to a bogus directory,
like so:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
version2.2/version
configuration
  sourcepath${basedir}/meh/sourcepath
/configuration
/plugin

On Thu, Oct 23, 2008 at 2:18 PM, Nick Stolwijk [EMAIL PROTECTED]wrote:

 Default the release plugin performs the phases deploy and site-deploy.
 By giving the command -Dgoals=deploy, you tell the release:perform to
 only deploy your application and not the generated site. Also, you can
 use the -DuseReleaseProfile=false, which will stop generating the
 sources and javadoc jar. See [1] for other options.

 [1] http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html
 Hth,

 Nick Stolwijk
 ~Java Developer~

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



 On Thu, Oct 23, 2008 at 8:10 PM, Blake Martin [EMAIL PROTECTED]
 wrote:
  I'm trying to perform a release of a legacy project, which isn't even
 close
  to having functional Javadocs.
 
  The release plugin fails because the Javadoc goal fails. How can I skip
  Javadoc generation?
 

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




Re: Disabling Javadoc Generation in Release Plugin

2008-10-23 Thread Nick Stolwijk
Or just skip it:

plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
   version2.2/version
   configuration
 skiptrue/skip
   /configuration
/plugin

Hth,

Nick Stolwijk
~Java Developer~

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



On Thu, Oct 23, 2008 at 10:42 PM, Blake Martin [EMAIL PROTECTED] wrote:
 Thank you, that did the trick.

 Also, I've noticed that if you want to deploy the sources, but not the
 javadocs, you can set the javadoc plugin's sourcepath to a bogus directory,
 like so:

 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
version2.2/version
configuration
  sourcepath${basedir}/meh/sourcepath
/configuration
 /plugin

 On Thu, Oct 23, 2008 at 2:18 PM, Nick Stolwijk [EMAIL PROTECTED]wrote:

 Default the release plugin performs the phases deploy and site-deploy.
 By giving the command -Dgoals=deploy, you tell the release:perform to
 only deploy your application and not the generated site. Also, you can
 use the -DuseReleaseProfile=false, which will stop generating the
 sources and javadoc jar. See [1] for other options.

 [1] http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html
 Hth,

 Nick Stolwijk
 ~Java Developer~

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



 On Thu, Oct 23, 2008 at 8:10 PM, Blake Martin [EMAIL PROTECTED]
 wrote:
  I'm trying to perform a release of a legacy project, which isn't even
 close
  to having functional Javadocs.
 
  The release plugin fails because the Javadoc goal fails. How can I skip
  Javadoc generation?
 

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



RESOLVED: Problem executing jar file from Maven.

2008-10-23 Thread David C. Hicks
I finally figured out the right configuration dance.  In case anyone is 
interested, here is the final configuration I ended up with.  This would 
replace that same chunk from the original profile, found below.


   executions
   execution
   goals
   goaljava/goal
   /goals
   /execution
   /executions
   configuration
   
includeProjectDependenciestrue/includeProjectDependencies
   
includePluginDependenciestrue/includePluginDependencies

   executableDependency
   groupIdorg.liquibase/groupId
   artifactIdliquibase-core/artifactId
   /executableDependency
   
mainClassliquibase.commandline.Main/mainClass

   commandlineArgs
   --driver=${harvey.database.driver} 
--url=${harvey.database.url} --username=${harvey.database.username} 
--password=${harvey.database.password} --changeLogFile=changelog.xml 
generateChangeLog

   /commandlineArgs
   /configuration


David C. Hicks wrote:
I'm trying to execute a jar file from a Maven profile.  Liquibase 
actually has a plugin, but the command I want to use is not 
supported.  This profile should do the trick, but I'm seeing an 
ArrayStoreException from it.  The debug information didn't really lead 
me anywhere.  Hopefully, I've just got some little something in the 
wrong place and someone will spot it quickly.


Thanks!
Dave

Here is my profile:

   profile
   idgenerate_changelog_xml/id
   properties
   
executionClassliquibase.commandline.Main/executionClass

   /properties
   build
   plugins
   plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdexec-maven-plugin/artifactId
   dependencies
   dependency
   groupIdorg.liquibase/groupId
   artifactIdliquibase-core/artifactId
   version1.8.1/version
   /dependency
   dependency
   groupIdmysql/groupId
   
artifactIdmysql-connector-java/artifactId

   version5.0.4/version
   /dependency
   /dependencies
   executions
   execution
   goals
   goaljava/goal
   /goals
   /execution
   /executions
   configuration
   
includeProjectDependenciesfalse/includeProjectDependencies
   
includePluginDependenciestrue/includePluginDependencies

   executableDependency
   groupIdorg.liquibase/groupId
   artifactIdliquibase-core/artifactId
   /executableDependency
   
mainClassliquibase.commandline.Main/mainClass

   arguments
   argument-classpath/argument
   classpath
   
dependencymysql:mysql-connector-java/dependency

   /classpath
   /arguments
   commandlineArgs
   
argument--driver=com.mysql.jdbc.Driver/argument
   
argument--url=jdbc:mysql://localhost:3306/harvey/argument

   argument--username=harvey/argument
   argument--password=harvey/argument
   
argument--changeLogFile=changelog.xml/argument

   argumentgenerateChangeLog/argument
   /commandlineArgs
   /configuration
   /plugin
   /plugins
   /build
   /profile


-
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: creating a maven project in eclipse very new bee

2008-10-23 Thread Eugene Kuleshov

Miro,

  It is better to report issues with m2eclipse to its own mailing list at 
  In this particular case you need to un-select optional m2eclipse features
not appropriate for your environment (probably AJDT and Subclipse). Also see
the following wiki page for the installation requirements
http://docs.codehaus.org/display/M2ECLIPSE/Installation+Requirements

  regards,
  Eugene



miro wrote:
 
 I tried this plugin before , unfortunately I am unable to install this
 plugin . 
 ...
 here  the error messages  . please help me get going with maven in eclipse 
 ...
 

-- 
View this message in context: 
http://www.nabble.com/creating-a-maven-project-in-eclipse---very--new-bee-tp20135531p20140112.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: creating a maven project in eclipse very new bee

2008-10-23 Thread Eugene Kuleshov

dchicks,

  With m2eclipse, steps you described can be folded nearly into one step.
You may want to check it out. See, for example, how Maven Archetypes are
integrated into the new project wizard.
http://docs.codehaus.org/display/M2ECLIPSE/Creating+Maven+projects

  You can say that Eclipse is not necessary, but it is certainly making
working with Maven in the IDE easier.

  regards,
  Eugene


dchicks wrote:
 
 After reading your first email, I think you have some ideas backwards.  
 Eclipse does not necessarily control what Maven does.  Maven's 
 activities are all governed by the pom.xml file.  To help simplify 
 things, why not take it one step at a time.
 
 First, create your Maven project.  Use an archetype to generate the 
 starting point for yourself:  
 http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
 Next, build the project using Maven:  mvn install  (this will get all 
 your dependencies pulled into your local repository)
 Next, create the necessary Eclipse project files from the Maven 
 pom.xml:  mvn eclipse:eclipse
 Now, when you open Eclipse, you can import the project and it will be 
 all happy with itself.
 
 Any time you need to add a dependency, it should be done through the 
 pom.xml.  M2Eclipse (the Eclipse plugin) can help with this, but isn't 
 strictly necessary.
 
-- 
View this message in context: 
http://www.nabble.com/creating-a-maven-project-in-eclipse---very--new-bee-tp20135531p20140178.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: mvn site is ignoring index.apt

2008-10-23 Thread Fernando Colombo

Problem solved. Maven site generates a default report called About, which
is placed into an index.html file. A just added to the pom.xml a report
element with an empty reportSet, and everything went fine.

Thanks for helping!



Fernando Colombo wrote:
 
 Ciramella, thanks for your prompt answer.
 
 I don't know if I'm overriding the index file. I just created an
 apt/index.apt and would like this to be the main website page, with
 banners and menus as defined in the site.xml file.
 
 But somehow Maven ignores completly the contents of just that file. Any
 other .apt file in the apt/ directory is correctly transformed into a nice
 .html file, with banners and menus as described in my site.xml.
 
 The only exception is with index.apt. The generated index.html is looking
 more like an about page with unrelated menu, banners and so on.
 
 
 EJ Ciramella-3 wrote:
 
 If you're overriding the index file, then you need (from what I can
 tell) to duplicate all the index info (so the reporting blocks etc).
 
 Do you need to replace the index file entirely or do you just need to
 change the look/feel and add content to the navigation? 
 
 -Original Message-
 From: Fernando Colombo [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 22, 2008 9:47 PM
 To: users@maven.apache.org
 Subject: mvn site is ignoring index.apt
 
 Greetings (If this is not the right place for this, please tell me where
 it is).
 
 I'm running the site goal using Maven Integration for Eclipse, but
 it simply ignores the src/site/apt/index.apt.
 Instead of generating my content, it generates an index.html file
 containing only the About content, using whatever is listed on the
 description and name elements of pom.xml. That index.html also does
 not respect the site.xml file.
 
 Also strange, all report files respect definitions of site.xml. Only the
 index.html (the most important file!) is being generating with About
 stuff, ignoring completely what is set on index.apt and site.xml.
 
 What did I miss?
 
 
   
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%22mvn-site%22-is-ignoring-index.apt-tp20124296p20140379.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: creating a maven project in eclipse very new bee

2008-10-23 Thread David C. Hicks
Thanks, Eugene.  I was actually aware of that, but in the interest of 
education I was trying to make it clear that Maven and Eclipse are two 
distinct things.  Sometimes, as useful as they may be, plugins blur the 
lines.  I generally think it's better to learn the one tool, then figure 
out how it gets integrated with something else.


I do like M2Eclipse, by the way.
Dave


Eugene Kuleshov wrote:

dchicks,

  With m2eclipse, steps you described can be folded nearly into one step.
You may want to check it out. See, for example, how Maven Archetypes are
integrated into the new project wizard.
http://docs.codehaus.org/display/M2ECLIPSE/Creating+Maven+projects

  You can say that Eclipse is not necessary, but it is certainly making
working with Maven in the IDE easier.

  regards,
  Eugene


dchicks wrote:
  
After reading your first email, I think you have some ideas backwards.  
Eclipse does not necessarily control what Maven does.  Maven's 
activities are all governed by the pom.xml file.  To help simplify 
things, why not take it one step at a time.


First, create your Maven project.  Use an archetype to generate the 
starting point for yourself:  
http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
Next, build the project using Maven:  mvn install  (this will get all 
your dependencies pulled into your local repository)
Next, create the necessary Eclipse project files from the Maven 
pom.xml:  mvn eclipse:eclipse
Now, when you open Eclipse, you can import the project and it will be 
all happy with itself.


Any time you need to add a dependency, it should be done through the 
pom.xml.  M2Eclipse (the Eclipse plugin) can help with this, but isn't 
strictly necessary.





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



Re: Build only a subset of projects/modules in maven2

2008-10-23 Thread Brett Porter
EJ is correct. Another alternative you might consider is the reactor  
plugin which keeps the build intact but can run a specified subset  
depending on your needs (Based on scm changes and/or dependencies).


- Brett

On 23/10/2008, at 9:17 PM, EJ Ciramella wrote:


Could you make the modules profile enabled?

This could wind up being messy though, what's the default set?

I think the true solution is to make the project more modular and have
aggregator poms where necessary.

-Original Message-
From: smceneaney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2008 7:05 AM
To: users@maven.apache.org
Subject: Build only a subset of projects/modules in maven2


Hi,

Our build takes up to 20 minutes to complete using maven2.

Is it possible to have a profile that only builds certain modules? I  
had

a look at the docs but can't see a way of doing this.

Thanks in advance,

Shane
--
View this message in context:
http://www.nabble.com/Build-only-a-subset-of-projects-modules-in-maven2-
tp20128757p20128757.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]



--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


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



EAR Project - Resource filtered correctly in the /target/classes folder but not in the archive ?

2008-10-23 Thread mfs

Hi Guys,

I have an ear project consisting of wars and ejb modules. Also i have some
resources (specific to oracle-container e.g. orion-application.xml,
data-source.xml etc) in the src-main-application-META-INF folder. So
basically i want to filter some properties being used in one of these files
i.e. data-source.xml. 
Surpisingly filtering does happen but only in the files placed in the
/target/classes folder. The archive itself (also the un-packaged one)
doesn't have the resources filtered, which is strange...

Any idea? has anyone experienced this ?

Below is the resources section as in my pom.xml


resources
  resource
directorysrc/main/application/directory
filteringtrue/filtering
  /resource
/resources

Thanks in advance and Regards,

Farhan.
-- 
View this message in context: 
http://www.nabble.com/EAR-Project---Resource-filtered-correctly-in-the--target-classes-folder-but-not-in-the-archive---tp20142396p20142396.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: creating a maven project in eclipse very new bee

2008-10-23 Thread Rusty Wright

Some excellent documentation for Maven and the m2eclipse plugin:

 http://www.sonatype.com/book/reference/public-book.html

 http://www.exist.com/better-build-maven


miro wrote:
I am very very new to maven need help in creating   a project . 
Eclipse 3.4.1  and installed maven eclipse project.

Please help me create a new java project to be built by  maven using
eclipse.
I did not find any article   doing this.
for my  trails I created a   new Maven project   which created project.xml 
next I tried create pom.xml it did nothing ,I am assuming maven gets all the

jars need for my project from its default  repository ,I  cannot edit my
environment variables to follow instruction in maven installation, I just
have eclipse and eclipse maven plugin. 
I assuming I tell in some config file I need common-logging, hibernate  etc

jars for my project and maven will bring them from default server repository
and   place it in my local repository.
Please help me  create maven based java project.



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



how to change final thing (artifact?) my build produces and releases?

2008-10-23 Thread Rusty Wright

My parent pom has 3 modules, one produces a jar of common utility code for the 
other two, the other two are jar files that will be run from a shell script via 
cron.

For our people who will be deploying this on the production and qa machines I 
want to provide them with two zip files, which I will have checked into 
subversion as a tag.  They'll check each one out, unzip it, which contains the 
shell script and the crontab entries (which they can double-check in case they 
change).

I have an assembly file which makes the zip files of the jar file and its 
dependencies, the shell script, and the file with the crontab entries.

The part I don't understand is putting the zip file into subversion; I'm 
thinking that I ought to use the release plugin but it seems to me that it's 
going to want to just do my jar file.

Anyhow, I hope that makes sense and perhaps someone has done something similar 
and can explain how to do what I'm trying to do.

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



Re: assembly - grabbing runtime classpath for bat script

2008-10-23 Thread Rusty Wright

What about simply adding the jars to the classpath without any path, then when 
you run the jar have your script cd into the directory where the jars are?  The 
jar with main will be in the same directory as its dependencies.

For example, my pom has

   !-- don't add classpath prefix; that way the jar can run   --
   !-- from any directory as long as the executing script --
   !-- cds into the directory it's in.--
   !-- classpathPrefix  --
   !-- ${classpathPrefix}/cars_download --
   !-- /classpathPrefix --
   plugin
   artifactIdmaven-jar-plugin/artifactId
   configuration
   archive
   manifest
   addClasspathtrue/addClasspath

   mainClass
   edu.berkeley.ist.cars.download.main.CarsDownloadMain
   /mainClass
   /manifest
   /archive
   /configuration
   /plugin

Then my shell script (unix) looks like

 JAVACMD=/usr/jdk/latest/bin/java

 FLAVOR=download

 RUNDIR=/users/facility/cars_runner/${FLAVOR}

 JARFILE=cars_${FLAVOR}.jar

 JARPATH=${RUNDIR}/${JARFILE}

 # first cd to the directory where everything is.
 # the classpath in the jar file doesn't specify the
 # full path so we need to be in with the jars.

 cd ${RUNDIR}

 21 ( ${JAVACMD} -jar ${JARPATH} )  ${RUNDIR}/logs/${FLAVOR}.log

Here's my assembly xml file that generates the zip file where all the jars and 
shell script go in; this gets extracted on the server where the jar runs.

?xml version=1.0 encoding=UTF-8?

assembly
   iddownload/id

   formats
   formatzip/format
   /formats

   includeBaseDirectoryfalse/includeBaseDirectory

   baseDirectory//baseDirectory

   moduleSets
   moduleSet
   includes
   includeedu.berkeley.ist:cars_download/include
   /includes

   binaries
   unpackfalse/unpack
   useStrictFilteringtrue/useStrictFiltering
   includeDependenciestrue/includeDependencies
   outputDirectorydownload/outputDirectory
   /binaries
   /moduleSet
   /moduleSets

   files
   file
   sourcesrc/stuff/scripts/cars_download.sh/source
   lineEndingunix/lineEnding
   filteredtrue/filtered
   outputDirectorydownload/outputDirectory
   /file

   file
   sourcesrc/stuff/notes/crontab.txt/source
   lineEndingunix/lineEnding
   filteredtrue/filtered
   outputDirectorydownload/outputDirectory
   /file
   /files
/assembly


Stephen Connolly wrote:

have you had a look at the appassembler-mavn-plugin on mojo?

I use it and antrun and buildhelper to create a zip with batch files and
bash scripts and all the dependencies for projects

-Stephen

2008/10/23 carlos f [EMAIL PROTECTED]


jar-with-dependencies is not a practical option for our project so we have
come up with a custom assembly that generates a zip/tar of:
- our projects jar
- a lib dir with all of our projects dependencies
- bat scripts to execute the jar

However I still need to add all of the jars in the lib to the classpath
when
invoking java in the bat scripts.

Is there any way to have maven add the appropriate dependencies entries for
the bat script based on the current runtime classpath?

Carlos
--
View this message in context:
http://www.nabble.com/assembly---grabbing-runtime-classpath-for-bat-script-tp20138852p20138852.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: [SOLUTION] Filtering resources in the EAR artifact

2008-10-23 Thread mfs

I am trying out what you suggested (as i have an exactly similar scenario),
but still cant get it to work, below is my configuration as in my
pom.xml..let me know if anything is missed out..

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ear-plugin/artifactId
configuration
 
earSourceDirectory${basedir}/src/main/resources/earSourceDirectory
  resourcesDir${outputDirectory}/resourcesDir [WE HAVE CUSTOM
OUTPUT LOCATION AND outputDirectory IN THIS CASE POINTS TO
${defaultoutputdirectory}/${project.artifactId}/target/classes folder) 
  version5/version
  defaultLibBundleDirlib/defaultLibBundleDir
  modules
webModule
  groupIdportal.wes/groupId
  artifactIdwes-webui/artifactId
  bundleDir//bundleDir
/webModule
webModule
  groupIdportal.wicket/groupId
  artifactIdwes-wicket/artifactId
  bundleDir//bundleDir
/webModule
webModule
  groupIdportal.crystal/groupId
  artifactIdwes-crystal/artifactId
  bundleDir//bundleDir
/webModule
ejbModule
  groupIdportal.vcert/groupId
  artifactIdportal-ejb/artifactId
  bundleDirlib/bundleDir
/ejbModule
  /modules
/configuration
  /plugin
/plugins
resources
  resource
directorysrc/main/resources/directory
filteringtrue/filtering
includes
  include**/META-INF/**/include
/includes
  /resource
/resources
  /build

Thanks in advance,

Farhan.



Vanja Petreski wrote:
 
 Hello,
 
 I lost couple of hours with this problem, so I am giving the solution (and
 would like to hear the better one, if there is a such).
 
 The problem:
 
 We have ear with couple of modules (ejb, war...) and META-INF with
 standard
 and proprietary descriptors (data-sources.xml, orion-application.xml,
 etc.).
 Some of them need to be filtered (for example: data-sources.xml).
 
 In order to `mvn package` on the ear artifact generate desired structure,
 we
 have to put our descriptors in the ${basedir}/src/main/application (not in
 ${basedir}/src/main/resources).
 
 And that works. But filtering doesn't! If we set filtering on this folder,
 in the target we get classes folder with properly filtered resources, but
 the ear is not using them. Ear uses your-ear-artifact in the target to be
 made of. In the target/your-ear-artifact there is META-INF, but with non
 filtered resources.
 
 The quickest (and only one for now, as I know) solution:
 
 We have to tell ear plugin to use ${basedir}/target/classes  as the
 resource
 folder, since there are located properly filtered resources:
 
 plugin
artifactIdmaven-ear-plugin/artifactId
   configuration
  resourcesDirtarget/classes/resourcesDir
   /configuration
 /plugin
 
 Ofcourse, we are using now the standard ${basedir}/src/main/resources
 folder
 with filtering turned on.
 
 Regards,
 Vanja
 
 

-- 
View this message in context: 
http://www.nabble.com/-SOLUTION--Filtering-resources-in-the-EAR-artifact-tp13131334p20143151.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 change final thing (artifact?) my build produces and releases?

2008-10-23 Thread Wendy Smoak
On Thu, Oct 23, 2008 at 6:26 PM, Rusty Wright [EMAIL PROTECTED] wrote:
 My parent pom has 3 modules, one produces a jar of common utility code for
 the other two, the other two are jar files that will be run from a shell
 script via cron.

 For our people who will be deploying this on the production and qa machines
 I want to provide them with two zip files, which I will have checked into
 subversion as a tag.  They'll check each one out, unzip it, which contains
 the shell script and the crontab entries (which they can double-check in
 case they change).

 I have an assembly file which makes the zip files of the jar file and its
 dependencies, the shell script, and the file with the crontab entries.

 The part I don't understand is putting the zip file into subversion; I'm
 thinking that I ought to use the release plugin but it seems to me that it's
 going to want to just do my jar file.

Are you building the assembly separately?  If so, use one of the goals
that attaches it so that it happens during a normal build.  You may
want to put the assembly in a separate module, if it's not there
already.

Then you can use the release plugin to tag and deploy all of your
artifacts, including the assembly.  Normally, released artifacts go
into a remote repository, not into Subversion.

Given that they can be recreated from the tag, do you still have to
check them in?  If so, and want to do it as part of the build, take a
look at maven-scm-plugin, which can be convinced to do this.

-- 
Wendy

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



how to deal with the sub module's version?

2008-10-23 Thread sean.chen(陈思淼)
the sub module's version should be the same with the parent module.when the
 parent version changes, all the sub-module will change its version.

how to deal with it?


Re: how to deal with the sub module's version?

2008-10-23 Thread Wendy Smoak
On Thu, Oct 23, 2008 at 8:49 PM, sean.chen(陈思淼) [EMAIL PROTECTED] wrote:

 the sub module's version should be the same with the parent module.when the
  parent version changes, all the sub-module will change its version.

 how to deal with it?

Simply omit the version tag in the child, and it will be inherited
from the parent.

The child pom looks like:

project
  parent
groupIdcom.example/groupId
artifactIdmyproject/artifactId
version1.0-SNAPSHOT/version
  /parent
  artifactIdmyproject-core/artifactId
  ...

Then use the release plugin to update the version 1.0-SNAPSHOT - 1.0
- 1.1-SNAPSHOT at release time.

-- 
Wendy


Re: how to deal with the sub module's version?

2008-10-23 Thread Kalle Korhonen
And configure the release plugin with:
configuration
autoVersionSubmodulestrue/autoVersionSubmodules
/configuration

So you don't have to type the same version number over and over again.

Kalle

2008/10/23 Wendy Smoak [EMAIL PROTECTED]

 On Thu, Oct 23, 2008 at 8:49 PM, sean.chen(陈思淼) [EMAIL PROTECTED]
 wrote:

  the sub module's version should be the same with the parent module.when
 the
   parent version changes, all the sub-module will change its version.
 
  how to deal with it?

 Simply omit the version tag in the child, and it will be inherited
 from the parent.

 The child pom looks like:

 project
  parent
groupIdcom.example/groupId
artifactIdmyproject/artifactId
version1.0-SNAPSHOT/version
  /parent
  artifactIdmyproject-core/artifactId
  ...

 Then use the release plugin to update the version 1.0-SNAPSHOT - 1.0
 - 1.1-SNAPSHOT at release time.

 --
 Wendy



Re: assembly - grabbing runtime classpath for bat script

2008-10-23 Thread Kalle Korhonen
Or, do it the Java way: add the libs to the manifest of your executable jar
(http://maven.apache.org/guides/mini/guide-manifest.html, the libs can stay
in your lib dir) and just have the start-up script set the work dir or cd to
the home directory of the app.

Kalle

On Thu, Oct 23, 2008 at 6:36 PM, Rusty Wright [EMAIL PROTECTED]wrote:

 What about simply adding the jars to the classpath without any path, then
 when you run the jar have your script cd into the directory where the jars
 are?  The jar with main will be in the same directory as its dependencies.

 For example, my pom has

   !-- don't add classpath prefix; that way the jar can run   --
   !-- from any directory as long as the executing script --
   !-- cds into the directory it's in.--
   !-- classpathPrefix  --
   !-- ${classpathPrefix}/cars_download --
   !-- /classpathPrefix --
   plugin
   artifactIdmaven-jar-plugin/artifactId
   configuration
   archive
   manifest
   addClasspathtrue/addClasspath

   mainClass
   edu.berkeley.ist.cars.download.main.CarsDownloadMain
   /mainClass
   /manifest
   /archive
   /configuration
   /plugin

 Then my shell script (unix) looks like

  JAVACMD=/usr/jdk/latest/bin/java

  FLAVOR=download

  RUNDIR=/users/facility/cars_runner/${FLAVOR}

  JARFILE=cars_${FLAVOR}.jar

  JARPATH=${RUNDIR}/${JARFILE}

  # first cd to the directory where everything is.
  # the classpath in the jar file doesn't specify the
  # full path so we need to be in with the jars.

  cd ${RUNDIR}

  21 ( ${JAVACMD} -jar ${JARPATH} )  ${RUNDIR}/logs/${FLAVOR}.log

 Here's my assembly xml file that generates the zip file where all the jars
 and shell script go in; this gets extracted on the server where the jar
 runs.

 ?xml version=1.0 encoding=UTF-8?

 assembly
   iddownload/id

   formats
   formatzip/format
   /formats

   includeBaseDirectoryfalse/includeBaseDirectory

   baseDirectory//baseDirectory

   moduleSets
   moduleSet
   includes
   includeedu.berkeley.ist:cars_download/include
   /includes

   binaries
   unpackfalse/unpack
   useStrictFilteringtrue/useStrictFiltering
   includeDependenciestrue/includeDependencies
   outputDirectorydownload/outputDirectory
   /binaries
   /moduleSet
   /moduleSets

   files
   file
   sourcesrc/stuff/scripts/cars_download.sh/source
   lineEndingunix/lineEnding
   filteredtrue/filtered
   outputDirectorydownload/outputDirectory
   /file

   file
   sourcesrc/stuff/notes/crontab.txt/source
   lineEndingunix/lineEnding
   filteredtrue/filtered
   outputDirectorydownload/outputDirectory
   /file
   /files
 /assembly



 Stephen Connolly wrote:

 have you had a look at the appassembler-mavn-plugin on mojo?

 I use it and antrun and buildhelper to create a zip with batch files and
 bash scripts and all the dependencies for projects

 -Stephen

 2008/10/23 carlos f [EMAIL PROTECTED]

  jar-with-dependencies is not a practical option for our project so we
 have
 come up with a custom assembly that generates a zip/tar of:
 - our projects jar
 - a lib dir with all of our projects dependencies
 - bat scripts to execute the jar

 However I still need to add all of the jars in the lib to the classpath
 when
 invoking java in the bat scripts.

 Is there any way to have maven add the appropriate dependencies entries
 for
 the bat script based on the current runtime classpath?

 Carlos
 --
 View this message in context:

 http://www.nabble.com/assembly---grabbing-runtime-classpath-for-bat-script-tp20138852p20138852.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]