Re: maven-war-plugin

2009-02-06 Thread David C. Hicks
It sounds to me like you want another module in your project that 
creates the obfuscated jar as its artifact, then have the war module 
depend on that obfuscated jar.  The war plugin would pick up the 
obfuscated one and build the war with it.



Nasrin_a wrote:
hi all 
i have a web application & i build my project by maven,

now i have a new request :obfuscatation of this project ,
for this request i used war plugin
  
maven-war-plugin

true


then obfuscatated  archive classes ,

now i want to copy this obfuscatated jar file to /WEB-INF/lib in my war
file,
but i dont know how to do this.(i dont want to use other plugin if possible)

would you please help me?

thanks.





  


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



maven-war-plugin

2009-02-06 Thread Nasrin_a

hi all 
i have a web application & i build my project by maven,
now i have a new request :obfuscatation of this project ,
for this request i used war plugin
  
maven-war-plugin

true


then obfuscatated  archive classes ,

now i want to copy this obfuscatated jar file to /WEB-INF/lib in my war
file,
but i dont know how to do this.(i dont want to use other plugin if possible)

would you please help me?

thanks.





-- 
View this message in context: 
http://www.nabble.com/maven-war-plugin-tp21885603p21885603.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



and no longer updated?

2009-02-06 Thread jaxzin

Any ideas why  and  in the maven-metadata.xml for my
artifact are no longer being updated?  I'm just incrementing the third place
(2.4.42 --> 2.4.43) and the maven-deploy-plugin is no longer updating the
maven-metadata.xml in my repository with new releases as being  and
 though it does add the version number to the  element.
-- 
View this message in context: 
http://www.nabble.com/%3Crelease%3E-and-%3Clatest%3E-no-longer-updated--tp21885591p21885591.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Referring to another module's artifact?

2009-02-06 Thread David C. Hicks
Hmmm...I can't imagine a scenario where that makes sense, but I can't 
say there isn't one.  The WAR is created already.  I just need to launch 
Jetty (or some other container) to run the WAR, then run the test suite 
against the container.


