Re: Can maven-compiler-plugin compile with aspectJ compiler?

2008-08-12 Thread vicki

This plugin was my first choice. I absolutely cannot get it to work. I deal
with java 1.6 in my project, and when I set the source tag in this plugin's
configuration to 1.6, the plugin complains that this source value isn't
valid. I looked into the source of the plugin, and it looks like all source
values it checks against are 1.3 and 1.5 or something like that. If I set a
value of a source to 1.5, so the plugin doesn't complain anymore, it
downloads aspectj artifacts that can't compile generics and annotations.
Dealing with this plugin in java 1.6 context was such hell, that I am
finally switching to use antrun to instrument my project artifact classes
with my aspectj aspects.


Rune Flobakk wrote:
> 
> Give aspectj-maven-plugin a try:
> http://mojo.codehaus.org/aspectj-maven-plugin/
> 
> - Rune
> 
> vicki skrev:
>> I could not confirm that aspectj can be used as compilerId in
>> maven-compiler-plugin configuration. All my attempts to use aspectj maven
>> plugin failed in either compile or run time. 
>> Thanks,
>> Vicki
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-maven-compiler-plugin-compile-with-aspectJ-compiler--tp18953234p18956217.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: can we use classifier here?

2008-08-12 Thread Lin Sun
Hi,

Yes, I agree classifier are meant for the same project.   The
daytrader app clients are part of daytrader project, but with their
own module id.   A user can choose to have a standalone app client in
a .jar file.   Or a user can choose to have an app client artifact
bundled in a .ear file. In the later case, a user would only need
one deployment plan to deploy the .ear file onto the server, thus it
is naturally for the user to think one would just need to run the
car-maven-plugin once to generate all the necessary plugin artifacts.
 It seems silly for us to recommend a user to run the car-maven-plugin
three times for such an EAR project as daytrader.   This is why we
think maybe classifier could be used here...

Thanks,

Lin



On Tue, Aug 12, 2008 at 8:57 PM, Brett Porter <[EMAIL PROTECTED]> wrote:
> Classifiers are meant for the same project, built differently. It
> doesn't sound like that's the case here - the appclients are different
> modules. Is there a reason you can't actually use 3 artifact IDs?
>
> Cheers,
> Brett
>
> 2008/8/13 Lin Sun <[EMAIL PROTECTED]>:
>> Hi,
>>
>> I need some advice to see if we could use classifier to solve a prob
>> we have in Apache Geronimo.
>>
>> We want to deploy our J2EE sample (called daytrader) onto geronimo as
>> a geronimo plugin.   The daytrader application contains multiple
>> modules(one web module, one ejb module, 2 app clients module), as most
>> of EAR projects do.The daytrader geronimo plugin is built using
>> the car-maven-plugin that is developed at Geronimo.Basically, what
>> the car-maven-plugin does is to generate the plugin metadata file,
>> deploy the daytrader module using geronimo's deployers, package all
>> the files into a plugin car file and install the car file into the
>> maven repository. The plugin has one artifact id, called
>> daytrader.
>>
>> Soon, we found out there is a prob here.  If there is only one
>> artifact id, how can we start the app clients of daytrader?   Each app
>> client needs his own artifact id.   We have only one maven project
>> (which is daytrader here) but we really need 3 artifact ids.
>>
>> I am wondering if it is possible to use classifier here.   Instead of
>> producing 1 artifact here, we produce the following artifacts, for the
>> daytrader project:
>>
>> daytrader-2.2.-snapshot.car
>> daytrader-2.2-snapshot-appclient1.car
>> daytrader-2.2-snapshot-appclient2.car
>>
>> Thoughts?
>>
>> Lin
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>
> -
> 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: can we use classifier here?

2008-08-12 Thread Brett Porter
Classifiers are meant for the same project, built differently. It
doesn't sound like that's the case here - the appclients are different
modules. Is there a reason you can't actually use 3 artifact IDs?

Cheers,
Brett

2008/8/13 Lin Sun <[EMAIL PROTECTED]>:
> Hi,
>
> I need some advice to see if we could use classifier to solve a prob
> we have in Apache Geronimo.
>
> We want to deploy our J2EE sample (called daytrader) onto geronimo as
> a geronimo plugin.   The daytrader application contains multiple
> modules(one web module, one ejb module, 2 app clients module), as most
> of EAR projects do.The daytrader geronimo plugin is built using
> the car-maven-plugin that is developed at Geronimo.Basically, what
> the car-maven-plugin does is to generate the plugin metadata file,
> deploy the daytrader module using geronimo's deployers, package all
> the files into a plugin car file and install the car file into the
> maven repository. The plugin has one artifact id, called
> daytrader.
>
> Soon, we found out there is a prob here.  If there is only one
> artifact id, how can we start the app clients of daytrader?   Each app
> client needs his own artifact id.   We have only one maven project
> (which is daytrader here) but we really need 3 artifact ids.
>
> I am wondering if it is possible to use classifier here.   Instead of
> producing 1 artifact here, we produce the following artifacts, for the
> daytrader project:
>
> daytrader-2.2.-snapshot.car
> daytrader-2.2-snapshot-appclient1.car
> daytrader-2.2-snapshot-appclient2.car
>
> Thoughts?
>
> Lin
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Can maven-compiler-plugin compile with aspectJ compiler?

2008-08-12 Thread Rune Flobakk

Give aspectj-maven-plugin a try:
http://mojo.codehaus.org/aspectj-maven-plugin/

- Rune

vicki skrev:

I could not confirm that aspectj can be used as compilerId in
maven-compiler-plugin configuration. All my attempts to use aspectj maven
plugin failed in either compile or run time. 
Thanks,

Vicki


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



Re: Available versions of MavenProject's parent

2008-08-12 Thread sverhagen


Stephen Connolly-2 wrote:
> 
> On Tue, Aug 12, 2008 at 11:22 AM, sverhagen <[EMAIL PROTECTED]> wrote:
> 
>> So, too bad that I was not able to google this up myself, and that it's
>> in
>> such a poor, abandonned state.
> 
> Whadya mean?
> 
> Ehh I only released it into sandbox yesterday!
> 
> It's only a couple of days old
> 
> And next on my list is perfect rewriting of XMl before I try to push an
> alpha!
> 

