Re: something like 'ant -propertyfile ...'

2008-12-10 Thread Tomislav Stojcevich
You can put the default values in a properties section in your pom,
then over-ride them in your default profile in settings.xml file or an
alternate settings.xml file.   If using an alternate settings.xml file
you can specify it's location by using --settings path/to/settings.xml
or (-s for short).

--tom

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



Re: get active profile in pom

2008-07-07 Thread Tomislav Stojcevich
Or use the help plugin.  mvn help:active-profiles

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



Re: Include resources from other module in .jar

2008-06-27 Thread Tomislav Stojcevich
Try the remote resources plugin
http://maven.apache.org/plugins/maven-remote-resources-plugin/

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



Re: Mvn 2 plugin to copy files?

2008-04-03 Thread Tomislav Stojcevich
Why don't you try the war:inplace goal instead of the war:war goal.
This copies classes/lib/etc... back from target into src/main/webapp.
Then use a context.xml file to define your webapp within tomcat.

JSP changes take without the need to copy any files.

Of course you'll have to be careful and mark the classes and lib dir
as ignored in your scm tool so they don't get checked in since they
will be in your src folder now.

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



Re: Filtering POMs

2008-01-05 Thread Tomislav Stojcevich

 Bad sample case. That can be done with properties. What I would nead now is
 the property that would come from file that is not commited to SVN.  I would
 like to set target dir with that property. So everyone that works with
 project can set target dir pointing to Tomcat webapp dir. If properties
 would be in some .properties file than every developer could set those
 properties only once. The problem is that POMs are soposed to be commited so
 everyone must set its taget dir in POM and be careful not to commit them.
 --

properties can also be set in each user's settings.xml, so create a
property in your pom, you can then optionally give it a default value
in that pom, then have each user over-ride it in their settings.xml
file.

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



Re: Filtering POMs

2008-01-05 Thread Tomislav Stojcevich
The settings.xml will work for properties, however, after re-reading
this, why don't you consider using the war:inplace goal instead, and
have each user setup a context within tomcat's webapp directory using
a context xml file that points back into your project's webapp
directory.  That buys you the ability to make jsp changes without
rebuilding, they'll 'take' while the app is running.

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



Re: Building war with multi-module classes and no module jars

2007-12-14 Thread Tomislav Stojcevich
You can use the dependency:unpack
http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html
to unpack the classes from the jars.

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



Re: [c-1.1] Need to understand hot to set MyProject_HOME for continuum

2007-12-14 Thread Tomislav Stojcevich
Can't you just use . for current directory instead of a variable?

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



Re: maven2 release plugin - no dependencies update

2007-12-14 Thread Tomislav Stojcevich
http://maven.apache.org/general.html#plugin-version

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



Re: [c-1.1] Need to understand hot to set MyProject_HOME for continuum

2007-12-14 Thread Tomislav Stojcevich
i see, i had a similar issue.  projects are independent and should not
'reach into' each other.

to use common stuff,  jar them up in one project, install them into
your repo, then in the other projects you can add as a dependency or
use the unpack goal of the dependency plugin to explode them into each
project that needs them.

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



Re: Refresh local repository SNAPSHOTS every morning

2007-12-13 Thread Tomislav Stojcevich
mvn dependency:resolve should do the trick, add -U to force the update
if you want to use it again after maven did it's daily check

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



Re: m2 group project is not efficient?

2007-11-21 Thread Tomislav Stojcevich
http://jira.codehaus.org/browse/CONTINUUM-1312

vote for it

--tom


Re: indiscriminate dependencies ...

2007-09-30 Thread Tomislav Stojcevich
i'm unaware of any plugins to prohibit unused deps but the dependency
plugin has an analyze goal can give you a report showing dependencies
that are declared and unused that I find useful when cleaning
dependencies.

mvn dependency:analyze

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



Re: Filtering java source files

2007-09-30 Thread Tomislav Stojcevich
Why don't you just put your version in a standard properties file
using maven's resource filtering (like you are trying to do with the
java file) and have your class read it from there?

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



Re: indiscriminate dependencies ...