I actually got this working - sort of.  I'm not happy with it, yet, 
though.  As far as I can tell, the Jetty plugin "run-war" goal doesn't 
support the capability to provide a jetty-env.xml file the way the 
jetty:run goal does.  Maybe it's just not documented, but I couldn't 
make it work, either.  So, I ended up running the exploded directory 
from my integration-test module by referring to the other module's 
directories.  (Like I said, I'm not very happy with it.)


I'd love to see a good example of something like this.  I'm sure someone 
has solved this problem in a more "Maven" kind of way.  I plan to have a 
look at Selenium over the weekend as a possible option.



Rusty Wright wrote:
Would it make sense for the integration test make its own war?  The 
jetty plugin docs say for webApp:


defaults to ${project.build.directory}/${project.build.finalName}.war


David C. Hicks wrote:
Oh yuck! That looked a whole lot better when I clicked the "Send" 
button. Hopefully, this is more readable...


David C. Hicks wrote:


org.mortbay.jetty
maven-jetty-plugin
6.1.11


<>





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



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



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



Re: Referring to another module's artifact?

2009-02-06 Thread Rusty Wright

Would it make sense for the integration test make its own war?  The jetty 
plugin docs say for webApp:

defaults to ${project.build.directory}/${project.build.finalName}.war


David C. Hicks wrote:
Oh yuck! That looked a whole lot better when I clicked the "Send" 
button. Hopefully, this is more readable...


David C. Hicks wrote:


org.mortbay.jetty
maven-jetty-plugin
6.1.11


<>





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



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



Sharing Exercise Code

2009-02-06 Thread Michael Finney
Hi,

I wish to make it easy for people to download some code, change it for the
sake of practicing (CodeKata), and then throw it all away.

Would it be a good idea to create an archetype per chunk of code and submit
the Maven 2 archetypes to the central repository? We're talking about very
small amounts of code with varying amounts of dependencies. Example:
http://code.google.com/p/funkata/source/browse/trunk/src/main/java/com/smili
ngsoftwaresolutions/funkata/Kid.java and its associated test class would be
1 chunk of code; dependency is JUnit.

Some small practice exercises will depend on struts2. So, it's still small
chunks of code, but with much larger dependency trees. (Similar to the
http://mvnrepository.com/artifact/org.apache.struts/struts2-blank )

What makes sense in this context?

Thanks for your time.

-- 
Michael Finney - "Always Striving To Serve You Better Every Day"
fin...@acm.org
http://www.SmilingSoftwareSolutions.com



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



Site plugin and modules

2009-02-06 Thread Tim McGinnis


Why doesn't the Site plugin respect submodule site.xml files?  Or am I 
doing something wrong?


I run Maven 2.09 with RSA 7.0.0.7.  I have a project that has several 
sub-projects (modules).  The project has its own site.xml and the 
modules have their own site.xml.


When I run "mvn site-deploy" on the project the resulting site has only 
the contents from the project site.xml and not the individual module 
site.xml files.  To get the proper html pages for the modules I have to 
run "mvn site-deploy" on each individual module.  Shouldn't I just be 
able to run site-deploy on the project and the plugin works for the 
modules?


Also I notice if I just run "mvn site" on the project the site is only 
created for the project, not the modules.


Thanks,

Tim M.

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



RE: Checkstyle report failing

2009-02-06 Thread bwonch

Hi Brian -

Thanks for the reply.

I am specifying it in both places.  In build, I'm using this snippet:


org.apache.maven.plugins
maven-checkstyle-plugin

checks.xml 



In reporting I'm using the snippet specified earlier.

Bill
-- 
View this message in context: 
http://www.nabble.com/Checkstyle-report-failing-tp21865980p21882563.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Aggregator pom fails, but modules work

2009-02-06 Thread klimane

I have the following project structure:

ProjectA
pom.xml [aggregator of the other two]
src
pom.xml
test
pom.xml

When I run the test build by itself either from the test directory or by
modifying the aggregator pom to exclude the src module and only include the
test module, it works.  However, when I run a build on the aggregator pom
(with the aggregator pom including both src and test modules), the test
module fails at compilation, stating that it can't find a class that is part
of the src build.  The test/pom.xml has the src artifact as a dependency. 
Also, I have this pattern working in other projects.  I'm just wondering if
anyone has any suggestions or if anyone has seen this type of behaviour
before.
-- 
View this message in context: 
http://www.nabble.com/Aggregator-pom-fails%2C-but-modules-work-tp21882332p21882332.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: maven-surefire-plugin version 2.3.4 not reporting the @Ignore annotated testcases

2009-02-06 Thread Wayne Fay
On Fri, Feb 6, 2009 at 12:48 PM, Rakesh Arora  wrote:
> We are using junit 4.4 and maven-surefire-plugin version 2.3.4
>
> http://jira.codehaus.org/browse/SUREFIRE-303

That JIRA indicates it is fixed in Surefire version 2.4, but by your
own admission you are using 2.3.4. I would assume that is the problem.

Wayne

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



maven-surefire-plugin version 2.3.4 not reporting the @Ignore annotated testcases

2009-02-06 Thread Rakesh Arora
We are using junit 4.4 and maven-surefire-plugin version 2.3.4

Some of out testcases are annotated with @Ignore but
maven-surefire-plugin is not reporting them as skipped. Although these
testcases are ignored during the build. Is their any specific
configuration required to make maven-surefire-plugin to report them as
skipped? I found this jira but it according to it this feature is now
available:
http://jira.codehaus.org/browse/SUREFIRE-303

Any idea?

Thanks,
-Rakesh


Re: debugging TestNG with eclipse for Maven multi-module project?

2009-02-06 Thread Mick Knutson
I did find, and try:
http://maven.wikispaces.com/maven2+debug+mode+in+eclipse?f=print

I get the *Listening for transport dt_socket at address: 8000* then I try to
debug-->as Maven install again from eclipse, but the breakpoint in my
constructor is still ignored.

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Fri, Feb 6, 2009 at 2:57 PM, Mick Knutson  wrote:

> I am looking for some help getting a multi module project setup in eclipse
> so I can set breakpoints and debug my unit tests in TestNG. Can anyone help
> as I can run the build, but the breakpoints are ignored it seems.
>
> ---
> Thank You…
>
> Mick Knutson, President
>
> BASE Logic, Inc.
> Enterprise Architecture, Design, Mentoring & Agile Consulting
> p. (866) BLiNC-411: (254-6241-1)
> f. (415) 685-4233
>
> Website: http://baselogic.com
> Linked IN: http://linkedin.com/in/mickknutson
> Twitter: http://twitter.com/mickknutson
> Vacation Rental: http://tahoe.baselogic.com
> ---
>
>


debugging TestNG with eclipse for Maven multi-module project?

2009-02-06 Thread Mick Knutson
I am looking for some help getting a multi module project setup in eclipse
so I can set breakpoints and debug my unit tests in TestNG. Can anyone help
as I can run the build, but the breakpoints are ignored it seems.

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---


Re: help with the dbunit-maven-plugin

2009-02-06 Thread Dan Tran
you may want ping dbunit group, they know this plugin well and have
some talk to move this plugin to their own site.

-D

On Fri, Feb 6, 2009 at 10:05 AM, Mick Knutson  wrote:
> *I have this plugin declaration:*
>*
>org.codehaus.mojo
>dbunit-maven-plugin
>1.0-beta-1
>
>${jdbc.driverClassName}
>${jdbc.username}
>${jdbc.password}
>${jdbc.url}
>src/test/resources/default-data.xml
>${dbunit.operation.type}
>
>
>
>
>test-compile
>
>operation
>
>
>
>${dbunit.operation.type}
>src/test/resources/default-data.xml
>
>
>
>
>
>${jdbc.groupId}
>${jdbc.artifactId}
>${jdbc.version}
>
>
>*
>
> *Then I have this as the default-data.xml:*
>
> *
> 
>
>COL0
>COL1
>COL2
>
>row 0 col 0
>row 0 col 1
>row 0 col 2
>
>
>
>row 1 col 1
>
>
>
>
>COLUMN0
>COLUMN1
>
>row 0 col 0
>row 0 col 1
>
>
>
>COLUMN0
>COLUMN1
>
> 
> *
>
> *and I keep getting this error (Caused by:
> org.dbunit.dataset.NoSuchTableException: EMPTY_TABLE):*
>
> *733...@d5400lpl: /opt/projects/baselogic/services/data-services $ mvn
> dbunit:operation -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'dbunit'.
> [INFO]
> 
> [INFO] Building Data-Services JPA Impl
> [INFO]task-segment: [dbunit:operation]
> [INFO]
> 
> [INFO] [dbunit:operation]
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error executing database operation: CLEAN_INSERT
>
> Embedded error: EMPTY_TABLE
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
> database operation: CLEAN_INSERT
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:597)
>at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
> database operation: CLEAN_INSERT
>at
> org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:110)
>at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>... 16 more
> Caused by: org.dbunit.dataset.NoSuchTableException: EMPTY_TABLE
>at
> org.dbunit.database.DatabaseDataSet.getTableMetaData(DatabaseDataSet.java:192)
>at
> org.dbunit.operation.DeleteAllO