Stephen, I am truly sorry.
Somewhere down the road I must have gotten the impression that this was an
older effort of someone -- of whom I did not understand it was you -- and
was abandonned. With this new information I applaud you, because I have no
idea how people can ever have done proper releasing in Maven without a
plugin like yours!

I assume your need for this plugin comes from releasing parent projects in
the directory tree with -N and being stuck with the children that are still
pointing to an older version?

I'm not getting the properties goal yet, but the project not being
abandonned gives me hopes to read some documentation about it soon ;-)

I'll test drive your plugin. And thanks for your efforts on it.
-- 
View this message in context: 
http://www.nabble.com/Available-versions-of-MavenProject%27s-parent-tp18934631p18953262.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]



Can maven-compiler-plugin compile with aspectJ compiler?

2008-08-12 Thread vicki

I could not confirm that aspectj can be used as compilerId in
maven-compiler-plugin configuration. All my attempts to use aspectj maven
plugin failed in either compile or run time. 
Thanks,
Vicki
-- 
View this message in context: 
http://www.nabble.com/Can-maven-compiler-plugin-compile-with-aspectJ-compiler--tp18953234p18953234.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]



[RESULT] [POLL] Default Value for Reports Output Encoding

2008-08-12 Thread Hervé BOUTEMY
After one week, the result is:

a) UTF-8: 4 votes on user list + 2 previously on dev list
b) same as source: 2 votes on user list
1 vote for platform encoding

Default encoding for reports will be UTF-8.

Thanks for your participation.

Regards,

Hervé

Le mardi 05 août 2008, Hervé BOUTEMY a écrit :
> Dear community,
>
> The Maven team is currently discussing a proposal about the future handling
> of reporting output file encoding by the various plugins, please see our
> wiki article [0] for all details.
>
> A controversial aspect of this proposal is which file encoding should be
> assumed in case the user did not specify this in the POM. This poll should
> help us to come to a well-founded decision.
>
> These are the two possible directions to go:
>
> a) use fixed UTF-8 encoding
>
> b) use same encoding as source files
>
>
> Approach a) is simple and sould work for everybody, since any character can
> be output in UTF-8.
> Approach b) is more subtle and mimics the behaviour of javadoc tool. Since
> reports contain more data than source content, there are cases where this
> default value won't be appropriate (for example, if project's description
> in pom.xml contains characters that can't be output with source files
> encoding).
>
>
> So, please let us know:
>
> [a] Use UTF-8
> [b] Use source files encoding
>
> Regards,
>
>
> Hervé
>
>
> [0] http://docs.codehaus.org/display/MAVEN/Reporting+Encoding+Configuration
>
> -
> 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]



can we use classifier here?

2008-08-12 Thread Lin Sun
Hi,

I need some advice to see if we could use classifier to solve a prob
we have in Apache Geronimo.

We want to deploy our J2EE sample (called daytrader) onto geronimo as
a geronimo plugin.   The daytrader application contains multiple
modules(one web module, one ejb module, 2 app clients module), as most
of EAR projects do.The daytrader geronimo plugin is built using
the car-maven-plugin that is developed at Geronimo.Basically, what
the car-maven-plugin does is to generate the plugin metadata file,
deploy the daytrader module using geronimo's deployers, package all
the files into a plugin car file and install the car file into the
maven repository. The plugin has one artifact id, called
daytrader.

Soon, we found out there is a prob here.  If there is only one
artifact id, how can we start the app clients of daytrader?   Each app
client needs his own artifact id.   We have only one maven project
(which is daytrader here) but we really need 3 artifact ids.

I am wondering if it is possible to use classifier here.   Instead of
producing 1 artifact here, we produce the following artifacts, for the
daytrader project:

daytrader-2.2.-snapshot.car
daytrader-2.2-snapshot-appclient1.car
daytrader-2.2-snapshot-appclient2.car

Thoughts?

Lin

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



[ANN] Nexus Maven Repository Manager 1.0-beta-5 Released!

2008-08-12 Thread Jason van Zyl
The Sonatype team is pleased to announce the Beta-5 release of our  
Nexus Maven Repository Manager. This release brings the much awaited  
role based security to the popular tool. You can find out more about  
it here:


http://blogs.sonatype.com/brian/2008/08/12/1218551235596.html

Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

We know what we are, but know not what we may be.

  -- Shakespeare


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



Re: Maven Embedder 2.1-SNAPSHOT

2008-08-12 Thread Kem Elbrader
Yeah, that'd be great. Development on one of our projects has been put
on hold after we purged our local repositories and our instance of
nexus. After the snapshots were removed from
http://people.apache.org/repo/m2-snapshot-repository we were lost :)

On Tue, Aug 12, 2008 at 11:26 AM, Jason van Zyl <[EMAIL PROTECTED]> wrote:
> Go to the Hudson job, for example here:
>
> http://ci.sonatype.org/view/Maven%203.0.x/job/maven-3.0.x-bootstrap/
>
> And then navigate into the workspace:
>
> http://ci.sonatype.org/view/Maven%203.0.x/job/maven-3.0.x-bootstrap/ws/trunk/maven-embedder/target/
>
> I can publish these to Nexus where you can consume them if you want them.
>
> On 11-Aug-08, at 9:34 AM, Kem Elbrader wrote:
>
>> What happened to the maven embedder 2.1 snapshot?
>>
>> http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/maven-embedder/2.1-SNAPSHOT/
>> Is it going to be deployed again?
>> Is there another repository that has it deployed?
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> Thanks,
>
> Jason
>
> --
> Jason van Zyl
> Founder,  Apache Maven
> jason at sonatype dot com
> --
>
> Our achievements speak for themselves. What we have to keep track
> of are our failures, discouragements and doubts. We tend to forget
> the past difficulties, the many false starts, and the painful
> groping. We see our past achievements as the end result of a
> clean forward thrust, and our present difficulties as
> signs of decline and decay.
>
>  -- Eric Hoffer, Reflections on the Human Condition
>
>
> -
> 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]



[eclipse:eclipse plugin] Additional classpath entries

2008-08-12 Thread Ian Carr
Hi,
I have been trying to configure a set of Eclipse projects using the
eclipse:eclipse plugin. The projects are used both as OSGI/PDE plugins and
at the same time jar's for consumption by generic maven projects use. This
has been somewhat of a struggle due to the differences in dependency
handling in the two environments! 

