Re: maven site plugin

2006-07-14 Thread rebels_mascot

Thanks for the relpy Arnaud, think I wrote my 1st post wrong.
Sorry meant the maven-site-plugin in Maven 2. Do the properties I set in
build.properties now go into a css file in the site folder?
-- 
View this message in context: 
http://www.nabble.com/maven-site-plugin-tf1938390.html#a5322992
Sent from the Maven - Users forum at Nabble.com.


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



[m2] Filters

2006-07-14 Thread rebels_mascot

I'm trying to specify different filter files during different phases, 1
during the main filtering process and the other during the test filters, so
I checked out the maven-resource-plugin and saw I could change the filters
for each goal or so I think I can, anyway this is what I tried but it ain't
working, any advice?

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-resources-plugin/artifactId
  executions
execution
  goals
goaltestResources/goal
  /goals
  configuration
filters
  filter
${basedir}/test/resources/filter-test-resources.properties
  /filter
/filters
  /configuration
/execution
  /executions
/plugin

And have another execution for the resources goal with a different filter
file.

Can you specify a filter file in this way, is it a bug they're not working?
I can't use the other (normal) way because will have the same properties but
with different values, I have been using antrun but would prefer not to.

Thanks,
Brian
-- 
View this message in context: 
http://www.nabble.com/-m2--Filters-tf1943491.html#a5327412
Sent from the Maven - Users forum at Nabble.com.


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



Re: Test resource filtering

2006-07-14 Thread rebels_mascot

I think we're having the same problem or similar anyway, one way around it is
to use antrun but it's a crappy way to do it I think. Not sure if my post
will help but I think it's wat your looking for but I doubt it's meant to be
used in that fasion and it doesn't work :-).
-- 
View this message in context: 
http://www.nabble.com/Test-resource-filtering-tf1943497.html#a5327573
Sent from the Maven - Users forum at Nabble.com.


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



Re: Maven2. Variables. pom-inheritance. Strange behavour.

2006-07-13 Thread rebels_mascot

Could it be that your putting in the second child?

As in try leaving out ${project.artifactId}, i.e.

  distributionManagement
site
idwebsite/id
urlscpexe://myserver:/data/htdocs/modules//url
/site
  /distributionManagement

Just guessing but maybe Maven puts adds the artifactId?
-- 
View this message in context: 
http://www.nabble.com/Maven2.-Variables.-pom-inheritance.-Strange-behavour.-tf1936878.html#a5308585
Sent from the Maven - Users forum at Nabble.com.


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



Re: setting a property in settings.xml?

2006-07-13 Thread rebels_mascot

I think ...

settings
profiles
profile
idyourapp/id
properties
catalina.homec:/tc/catalina.home
/properties
/profile
  /profiles
  activeProfiles
  activeProfileyourapp/activeProfile
  /activeProfiles
 /settings
-- 
View this message in context: 
http://www.nabble.com/setting-a-property-in-settings.xml--tf1938297.html#a5311460
Sent from the Maven - Users forum at Nabble.com.


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



maven site plugin

2006-07-13 Thread rebels_mascot

Does all the properties from the xdoc plugin in maven 1 go into a css file
now for the site plugin?

i.e.
maven.ui.body.background=white
maven.ui.body.foreground=black
maven.ui.banner.background=white
etc.

Thanks Brian
-- 
View this message in context: 
http://www.nabble.com/maven-site-plugin-tf1938390.html#a5311618
Sent from the Maven - Users forum at Nabble.com.


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



target in antrun

2006-07-12 Thread rebels_mascot

Hey all,

I'm converting a goal from Maven 1 to Maven 2 using antrun. I've problems
with some it do. With:
target name=media
/target

I get:
Embedded error: Could not create task or type of type: target.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual 
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file: 

Is there a target option I can use in ant as a substitute?

-- 
View this message in context: 
http://www.nabble.com/%3Ctarget%3E-in-antrun-tf1931494.html#a5290712
Sent from the Maven - Users forum at Nabble.com.


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



[m2] maven.ui

2006-07-10 Thread rebels_mascot

Hey all,

Whats the plugin for configuring all the UI and xdoc stuff?

maven.xdoc.date=left?
maven.license.licenseFile=${basedir}/../LICENSE.txt?

maven.ui.body.background=white?

# FAQ
maven.faq.src.file=${basedir}/../xdocs/faq.fml?

# Provided documentation
maven.docs.src=${basedir}/xdocs?
-- 
View this message in context: 
http://www.nabble.com/-m2--maven.ui-tf1917042.html#a5248069
Sent from the Maven - Users forum at Nabble.com.


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