help with the dbunit-maven-plugin

2009-02-06 Thread Mick Knutson
*I have this plugin declaration:*
*
org.codehaus.mojo
dbunit-maven-plugin
1.0-beta-1

${jdbc.driverClassName}
${jdbc.username}
${jdbc.password}
${jdbc.url}
src/test/resources/default-data.xml
${dbunit.operation.type}




test-compile

operation



${dbunit.operation.type}
src/test/resources/default-data.xml





${jdbc.groupId}
${jdbc.artifactId}
${jdbc.version}


*

*Then I have this as the default-data.xml:*

*


COL0
COL1
COL2

row 0 col 0
row 0 col 1
row 0 col 2



row 1 col 1




COLUMN0
COLUMN1

row 0 col 0
row 0 col 1



COLUMN0
COLUMN1


*

*and I keep getting this error (Caused by:
org.dbunit.dataset.NoSuchTableException: EMPTY_TABLE):*

*733...@d5400lpl: /opt/projects/baselogic/services/data-services $ mvn
dbunit:operation -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dbunit'.
[INFO]

[INFO] Building Data-Services JPA Impl
[INFO]task-segment: [dbunit:operation]
[INFO]

[INFO] [dbunit:operation]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error executing database operation: CLEAN_INSERT

Embedded error: EMPTY_TABLE
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
database operation: CLEAN_INSERT
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
database operation: CLEAN_INSERT
at
org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:110)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
Caused by: org.dbunit.dataset.NoSuchTableException: EMPTY_TABLE
at
org.dbunit.database.DatabaseDataSet.getTableMetaData(DatabaseDataSet.java:192)
at
org.dbunit.operation.DeleteAllOperation.execute(DeleteAllOperation.java:98)
at
org.dbunit.operation.CompositeOperation.execute(CompositeOperation.java:67)
at org.dbunit.ant.Operation.execute(Operation.java:183)
at
org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:101)
... 18 more
[INFO]