2007-09-30 Thread Tomislav Stojcevich
http://jira.codehaus.org/browse/MNG-1977

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



Re: Filtering java source files

2007-09-30 Thread Tomislav Stojcevich
Ah, I see what you are trying to do now.  Although according to the
maven lifecycle the resources should get processed before the compile.
 http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
 so it should be working.

I think you can get your end result by manually binding the resource
plugin to the generate sources phase but it seems like a lot of extra
work just to get a version in the file.

Does your SCM tool provide keyword substitution upon commit?  You
might be able to have it inject the file's scm version.  It won't be
the same as your maven project version but if you have everything
tagged in your SCM tool you should be able to map it back to a
specific tag.

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



Re: [m2] urgent issue with modules and sub-modules for initial builds

2007-08-13 Thread Tomislav Stojcevich
Do you have the maven-enforcer-plugin in your pluginManagement section?

I removed it from mine and forced the version in the usage instead of
in the management section and my build worked.

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



Re: [m2] urgent issue with modules and sub-modules for initial builds

2007-08-13 Thread Tomislav Stojcevich
Actually, using version in the usage also causes the problem.  But
removing the version tag of the plugin works.  I'm submitting bug
report.

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



Re: [m2] urgent issue with modules and sub-modules for initial builds

2007-08-13 Thread Tomislav Stojcevich
The real solution is reverting to the enforcer 1.0-alpha-2 release.  I
was using 1.0-alpha-3 which for some reason isn't listed as the
current release.

The JIRA for the bug in question is http://jira.codehaus.org/browse/MENFORCER-14

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



Re: [m2] urgent issue with modules and sub-modules for initial builds

2007-08-10 Thread Tomislav Stojcevich
I'm having the same issue.  Perhaps the cause is the same as whatever
fixed http://jira.codehaus.org/browse/MNG-2434?

Is anybody else experiencing this?

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



Re: How to download source code to repos?

2007-07-10 Thread Tomislav Stojcevich

mvn dependency:sources

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



Continuum 1.0.3 + Maven 2.0.7 - failed builds showing up as success in continuum

2007-07-03 Thread Tomislav Stojcevich

This started happening after upgrading from maven 2.0.6.

Has anybody else experienced this?

--
tom


Re: Continuum 1.0.3 + Maven 2.0.7 - failed builds showing up as success in continuum

2007-07-03 Thread Tomislav Stojcevich

It's a bug.

http://jira.codehaus.org/browse/MNG-3084

On 7/3/07, Yann Le Du [EMAIL PROTECTED] wrote:


I've experienced the same - failed builds shown with the successful icon
and vice versa.

Couldn't reproduce, it happens randomly. The only workaround I found is
to
manually build the project.

- Yann

On 7/3/07, Tomislav Stojcevich [EMAIL PROTECTED] wrote:

 This started happening after upgrading from maven 2.0.6.

 Has anybody else experienced this?

 --
 tom






--
tom


Re: Non-terminating Builds

2007-05-18 Thread Tomislav Stojcevich

It doesn't sound like the build is still running.  It sounds like the
project still looks like it's building because of the icon.  I've had
this happen several times.

I clear it up by adding a build definition to the project and specify
the goal as -v (which just gives the maven version) then I run that
build definition.


Re: Download Sources

2007-02-15 Thread Tomislav Stojcevich

You shouldn't need to configure anything in the pom, just do mvn
dependency:sources

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



Re: Download Sources

2007-02-15 Thread Tomislav Stojcevich

Try -cpu or a -U option with that, maybe that'll trigger the download
of the maven version.

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



Re: Download Sources

2007-02-15 Thread Tomislav Stojcevich

Try mvn dependency:sources -U, the -U will force the check, if it
already checked once today, it won't check again unless you force it.

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



Re: Forced builds

2006-11-21 Thread Tomislav Stojcevich

This would be useful if you are reverse engineering the database and
there is a database change.  No cvs change but a table got modified.
--
tom


Re: Second source directory for generated code

2006-09-22 Thread Tomislav Stojcevich

Use the build helper plugin to add additional source paths

http://mojo.codehaus.org/build-helper-maven-plugin/

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