I started off by trying to use the true setting in the
configuration. Which almost set's up the projects as I want them but not
quite, it tries to configure the manifest itself. Unfortunately the entries
it attempts to place in there are not what I need (my project name is not a
valid id, and the classpath it generates is not what I want or in my case
valid. The file also contains blank lines which result in errors in the
eclipse environment.)

In fact I would prefer to be able to disable the manifest generation and use
my manually produced one. Perhaps a flag could be added to control this
behaviour?

I then fell back to trying to configure the Nature, Builder etc entries
myself. And almost got there with the current eclipse plugin. Using the copy
dependency jar's trick from the help pages
(http://maven.apache.org/plugins/maven-eclipse-plugin/pde.html).

The only remaining problem I then had was that the copied dependency jar's
are not added to the classpath of the generated project meaning that each
time I run eclipse:eclipse I have to manually add back the classpath
entries.

To work around this problem I have patched up a copy of the latest
EclipsePlugin to add an additionalClasspathEntries element. I am using this
as a generic way to add any entry into the classpath file much like adding a
builder or nature into the project file. With this I can automatically add
the missing entries for the dependencies copied into the project root,
making the PDE tool happy!

I believe this may be generally useful to other users, and so am attaching
the patch (against 2.5.1) code here. 

I would also like to ask the development team whether this or a similar
facility could be added to the current plugin? I believe this is needed even
when using the pde flag approach, if the dependencies are copied into the
project directories where PDE/Eclipse expects them.

Many thanks to the team for the excellent tool, which saves me significant
amounts of time and effort!

Ian

My pom entries:
__



maven-eclipse-plugin

true


org.eclipse.pde.ManifestBuilder


org.eclipse.pde.SchemaBuilder




org.eclipse.pde.PluginNature



org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.
internal.debug.ui.launcher.StandardVMType/J2SE-1.5

org.eclipse.pde.core.requiredPlugins






lib
asm-3.1.jar







org.antlr:antlr-runtime
org.antlr:stringtemplate
fsl.asm:asm
imc.metaform:metaform-parsers




The Patch:
___

Index: src/main/java/org/apache/maven/plugin/eclipse/ClasspathEntry.java
===
--- src/main/java/org/apache/maven/plugin/eclipse/ClasspathEntry.java
(revision 0)
+++ src/main/java/org/apache/maven/plugin/eclipse/ClasspathEntry.java
(revision 0)
@@ -0,0 +1,31 @@
+package org.apache.maven.plugin.eclipse;
+
+public class ClasspathEntry {
+   private String kind;
+   private String path;
+   private String sourcepath;
+
+   public String getKind() {
+   return kind;
+   }
+
+   public void setKind(String kind) {
+   this.kind = kind;
+   }
+
+   public String getPath() {
+   return path;
+   }
+
+   public void setPath(String path) {
+   this.path = path;
+   }
+
+   public String getSourcepath() {
+   return sourcepath;
+   }
+
+   public void setSourcepath(String sourcepath) {
+   this.sourcepath = sourcepath;
+   }
+}
Index: src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
===
--- src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
(revision 684270)
+++ src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
(working copy)
@@ -228,6 +228,23 @@
 private List additionalBuildcommands;
 
 /**
+ * List of eclipse classpath entries to be added to the default ones.:
+ * 
+ * 
+ * 
+ *
+ *  

Re: Maven Embedder 2.1-SNAPSHOT

2008-08-12 Thread Jason van Zyl

Go to the Hudson job, for example here:

http://ci.sonatype.org/view/Maven%203.0.x/job/maven-3.0.x-bootstrap/

And then navigate into the workspace:

http://ci.sonatype.org/view/Maven%203.0.x/job/maven-3.0.x-bootstrap/ws/trunk/maven-embedder/target/

I can publish these to Nexus where you can consume them if you want  
them.


On 11-Aug-08, at 9:34 AM, Kem Elbrader wrote:


What happened to the maven embedder 2.1 snapshot?
http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/maven-embedder/2.1-SNAPSHOT/
Is it going to be deployed again?
Is there another repository that has it deployed?

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



Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

Our achievements speak for themselves. What we have to keep track
of are our failures, discouragements and doubts. We tend to forget
the past difficulties, the many false starts, and the painful
groping. We see our past achievements as the end result of a
clean forward thrust, and our present difficulties as
signs of decline and decay.

 -- Eric Hoffer, Reflections on the Human Condition


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



Re: Exclude files from jar

2008-08-12 Thread Anthony Pereira
Hi Nick

I do not want them in the test-classes folder as there are a lot of internal
module dependencies in the project. The requirement is that the file should
be in the classes folder . I am using openejb to test my ejb3-beans and
since the modules are interdependent I need the file to be in classes
folder. I was looking through the various plugins and I found that this is
possible using the maven-ejb-plugin 2.1.1-SNAPSHOT  plugin. But I am unable
to find the jar in any of the repositories.
Is there any way wherein I can remove the file from the classes folder just
before the packaging happens but after the tests run?

Thanks

Anthony



On Tue, Aug 12, 2008 at 8:05 PM, Nick Stolwijk <[EMAIL PROTECTED]>wrote:

> Just put them in src/test/resources instead of src/main/resources. They
> will
> be on the classpath during test-compile and test, but they will not be in
> your final artifact.
>
> Hth,
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
> On Tue, Aug 12, 2008 at 4:18 PM, Anthony Pereira <[EMAIL PROTECTED]
> >wrote:
>
> > Hi folks
> >
> > I need the  maven-ejb-plugin 2.1.1-SNAPSHOT version to exclude some files
> > while building the jar . The files I need to exclude are required to run
> > the
> > test cases that are present in the project.
> >  I would be grateful if somebody could direct me to the repository
> > location  where the jar is present, if it is uploaded at all.
> > Else could anyone suggest a way to exclude the files from my build?.
> >  I need the files in the classes folder but not in my jar.. i.e i need
> the
> > files to be there while the test cases run and then i need to remove the
> > file when the packaging happens.
> >
> >  Any help would be greatly appreciated.
> >
> >  Thanks
> >
> >  --Anthony S. Pereira
> >
>



-- 
Anthony Salvador Pereira

Development Engineer
Aditi Technologies Private Limited


RE: Error while executing Maven javadoc

2008-08-12 Thread EJ Ciramella
All better - thank you VERY much!

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 5:23 AM
To: Maven Users List
Subject: Re: Error while executing Maven javadoc

I deployed a new snapshot.
Can you check if it changes something ?

On Mon, Aug 11, 2008 at 11:20 PM, EJ Ciramella
<[EMAIL PROTECTED]>wrote:

> What is really interesting is running javadoc directly produces NO
> errors.  When run from "mvn site", these errors show up.
>
> I don't even see a 2.5 branch for the javadoc plugin in the source
repo,
> anyone care to comment on this issue?
>
> -Original Message-
> From: Michael Delaney [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2008 12:36 PM
> To: Maven Users List
> Subject: Error while executing Maven javadoc
>
> All,
>
>
>
> There seems to have been a new maven Javadoc plug-in uploaded that is
> causing some issues on our side. Is anyone else seeing this issue? We
> are using Maven 2.0.9 and this is encountered during the call 'mvn
site
> install'
>
>
>
> [ Console Errors ]
>
> Downloading:
>
http://build.corp.upromise.com:8080/archiva/repository/internal//org/apa
>
che/maven/plugins/maven-javadoc-plugin/2.5-SNAPSHOT/maven-javadoc-plugin
> -2.5-20080810.123323-30.pom
>
17Kdownloaded
> Downloading:
>
http://build.corp.upromise.com:8080/archiva/repository/bertha//org/apach
>
e/maven/plugins/maven-javadoc-plugin/2.5-SNAPSHOT/maven-javadoc-plugin-2
>
.5-20080810.123323-30.jar
> Downloading:
>
http://build.corp.upromise.com:8080/archiva/repository/internal//org/apa
>
che/maven/plugins/maven-javadoc-plugin/2.5-SNAPSHOT/maven-javadoc-plugin
> -2.5-20080810.123323-30.jar
>
114Kdownloaded
> [WARNING] Attempting to build MavenProject instance for Artifact
> (org.apache.maven.plugins:maven-javadoc-plugin:2.5-20080810.123323-30)
> of type: maven-plugin; constructing POM artifact instead.
> [INFO]
>

> [ERROR] FATAL ERROR
> [INFO]
>

> [INFO] Unresolved compilation problems:
> Syntax error, insert "}" to complete ClassBody
> The method append(StringBuffer, String, int) is undefined for the type
> HelpMojo
>
> ... repeating ...
>
> The method append(StringBuffer, String, int) is undefined for the type
> HelpMojo
> Syntax error, insert "}" to complete Block
> Syntax error, insert "else Statement" to complete IfStatement
> Syntax error, insert "}" to complete MethodBody
> Syntax error, insert "else Statement" to complete IfStatement
> Syntax error, insert ")" to complete MethodInvocation
> Syntax error, insert ";" to complete Statement
> Syntax error, insert "}" to complete Block
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...

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



RE: Checking properties in a multi-pom environment

2008-08-12 Thread Brian E. Fox
The enforcer rule should work, you'll need to be more explicit about
what's not working. If you put the enforcer in the root, it will execute
for all children. If some of those children don't have it set, then it
should fail. I just double checked the rule, and it's using the core
code to result the property, so it should behave exactly like the core
and see inherited properties.

-Original Message-
From: WhatTheHell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 10:44 AM
To: users@maven.apache.org
Subject: Checking properties in a multi-pom environment


Hi Maven users  :)

I faced a problem to check if some properties were set during maven's
compilation/deployment etc or not. 

We have one 'root' pom and it runs some other poms as modules. There are
no
properties in the root-pom. They are set during maven's work. The
example
property can be the project's URL. Sometimes we just make a local
compilation and then we don't need it to be set. However, when we deploy
a
new release we have to be sure that the URL was set. We use some
different
profiles when we just compile and when we deploy and some of those
profiles
do have a property while some other don't.

I've tried to use an enforcer plugin. I've created a
requireProperty-rule in
a root-pom, but as far as I can see it doesn't work in a pom-tree
environment (please correct me if I'm wrong), because I've run mvn with
a
profiles that do set the URL for sure and my rule failed. I've also
tried to
make a java-custom-rule, but it also failed saying, that I haven't set
the
property  :-(
I know I can check my rule in every single pom that sometimes can set
the
URL, but I wanted to do it in the root. Is it possible?

We use:
Maven version: 2.0.8
Java version: 1.5.0_15

I've tried to find a solution for a couple of days, but I couldn't.
Maybe
I've missed some reference...

Thanks for any help
Best
Pawel
-- 
View this message in context:
http://www.nabble.com/Checking-properties-in-a-multi-pom-environment-tp1
8945713p18945713.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 does: "Skipping disabled repository central" really mean?

2008-08-12 Thread Brian E. Fox
It probably means that you're getting a snapshot and central isn't configured 
in the pom to handle snapshots.

-Original Message-
From: Borut Bolčina [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 9:07 AM
To: Maven Users List
Subject: Re: What does: "Skipping disabled repository central" really mean?

Hello,

there was no clear answer on this one. Anybody knows what does [DEBUG]
Skipping disabled repository xxx mean? How and why does maven decide not to
use xxx?

Thanks,
Borut

2008/2/27 Chris Helck <[EMAIL PROTECTED]>

> Hi,
>
> A certain user of mine gets "Skipping disabled repository central" when
> mvn (2.0.8) tries to download a plugin. I've printed the effective-pom
> and effective-settings and I don't see anything redirection of central
> with mirrors or repository.
>
>


Checking properties in a multi-pom environment

2008-08-12 Thread WhatTheHell

Hi Maven users  :)

I faced a problem to check if some properties were set during maven's
compilation/deployment etc or not. 

We have one 'root' pom and it runs some other poms as modules. There are no
properties in the root-pom. They are set during maven's work. The example
property can be the project's URL. Sometimes we just make a local
compilation and then we don't need it to be set. However, when we deploy a
new release we have to be sure that the URL was set. We use some different
profiles when we just compile and when we deploy and some of those profiles
do have a property while some other don't.

I've tried to use an enforcer plugin. I've created a requireProperty-rule in
a root-pom, but as far as I can see it doesn't work in a pom-tree
environment (please correct me if I'm wrong), because I've run mvn with a
profiles that do set the URL for sure and my rule failed. I've also tried to
make a java-custom-rule, but it also failed saying, that I haven't set the
property  :-(
I know I can check my rule in every single pom that sometimes can set the
URL, but I wanted to do it in the root. Is it possible?

We use:
Maven version: 2.0.8
Java version: 1.5.0_15

I've tried to find a solution for a couple of days, but I couldn't. Maybe
I've missed some reference...

Thanks for any help
Best
Pawel
-- 
View this message in context: 
http://www.nabble.com/Checking-properties-in-a-multi-pom-environment-tp18945713p18945713.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: Exclude files from jar

2008-08-12 Thread Nick Stolwijk
Just put them in src/test/resources instead of src/main/resources. They will
be on the classpath during test-compile and test, but they will not be in
your final artifact.

Hth,

Nick Stolwijk
~Java Developer~

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


On Tue, Aug 12, 2008 at 4:18 PM, Anthony Pereira <[EMAIL PROTECTED]>wrote:

> Hi folks
>
> I need the  maven-ejb-plugin 2.1.1-SNAPSHOT version to exclude some files
> while building the jar . The files I need to exclude are required to run
> the
> test cases that are present in the project.
>  I would be grateful if somebody could direct me to the repository
> location  where the jar is present, if it is uploaded at all.
> Else could anyone suggest a way to exclude the files from my build?.
>  I need the files in the classes folder but not in my jar.. i.e i need the
> files to be there while the test cases run and then i need to remove the
> file when the packaging happens.
>
>  Any help would be greatly appreciated.
>
>  Thanks
>
>  --Anthony S. Pereira
>


maven-ejb-plugin excludes

2008-08-12 Thread Anthony Pereira
 Hi folks

I need the  maven-ejb-plugin 2.1.1-SNAPSHOT version in maven 2 to exclude
some files  while building the jar . The files I need to exclude are
required to run the test cases that are present in the project.
  I would be grateful if somebody could direct me to the repository
location  where the jar is present, if it is uploaded at all.
Else could anyone suggest a way to exclude the files from my build?.
 I need the files in the classes folder but not in my jar.. i.e i need the
files to be there while the test cases run and then I need to remove the
file when the packaging happens.

  Any help would be greatly appreciated.

  Thanks

  --Anthony S. Pereira

-- 
Anthony Salvador Pereira

Development Engineer
Aditi Technologies Private Limited


Exclude files from jar

2008-08-12 Thread Anthony Pereira
Hi folks

I need the  maven-ejb-plugin 2.1.1-SNAPSHOT version to exclude some files
while building the jar . The files I need to exclude are required to run the
test cases that are present in the project.
  I would be grateful if somebody could direct me to the repository
location  where the jar is present, if it is uploaded at all.
Else could anyone suggest a way to exclude the files from my build?.
 I need the files in the classes folder but not in my jar.. i.e i need the
files to be there while the test cases run and then i need to remove the
file when the packaging happens.

  Any help would be greatly appreciated.

  Thanks

  --Anthony S. Pereira


Re: POM and dependency downloading

2008-08-12 Thread Nick Stolwijk
Hi marc,

Take a look at the Maven The Definitive Guide and especially the part about
optional dependencies. [1]

[1] http://www.sonatype.com/book/reference/pom-relationships.html#d0e8242

Hth,

Nick Stolwijk
~Java Developer~

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


On Tue, Aug 12, 2008 at 3:31 PM, Marc Schneider
<[EMAIL PROTECTED]>wrote:

> Hi all,
>
> There is something I don't understand.
> In my maven repository, I have this POM file (Hibernate Search 3.1.O Beta)
> with :
>
>
>org.hibernate.apache.lucene.solr
>apache-solr-analyzer
>1.2.0
>true
>
>
> When compiling the system complains that a class is missing.
> This is because this class is in this artifact.
>
> If I add this dependency directly in my project's POM file, the artifact
>  is downloaded and so it works.
>
> But why do I have to add it manually ?
>
> Thanks,
> Marc.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: associate a nt task to the end of a phase

2008-08-12 Thread Nick Stolwijk
No, that won't work, as there is no "post-verify" phase. Take a look at that
link I gave you. There are all the phases. There are no "pre" or "post"
phases, other then on that page.

Hth,

Nick Stolwijk
~Java Developer~

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


On Tue, Aug 12, 2008 at 3:35 PM, MedElb <[EMAIL PROTECTED]> wrote:

> thank you Nick
> that can can work if i put "post-verify" like a phase
> seeyou
>
> 2008/8/12 Nick Stolwijk <[EMAIL PROTECTED]>
>
> > There is no "assembly phase". The assembly plugin is bounded to one of
> the
> > lifecycle phases. I think it is package by default. Take a look at [1] to
> > see all the phases. Also, inside a phase you cannot be sure as the order
> of
> > the plugins, so if you want to verify something of the package phase, I
> > guess you could bind it to the "verify" phase.
> >
> > Hth
> >
> > [1]
> > http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html
> >
> > Nick Stolwijk
> > ~Java Developer~
> >
> > Iprofs BV.
> > Claus Sluterweg 125
> > 2012 WS Haarlem
> > www.iprofs.nl
> >
> >
> > On Tue, Aug 12, 2008 at 2:56 PM, MedElb <[EMAIL PROTECTED]> wrote:
> >
> > > Hi all,
> > > i'm using the antrun plugin to put a simple message or copying file at
> > the
> > > end of the assembly plugin,
> > > te problem is that the message is not displayed after the assembly is
> > done
> > > neither the files are moved
> > >
> > > my conf is
> > >
> > > 
> > > 
> > >
> > >
> > >maven-antrun-plugin
> > >1.1
> > >
> > >
> > >*post-assembly*
> > >
> > >
> > >
> > > > >
> > >
> >
> file="${project.build.directory}/target/distribution/*osp.${assembly.extention}"
> > >
> tofile="${project.build.directory}/target/*alias.${assembly.extention}"/>
> > > > > dir="${project.build.directory}/target/distribution/*.*" />
> > >
> > >
> > >
> > >
> > >
> > >run
> > >
> > >
> > >
> > >
> > > 
> > >
> > > my question is how to associate an ant task to the end of my assembly
> > phase
> > > i use that maven command :
> > >
> > > mvn assembly:assembly -Dmaven.test.skip
> > >
> > >
> > > best regards
> > >
> >
>


war-plugin nto "composable"

2008-08-12 Thread csar

Hi,

I have a war build with special webResources. There is also a profile that
adds certain webResources depending on the target system. If this profile
gets active the war contains only the webResources and filters of the
profile!

Is there a reason for this behavior or is it a bug/workaround?

Carsten
-- 
View this message in context: 
http://www.nabble.com/war-plugin-nto-%22composable%22-tp18944476p18944476.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: associate a nt task to the end of a phase

2008-08-12 Thread MedElb
thank you Nick
that can can work if i put "post-verify" like a phase
seeyou

2008/8/12 Nick Stolwijk <[EMAIL PROTECTED]>

> There is no "assembly phase". The assembly plugin is bounded to one of the
> lifecycle phases. I think it is package by default. Take a look at [1] to
> see all the phases. Also, inside a phase you cannot be sure as the order of
> the plugins, so if you want to verify something of the package phase, I
> guess you could bind it to the "verify" phase.
>
> Hth
>
> [1]
> http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
> On Tue, Aug 12, 2008 at 2:56 PM, MedElb <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> > i'm using the antrun plugin to put a simple message or copying file at
> the
> > end of the assembly plugin,
> > te problem is that the message is not displayed after the assembly is
> done
> > neither the files are moved
> >
> > my conf is
> >
> > 
> > 
> >
> >
> >maven-antrun-plugin
> >1.1
> >
> >
> >*post-assembly*
> >
> >
> >
> > >
> >
> file="${project.build.directory}/target/distribution/*osp.${assembly.extention}"
> > tofile="${project.build.directory}/target/*alias.${assembly.extention}"/>
> > > dir="${project.build.directory}/target/distribution/*.*" />
> >
> >
> >
> >
> >
> >run
> >
> >
> >
> >
> > 
> >
> > my question is how to associate an ant task to the end of my assembly
> phase
> > i use that maven command :
> >
> > mvn assembly:assembly -Dmaven.test.skip
> >
> >
> > best regards
> >
>


POM and dependency downloading

2008-08-12 Thread Marc Schneider

Hi all,

There is something I don't understand.
In my maven repository, I have this POM file (Hibernate Search 3.1.O 
Beta) with :



org.hibernate.apache.lucene.solr
apache-solr-analyzer
1.2.0
true


When compiling the system complains that a class is missing.
This is because this class is in this artifact.

If I add this dependency directly in my project's POM file, the artifact 
 is downloaded and so it works.


But why do I have to add it manually ?

Thanks,
Marc.

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



Re: Cobertura instead of Surefire?

2008-08-12 Thread Blake Martin
I'm providing this in case anyone else wants to do the same thing I'm trying
to accomplish.

OK, I have Surefire and Cobertura running during the same test phase. If
either of them fails, the tests fail. Here's how to do it, in case anyone
cares. The thing is, if your tests fail, you won't see coverage information,
since Surefire is run before cobertura:check occurs.

1. Modify your pom file so that cobertura:clean runs during clean,
cobertura:instrument runs during process-test-classes, and cobertura:check
runs after the tests (setting the phase to "test" worked for me).

2. In the plugin jar, remove the line "test"
from META-INF\maven\plugin.xml.

Make sure you backup your plugin jar before attempting this. Some of our
tests take several minutes to run, so this saved a lot of time.

On Fri, Aug 1, 2008 at 5:30 PM, Blake Martin <[EMAIL PROTECTED]> wrote:

> Even if a test fails during the Cobertura phase, Cobertura won't fail, as
> long as the coverage criteria are met. That's what I'm trying to get around.
> AFAIK, the only thing surefire has that Cobertura doesn't is the ability to
> fail when a test fails.
>
> Cobertura should definitely have a way to fail when a test fails, but I
> can't seem to find it documented anywhere.
>
>
> On Fri, Aug 1, 2008 at 4:55 PM, Stephen Connolly <
> [EMAIL PROTECTED]> wrote:
>
>> we've had tests that pass when run with cobertura and fail without. so I
>> always recommend running twice. additionally we've had tests that pass
>> normally, but fail with cobertura. in both cases the root cause analysis was
>> a bug in our code. run them twice and if either run fails you likely have a
>> bug
>>
>> (the exception is sometimes a cobertura test can validly fail without the
>> root cause being a bug. for example, performance tests, or tests that try to
>> force a particular synchronization scenario)
>>
>> Sent from my iPod
>>
>>
>> On 1 Aug 2008, at 20:23, "Blake Martin" <[EMAIL PROTECTED]> wrote:
>>
>>  Currently, our tests are the longest-running part of our Maven lifecycle
>>> and
>>> we'd like to have Cobertura fail if a test case fails so that Surefire
>>> isn't
>>> needed.
>>>
>>> Is it possible to have Cobertura fail when a test fails? Normally, it
>>> only
>>> fails if one of its conditions aren't met (e.g., line coverage).
>>>
>>> Would there be any ramifications, or is this a sane idea?
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


Re: associate a nt task to the end of a phase

2008-08-12 Thread Nick Stolwijk
There is no "assembly phase". The assembly plugin is bounded to one of the
lifecycle phases. I think it is package by default. Take a look at [1] to
see all the phases. Also, inside a phase you cannot be sure as the order of
the plugins, so if you want to verify something of the package phase, I
guess you could bind it to the "verify" phase.

Hth

[1] http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html

Nick Stolwijk
~Java Developer~

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


On Tue, Aug 12, 2008 at 2:56 PM, MedElb <[EMAIL PROTECTED]> wrote:

> Hi all,
> i'm using the antrun plugin to put a simple message or copying file at the
> end of the assembly plugin,
> te problem is that the message is not displayed after the assembly is done
> neither the files are moved
>
> my conf is
>
> 
> 
>
>
>maven-antrun-plugin
>1.1
>
>
>*post-assembly*
>
>
>
>
> file="${project.build.directory}/target/distribution/*osp.${assembly.extention}"
> tofile="${project.build.directory}/target/*alias.${assembly.extention}"/>
> dir="${project.build.directory}/target/distribution/*.*" />
>
>
>
>
>
>run
>
>
>
>
> 
>
> my question is how to associate an ant task to the end of my assembly phase
> i use that maven command :
>
> mvn assembly:assembly -Dmaven.test.skip
>
>
> best regards
>


Re: What does: "Skipping disabled repository central" really mean?

2008-08-12 Thread Borut Bolčina
Hello,

there was no clear answer on this one. Anybody knows what does [DEBUG]
Skipping disabled repository xxx mean? How and why does maven decide not to
use xxx?

Thanks,
Borut

2008/2/27 Chris Helck <[EMAIL PROTECTED]>

> Hi,
>
> A certain user of mine gets "Skipping disabled repository central" when
> mvn (2.0.8) tries to download a plugin. I've printed the effective-pom
> and effective-settings and I don't see anything redirection of central
> with mirrors or repository.
>
>


associate a nt task to the end of a phase

2008-08-12 Thread MedElb
Hi all,
i'm using the antrun plugin to put a simple message or copying file at the
end of the assembly plugin,
te problem is that the message is not displayed after the assembly is done
neither the files are moved

my conf is





maven-antrun-plugin
1.1


*post-assembly*










run






my question is how to associate an ant task to the end of my assembly phase
i use that maven command :

mvn assembly:assembly -Dmaven.test.skip


best regards


Re: Available versions of MavenProject's parent

2008-08-12 Thread Stephen Connolly
On Tue, Aug 12, 2008 at 11:22 AM, sverhagen <[EMAIL PROTECTED]> wrote:

>
> Well, this is actually exactly the functionality that I'm aiming at. Well,
> almost, I suppose.
> So, too bad that I was not able to google this up myself, and that it's in
> such a poor, abandonned state.


Whadya mean?

Ehh I only released it into sandbox yesterday!

It's only a couple of days old

And next on my list is perfect rewriting of XMl before I try to push an
alpha!


>
> This sort of functionality seems crucial to me, if you're doing a lot of
> multi-module release management with Maven.
> Thanks for your help.
>
>
> Stephen Connolly-2 wrote:
> >
> > have a look at http://mojo.codehaus.org/versions-maven-plugin.  It does
> > just
> > what you describe
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Available-versions-of-MavenProject%27s-parent-tp18934631p18941502.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: bootclasspath as a dependency

2008-08-12 Thread Brett Porter
Unfortunately there's no built in way to do so. You can still use the
JVM argument options to pass in the option:
http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html#arguments
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#argLine

To get the correct value, use:
${settings.localRepository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar
(obviously, dependent on the local repository format).

You need to have the artifact in the local repository first - you can
do that via a regular dependency (though be aware it'll be added to
the normal classpaths as well, which may be undesirable).
Alterantively, you can use the dependency plugin to resolve it.

HTH,
Brett

2008/8/12 Alex <[EMAIL PROTECTED]>:
> Hi,
>
>> at which point do you need it in the boot classpath? For your unit
>> tests, or a plugin?
> For unit tests and for the exec-maven-plugin.
>
> Cheers,
> Alex
>
> Brett Porter wrote:
>>
>> at which point do you need it in the boot classpath? For your unit
>> tests, or a plugin?
>>
>> Cheers,
>> Brett
>>
>> 2008/8/12 Alex <[EMAIL PROTECTED]>:
>>>
>>> Hi,
>>>
>>> Is there a way to specify a bootclasspath as a dependency?
>>> I've been looking for it for a while but I haven't found a solution yet.
>>> What I'd like to have would be something as follows:
>>>
>>> pom.xml ->
>>> 
>>>  javax.xml.bind
>>>  jaxb-api
>>>  2.1
>>> 
>>>
>>> Meanwhile I've set MANVEN_OPTS, but it would be very nice to use only POM
>>> files.
>>>
>>>  export
>>>
>>> MAVEN_OPTS=-Xbootclasspath/p:$HOME/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar
>>>
>>> Thanks in advance
>>>
>>> Alex
>>>
>>> -
>>> 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
Blog: http://blogs.exist.com/bporter/

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



Re: bootclasspath as a dependency

2008-08-12 Thread Alex

Hi,

> at which point do you need it in the boot classpath? For your unit
> tests, or a plugin?
For unit tests and for the exec-maven-plugin.

Cheers,
Alex

Brett Porter wrote:

at which point do you need it in the boot classpath? For your unit
tests, or a plugin?

Cheers,
Brett

2008/8/12 Alex <[EMAIL PROTECTED]>:

Hi,

Is there a way to specify a bootclasspath as a dependency?
I've been looking for it for a while but I haven't found a solution yet.
What I'd like to have would be something as follows:

pom.xml ->

 javax.xml.bind
 jaxb-api
 2.1


Meanwhile I've set MANVEN_OPTS, but it would be very nice to use only POM
files.

 export
MAVEN_OPTS=-Xbootclasspath/p:$HOME/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar

Thanks in advance

Alex

-
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: Putting file in META-INF in EAR

2008-08-12 Thread Vikramaditya Garg
My Friend

Use the following configuration

Initially you should add packaging to ear

ear

Then...configure ur more elements in POM

${application.id}-${pom.version}


src/main/config
../
true


src/main/application
../${application.id}-${pom.version}
true



You need to configure the plugins as well



org.apache.maven.plugins
maven-ear-plugin
2.1

**/*.xml
**/jboss-app.xml
1.4


${pom.groupId}
app-common

true


${pom.groupId}
app-core


${pom.groupId}
app-web
/${application.id}





In the plugins element, you must specify the modules you configured.

Please use the above configuration and notify in case of issue

Thanks
Vikramaditya Garg


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2008 1:12 PM
To: users@maven.apache.org
Subject: Putting file in META-INF in EAR

We want to create an EAR file and add some files to the META-INF directory.  
I've done some research on the internet, but without any luck so far.  I've 
added this to my POM-file:




${basedir}/src/main/security
META-INF

was.policy




But that doesn't work.  Anyone else has an idea on how to do this?  We use the 
maven-ear-plugin to create the EAR-file, but I haven't found anything in the 
documentation regarding this problem.



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

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



Re: bootclasspath as a dependency

2008-08-12 Thread Brett Porter
at which point do you need it in the boot classpath? For your unit
tests, or a plugin?

Cheers,
Brett

2008/8/12 Alex <[EMAIL PROTECTED]>:
> Hi,
>
> Is there a way to specify a bootclasspath as a dependency?
> I've been looking for it for a while but I haven't found a solution yet.
> What I'd like to have would be something as follows:
>
> pom.xml ->
> 
>  javax.xml.bind
>  jaxb-api
>  2.1
> 
>
> Meanwhile I've set MANVEN_OPTS, but it would be very nice to use only POM
> files.
>
>  export
> MAVEN_OPTS=-Xbootclasspath/p:$HOME/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar
>
> Thanks in advance
>
> Alex
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Available versions of MavenProject's parent

2008-08-12 Thread sverhagen

Well, this is actually exactly the functionality that I'm aiming at. Well,
almost, I suppose.
So, too bad that I was not able to google this up myself, and that it's in
such a poor, abandonned state.
This sort of functionality seems crucial to me, if you're doing a lot of
multi-module release management with Maven.
Thanks for your help.


Stephen Connolly-2 wrote:
> 
> have a look at http://mojo.codehaus.org/versions-maven-plugin.  It does
> just
> what you describe
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Available-versions-of-MavenProject%27s-parent-tp18934631p18941502.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: Error while executing Maven javadoc

2008-08-12 Thread Arnaud HERITIER
I deployed a new snapshot.
Can you check if it changes something ?

On Mon, Aug 11, 2008 at 11:20 PM, EJ Ciramella <[EMAIL PROTECTED]>wrote:

> What is really interesting is running javadoc directly produces NO
> errors.  When run from "mvn site", these errors show up.
>
> I don't even see a 2.5 branch for the javadoc plugin in the source repo,
> anyone care to comment on this issue?
>
> -Original Message-
> From: Michael Delaney [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2008 12:36 PM
> To: Maven Users List
> Subject: Error while executing Maven javadoc
>
> All,
>
>
>
> There seems to have been a new maven Javadoc plug-in uploaded that is
> causing some issues on our side. Is anyone else seeing this issue? We
> are using Maven 2.0.9 and this is encountered during the call 'mvn site
> install'
>
>
>
> [ Console Errors ]
>
> Downloading:
> http://build.corp.upromise.com:8080/archiva/repository/internal//org/apa
> che/maven/plugins/maven-javadoc-plugin/2.5-SNAPSHOT/maven-javadoc-plugin
> -2.5-20080810.123323-30.pom
> 17Kdownloaded
> Downloading:
> http://build.corp.upromise.com:8080/archiva/repository/bertha//org/apach
> e/maven/plugins/maven-javadoc-plugin/2.5-SNAPSHOT/maven-javadoc-plugin-2
> .5-20080810.123323-30.jar
> Downloading:
> http://build.corp.upromise.com:8080/archiva/repository/internal//org/apa
> che/maven/plugins/maven-javadoc-plugin/2.5-SNAPSHOT/maven-javadoc-plugin
> -2.5-20080810.123323-30.jar
> 114Kdownloaded
> [WARNING] Attempting to build MavenProject instance for Artifact
> (org.apache.maven.plugins:maven-javadoc-plugin:2.5-20080810.123323-30)
> of type: maven-plugin; constructing POM artifact instead.
> [INFO]
> 
> [ERROR] FATAL ERROR
> [INFO]
> 
> [INFO] Unresolved compilation problems:
> Syntax error, insert "}" to complete ClassBody
> The method append(StringBuffer, String, int) is undefined for the type
> HelpMojo
>
> ... repeating ...
>
> The method append(StringBuffer, String, int) is undefined for the type
> HelpMojo
> Syntax error, insert "}" to complete Block
> Syntax error, insert "else Statement" to complete IfStatement
> Syntax error, insert "}" to complete MethodBody
> Syntax error, insert "else Statement" to complete IfStatement
> Syntax error, insert ")" to complete MethodInvocation
> Syntax error, insert ";" to complete Statement
> Syntax error, insert "}" to complete Block
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


bootclasspath as a dependency

2008-08-12 Thread Alex

Hi,

Is there a way to specify a bootclasspath as a dependency?
I've been looking for it for a while but I haven't found a solution yet. 
What I'd like to have would be something as follows:


pom.xml ->

 javax.xml.bind
  jaxb-api
  2.1


Meanwhile I've set MANVEN_OPTS, but it would be very nice to use only 
POM files.


 export 
MAVEN_OPTS=-Xbootclasspath/p:$HOME/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar


Thanks in advance

Alex

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



Re : Putting file in META-INF in EAR

2008-08-12 Thread langlois yan
Hi,

I think you just have to place your file was.policy in tre directory 
src/main/resources/META-INF.

Yan.



- Message d'origine 
De : "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
À : users@maven.apache.org
Envoyé le : Mardi, 12 Août 2008, 9h41mn 31s
Objet : Putting file in META-INF in EAR

We want to create an EAR file and add some files to the META-INF directory.  
I've done some research on the internet, but without any luck so far.  I've 
added this to my POM-file:




${basedir}/src/main/security
META-INF

was.policy




But that doesn't work.  Anyone else has an idea on how to do this?  We use the 
maven-ear-plugin to create the EAR-file, but I haven't found anything in the 
documentation regarding this problem.



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.



  
_ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

Re: Available versions of MavenProject's parent

2008-08-12 Thread Stephen Connolly
Have a look especially at:

the

 findLatestVersion( Artifact, VersionRange )

method in

http://svn.codehaus.org/mojo/trunk/sandbox/versions-maven-plugin/src/main/java/org/codehaus/mojo/versions/AbstractVersionsUpdaterMojo.java

and the mojo

http://svn.codehaus.org/mojo/trunk/sandbox/versions-maven-plugin/src/main/java/org/codehaus/mojo/versions/UpdateParentMojo.java

On Tue, Aug 12, 2008 at 6:32 AM, Stephen Connolly <
[EMAIL PROTECTED]> wrote:

> have a look at http://mojo.codehaus.org/versions-maven-plugin.  It does
> just what you describe
>
>
> On Mon, Aug 11, 2008 at 11:00 PM, sverhagen <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi, I'm trying to make a little plugin. I know how to get the reactor's
>> MavenProject's in there, and now I want to query these object for their
>> parents, and ask the parents what of their versions are available (e.g. in
>> the local repo).
>>
>> I see a Artifact.getAvailableVersions which returns nothing for the result
>> of a MavenProject.getArtifact.
>>
>> Any help, thanks!
>> --
>> View this message in context:
>> http://www.nabble.com/Available-versions-of-MavenProject%27s-parent-tp18934631p18934631.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]
>>
>>
>


Putting file in META-INF in EAR

2008-08-12 Thread bjorn.de.bakker
We want to create an EAR file and add some files to the META-INF directory.  
I've done some research on the internet, but without any luck so far.  I've 
added this to my POM-file:




${basedir}/src/main/security
META-INF

was.policy




But that doesn't work.  Anyone else has an idea on how to do this?  We use the 
maven-ear-plugin to create the EAR-file, but I haven't found anything in the 
documentation regarding this problem.



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.