Findbugs error

2006-07-07 Thread rebels_mascot

Howdy,

Getting an error for the findbugs-maven-plugin, it seems that a dependency
(dom4j) is dependent on jaxen beta 6 but in the dom4j pom the jaxen
dependency is set to optional - true. Is there anyway of overwriting a
plugins pom's dependency configuration?
Other posts I've come across have said to comment out or delete the optional
bit but that's a crappy way around this.

Thanks,
Brian
-- 
View this message in context: 
http://www.nabble.com/Findbugs-error-tf1906933.html#a5218865
Sent from the Maven - Users forum at Nabble.com.


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



Filtering during a phase

2006-06-29 Thread rebels_mascot

Hey, Is it possible to use a properties files during a phase, i.e.
I want to have two properties files for connecting to the database. One for
testing. So they both have the same properties but will have different
values, e.g.
filter-dev.properties
  property1.prop=${dev.prop1}
filter-test.properties
  property1.prop=${test.prop1}

So is there a way I can tell the test phase or test resource to use
filter-test.properties and the main development to use filter-dev.properties
-- 
View this message in context: 
http://www.nabble.com/Filtering-during-a-phase-tf1866258.html#a5099100
Sent from the Maven - Users forum at Nabble.com.


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



Re: [M2] Ant filer task

2006-06-22 Thread rebels_mascot

Thanks Max, that helped alot.
--
View this message in context: 
http://www.nabble.com/-M2--Ant-filter-t1817822.html#a4989712
Sent from the Maven - Users forum at Nabble.com.


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



Re: [M2] Ant filter

2006-06-22 Thread rebels_mascot

I've stopped using the antrun plugin to filter my resources, thanks Max, but
now I have a new problem.

In the settings.xml file I have a profile which declares various properties
needed for database stuff, e.g.
dev.db.s_sqlfalse/dev.db.s_sql
but I also have a similar property
test.db.s_sqlfalse/test.db.s_sql obviously used for testing :-)

Now in a xml file in the resources folder I have @db.s_sql@, sometimes this
will get it's value from test.db.s_sql and other times from dev.db.s_sql
(different goals), so my problem is that I need to have either 2 profiles or
two properties files with test.db and dev.db values in them, e.g.

filter-test.properties
show_sql=${test.db.show_sql}

filter-dev.properties
show_sql=${test.db.show_sql}

but how do I activate the profile or property file at the right time? Can I
activate the test profile during the test phase only and the dev during it's
respective phase. Or in testResources can i specify the test
profile/property file?

Thanks Brian. 
--
View this message in context: 
http://www.nabble.com/-M2--Ant-filter-t1817822.html#a4990339
Sent from the Maven - Users forum at Nabble.com.


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



Re: [M2] Ant filer task

2006-06-22 Thread rebels_mascot

I've stopped using the antrun plugin to filter my resources, thanks Max, but
now I have a new problem.

In the settings.xml file I have a profile which declares various properties
needed for database stuff, e.g.
dev.db.s_sqlfalse/dev.db.s_sql
but I also have a similar property
test.db.s_sqlfalse/test.db.s_sql obviously used for testing :-)

Now in a xml file in the resources folder I have @db.s_sql@, sometimes this
will get it's value from test.db.s_sql and other times from dev.db.s_sql
(different goals), so my problem is that I need to have either 2 profiles or
two properties files with test.db and dev.db values in them, e.g.

filter-test.properties
show_sql=${test.db.show_sql}

filter-dev.properties
show_sql=${test.db.show_sql}

but how do I activate the profile or property file at the right time? Can I
activate the test profile during the test phase only and the dev during it's
respective phase. Or in testResources can i specify the test
profile/property file?

Thanks Brian. 
--
View this message in context: 
http://www.nabble.com/-M2--Ant-filter-t1817822.html#a4990344
Sent from the Maven - Users forum at Nabble.com.


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



Re: Unversioned jars revisted

2006-06-22 Thread rebels_mascot

Could you use antrun to rename it yourself before it's added to the war?
--
View this message in context: 
http://www.nabble.com/Unversioned-jars-revisted-t1829311.html#a4990511
Sent from the Maven - Users forum at Nabble.com.


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



[M2] Ant filer task

2006-06-20 Thread rebels_mascot

Hey, I'm very confused as how to change from using:
ant:filter token=s_sql value=${dev.db.s_sql} / in maven 1 to it's
eqivelent in maven 2? Should this be included in resources? 
dev.db.s_sql is delared in the build.properties in the user home folder.
Do I know declare dev.db.s_sql in the settings.xml and if so, where?