Re: getting the sources and javadocs

2006-08-21 Thread Tomislav Stojcevich

The maven-dependency-plugin has a sources goal.
http://mojo.codehaus.org/dependency-maven-plugin/introduction.html

mvn dependency:sources

This is not available in the released 1.0 version, but it is in the
1.1-SNAPSHOT.  You need to build from source or get from mojo snapshot
repository.  
http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/dependency-maven-plugin/1.1-SNAPSHOT/

Or just use the eclipse plugin with the -DdownloadSources=true and
ignore the generated eclipse files.

On 8/21/06, Patrick Moore [EMAIL PROTECTED] wrote:

Hi there -

It looks like there is no way with maven2 to get the generated javadoc jar or
the sources.jar files. Is this correct?

Been looking for a while for a way and I found this:
http://jira.codehaus.org/browse/MNG-2248

-Pat



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





--
tom

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



Re: Jsp precompilation

2006-03-22 Thread Tomislav Stojcevich
Use scopeprovided/scope which makes them available at build time
but keeps them out of your war.

On 3/22/06, Tom Joad [EMAIL PROTECTED] wrote:
 Hello,
 Please see.

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

 We must add inside your pom.xml

  dependency
 groupIdtomcat/groupId
 artifactIdjasper-runtime/artifactId
 version5.5.12/version
 /dependency
  dependency
 groupIdjavax.servlet/groupId
 artifactIdservlet-api/artifactId
 version2.4/version
 /dependency
 with compile scope dependency. The problem is that the two jars will
 be included on your war file. You must delete them before deplloying
 to tomcat

 and modify your web.xml by adding string
 !-- [INSERT FRAGMENT HERE] --
 The plugin replaces this string by jsp/servlet mapping .

 Tom.





 2006/3/22, Venkatagopalaraju [EMAIL PROTECTED]:
  Dear Maven users,
 
  I am new to Maven build tool.I am not able to find Jsp precompilation 
  Documents or information. When I am trying to compile jsp's in my project, 
  It is not identifying. Anyone please help me out, what I need to add in my 
  pom.xml for jsp precompilation.
 
 
  Thanks  Regards
 Gopal
 
 

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




--
tom

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



Re: continuum scheduled forced build

2006-02-23 Thread Tomislav Stojcevich
Will there be a way to force the build even though there were no scm changes?

I have projects that generate code from database metadata.  If a
database change occurs I would need the forced build (scheduled
nightly) to still occur so that database changes are pick up and the
system is rebuilt.  Currently, this is not possible without a manual
forced build.

On 2/23/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 nothing to do.

 In 1.0.2, we checked modifications in scm between the current execution and 
 the previous even if it
 was two different build definition.
 In 1.0.3, we check scm changes between two executions of the same build 
 definition, so if you set an
 hourly build schedule and a nightly build schedule, for the nigthly, we check 
 if you have some
 changes in last 24 hours.

 Emmanuel

 Matthew Vanbiervliet a écrit :
  Ok thank you.
  And how will we be able to activate it ? Will it be a new option to check ?
  A new argument ?
 
 
  On 2/22/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 
 I fixed this problem in svn but i need to do some more tests before the
 release of Continuum 1.0.3
 
 Emmanuel
 
 Matthew Vanbiervliet a écrit :
 
 I've just seen that there was an open issue about this...
 Anyway, your suggestions are welcome :-)
 
 
 
 On 2/22/06, Matthew Vanbiervliet [EMAIL PROTECTED] wrote:
 
 
 Hi,
 
 Is there a way to force Continuum to build a project even if there are
 
 no
 
 changes in the source repository ?
 What I try to achieve is to have Continuum build a snapshot using a
 different profile every night, even if there were no changes. I have two
 schedules attached to the project :
 
 - The default one which runs every hour
 - A second one that runs at 1 AM every night.
 
 Now the problem is that, when I commit changes, let's say at 7:35 PM,
 
 the
 
 scheduled build at 8 pm will detect these changes and perform a build.
 At 1 AM, a cvs update is run, but no changes are detected since there
 weren't any new commits since 7:35 PM...
 
 I'd like to have this specific build, build a snapshot and deploy it on
 our private repository, so that we always have a latest snapshot
 
 deployed
 
 every day (and an up to date doc).
 To be able to achieve this, the second schedule should start a forced
 build...(using a argument ? )
 
 A workaround would be to have the project twice in continuum, one copy
 with the default schedule and one copy with the second schedule, but i'd
 prefere to avoid this overhead...It still has an advantage though : if
 
 no
 
 changes were made at all one day, then there wouldn't be an unnecessary
 deployment the next night.
 
 Do you see how I can do that ? Or any better suggestion ?
 
 
 Thanks for your help
 
 --
 Matthew Vanbiervliet
 Accelior Consulting
 http://www.accelior.com
 
 
 
 
 
 --
 Matthew Vanbiervliet
 Accelior Consulting
 http://www.accelior.com
 
 
 
 
 
  --
  Matthew Vanbiervliet
  Accelior Consulting
  http://www.accelior.com
 