Error: 'null' for project unknown

2009-02-06 Thread Michael Hüttermann
Hello,

I'm doing a "mvn clean" inside a project and get the message:
Fatal Error
Error building POM (may not be this project's POM)
Project ID: unknown
Reason: Failed to build model from file: C:\...\pom.xml.
Error: 'null' for project unknown

The Trace delivers an error at
org.apache.DefaultMaven.getProjects(DefaultMaven.java:378)

Strange is that on one machine the project can be cleaned as expected and
on the other the problem above arises. The system environments are the
same, i.e. other projects can be build without any problems.

What can be the problem? When does the described error pop up normally?
Any experiences?

Thank you!

Best regards
Michael

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



Re: release:perform fails to compile test classes

2009-02-06 Thread ossi petz
hallo

i've been able to narrow the problem down to the compiler plugin.

it seems the compiler plugin executes:
mvn compiler:compile
mvn compiler:testCompile

if a manually execute 'mvn compiler:testCompile' i get the same compiler
errors. a 'mvn test-compile' does both goals and no compile errors occur.

is there a way to configure the compile plugin to behave correctly?
the release:prepare executes both compiler:compile and
compiler:testCompile but it seems as the first step is 'forgotten' when
it comes to the test classes.

any hints or ideas would be great!

regards

ossi


ossi petz schrieb:
> hallo
> 
> i encounter a very strange situation with the maven release plugin. we
> have done quite some releases but for some reason a release:perform
> fails to compile test classes depending on another module.
> 
> the setup looks like this:
> 
> pom.xml (parent pom)
>  - module1
>  - module2 (with test2.jar)
>  - module3
>  - module4 (with test4.jar depending on test2.jar and module 2)
>  - module5
> 
> a "maven clean install" runs fine on both parent pom and module4 pom
> level. also the mvn release:prepareruns well.
> 
> when release:perform is executed there are compile errors for the
> test-classes in module4:
> 
> [INFO] Uploading: ./wagon38229.zip to
> scp://host/data/mvn/repositories/core-modules/2008.1.25-rc-1/module3
> [INFO]
> [INFO] ##
> [INFO] Transfer finished. 9780019 bytes copied in 2.61 seconds
> [...]
> [INFO] [INFO]
> 
> [INFO] [INFO] Building module4
> [INFO] [INFO]task-segment: [deploy, site-deploy]
> [INFO] [INFO]
> 
> [INFO] [INFO] [edoras-banner-echo:echo {execution: default}]
> [INFO] [INFO] [resources:resources]
> [INFO] [INFO] Using encoding: 'UTF-8' to copy filtered resources.
> [INFO] [INFO] [compiler:compile]
> [INFO] [INFO] Compiling 14 source files to
> /home/mvn5/releases/svn-trunk-core-modules/target/checkout/module5/target/classes
> [INFO] [INFO] [resources:testResources]
> [INFO] [INFO] Using encoding: 'UTF-8' to copy filtered resources.
> [INFO] [INFO] [compiler:testCompile]
> [INFO] [INFO] Compiling 2 source files to
> /home/mvn5/releases/svn-trunk-core-modules/target/checkout/module5/target/test-classes
> [INFO] [INFO]
> 
> [INFO] [ERROR] BUILD FAILURE
> [INFO] [INFO]
> 
> [INFO] [INFO] Compilation failure
> [INFO]
> [INFO]
> /home/mvn5/releases/svn-trunk-core-modules/target/checkout/module5/src/test/java/ch/module5/server/sync/ProfileSynchronizerTest.java:[16,36]
> cannot find symbol
> [INFO] symbol  : class ConfigurationException
> [INFO] location: package ch.edoras.core.configuration
> [INFO]
> [...]
> 
> 
> if i change the path to (the working copy of the created tag in the
> release:prepare step)
> /home/mvn5/releases/svn-trunk-core-modules/target/checkout/ or
> /home/mvn5/releases/svn-trunk-core-modules/target/checkout/module5
> and execute "mvn clean install" it runs just fine.
> 
> i have this problem out of nowhere in two projects. I tried different
> release plugin versions already (the two latest ones) but that did not help.
> 
> Does anyone have an idea what is causing the release plugin to have a
> different classpath for test executions compared to install?
> 
> Or any other thought may help!
> 
> 
> Thanks a lot
> ossi


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



Re: Referring to another module's artifact?

2009-02-06 Thread David C. Hicks
Oh yuck! That looked a whole lot better when I clicked the "Send" 
button. Hopefully, this is more readable...


David C. Hicks wrote:


org.mortbay.jetty
maven-jetty-plugin
6.1.11


<>





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



Re: Referring to another module's artifact?

2009-02-06 Thread David C. Hicks
I understand that I need to have a dependency to make sure that the 
modules are processed in the proper order. I need to refer to the actual 
artifact FILE in the Jetty plugin configuration in order to run the WAR. 
This would be the plugin config:



org.mortbay.jetty
maven-jetty-plugin
6.1.11


<>



I guess I can use something like: ../name>/target/-${project.version}.war
I just figured there must be something better than "hard-coding" that 
value in that way.


Thanks,
Dave


Todd Thiessen wrote:

Just added it as a dependency. ie:


  ${project.groupId}
  
  ${project.version}
  jar
  compile


---
Todd Thiessen
 

  

-Original Message-
From: David C. Hicks [mailto:dhi...@i-hicks.org] 
Sent: Friday, February 06, 2009 12:11 PM

To: Maven Users
Subject: Referring to another module's artifact?

I'm sure I'm going to feel stupid when someone tells me how, 
but I can't find a way to refer to another module's artifact 
from within the same multi-module pom.  Specifically, I have 
an "integration test" module in which I want to use the Jetty 
plugin to run the WAR created by a prior module's build.  I 
just don't know how to refer to that artifact from one of its 
sibling modules.  Anyone?


Thanks,
Dave


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





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

  


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



Re: Referring to another module's artifact?

2009-02-06 Thread ossi petz
hallo

well i hope its that simple :)