Or should I be using antrun?
--
View this message in context: 
http://www.nabble.com/-M2--Ant-filer-task-t1817822.html#a4955769
Sent from the Maven - Users forum at Nabble.com.


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



include dependencies in a plugin

2006-06-12 Thread rebels_mascot

I'm using the spring-mock plugin and also need the spring-jdbc, the
spring-jdbc is a dependency in the spring-mock pom but is set to optional
true. How do I set the spring-mock dependency to include the spring-jdbc? 
--
View this message in context: 
http://www.nabble.com/include-dependencies-in-a-plugin-t1774087.html#a4828762
Sent from the Maven - Users forum at Nabble.com.


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



Help explaining maven 2

2006-06-02 Thread rebels_mascot

Hi I'm a student on work placement and the company I'm working for asked me
to investigate updating to maven 2. So I've been modifying one of their
projects to use maven 2, they currently use maven 1.

1st, what would ye say if ye had to explain maven 2 to someone who has been
using maven 1 but doesn;t know much (if anything about maven 2)

2nd, I'm trying to explain pregoals and post goals but stuck myself as how
to explain it. Really because I'm not I get it myself. What I was going to
say was:
Plugins can be executed during a phase, this is how pregoals and postgoals
are managed, i.e. pregoal could be to compile; main goal could be to create
a jar; and postgoal could be to create the docs, three separate plugins will
have to be used.

Thanks,
Brian
--
View this message in context: 
http://www.nabble.com/Help-explaining-maven-2-t1723384.html#a4681740
Sent from the Maven - Users forum at Nabble.com.


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



Re: Help explaining maven 2

2006-06-02 Thread rebels_mascot

Ya I've a bit of reading to do alright, tis endless!!

Sorry, wrote the pregoals sentence wrong, I'm trying to explain how they're
handled in maven 2 by using plugins. As in I need to say to them, goals are
no longer used instead you do 1, 2, 3 ...
--
View this message in context: 
http://www.nabble.com/Help-explaining-maven-2-t1723384.html#a4681950
Sent from the Maven - Users forum at Nabble.com.


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



Re: Plugin Configuration

2006-05-29 Thread rebels_mascot

Thanks Roland, I'll give that a go now.
--
View this message in context: 
http://www.nabble.com/Plugin+Configuration-t1698672.html#a4609896
Sent from the Maven - Users forum at Nabble.com.


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



Find a repository on the local drive

2006-05-26 Thread rebels_mascot

I'm trying to set up a repository that's a level above my parent folder. I've
tried:
  repositories
repository
  idproject-repo/id
  nameProject Repository/name
  urlfile://../mvn-repo/url
/repository
  /repositories

I have this in the parent pom.xml but the child modules can't seem to find
the folder. Isn't the repository meant to be inherited? Am I specifying the
location the wrong way?

Thanks, 
Brian


--
View this message in context: 
http://www.nabble.com/Find+a+repository+on+the+local+drive-t1686660.html#a4575752
Sent from the Maven - Users forum at Nabble.com.


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



Re: maven 2 changelog plugin?

2006-05-26 Thread rebels_mascot

Not to sure but is this it:
http://www.ibiblio.org/pub/packages/maven2/org/codehaus/mojo/changelog-maven-plugin/
--
View this message in context: 
http://www.nabble.com/maven+2+changelog+plugin--t1686627.html#a4575827
Sent from the Maven - Users forum at Nabble.com.


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



Re: Find a repository on the local drive

2006-05-26 Thread rebels_mascot

hey thanks, seems to have fixed it. Sorry for the stupid question lads!
--
View this message in context: 
http://www.nabble.com/Find+a+repository+on+the+local+drive-t1686660.html#a4575937
Sent from the Maven - Users forum at Nabble.com.


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



Maven 2 jar plugin

2006-05-23 Thread rebels_mascot

How do I include other files in a jar besides the class files? When I use mvn
install it will create jars for all my sub projects with the class files but
doesn't include the xml files I have in the packages.

I checked out maven-jar-plugin but couldn't see anything to change so I can
included xml files.

Thanks,
Brian
--
View this message in context: 
http://www.nabble.com/Maven+2+jar+plugin-t1668728.html#a4522325
Sent from the Maven - Users forum at Nabble.com.


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



Re: Maven 2 jar plugin

2006-05-23 Thread rebels_mascot

Thanks for the reply Ben,

that seems to of done the job :-)

Thanks again,
Brian.
--
View this message in context: 
http://www.nabble.com/Maven+2+jar+plugin-t1668728.html#a4523225
Sent from the Maven - Users forum at Nabble.com.


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