--
tom


Re: [m2] Include dependent jars in EJB-jar

2006-02-17 Thread Tomislav Stojcevich
The ear plugin does this for you.

I don't think it's part of the j2ee spec to have dependent jars
bundled inside the ejb.jar.  I believe that they normally get grouped
together inside of an ear file.

You setup a seperate project with packaging of ear and add your
ejb.jar as a dependency.  Your ejb.jar project will have dependencies
on the vo.jar, etc... etc. which will all get pulled into your ear
via the transitive dependency mechanism.

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



Re: [m2] Site Plugin Cannot Overrite Site Files when using file:/// p rotocol.

2006-02-06 Thread Tomislav Stojcevich
See:  http://jira.codehaus.org/browse/WAGON-30

Replacing the jar in your maven/lib directory as indicated in the
comments should work, it worked for me.

--tom

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



Re: [M2] Distributing archive of source via repository

2006-02-02 Thread Tomislav Stojcevich
Add this to the buildplugins section of your pom:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-source-plugin/artifactId
executions
  execution
phasepackage/phase
goals
goaljar/goal
/goals
  /execution
/executions
  /plugin

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



Re: [m2] svn: where are the sources for axistools?

2006-01-28 Thread Tomislav Stojcevich
http://mojo.codehaus.org/source-repository.html

--
tom

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



Re: 2.0.2 ant lib is missing ant classes

2006-01-18 Thread Tomislav Stojcevich
Once created it looks like you can't change the priority.  Somebody
from the maven team probably could.

I would suggest voting for it in JIRA.

I tried to rebuild the jar myself from the trunk and get the same
results, no antlib.xml and no ant package.

On 1/18/06, Rollo, Dan [EMAIL PROTECTED] wrote:
 Somehow I mangled the URL for the bug report. This is a very big
 problem, since as the report states, it's not only the antlib.xml file
 that is missing, but all the ant plugin classes...in short, there is no
 ant plugin in version 2.0.2. Ouch!

 http://jira.codehaus.org/browse/MNG-1970


 Dan


 2.0.2 ant lib is missing ant classes
 Rollo, Dan 2006-01-17 16:32

 I found this bug report:

 [jira] Created: (MNG-1970) maven-artifact-ant-2.0.2-dep.jar missing
 antlib.xml
 http://www.nabble.com/-jira-Created%3A-%28MNG-1970%29-maven-artifact-ant
 -2.0.2-dep.jar-missing-antlib.xml-t936588.html#a2426214

 Does anyone know a way around this? I was trying to test some other bug
 fixes, but can't get past this.

 How quickly can a new maven get published?

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




--
tom

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



[m2.0.1] antlib error - Duplicate project ID found in pom.

2005-12-13 Thread Tomislav Stojcevich
Getting the following error in 2.0.1 when I run artifact:dependencies
from a project that has a parent pom.  It use to work in 2.0.

[artifact:dependencies] An error has occurred while processing the
Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to build project: D:\Projects\abc\ejb\pom.xml
[artifact:dependencies] Duplicate project ID found in
D:\Projects\abc\ejb\pom.xml