just add it as a dependency!


${project.groupId}
common
${project.version}


this could be a module in the multimodule build too. no difference to
'external' dependencies.

regards

ossi



David C. Hicks schrieb:
> I'm sure I'm going to feel stupid when someone tells me how, but I can't
> find a way to refer to another module's artifact from within the same
> multi-module pom.  Specifically, I have an "integration test" module in
> which I want to use the Jetty plugin to run the WAR created by a prior
> module's build.  I just don't know how to refer to that artifact from
> one of its sibling modules.  Anyone?
> 
> Thanks,
> Dave


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



Re: checkstyle plugin error on multimodule project

2009-02-06 Thread ossi petz
hallo

the trick is to reference the checkstyle config as a dependency and not
directly as a file.

there are some hints at:
http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html

we created a module containing only the checkstyle config. the parent
pom then gets this checkstyle-plugin configuration with a dependency to
that artifact.

that should work :)
good luck

regards

ossi




tim tim schrieb:
> hello
> 
> i have a simple multimodule project
> 
> pom.xml
> |
> proj1 pom.xml
> |
> proj2pom.xml
> 
> in the main pom.xml:
> 
>   proj1
>   proj2
> 
> 
> 
> proj2 depends on proj1.
> 
>
>   myComp
>   proj1
>   0.1-SNAPSHOT
>
> 
> 
> this dependency is resolved correctly when i call
> 
> mvn test
> 
> or when i open the projects via m2eclipse
> 
> but when i call
> 
> mvn checkstyle:checkstyle
> 
> the checkstyle plugin creates correct reports for proj1
> 
> but when it tries to work on proj2 i get the following error:
> 
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Failed to resolve artifact.
> 
> Missing:
> --
> 1) myComp:proj1:jar:0.1-SNAPSHOT
> 
> 
> it tries to load the missing dependency from a repository instead of using the
> files in the other submodule like the test and the compile plugins do.
> 
> i can not imagine that i have to deploy all jars before i use checkstyle?
> 
> how do i use checkstyle for multimodule projects?
> 
> 
> 
> thanks, tim


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



RE: Referring to another module's artifact?

2009-02-06 Thread Todd Thiessen
Just added it as a dependency. ie:


  ${project.groupId}
  
  ${project.version}
  jar
  compile


---
Todd Thiessen
 

> -Original Message-
> From: David C. Hicks [mailto:dhi...@i-hicks.org] 
> Sent: Friday, February 06, 2009 12:11 PM
> To: Maven Users
> Subject: Referring to another module's artifact?
> 
> I'm sure I'm going to feel stupid when someone tells me how, 
> but I can't find a way to refer to another module's artifact 
> from within the same multi-module pom.  Specifically, I have 
> an "integration test" module in which I want to use the Jetty 
> plugin to run the WAR created by a prior module's build.  I 
> just don't know how to refer to that artifact from one of its 
> sibling modules.  Anyone?
> 
> Thanks,
> Dave
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

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



Referring to another module's artifact?

2009-02-06 Thread David C. Hicks
I'm sure I'm going to feel stupid when someone tells me how, but I can't 
find a way to refer to another module's artifact from within the same 
multi-module pom.  Specifically, I have an "integration test" module in 
which I want to use the Jetty plugin to run the WAR created by a prior 
module's build.  I just don't know how to refer to that artifact from 
one of its sibling modules.  Anyone?


Thanks,
Dave


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



Re: eclipse: SCM provider is not available

2009-02-06 Thread Ed Young
That did the trick!

Thanks for the tip. There was a codehaus m2eclipse in my config before I
added the sonatype one.

Will this sonatype m2eclipse conflict with the codehaus one?

...I just looked again and I don't see the codehaus url anymore...Did the
sonatype one obsolete it or something?

Confused...



On Thu, Feb 5, 2009 at 8:08 PM, Eugene Kuleshov  wrote:

>
>
>  Make sure you have one of the following m2eclipse features [1] installed:
>
> * Maven SCM Integration
> * Maven SCM handler for Subclipse
> * Maven SCM handler for Subversive
>
>  I suppose it may make sense to include the default Maven SCM handler into
> the core feature, but that would increase the minimum download size.
>
>  regards,
>  Eugene
>
> [1]
>
> http://docs.codehaus.org/display/M2ECLIPSE/Installation+Requirements#InstallationRequirements-MavenIntegration
>
>
>
> Edderd wrote:
> >
> > When trying to import a maven project from scm I get the above error:
> >
> > File->Import->Other->Checkout Maven projects from SCM
> >
> > I get a dialog to enter the SCM Url. and a drop down to select the SCM
> > provider, however there are no options to select.
> >
> > I have tried forcing the issue with
> > scm:*svn*:https://buildbox/svn/repository/project4/trunk
> >
> > but it fails with the above error displaying in the console.
> >
> > I've installed all relevant plugins for eclipse/svn that I know of...
> >
> > Any ideas?
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/eclipse%3A-SCM-provider-is-not-available-tp21864909p21865817.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
- Ed


Re: Webstart plugin, with no main class

2009-02-06 Thread Brian Leathem
Am I just out of luck with this one?   Is there a more appropriate forum 
in which I can ask this question?


Thanks,
Brian

Brian Leathem wrote:

Hello Maven list,

I'm trying to use the Webstart plugin to build a jnlp file that has no 
main class.  This jnlp has mail.jar as a sole resource, and is 
referred to by other jnlp files.  The reson for this is that Sun 
sign's mail.jar, and I can't include it as a resource in the same jnlp 
that contians my signed jars.


On running the webstart:jnlp goal, I get the error:

   [INFO] No resources found in
   
/var/build/maven/TriumfPom/ApplicationsPom/SunMailJnlp/src/main/jnlp/resources 


   [INFO] artifact com.sun:SunMailJnlp:jar:1.0-SNAPSHOT seems to
   contain the main class: null but the jar doesn't seem to contain all
   dependencies null
   [INFO] artifact javax.mail:mail:jar:1.4.1:compile seems to contain
   the main class: null but the jar doesn't seem to contain all
   dependencies null
   [WARNING] artifact javax.mail:mail:jar:1.4.1:compile also contains
   the main class: null. IGNORED.
   [INFO]
   


   [ERROR] BUILD ERROR
   [INFO]
   


   [INFO] Failure to run the plugin:

   Embedded error: mainClass must not be null


Is there anyway I can force the process to continue without a 
mainClass?  Or point to a static jnlp file?


The jnlp file when it's done should look like:

   

   http://host.domain/jaws";
 href="/jaws/jnlp/Sun.jnlp">
 
   Sun signed libraries
   Sun Microsystems, Inc.
 
   
   
 
 
   
   http://java.sun.com/products/autodl/j2se"/>
 
 
   


Thanks,
Brian Leathem


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



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



Re: Maven with a Proxy Server