Here is the build script:
artifact:localRepository id=maven.local.repository
location=@{localRepository}/
artifact:pom id=maven.project file=@{pom} /
artifact:dependencies pathId=maven.project.dependency.classpath
   verbose=@{verbose}
   useScope=compile
pom refid=maven.project /
localRepository refid=maven.local.repository/
/artifact:dependencies

Any ideas?

--
tom

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



Re: [m2] New libraries coming out

2005-12-13 Thread Tomislav Stojcevich
There are poms you can copy under org.hibernate for a start.

The versions there are a bit more up to date than under hibernate and
those poms seem to have information rather than being the default as
are the ones in hibernate.

I needed the newest version of the hibernate-tools and just used the
latest version pom I found under org.hibernate and modified the
version number.  Never got around to submitting an upload request.


On 12/13/05, Srepfler Srgjan [EMAIL PROTECTED] wrote:
 Hi,
 I just wanted to let people know some libs have been released but since
 I don't have the time to make the pom's for them I'm hoping someone else
 would like to volunteer.
 First of all hibernate 3.1 got final, then there is a 3.1 beta2 of their
 tools package that I for instance use to get the ant tasks and some
 library support, this package is very useful (specially if you'd like to
 use ant and xdoclet stuff with external plugins)  and none the less
 latest version in ibiblio is 3.0.0 alpha. I do however have some
 remarks, perhaps an alternative artifact might be better suited as this
 is a whole plugin package for eclipse, leaving space to extract only
 basic libraries.
 Then there is acegisecurity 1.0.0RC and I the most difficult pom to be
 made would be experimental pom's for spring 2 (not out yet, but the
 sooner we start preparing for it the better).
 Srgjan

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




--
tom

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



Re: [m2] New libraries coming out

2005-12-13 Thread Tomislav Stojcevich
I take back part of that.  org.hibernate.hibernate.3.1rc2 has a pom
you can you for a start.

org.hibernate.hibernate-tools only had alpha5 with no pom.  I made up
the following based on what was in the lib directory of the download
for the 3.1beta1.  It depends on a snapshot of jtidy-r8 which is not
yet released, now I know why I didn't request an upload.  Here's my
pom you can use for a start.

project
  modelVersion4.0.0/modelVersion
  groupIdorg.hibernate/groupId
  artifactIdhibernate-tools/artifactId
  version3.1.0.beta1/version
  dependencies
dependency
  groupIdehcache/groupId
  artifactIdehcache/artifactId
  version1.1/version
/dependency
dependency
  groupIdvelocity/groupId
  artifactIdvelocity/artifactId
  version1.4/version
/dependency
dependency
  groupIdvelocity-tools/groupId
  artifactIdvelocity-tools-generic/artifactId
  version1.1/version
/dependency
dependency
  groupIdjtidy/groupId
  artifactIdjtidy/artifactId
  versionr8-SNAPSHOT/version
/dependency
  /dependencies
/project

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



Re: [M2] [Ibiblio] Catalina 4.1.31

2005-12-07 Thread Tomislav Stojcevich
It's out there now, along with all of the other tomcat 4.1.31 jars.  I
asked the Tomcat team to post it to the Apache repository and it
eventually got sync'd.

--
tom

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



Re: Intro questions

2005-11-29 Thread Tomislav Stojcevich
Yes, it's 1 level under the root.  I could move it up to the root but
there are far too many reletive references in it that would have to
change.

On 11/29/05, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 your file is in a sub-directory?

 Emmanuel

 Tomislav Stojcevich a écrit :
  That works for me also, but only if the build.xml file is in the root
  of the project.  Mine isn't and I don't see how to specify the
  location of the file.
 
  On 11/24/05, Jeremy Hughes [EMAIL PROTECTED] wrote:
 
 Leaving the POM filename field empty worked for me.
 
 Jeremy
 
 On 11/18/05, Tomislav Stojcevich [EMAIL PROTECTED] wrote:
 
 The same thing happens to me.  I did select add ant project but when I
 go to add the build definition it asks me for the pom.  I tried
 specifying the build.xml file for the pom and specifying the ant
 target in the goal but that doesn't work.
 
 I am using version 1.0.1.
 
 
 On 11/15/05, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 
 Where did it asked you? Are you sure you choose Add Ant Project in menu?
 
 Emmanuel
 
 Sergio Bossa a écrit :
 
 Hi all,
 
 I've never used Maven but I want to use Continuum with Ant, do I need
 to know something about Maven?
 Moreover, adding one of my Ant projects, Continuum asked me for a
 Maven pom.xml file: why do I need this, if my project is Ant based?
 
 Thanks,
 Regards,
 
 Sergio B.
 
 --
 Sergio Bossa (http://sbtourist.blogspot.com)
 Author and Lead Developer of:
 - Montag (http://montag.sourceforge.net)
 - QuickNote (http://quicknote.sourceforge.net)
 
 
 
 
 
 
 --
 tom
 
 
 
 
  --
  tom
 
 
 




--
tom


Re: Intro questions

2005-11-28 Thread Tomislav Stojcevich
That works for me also, but only if the build.xml file is in the root
of the project.  Mine isn't and I don't see how to specify the
location of the file.

On 11/24/05, Jeremy Hughes [EMAIL PROTECTED] wrote:
 Leaving the POM filename field empty worked for me.

 Jeremy

 On 11/18/05, Tomislav Stojcevich [EMAIL PROTECTED] wrote:
  The same thing happens to me.  I did select add ant project but when I
  go to add the build definition it asks me for the pom.  I tried
  specifying the build.xml file for the pom and specifying the ant
  target in the goal but that doesn't work.
 
  I am using version 1.0.1.
 
 
  On 11/15/05, Emmanuel Venisse [EMAIL PROTECTED] wrote:
   Where did it asked you? Are you sure you choose Add Ant Project in menu?
  
   Emmanuel
  
   Sergio Bossa a écrit :
Hi all,
   
I've never used Maven but I want to use Continuum with Ant, do I need
to know something about Maven?
Moreover, adding one of my Ant projects, Continuum asked me for a
Maven pom.xml file: why do I need this, if my project is Ant based?
   
Thanks,
Regards,
   
Sergio B.
   
--
Sergio Bossa (http://sbtourist.blogspot.com)
Author and Lead Developer of:
- Montag (http://montag.sourceforge.net)
- QuickNote (http://quicknote.sourceforge.net)
   
   
   
  
  
 
 
  --
  tom
 



--
tom


Re: Intro questions

2005-11-18 Thread Tomislav Stojcevich
Added http://jira.codehaus.org/browse/CONTINUUM-459


On 11/18/05, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 I'll check it. File a jira issue, so i wouldn't lose it.

 Emmanuel

 Tomislav Stojcevich a écrit :
  The same thing happens to me.  I did select add ant project but when I
  go to add the build definition it asks me for the pom.  I tried
  specifying the build.xml file for the pom and specifying the ant
  target in the goal but that doesn't work.
 
  I am using version 1.0.1.
 
 
  On 11/15/05, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 
 Where did it asked you? Are you sure you choose Add Ant Project in menu?
 
 Emmanuel
 
 Sergio Bossa a écrit :
 
 Hi all,
 
 I've never used Maven but I want to use Continuum with Ant, do I need
 to know something about Maven?
 Moreover, adding one of my Ant projects, Continuum asked me for a
 Maven pom.xml file: why do I need this, if my project is Ant based?
 
 Thanks,
 Regards,
 
 Sergio B.
 
 --
 Sergio Bossa (http://sbtourist.blogspot.com)
 Author and Lead Developer of:
 - Montag (http://montag.sourceforge.net)
 - QuickNote (http://quicknote.sourceforge.net)
 
 
 
 
 
 
 
  --
  tom
 
 
 




--
tom


Re: Intro questions

2005-11-18 Thread Tomislav Stojcevich
The same thing happens to me.  I did select add ant project but when I
go to add the build definition it asks me for the pom.  I tried
specifying the build.xml file for the pom and specifying the ant
target in the goal but that doesn't work.

I am using version 1.0.1.


On 11/15/05, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 Where did it asked you? Are you sure you choose Add Ant Project in menu?

 Emmanuel

 Sergio Bossa a écrit :
  Hi all,
 
  I've never used Maven but I want to use Continuum with Ant, do I need
  to know something about Maven?
  Moreover, adding one of my Ant projects, Continuum asked me for a
  Maven pom.xml file: why do I need this, if my project is Ant based?
 
  Thanks,
  Regards,
 
  Sergio B.
 
  --
  Sergio Bossa (http://sbtourist.blogspot.com)
  Author and Lead Developer of:
  - Montag (http://montag.sourceforge.net)
  - QuickNote (http://quicknote.sourceforge.net)
 
 
 




--
tom


[m2] dependency on sources from another project

2005-11-17 Thread Tomislav Stojcevich
Does anybody know the best way to include sources that are generated
in one project into another project (not for compile purposes, just to
use for further source generation so as to avoid generating from
metadata again which is quite a lengthy process due to the number of
tables).

I have 2 projects.  1 (ejb) where I generate code from the database
metadata and I then run xdoclet on the generated code to generate the
interfaces and stuff.  2 (web) where I also need to run Xdoclet
against the sources generated in the first project to generate the
struts form objects.

I only need the sources generated in the ejb project to be availabe
for the xdoclet step and not to be part of the sourcepath for
compiles.

I've already got the ejb project to deploy a jar with the sources into
the repository, I just need to access it now in the 2nd project in the
Xdoclet step.

--
tom

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



Re: Maven 2 Repository - Logging Missing jars etc.

2005-11-01 Thread Tomislav Stojcevich
That particular jar is a sun licensed jar so it won't be in the
central repository, you will have to get it yourself, it's POM has the
download url (the POM in the original location, not the new one
http://www.ibiblio.org/maven2/jdbc/jdbc-stdext/2.0/jdbc-stdext-2.0.pom).

See:  http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html

No need to log a JIRA about the fact that it is missing but you might
log one about the new POM not having the download info in it.
http://jira.codehaus.org/browse/MEV


On 11/1/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Does anyone know where the best place is to log problems with Repository
 Dependencies.

 The sort of problems I'm talking about, is  .pom file referencing a jar
 that isn't in the Maven2 Repository (e.g.
 http://repo1.maven.org/maven2/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar).

 I have looked at the various JIRA Maven projects and it isn't clear where
 these issues should be logged.  Is there a Repository Administration bug
 list?



--
tom

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



Re: POM properties

2005-10-28 Thread Tomislav Stojcevich
How do you reference something that is a collection in the POM?

Let's say there are 2 developers and I want to get their email
addresses to put in the notifier.address section of the ciManagement
section (I know a mailing list is preferred but we don't have one set
up right now and I know there are JIRA's in Continuum to propogate the
developers into continuum as users and the users as the notifiers but
until then...)

${project.developers.developer.xxx.email}  (where xxx is ther id)
or
${project.developers.developer[0].email)

On 10/27/05, Jason van Zyl [EMAIL PROTECTED] wrote:
 On Thu, 2005-10-27 at 15:25 +1000, Michael McCrann wrote:
  Hi,
 
  Is there any documentation that describes what things from the POM are 
  available as variables?

 Anything in the POM itself:

 http://maven.apache.org/maven-model/maven.html

  How do I specify 'target' as a property? The things I have tried haven't 
  worked:

 You can take a look at this:

 http://maven.apache.org/guides/introduction/introduction-to-the-pom.html

 Which shows the Super POM which has most of the build elements that you
 might want to use.

  $(pom.build.outputDirectory}
  ${pom.build.dir}
  ${build.dir}

 Close but no cigar :-)

 ${pom.build.directory}

 
  NOTICE
  This e-mail and any attachments are confidential and may contain copyright 
  material of Macquarie Bank or third parties. If you are not the intended 
  recipient of this email you should not read, print, re-transmit, store or 
  act in reliance on this e-mail or any attachments, and should destroy all 
  copies of them. Macquarie Bank does not guarantee the integrity of any 
  emails or any attached files. The views or opinions expressed are the 
  author's own and may not reflect the views or opinions of Macquarie Bank.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 --
 jvz.

 Jason van Zyl
 jason at maven.org
 http://maven.apache.org



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




--
tom

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



Re: [m2] including ejb client jar in webapp

2005-10-25 Thread Tomislav Stojcevich
You need to specify the type as ejb-client in your client project's pom.

dependency
  groupIdcom.abc/groupId
  artifactIdEjb/artifactId
  version1.00/version
  typeejb-client/type
/dependency

On 10/25/05, Ashley Williams [EMAIL PROTECTED] wrote:
 Hi,

 Just wondering how I go about including an ejb client jar in my
 project. It seems the main artifact of an ejb project is the ejb jar
 file, which is fair enough. However it can also generate a client
 jar, installed in the same directory in the local repository and I
 can't work out how to include this poor cousin in my webapp project.
 I definitely don't want the full on ejb jar file as it will try to
 pull in quite a few dependencies. Not to mention I don't want the
 enterprise beans in my client app.

 Has anyone else come across this problem? (and solved it ;)

 Thanks
 - AW

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





--
tom

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



[m2] Optional Transient Dependecies

2005-10-24 Thread Tomislav Stojcevich
If I am correct, maven2 includes all optional transient dependencies by
default and you have to specify an exclude for each optional transient
dependency you do not want. This could potentially lead to many excludes.
 It would be nice to have a flag to to turn off all optional transient
dependencies from being included by default for a specific dependency
(something like excludeOptionalDependencies) and then specify what you
want included rather than specify what you want excluded. IMO the optional
transient dependencies you want included would be easier to determine
because you usually know what optional dependencies you use, and if you
don't your compile or test cases will tell you.
 --tom


Re: [m2] Optional Transient Dependecies

2005-10-24 Thread Tomislav Stojcevich
I think I know how the optional tag works within a pom. I am saying that if
my project has a dependency on projectA and projectA has an optional
dependency for project1 and an optional dependency for project2, that
currently I will get project1 and project2 jars downloaded into my project.
Let's say that I have no use for project2. I know I can specify an excludes
tag in my project so that the project2 dependencies don't get created as
part of the graph (which should work since projectA tagged it as optional).
Simple in this scenerio but what if projectA has optionals for project3, 4,
5, 6, 7 etc... I have to specify each one of those things even though I
could care less about them.
 I think it makes more sense to add a flag to exclude all optionals by
default if we choose to, then manually include only the ones we know we
need.
 In my case I would exclude all optionals from projectA and then only
include project1, rather than excluding project3, project4, project5, etc...
 On 10/24/05, Jason van Zyl [EMAIL PROTECTED] wrote:

 On Mon, 2005-10-24 at 09:30 -0400, Tomislav Stojcevich wrote:
  If I am correct, maven2 includes all optional transient dependencies by
  default and you have to specify an exclude for each optional transient
  dependency you do not want. This could potentially lead to many
 excludes.

 A project itself can also specify an optional/ element for a
 dependency which means that the transitive dependencies for that
 dependency will not be included in the graph. But this is up to the
 project distributing the POM.

  It would be nice to have a flag to to turn off all optional transient
 dependencies from being included by default for a specific dependency
 (something like excludeOptionalDependencies) and then specify what you
 want included rather than specify what you want excluded. IMO the optional
 transient dependencies you want included would be easier to determine
 because you usually know what optional dependencies you use, and if you
 don't your compile or test cases will tell you.

This feature exists but the project where the POM originates must
specify a dependency as optional. I created a JIRA issue so that this
notion gets documented.

 --tom
--
jvz.

Jason van Zyl
jason at maven.org http://maven.org
http://maven.apache.org



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




--
--tom


[m2] Plugin Documentation

2005-10-20 Thread Tomislav Stojcevich
What happened to the plugin documentation?
  Are they still available somewhere and am I just not finding them?
 There use to be a link that took you to a list of all available plugins and
you could get to the documentation for each of the plugins that showed all
of the parameters. It's kind of painful having to manually create the plugin
sites from the downloaded source and search through each of their site
directories.
 --tom