2009-02-06 Thread Baptiste MATHUS
FWIW, use a text editor that will naturally display using syntaxic
coloration. This way (for me, comments are green for example, using PsPad),
you will immediately see what is commented, and what is not.

Cheers.

2009/2/4 Horton, Anne B 

> Oh my gosh, one of the responders WAS CORRECT!!! The proxy has this
> nasty comment all around it!!  GOOD JOB TEAM!!! YOU HAD THE ANSWER!!!
> Delete that comment and settings works!!!
>
>
> -Original Message-
> From: Antonio Petrelli [mailto:antonio.petre...@gmail.com]
> Sent: Wednesday, February 04, 2009 11:54 AM
> To: Maven Users List
> Subject: Re: Maven with a Proxy Server
>
> 2009/2/4 Horton, Anne B :
> > Antonio,
> > Thank you for trying to help me. I believe our proxy requires no
> > authentication so that would rule out being NTLM -right???
>
> Not necessarily. Do you use Windows and login in a domain? In this
> case, most probably the proxy server will follow the authentication of
> the domain itself. It's a sort of Single-Sign-On.
>
> Antonio
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


RE: Checkstyle report failing

2009-02-06 Thread Brian E. Fox
You need to put it in the reportingPlugins section of you pom.

-Original Message-
From: bwonch [mailto:bill.wo...@gmail.com] 
Sent: Thursday, February 05, 2009 10:30 PM
To: users@maven.apache.org
Subject: Checkstyle report failing


Hi everyone -

I'm not sure if this is the appropriate place for this posting or not.

We have a Maven build, using Hudson as the CI server.  We're running the
Checkstyle maven plugin.  When I call checkstyle, it runs as expected
and I
see the resulting output in Hudson through the Checkstyle plugin, but
when I
run mvn site, it's not showing any results.

Here's the checkstyle call, if that helps:


org.apache.maven.plugins
maven-checkstyle-plugin


Any ideas what I'm doing wrong here?

Thanks!
Bill
-- 
View this message in context:
http://www.nabble.com/Checkstyle-report-failing-tp21865980p21865980.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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



Re: Multimodule, multilevel project

2009-02-06 Thread Czollli



Czollli wrote:
> 
> Hello,
> 
> The main task would be to generate jar files in the leaf projects:
> 
> main (pom.xml)
>  |
>  | default (contains src and pom.xml)
> |
> |___ dev (only pom.xml)
>  |
>  |_ dev1 (only pom.xml)
>  |
>  |_ dev2 (only pom.xml)
> 
> dev1 and dev2 should contain in their target dir the jar file, generated
> from src.
> 
> Did anybody already meet this problem?
> Can anybody suggest a solution?
> 
> Thanks a lot!
> Czollli
> 

Hello,

thanks for all the help!

I have found a really simple solution with resource:

  .
  false
  
${level2.default.target.dir}/classes
  
  **/*.class
  

This excerpt should include in the bottom level (dev1, dev2) poms, where the
packaging runs again.
Again because first I had to package at the default level from the source
code.

main (pom.xml)
 |
 | default (contains src and pom.xml, packaging jar)
 |
 |___ dev (only pom.xml, packaging pom)
  |
  |_ dev1 (only pom.xml, packaging jar)
  |
  |_ dev2 (only pom.xml, packaging jar)

Main pom uses modules (default, dev).

Czollli
-- 
View this message in context: 
http://www.nabble.com/Multimodule%2C-multilevel-project-tp21806770p21870699.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



checkstyle plugin error on multimodule project

2009-02-06 Thread tim tim
hello

i have a simple multimodule project

pom.xml
|
proj1 pom.xml
|
proj2pom.xml

in the main pom.xml:

proj1
proj2



proj2 depends on proj1.

   
myComp
proj1
0.1-SNAPSHOT
   


this dependency is resolved correctly when i call

mvn test

or when i open the projects via m2eclipse

but when i call

mvn checkstyle:checkstyle

the checkstyle plugin creates correct reports for proj1

but when it tries to work on proj2 i get the following error:

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

Missing:
--
1) myComp:proj1:jar:0.1-SNAPSHOT


it tries to load the missing dependency from a repository instead of using the
files in the other submodule like the test and the compile plugins do.

i can not imagine that i have to deploy all jars before i use checkstyle?

how do i use checkstyle for multimodule projects?



thanks, tim

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