Re: Company-wide settings

2010-10-04 Thread Nathan Sowatskey (nsowatsk)
In our project we have a project wide settings.xml in Subversion, and we ask 
all developers to put that into their ~/.m2 directory.

Regards

Nathan

Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, ScanSafe - 
+34-638-083-675

On 4 Oct 2010, at 12:30, Anders Hammar and...@hammar.net wrote:

 One issue with this approach is that m2eclipse will not use this
 settings.xml file (by default, as it has it's own embedded Maven). I guess
 this could be solved by configuring the standalone Maven installation in
 m2eclipse.
 
 Anyone that has actually tried the approach of having a corporate
 settings.xml bundled with a custom Maven distro?
 
 /Anders
 
 On Mon, Oct 4, 2010 at 11:46, Wendy Smoak wsm...@gmail.com wrote:
 
 On Sun, Oct 3, 2010 at 5:34 PM, Phillip Hellewell ssh...@gmail.com
 wrote:
 The idea is to have a shared company-level settings.xml with
 settings like profiles that most developers will want, and to have
 them automatically available.  The alternative is for everyone to
 manually append it to their global or user-level settings.xml.
 
 One way is to make a custom Maven distribution for your organization,
 with a modified settings.xml.
 
 This also has the advantage of having all developers use the same
 version, which makes support easier.
 
 Many organizations don't allow developers to download and install
 random stuff off the internet anyway, so this becomes your
 corporate/approved/official Maven distro.
 
 --
 Wendy
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 

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



Re: TOC from .confluence files

2010-07-14 Thread nsowatsk
http://jira.codehaus.org/browse/DOXIA-398

(For some reason I am not receiving the Doxia list emails, but I can read the 
replies in the mail-archives).

Regards

Nathan

-- 
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, ScanSafe - 
+34-638-083-675

On 14 Jul 2010, at 09:30, nsowatsk wrote:

 Hi
 
 I am trying to get a TOC in the pages generated from .confluence files, like 
 the one I get from the %{toc} macro in .apt files.
 
 I have tried various permutations on this:
 
 {toc:style=disc|indent=20px}
 
 But all I get is the same, literal, text in the web pages.
 
 Should this, or something like it, actually work?
 
 Many thanks
 
 Nathan
 -- 
 Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, ScanSafe - 
 +34-638-083-675
 



Maven site confluence and {toc}

2010-07-02 Thread nsowatsk
I am using the Confluence plugin for site pages with some success, but I can't 
get the {toc} to work in a .confluence file. I just get the literal {toc} 
rendered in the HTML.

I am following the guidance here:

http://confluence.atlassian.com/renderer/notationhelp.action?section=confluence

Has anyone out there managed to make {toc} work in a .confluence file?

Thanks

Nathan

-- 
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, ScanSafe - 
+34-638-083-675


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



Re: Copy Dependencies into target/lib

2010-04-29 Thread nsowatsk
build
  plugins
plugin
  artifactIdmaven-dependency-plugin/artifactId
  version2.1/version
  executions
execution
  idxxx/id
  phaseprepare-package/phase
  goals
goalcopy-dependencies/goal
  /goals
  configuration
includeGroupIdscom.xxx/includeGroupIds
  outputDirectorytarget/lib/outputDirectory
  /configuration
/execution
execution
  id/id
  phaseprepare-package/phase
  goals
goalcopy-dependencies/goal
  /goals
  configuration
includeGroupIdscom.xxx.xxx/includeGroupIds
  outputDirectorytarget/lib/outputDirectory
  /configuration
/execution
execution
  idxx/id
  phaseprepare-package/phase
  goals
goalcopy-dependencies/goal
  /goals
  configuration
includeGroupIdscom.xxx.xxx.xxx/includeGroupIds
  outputDirectorytarget/lib/outputDirectory
  /configuration
/execution
  /executions
/plugin
  /plugins
/build


On 29/04/2010 11:32, grm peter.gr...@grman.at wrote:

 
 I also tried this many times, but it doesn't copies the dependencies, I
 think, I allready tried every possible configuration you can find on the
 internet, so my question ist, could the dependencies be defined wrong??? but
 i can compile the program, so i think, if the dependencies were wrong
 defined, i couldn't do it. I also can run the program in eclipse
 
 
 subir.sasikumar wrote:
 
 Try this configuration
 
 configuration
outputDirectory${project.build.directory}/lib/outputDirectory
 /configuration
 
 Subir
 -Original Message-
 From: Peter Grman [mailto:peter.gr...@grman.at]
 Sent: Thursday, April 29, 2010 6:26 AM
 To: users@maven.apache.org
 Subject: Copy Dependencies into target/lib
 
 Hallo, I'm allready trying for about 2 hours to copy my dependencies into
 target/lib, I've found hundreds of posts and answers how to do it, but it
 just doesnt work for me.
 
 I can compile the code, I can pack it into a jar and the JUnit tests run
 also, but the dependencies are not copied.
 Here my whole pom.xml, hopefully somone can find the error, because maven
 also doesn't call any:
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIdat.ac.tuwien.sepm.tinyticketing/groupId
  artifactIdTinyTicketingProject/artifactId
  packagingjar/packaging
  version0.0.1-TRACY/version
  nameTiny Ticketing/name
  descriptionZiel dieses Projektes ist es die Abwicklung von
 Ticketverkäufen zu vereinfachen. TT soll die bisherige veraltete
 Kaufabwicklung vollständig übernehmen und außerdem noch neue Möglichkeiten
 zur Preisgestaltung, etc. schaffen./description  issueManagement
   systemBitbucket/system
   urlhttp://bitbucket.org/grm/tiny-ticketing/issues/url
  /issueManagement
  distributionManagement
   site
idwebsite/id
urlscp://webhost.company.com/www/website/url
   /site
  /distributionManagement
  developers
   developer
idabs/id
nameAbseher Michael/name
e0828...@student.tuwien.ac.at
roles
 roleDokument Beauftragter/role
 roleStv. Technischer Architekt/role
/roles
timezone+1/timezone
   /developer
   developer
idfau/id
nameFaustmann Alex/name
alex.faustm...@gmail.com
roles
 roleTeam Koordinator/role
 roleStv. Test Beauftragter/role
/roles
timezone+1/timezone
   /developer
   developer
idgrm/id
nameGrman Peter/name
peter.gr...@gmail.com
roles
 roleTechnischer Architekt/role
 roleRelease Manager/role
 roleStv. Test Beauftragter/role
/roles
timezone+1/timezone
   /developer
   developer
idpol/id
namePollice Marcus/name
marcus.poll...@gmail.com
roles
 roleTest Beauftragter/role
 roleStv. Oberflächendesigner/role
/roles
timezone+1/timezone
   /developer
   developer
idsar/id
nameSarca Ana-Alina/name
e0825...@student.tuwien.ac.at
roles
 roleOberflächendesigner/role
 roleStv. Team Koordinator/role
/roles
timezone+1/timezone
   /developer
   developer
idtos/id
nameTosun Emre/name
e0825...@student.tuwien.ac.at
roles
 roleOberflächendesigner/role
 roleStv. Dokument Beauftragter/role
/roles
timezone+1/timezone
   /developer
  /developers
  scm
   connectionscm:hg:https://bitbucket.org/grm/tiny-ticketing/connection
  
 developerConnectionscm:hg:https://bitbucket.org/grm/tiny-ticketing/develop
 erConnection
   urlhttps://bitbucket.org/grm/tiny-ticketing/url
  /scm
  mailingLists
   mailingList
nameSEPM-3 Google Group/name
postsep...@googlegroups.com/post
archivehttp://groups.google.com/group/sepm-3/archive
   /mailingList
  /mailingLists
  build
   pluginManagement
plugins
   plugin
groupIdorg.apache.maven.plugins/groupId

Re: Copy Dependencies into target/lib

2010-04-29 Thread nsowatsk
The plugin will be called in the prepare-package phase. There is no asdf
phase, so that won't work.

Try without the  includeGroupIds and see what happens.

Also run Maven with debug turned on.

Regards

Nathan


On 29/04/2010 11:54, grm peter.gr...@grman.at wrote:

 
 I tried it, but didn't had really a luck ... for a test, I set the
 goal/goal value to asdf, but no error has been thrown, is it possible,
 that the dependency-plugin is never called???
 
 
 nsowatsk wrote:
 
 build
   plugins
 plugin
   artifactIdmaven-dependency-plugin/artifactId
   version2.1/version
   executions
 execution
   idxxx/id
   phaseprepare-package/phase
   goals
 goalcopy-dependencies/goal
   /goals
   configuration
 includeGroupIdscom.xxx/includeGroupIds
   outputDirectorytarget/lib/outputDirectory
   /configuration
 /execution
 execution
   id/id
   phaseprepare-package/phase
   goals
 goalcopy-dependencies/goal
   /goals
   configuration
 includeGroupIdscom.xxx.xxx/includeGroupIds
   outputDirectorytarget/lib/outputDirectory
   /configuration
 /execution
 execution
   idxx/id
   phaseprepare-package/phase
   goals
 goalcopy-dependencies/goal
   /goals
   configuration
 includeGroupIdscom.xxx.xxx.xxx/includeGroupIds
   outputDirectorytarget/lib/outputDirectory
   /configuration
 /execution
   /executions
 /plugin
   /plugins
 /build
 
 
 On 29/04/2010 11:32, grm peter.gr...@grman.at wrote:
 
 
 I also tried this many times, but it doesn't copies the dependencies, I
 think, I allready tried every possible configuration you can find on the
 internet, so my question ist, could the dependencies be defined wrong???
 but
 i can compile the program, so i think, if the dependencies were wrong
 defined, i couldn't do it. I also can run the program in eclipse
 
 
 subir.sasikumar wrote:
 
 Try this configuration
 
 configuration
outputDirectory${project.build.directory}/lib/outputDirectory
 /configuration
 
 Subir
 -Original Message-
 From: Peter Grman [mailto:peter.gr...@grman.at]
 Sent: Thursday, April 29, 2010 6:26 AM
 To: users@maven.apache.org
 Subject: Copy Dependencies into target/lib
 
 Hallo, I'm allready trying for about 2 hours to copy my dependencies
 into
 target/lib, I've found hundreds of posts and answers how to do it, but
 it
 just doesnt work for me.
 
 I can compile the code, I can pack it into a jar and the JUnit tests run
 also, but the dependencies are not copied.
 Here my whole pom.xml, hopefully somone can find the error, because
 maven
 also doesn't call any:
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIdat.ac.tuwien.sepm.tinyticketing/groupId
  artifactIdTinyTicketingProject/artifactId
  packagingjar/packaging
  version0.0.1-TRACY/version
  nameTiny Ticketing/name
  descriptionZiel dieses Projektes ist es die Abwicklung von
 Ticketverkäufen zu vereinfachen. TT soll die bisherige veraltete
 Kaufabwicklung vollständig übernehmen und außerdem noch neue
 Möglichkeiten
 zur Preisgestaltung, etc. schaffen./description  issueManagement
   systemBitbucket/system
   urlhttp://bitbucket.org/grm/tiny-ticketing/issues/url
  /issueManagement
  distributionManagement
   site
idwebsite/id
urlscp://webhost.company.com/www/website/url
   /site
  /distributionManagement
  developers
   developer
idabs/id
nameAbseher Michael/name
e0828...@student.tuwien.ac.at
roles
 roleDokument Beauftragter/role
 roleStv. Technischer Architekt/role
/roles
timezone+1/timezone
   /developer
   developer
idfau/id
nameFaustmann Alex/name
alex.faustm...@gmail.com
roles
 roleTeam Koordinator/role
 roleStv. Test Beauftragter/role
/roles
timezone+1/timezone
   /developer
   developer
idgrm/id
nameGrman Peter/name
peter.gr...@gmail.com
roles
 roleTechnischer Architekt/role
 roleRelease Manager/role
 roleStv. Test Beauftragter/role
/roles
timezone+1/timezone
   /developer
   developer
idpol/id
namePollice Marcus/name
marcus.poll...@gmail.com
roles
 roleTest Beauftragter/role
 roleStv. Oberflächendesigner/role
/roles
timezone+1/timezone
   /developer
   developer
idsar/id
nameSarca Ana-Alina/name
e0825...@student.tuwien.ac.at
roles
 roleOberflächendesigner/role
 roleStv. Team Koordinator/role
/roles
timezone+1/timezone
   /developer
   developer
idtos/id
nameTosun Emre/name
e0825...@student.tuwien.ac.at
roles
 roleOberflächendesigner/role
 roleStv. Dokument Beauftragter/role
/roles
timezone+1/timezone
   /developer
  /developers
  scm

How can I create a dependency on my dar archive?

2009-10-29 Thread nsowatsk
Hi all

Justin explained how to create a new packaging type:

http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packagi
ng-type-for-maven 

So I now have my .dar type. Cool :-)

BUT, I also need to create a dependency to that type. As matters stand, it
seems that a dependency must be a .jar file.

The dependency lookup fails if it is a .dar file.

Any ideas?

Thanks

Nathan

-- 
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
+34-638-083-675


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



Re: How can I create a dependency on my dar archive?

2009-10-29 Thread nsowatsk
Cool, thanks, that worked!

Now I can go get lunch ;-)

Nathan

On 29/10/2009 14:13, Nick Stolwijk nick.stolw...@gmail.com wrote:

 See the pom reference [1]. You will need to set the type to dar instead of
 jar.
 
 [1] http://maven.apache.org/pom.html#Dependencies
 
 Hth,
 
 Nick Stolwijk
 ~Java Developer~
 
 IPROFS BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 http://www.iprofs.nl
 
 
 On Thu, Oct 29, 2009 at 2:09 PM, nsowatsk nsowa...@cisco.com wrote:
 
 Hi all
 
 Justin explained how to create a new packaging type:
 
 http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packagi
 ng-type-for-mavenhttp://stackoverflow.com/questions/1427722/how-do-i-create-
 a-new-packagi%0Ang-type-for-maven
 
 So I now have my .dar type. Cool :-)
 
 BUT, I also need to create a dependency to that type. As matters stand, it
 seems that a dependency must be a .jar file.
 
 The dependency lookup fails if it is a .dar file.
 
 Any ideas?
 
 Thanks
 
 Nathan
 
 --
 Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
 +34-638-083-675
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 


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



Creating a dar archive

2009-10-27 Thread nsowatsk
Hi all

I would like to use Maven to create a new kind of archive.

I want this new archive to be called a dar file.

I want it to work the same in all other respects as jars/wars/ears, so it is
really just the name that differs.

As a first stab at this I have created a DARMojo that extends
AbstractFromDependenciesMojo and made changes like:

protected static File getJarFile(File basedir, String finalName) {


return new File(basedir, finalName + .dar);
}

And that's pretty much it.

BUT, I get this problem:

Installing xxx/yyy-0.0.1-SNAPSHOT.dar to
xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar

Where the dar file that I have created is being installed as a jar file :-/

So, any ideas about how I can work around this please?

Many thanks

Nathan

-- 
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
+34-638-083-675



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



Re: Creating a dar archive

2009-10-27 Thread nsowatsk
Thank you very much :-)

I got:

[WARNING] ***
[WARNING] Deprecation Alert:
[WARNING] No mojo descriptors were found in this project which has a
packaging type of maven-plugin.
[WARNING] In future versions of the plugin tools, this will fail the build.
[WARNING] If this project is an archetype, change the packaging type from
maven-plugin to maven-archetype.
[WARNING] 
[WARNING] 
[WARNING] 

The idea works as advertised, but I have a small twist (I guess) as I also
wanted to include all of the dependencies in the dar file, so I think that I
need to add some other code also.

I'll do that and report back.

Thanks

Nathan



On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com wrote:

 You need to create a new packaging type. See
 http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packagi
 ng-type-for-maven
 
 Justin
 
 -Original Message-
 From: nsowatsk [mailto:nsowa...@cisco.com]
 Sent: Tuesday, October 27, 2009 8:53 AM
 To: Maven Users List
 Subject: Creating a dar archive
 
 Hi all
 
 I would like to use Maven to create a new kind of archive.
 
 I want this new archive to be called a dar file.
 
 I want it to work the same in all other respects as jars/wars/ears, so
 it is really just the name that differs.
 
 As a first stab at this I have created a DARMojo that extends
 AbstractFromDependenciesMojo and made changes like:
 
 protected static File getJarFile(File basedir, String finalName) {
 
 
 return new File(basedir, finalName + .dar);
 }
 
 And that's pretty much it.
 
 BUT, I get this problem:
 
 Installing xxx/yyy-0.0.1-SNAPSHOT.dar to
 xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar
 
 Where the dar file that I have created is being installed as a jar file
 :-/
 
 So, any ideas about how I can work around this please?
 
 Many thanks
 
 Nathan
 
 --
 Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
 +34-638-083-675
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



Re: Creating a dar archive

2009-10-27 Thread nsowatsk
That's right. It wasn't. Just for the purposes of the new type per se I
didn't need another mojo if all I wanted was the default behaviour.

Of course, since I actually want to copy all of the dependencies to put them
into the archive, I think that I do need my own Mojo, so I am writing that
now :-)

Thanks

Nathan


On 27/10/2009 17:01, Edelson, Justin justin.edel...@mtvstaff.com wrote:

 It looks like your DARMojo class isn't in this project or that it
 doesn't have the correct annotations.
 
 -Original Message-
 From: nsowatsk [mailto:nsowa...@cisco.com]
 Sent: Tuesday, October 27, 2009 9:59 AM
 To: Maven Users List
 Subject: Re: Creating a dar archive
 
 Thank you very much :-)
 
 I got:
 
 [WARNING] ***
 [WARNING] Deprecation Alert:
 [WARNING] No mojo descriptors were found in this project which has a
 packaging type of maven-plugin.
 [WARNING] In future versions of the plugin tools, this will fail the
 build.
 [WARNING] If this project is an archetype, change the packaging type
 from maven-plugin to maven-archetype.
 [WARNING] 
 [WARNING]
 [WARNING] 
 
 The idea works as advertised, but I have a small twist (I guess) as I
 also wanted to include all of the dependencies in the dar file, so I
 think that I need to add some other code also.
 
 I'll do that and report back.
 
 Thanks
 
 Nathan
 
 
 
 On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com
 wrote:
 
 You need to create a new packaging type. See
 http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packa
 gi
 ng-type-for-maven
 
 Justin
 
 -Original Message-
 From: nsowatsk [mailto:nsowa...@cisco.com]
 Sent: Tuesday, October 27, 2009 8:53 AM
 To: Maven Users List
 Subject: Creating a dar archive
 
 Hi all
 
 I would like to use Maven to create a new kind of archive.
 
 I want this new archive to be called a dar file.
 
 I want it to work the same in all other respects as jars/wars/ears, so
 
 it is really just the name that differs.
 
 As a first stab at this I have created a DARMojo that extends
 AbstractFromDependenciesMojo and made changes like:
 
 protected static File getJarFile(File basedir, String finalName) {
 
 
 return new File(basedir, finalName + .dar);
 }
 
 And that's pretty much it.
 
 BUT, I get this problem:
 
 Installing xxx/yyy-0.0.1-SNAPSHOT.dar to
 xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar
 
 Where the dar file that I have created is being installed as a jar
 file :-/
 
 So, any ideas about how I can work around this please?
 
 Many thanks
 
 Nathan
 
 --
 Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
 +34-638-083-675
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



Re: Creating a dar archive

2009-10-27 Thread nsowatsk
I should further explain that I want the behaviour of the ear Mojo, with the
ability to filter etc. If there is a non-coding way to do that, please let
me know.

So, what I want is to create a dar file that contains the files from a
filtered list of the transitive dependencies in the various poms.

Thanks

Nathan


On 27/10/2009 17:01, Edelson, Justin justin.edel...@mtvstaff.com wrote:

 It looks like your DARMojo class isn't in this project or that it
 doesn't have the correct annotations.
 
 -Original Message-
 From: nsowatsk [mailto:nsowa...@cisco.com]
 Sent: Tuesday, October 27, 2009 9:59 AM
 To: Maven Users List
 Subject: Re: Creating a dar archive
 
 Thank you very much :-)
 
 I got:
 
 [WARNING] ***
 [WARNING] Deprecation Alert:
 [WARNING] No mojo descriptors were found in this project which has a
 packaging type of maven-plugin.
 [WARNING] In future versions of the plugin tools, this will fail the
 build.
 [WARNING] If this project is an archetype, change the packaging type
 from maven-plugin to maven-archetype.
 [WARNING] 
 [WARNING]
 [WARNING] 
 
 The idea works as advertised, but I have a small twist (I guess) as I
 also wanted to include all of the dependencies in the dar file, so I
 think that I need to add some other code also.
 
 I'll do that and report back.
 
 Thanks
 
 Nathan
 
 
 
 On 27/10/2009 16:21, Edelson, Justin justin.edel...@mtvstaff.com
 wrote:
 
 You need to create a new packaging type. See
 http://stackoverflow.com/questions/1427722/how-do-i-create-a-new-packa
 gi
 ng-type-for-maven
 
 Justin
 
 -Original Message-
 From: nsowatsk [mailto:nsowa...@cisco.com]
 Sent: Tuesday, October 27, 2009 8:53 AM
 To: Maven Users List
 Subject: Creating a dar archive
 
 Hi all
 
 I would like to use Maven to create a new kind of archive.
 
 I want this new archive to be called a dar file.
 
 I want it to work the same in all other respects as jars/wars/ears, so
 
 it is really just the name that differs.
 
 As a first stab at this I have created a DARMojo that extends
 AbstractFromDependenciesMojo and made changes like:
 
 protected static File getJarFile(File basedir, String finalName) {
 
 
 return new File(basedir, finalName + .dar);
 }
 
 And that's pretty much it.
 
 BUT, I get this problem:
 
 Installing xxx/yyy-0.0.1-SNAPSHOT.dar to
 xxx/0.0.1-SNAPSHOT/yyy-0.0.1-SNAPSHOT.jar
 
 Where the dar file that I have created is being installed as a jar
 file :-/
 
 So, any ideas about how I can work around this please?
 
 Many thanks
 
 Nathan
 
 --
 Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
 +34-638-083-675
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



Re: Snippets in .properties files

2009-09-15 Thread nsowatsk
Hi

Thanks for the note that it should work :-)

No generated file means that there is no HTML generated from the APT file
with the %{snippet ...} in it.

Thanks

Nathan


On 15/09/2009 15:38, Lukas Theussl ltheu...@apache.org wrote:

 
 It works for me. What's your site-plugin/doxia version? What do you mean with
 no 
 generated file ...? The snippet is supposed to be included in the file.
 
 -Lukas
 
 
 Nathan John Sowatskey wrote:
 Hi all
 
 Has anyone been able to get the snippets to work in a .properties file:
 
 I have this:
 
 //START SNIPPET: message_examples
 # Exception message definitions
 APP-ASB-CCPN-300=An UnChecked message (1) with {0}
 APP-ASB-CCPN-400=A Checked message (1) with {0}
 APP-ASB-CCPN-500=An UnChecked message (2) with {0}
 APP-ASB-CCPN-600=A Checked message (2) with {0}
 //END SNIPPET: message_examples
 
 And this:
 
 %{snippet|id=message_examples|file=src/test/resources/com/x/y/messages/excep
 tions.properties}
 
 I also tried with #START ...
 
 It didn't work. No obvious error, but no generated file either.
 
 Should this work?
 
 Many thanks
 
 Nathan
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



Re: Site documentation format choosing

2009-07-29 Thread nsowatsk
We use APT as it is easy to use and has features like snippets that allow us
to include code in the documents.

Of course you can also use html in the resources directory also, so using
APT doesn't mean that's all you get.

APT also allows you to create .apt.vm files that can contain macros that do
funky stuff (when they work at all).

Regards

Nathan


On 28/07/2009 20:46, EJ Ciramella ecirame...@upromise.com wrote:

 So a discussion has popped up here as to why use apt, xdoc or fml over
 just plain html.
  
 I (personally) think it's easier to just throw together APT docs REALLY
 fast and not worry about various components (css and such).
  
 How do I sell apt as the format to use?


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



Re: Site documentation format choosing

2009-07-29 Thread nsowatsk
Hi

APT does support style sheets for Maven sites. We have our own LF for our
APT based sites.

I have many images included in my APT files using URLs.

Table layout is no better or worse than a Wiki.

Meta information can be supported by Velocity templates *.apt.vm).

Regards

Nathan


On 29/07/2009 10:44, Lukas Theussl ltheu...@apache.org wrote:

 
 Just use the easiest tool that does the job, it all depends on what you need.
 Apt 
 is easy to learn and use (especially for people who are allergic to xml), but
 in 
 turn it also lacks in flexibility and misses advanced functionality, eg (from
 the 
 top of my head):
 
 - no styles (css)
 - no javascript
 - no inline images (icons)
 - no figures as links
 - no advanced formatting and layout (eg tables)
 - no meta-information
 
 
 If you need any of those, you'd have to use eg xdoc or direct xhtml. Xdoc lets
 you 
 do all of the above (plus the things you mention: snippets and .vm macros),
 but is 
 also more complicated and, for some, harder to read.
 
 Cheers,
 -Lukas
 
 
 nsowatsk wrote:
 We use APT as it is easy to use and has features like snippets that allow us
 to include code in the documents.
 
 Of course you can also use html in the resources directory also, so using
 APT doesn't mean that's all you get.
 
 APT also allows you to create .apt.vm files that can contain macros that do
 funky stuff (when they work at all).
 
 Regards
 
 Nathan
 
 
 On 28/07/2009 20:46, EJ Ciramella ecirame...@upromise.com wrote:
 
 So a discussion has popped up here as to why use apt, xdoc or fml over
 just plain html.
  
 I (personally) think it's easier to just throw together APT docs REALLY
 fast and not worry about various components (css and such).
  
 How do I sell apt as the format to use?
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



Re: Site documentation format choosing

2009-07-29 Thread nsowatsk
Hi

The list of meta data that you give below is partly addressed in different
sections of the pom.

Once they are in the pom, they also get processed by the standard Maven
report plugin and so appear in various web pages created by that plugin.

Also, by using velocity (.apt.vm) you can include the values of the variable
from the pom file in the text of the pages generated from the .apt files.

Just to clear, APT is limited, but you have to look at it holistically, and
think about what the other Maven tools can do also.

Regards

Nathan

On 29/07/2009 11:55, Lukas Theussl ltheu...@apache.org wrote:

 
 
 Stefan Seidel wrote:
 On Wed, 29 Jul 2009 10:44:28 +0200
 Lukas Theussl ltheu...@apache.org wrote:
 
 turn it also lacks in flexibility and misses advanced functionality, eg
 (from the 
 top of my head):
 
 - no advanced formatting and layout (eg tables)
 Wrong, tables are easily possible.
 
 Of course, I said *advanced* formatting and layout, tables was just an
 example, 
 with apt you cannot specify eg arbitrary column widths, cell padding/spacing,
 frames/borders, multicolumns, tables within tables,...
 
 
 - no meta-information
 What do you mean? You can include date, author and document title.
 
 what about: author coordinates (address, email,...), subject, keywords,
 description, generator, robots, copyright, language, confidential, draft,
 creationDate, modifyDate,...
 
 You can always include those as comments of course but it won't be recognized
 by 
 the parser.
 
 -Lukas
 
 
 Stefan
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



Re: Site documentation format choosing

2009-07-29 Thread nsowatsk
Hi

I live without multi-coloured paragraphs, but the overall skin I can do a
lot with :-)

Images are included like this:

[http://url/image.gif]

The title is best created as a link {Image Name} before the '[]'s

Regards

Nathan

On 29/07/2009 12:07, Lukas Theussl ltheu...@apache.org wrote:

 
 
 nsowatsk wrote:
 Hi
 
 APT does support style sheets for Maven sites. We have our own LF for our
 APT based sites.
 
 So how do you write that in apt:
 
 p style=color:red; font-size:8px;A small red paragraph/p
 p style=color:blue; font-size:20px;A large blue paragraph/p
 
 ?
 
 
 I have many images included in my APT files using URLs.
 
 So how do you write that in apt:
 
 Here's a little icon with a link: a href=maven.orgimg
 src=maven.jpg//a
 inside my text.
 
 ?
 
 
 Table layout is no better or worse than a Wiki.
 
 Agree. If that's all you need, take it, was my whole point.
 
 
 Meta information can be supported by Velocity templates *.apt.vm).
 
 Sure, but that makes the simplicity argument redundant IMO.
 
 -Lukas
 
 
 Regards
 
 Nathan
 
 
 On 29/07/2009 10:44, Lukas Theussl ltheu...@apache.org wrote:
 
 Just use the easiest tool that does the job, it all depends on what you
 need.
 Apt 
 is easy to learn and use (especially for people who are allergic to xml),
 but
 in 
 turn it also lacks in flexibility and misses advanced functionality, eg
 (from
 the 
 top of my head):
 
 - no styles (css)
 - no javascript
 - no inline images (icons)
 - no figures as links
 - no advanced formatting and layout (eg tables)
 - no meta-information
 
 
 If you need any of those, you'd have to use eg xdoc or direct xhtml. Xdoc
 lets
 you 
 do all of the above (plus the things you mention: snippets and .vm macros),
 but is 
 also more complicated and, for some, harder to read.
 
 Cheers,
 -Lukas
 
 
 nsowatsk wrote:
 We use APT as it is easy to use and has features like snippets that allow
 us
 to include code in the documents.
 
 Of course you can also use html in the resources directory also, so using
 APT doesn't mean that's all you get.
 
 APT also allows you to create .apt.vm files that can contain macros that do
 funky stuff (when they work at all).
 
 Regards
 
 Nathan
 
 
 On 28/07/2009 20:46, EJ Ciramella ecirame...@upromise.com wrote:
 
 So a discussion has popped up here as to why use apt, xdoc or fml over
 just plain html.
  
 I (personally) think it's easier to just throw together APT docs REALLY
 fast and not worry about various components (css and such).
  
 How do I sell apt as the format to use?
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



Re: Snippets of APT files

2009-06-23 Thread nsowatsk
OK, stay tuned.

Thanks

Nathan


On 23/06/2009 08:07, Lukas Theussl ltheu...@apache.org wrote:

 
 I would :)
 
 file a patch at http://jira.codehaus.org/browse/DOXIA
 
 Thanks!
 -Lukas
 
 
 nsowatsk wrote:
 Hi Barrie
 
 Thanks for this. That does work, but, as you say, it ends up in a box as
 literal text.
 
 I can probably write a APT snippet macro. If I do, who would be able to
 commit it?
 
 Thanks
 
 Nathan
 
 
 On 23/06/2009 02:00, Barrie Treloar baerr...@gmail.com wrote:
 
 On Tue, Jun 23, 2009 at 1:47 AM, nsowatsk nsowa...@cisco.com wrote:
 
 Hi
 
 I'd like to be able to include a snippet of content from one APT file into
 another APT file, in a similar way to Java snippets.
 
 Ideas anyone?
 
 http://maven.apache.org/doxia/macros/index.html#Snippet_Macro
 
 Should be as simple as adding the snippet start/end tags into your apt file.
 
 I think this will put it in a code like box though.
 If you are expecting the apt parser to parse your snippet apt I dont think
 that will work.
 
 I can't find an include directive for apt, which may be what you want.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



Re: Snippets of APT files

2009-06-23 Thread nsowatsk
Hi all

I tried. The verbatim flag doesn't appear to make any difference at all, but
it has at least given me something to think about.

Many thanks

Nathan


On 23/06/2009 11:57, Lukas Theussl ltheu...@apache.org wrote:

 
 I don't think this will do what he wants either. It only means that special
 apt 
 characters won't be escaped so the text is sent as-is, but it won't be parsed
 again.
 
 -Lukas
 
 
 Barrie Treloar wrote:
 On Tue, Jun 23, 2009 at 3:24 PM, nsowatsknsowa...@cisco.com wrote:
 Hi Barrie
 
 Thanks for this. That does work, but, as you say, it ends up in a box as
 literal text.
 
 I can probably write a APT snippet macro. If I do, who would be able to
 commit it?
 
 Did you try verbatim=false?
 As the default is true.
 
 http://maven.apache.org/doxia/macros/index.html#Snippet_Macro
 Parameter Description
 id The id of the snippet to include. If omitted the whole file/url
 will be included (since Doxia 1.1).
 url The path of the URL to include.
 file The path of the file to include (since doxia-1.0-alpha-9).
 verbatim If the content should be output as verbatim escaped text. If
 this is set to false then the content of the snippet will not be
 escaped. This means that you can use it like Server-Side Includes on a
 webserver. Default value is true.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



Re: Snippets of APT files

2009-06-23 Thread nsowatsk
Yes, #include already exists as a Velocity macro, but I could never get that
to work with APT files. This would be like that, but with snippet
identifiers, so the word include would have the same semantics, which is
good.

Thanks

Nathan

On 23/06/2009 13:34, Barrie Treloar baerr...@gmail.com wrote:

 On Tue, Jun 23, 2009 at 8:36 PM, nsowatsknsowa...@cisco.com wrote:
 Hi all
 
 I tried. The verbatim flag doesn't appear to make any difference at all, but
 it has at least given me something to think about.
 
 Maybe you can extend the snippet macro with another flag include or
 something.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



Re: Snippets of APT files

2009-06-23 Thread nsowatsk
Not using Appfuse, not sure I see the connection.

Regards

Nathan


On 23/06/2009 13:47, Martin Gainty mgai...@hotmail.com wrote:

 
 are you using Appfuse?
 http://static.appfuse.org/plugins/appfuse-maven-plugin/plugin-info.html
 
 if so which Appfuse goal are you executing?
 
 please display contents of pom.xml
 
 Martin Gainty 
 __
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
  
 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
 sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
 oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich
 dem Austausch von Informationen und entfaltet keine rechtliche
 Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
 wir keine Haftung fuer den Inhalt uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
 destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
 l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
 interdite. Ce message sert à l'information seulement et n'aura pas n'importe
 quel effet légalement obligatoire. Étant donné que les email peuvent
 facilement être sujets à la manipulation, nous ne pouvons accepter aucune
 responsabilité pour le contenu fourni.
 
 
 
 
 Date: Tue, 23 Jun 2009 13:39:58 +0200
 Subject: Re: Snippets of APT files
 From: nsowa...@cisco.com
 To: users@maven.apache.org
 
 Yes, #include already exists as a Velocity macro, but I could never get that
 to work with APT files. This would be like that, but with snippet
 identifiers, so the word include would have the same semantics, which is
 good.
 
 Thanks
 
 Nathan
 
 On 23/06/2009 13:34, Barrie Treloar baerr...@gmail.com wrote:
 
 On Tue, Jun 23, 2009 at 8:36 PM, nsowatsknsowa...@cisco.com wrote:
 Hi all
 
 I tried. The verbatim flag doesn't appear to make any difference at all,
 but
 it has at least given me something to think about.
 
 Maybe you can extend the snippet macro with another flag include or
 something.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 _
 Lauren found her dream laptop. Find the PC that¹s right for you.
 http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290


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



Snippets of APT files

2009-06-22 Thread nsowatsk
Hi

I'd like to be able to include a snippet of content from one APT file into
another APT file, in a similar way to Java snippets.

Ideas anyone?

Thanks

Nathan

-- 
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP -
+34-638-083-675


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



Re: Snippets of APT files

2009-06-22 Thread nsowatsk
Hi Barrie

Thanks for this. That does work, but, as you say, it ends up in a box as
literal text.

I can probably write a APT snippet macro. If I do, who would be able to
commit it?

Thanks

Nathan


On 23/06/2009 02:00, Barrie Treloar baerr...@gmail.com wrote:

 On Tue, Jun 23, 2009 at 1:47 AM, nsowatsk nsowa...@cisco.com wrote:
 
 Hi
 
 I'd like to be able to include a snippet of content from one APT file into
 another APT file, in a similar way to Java snippets.
 
 Ideas anyone?
 
 
 http://maven.apache.org/doxia/macros/index.html#Snippet_Macro
 
 Should be as simple as adding the snippet start/end tags into your apt file.
 
 I think this will put it in a code like box though.
 If you are expecting the apt parser to parse your snippet apt I dont think
 that will work.
 
 I can't find an include directive for apt, which may be what you want.


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



Re: Just shoot me now and get it over with

2009-06-06 Thread Nathan Sowatskey (nsowatsk)
The m2eclipse plugin works well. But you need to configure it to use an 
external Maven install *not* the embedded one.

Regards

Nathan

--
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG, XMP 
Architecture - +34-638-083-675 

 -Original Message-
From:   Sebastian Hoß [mailto:m...@shoss.de]
Sent:   Saturday, June 06, 2009 11:51 AM Central Europe Standard Time
To: Maven Users List
Subject:Re: Just shoot me now and get it over with

Steve Cohen wrote:
 I am working in a sort of bastardized Eclipse-maven world for months now.
 I have had for months a M2_REPO variable in Eclipse pointing to a local
 Maven repository.  I know this is not the approved Maven way, but it has
 worked for me for months without difficulty.

As i'm doing the same here ever since - what is the approved Maven way?

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



RE: Just shoot me now and get it over with

2009-06-06 Thread Nathan Sowatskey (nsowatsk)
An example is that the Maven site build did not pick up the contents of the 
index.apt.

My colleagues may have other examples.

Regards

Nathan

--
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG, XMP 
Architecture - +34-638-083-675 

 -Original Message-
From:   Matt Brown [mailto:matt.br...@citrixonline.com]
Sent:   Saturday, June 06, 2009 02:33 PM Central Europe Standard Time
To: Maven Users List
Subject:RE: Just shoot me now and get it over with

Can you provide some details on why you need to use an external install with 
m2eclipse and not the embedded one?


From: Nathan Sowatskey (nsowatsk) [nsowa...@cisco.com]
Sent: Saturday, June 06, 2009 6:18 AM
To: Maven Users List; Maven Users List
Subject: Re: Just shoot me now and get it over with

The m2eclipse plugin works well. But you need to configure it to use an 
external Maven install *not* the embedded one.

Regards

Nathan

--
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG, XMP 
Architecture - +34-638-083-675

 -Original Message-
From:   Sebastian Hoß [mailto:m...@shoss.de]
Sent:   Saturday, June 06, 2009 11:51 AM Central Europe Standard Time
To: Maven Users List
Subject:Re: Just shoot me now and get it over with

Steve Cohen wrote:
 I am working in a sort of bastardized Eclipse-maven world for months now.
 I have had for months a M2_REPO variable in Eclipse pointing to a local
 Maven repository.  I know this is not the approved Maven way, but it has
 worked for me for months without difficulty.

As i'm doing the same here ever since - what is the approved Maven way?

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



Problem with Tables, Doxia, APT Maven site and PDF/RTF generation

2009-06-04 Thread Nathan Sowatskey (nsowatsk)
Hi all

I have a Maven site based on .apt files. I have also created a book descriptor 
for the same site.

When I process the site, I get the error below.

I have tried the latest Doxia 1.1.1-SNAPSHOT out of the svn repo today.

I have also looked at the iText code. The latest is 2.1.5. Doxia seems to be 
using 1.4, and won't compile with iText 2.1.5.  

The intermediate xml seems to generated without problems. It is the 
xml-pdf/rtf stage that seems to have problems.

Any ideas anyone please?

Thanks

Nathan



task-segment: [site]
[INFO] 
[INFO] [doxia:render-books {execution: default}]
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] com.lowagie.text.Table
[INFO] 
[INFO] Trace
java.lang.ClassCastException: com.lowagie.text.Table
at com.lowagie.text.xml.SAXiTextHandler.handleEndingTags(Unknown Source)
at com.lowagie.text.xml.SAXiTextHandler.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at com.lowagie.text.xml.XmlParser.go(Unknown Source)
at com.lowagie.text.xml.XmlParser.parse(Unknown Source)
at com.lowagie.text.xml.XmlToXXX.parse(Unknown Source)
at 
org.apache.maven.doxia.module.itext.ITextUtil.writePdf(ITextUtil.java:118)
at 
org.apache.maven.doxia.book.services.renderer.PdfBookRenderer.renderXML(PdfBookRenderer.java:50)
at 
org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.renderBook(AbstractITextBookRenderer.java:163)
at 
org.apache.maven.doxia.book.DefaultBookDoxia.renderBook(DefaultBookDoxia.java:142)
at 
org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo.execute(DoxiaRenderBooksMojo.java:265)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 
[INFO] Total time: 6 seconds
[INFO] Finished at: Thu Jun 04 22:10:19 CEST 2009
[INFO] Final Memory: 9M/17M
[INFO] 
bash-3.2$ 


M2 EJB basics

2005-06-09 Thread Nathan Sowatskey \(nsowatsk\)
Hi

It may be that I too much of a newbie to Maven to be considering M2, but I
am trying anyway :-)

In the example below I have some EJB code that won't compile as it can't
find the EJB jars.

What I can't see is how to set the location of the EJB jars though. If this
were Maven 1.x I would use properties as part of the solution, but for M2 I
just don't know where to start.

I half suspect that I need to create a dependency, but to what and where and
how I don't know.

If someone wants to tell me that M2 is not ready for newbies, that's fine
and I will go look at 1.x. If someone can help me get this to work though,
then I will persevere and maybe help make M2 a better thing.

Thanks

Nathan


G:\nm_poc\ejb\jarm2 install
[INFO] inventory-service-pom: using locally installed snapshot
[INFO]
-
---
[INFO] Building Inventory Service
[INFO]
-
---
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local
repository
[INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local
reposi
tory
[INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local
reposit
ory
[INFO] maven-surefire-plugin: resolved to version 2.0-alpha-2 from local
reposit
ory
[INFO] maven-install-plugin: resolved to version 2.0-alpha-2 from local
reposito
ry
[INFO] [resources:resources]
[INFO] [compiler:compile]
Compiling 17 source files to G:\nm_poc\ejb\jar\target\classes
[INFO]
-
---
[INFO] BUILD FAILURE
[INFO]
-
---
[INFO] Reason: Compilation failure
[INFO]
-
---
[INFO]
G:\nm_poc\ejb\jar\src\main\java\com\cisco\nm\poc\inventory\ejb\InventoryS
ession.java:[12,17]  package javax.ejb does not exist
G:\nm_poc\ejb\jar\src\main\java\com\cisco\nm\poc\inventory\ejb\InventorySess
ion.
java:[13,17]  package javax.ejb does not exist
...
]  package javax.ejb does not exist
G:\nm_poc\ejb\jar\src\main\java\com\cisco\nm\poc\inventory\ejb\InventorySess
ion.
java:[125,15]  InventoryQueryResponse(java.util.Collection) in
com.cisco.nm.poc.
inventory.util.InventoryQueryResponse cannot be applied to ()

[INFO]
-
---
[INFO] Total time: 6 seconds
[INFO] Finished at: Thu Jun 09 11:24:30 CEST 2005
[INFO] Final Memory: 1M/7M

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



RE: M2 EJB basics

2005-06-09 Thread Nathan Sowatskey \(nsowatsk\)
Thanks :-)

I have shown below what worked for me. A few questions though:

1 - I would normally (I think) wanted to have been able to refer to the file
called jboss-j2ee.jar in the $JBOSS_HOME/server/all/lib dir. Of course I can
copy and rename as I have below, but that doesn't seem right. What do other
people do here?

2 - It seems as though the relationship between a dependency and a jar is
1:1. If I wanted to just add all of the jars in a given directory, how would
I do that?

So, this is what did work for me.

In my pom.xml:

  dependency
  groupIdjboss/groupId
  artifactIdj2ee/artifactId
  version2.1/version
/dependency

And, in my repository I copy the jboss-j2ee.jar to j2ee-2.1.jar and create a
pom, like this:

G:\nm_poc\ejb\jarls D:\Documents and
Settings\nsowatsk\.m2\repository\jboss\j2
ee\2.1
j2ee-2.1.jar j2ee-2.1.pom   

G:\nm_poc\ejb\jarmore D:\Documents and
Settings\nsowatsk\.m2\repository\jboss\
j2ee\2.1/j2ee-2.1.pom

project
  modelVersion4.0.0/modelVersion
  groupIdjboss/groupId
  artifactIdj2ee/artifactId
  version2.1/version
/project

So now I have:

G:\nm_poc\ejb\jarm2 install
[INFO] inventory-service-pom: using locally installed snapshot
[INFO]

---
[INFO] Building Inventory Service
[INFO]

---
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local
repository
[INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local
repos
tory
[INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local
reposi
ory
[INFO] maven-surefire-plugin: resolved to version 2.0-alpha-2 from local
reposi
ory
[INFO] maven-install-plugin: resolved to version 2.0-alpha-2 from local
reposit
ry
[INFO] [resources:resources]
[INFO] [compiler:compile]
Compiling 17 source files to G:\nm_poc\ejb\jar\target\classes
[INFO]

---
[INFO] BUILD FAILURE
[INFO]

---
[INFO] Reason: Compilation failure
[INFO]

---
[INFO]
G:\nm_poc\ejb\jar\src\main\java\com\cisco\nm\poc\inventory\ejb\Inventory
ession.java:[125,15]  InventoryQueryResponse(java.util.Collection) in
com.cisco
nm.poc.inventory.util.InventoryQueryResponse cannot be applied to ()

[INFO]

---
[INFO] Total time: 6 seconds
[INFO] Finished at: Thu Jun 09 12:05:42 CEST 2005
[INFO] Final Memory: 1M/7M
[INFO]

---

G:\nm_poc\ejb\jar

-Original Message-
From: Nicolas Chalumeau [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 09, 2005 11:41 AM
To: Maven Users List; [EMAIL PROTECTED]
Subject: Re: M2 EJB basics

Hi Nathan

2005/6/9, Nathan Sowatskey (nsowatsk) [EMAIL PROTECTED]:
 Hi
 
 It may be that I too much of a newbie to Maven to be considering M2, 
 but I am trying anyway :-)
 
 In the example below I have some EJB code that won't compile as it 
 can't find the EJB jars.
 
 What I can't see is how to set the location of the EJB jars though. If 
 this were Maven 1.x I would use properties as part of the solution, 
 but for M2 I just don't know where to start.
 
 I half suspect that I need to create a dependency, but to what and 
 where and how I don't know.

You have the solution here : you need to add a j2ee-XX.jar dependency in
your pom for this project. But as it will not be on ibiblio you need to
download and install it in your m2 repository manually.

 
 If someone wants to tell me that M2 is not ready for newbies, that's 
 fine and I will go look at 1.x. If someone can help me get this to 
 work though, then I will persevere and maybe help make M2 a better thing.

We all are newbies in M2 ;-) (only the great dev team is not...)

Nicolas,

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



RE: M2 EJB basics

2005-06-09 Thread Nathan Sowatskey \(nsowatsk\)
Many thanks for the pointers. This is what worked:

  dependency
  groupIdgeronimo-spec/groupId
  artifactIdgeronimo-spec-j2ee/artifactId
  version1.4-rc4/version
/dependency

I was not sure what to do with the point about using a reference
implementation from Sun. What changes would I make to my pom.xml for that?

Regards

Nathan 

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 09, 2005 12:25 PM
To: Maven Users List; [EMAIL PROTECTED]
Cc: Nicolas Chalumeau
Subject: Re: M2 EJB basics

On 6/9/05, Nathan Sowatskey (nsowatsk) [EMAIL PROTECTED] wrote:
 1 - I would normally (I think) wanted to have been able to refer to 
 the file called jboss-j2ee.jar in the $JBOSS_HOME/server/all/lib dir. 
 Of course I can copy and rename as I have below, but that doesn't seem 
 right. What do other people do here?

You have a few options:
- install in the local repo, as you have
- use a reference implementation - j2ee from sun for compilation
- use geronimo-spec for compilation (it is available in the repo already)

 2 - It seems as though the relationship between a dependency and a jar 
 is 1:1. If I wanted to just add all of the jars in a given directory, 
 how would I do that?

Create another dependency with packaging = pom, say j2ee-all, that declared
dependencies on all the others, then refer to that from your projects.

 [INFO]
 G:\nm_poc\ejb\jar\src\main\java\com\cisco\nm\poc\inventory\ejb\Invento
 ry ession.java:[125,15]  InventoryQueryResponse(java.util.Collection) 
 in com.cisco nm.poc.inventory.util.InventoryQueryResponse cannot be 
 applied to ()

This appears to me to be a compile error in your code.

Cheers,
Brett

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



[m2] FYI - CHECKSUM MISMATCH for maven-ejb-plugin-1.5/4/3/2.jar

2005-06-09 Thread Nathan Sowatskey \(nsowatsk\)
{remoteRepositories: [[central] - http://repo1.maven.org/maven2]}
Downloading:
http://repo1.maven.org/maven2/maven/maven-ejb-plugin/1.5/maven-ejb-
plugin-1.5.jar
9K downloaded
Downloading:
http://repo1.maven.org/maven2/maven/maven-ejb-plugin/1.5/maven-ejb-
plugin-1.5.jar.md5
0K downloaded
[WARNING] *** CHECKSUM MISMATCH - currently disabled fail due to bad
repository
checksums ***
---

Downloading:
http://repo1.maven.org/maven2/maven/maven-ejb-plugin/1.4/maven-ejb-
plugin-1.4.jar.md5
0K downloaded
[WARNING] *** CHECKSUM MISMATCH - currently disabled fail due to bad
repository
checksums ***

Downloading:
http://repo1.maven.org/maven2/maven/maven-ejb-plugin/1.3/maven-ejb-
plugin-1.3.jar.md5
0K downloaded
[WARNING] *** CHECKSUM MISMATCH - currently disabled fail due to bad
repository
checksums ***

Downloading:
http://repo1.maven.org/maven2/maven/maven-ejb-plugin/1.3/maven-ejb-
plugin-1.3.jar.md5
0K downloaded
[WARNING] *** CHECKSUM MISMATCH - currently disabled fail due to bad
repository
checksums ***

--
Nathan Sowatskey - Technical Leader, NMTG CTO Engineering - Desk 
+44-208-824-4259 - Mobile +44-7740-449794 - AIM id
NathanCisco - [EMAIL PROTECTED] 

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



[m2] Using xdoclet to generate EJB artefacts

2005-06-09 Thread Nathan Sowatskey \(nsowatsk\)
Hi all

Plodding progress. Now that I get the code compiled (see passim), I need to
use xdoclet to generate my interfaces and deployment descriptors.

A similar subject on the list referred to:

http://maven.apache.org/maven2/plugins/maven-ejb-plugin/ejb-mojo.html

But there seems to be a checksum mismatch on all of the versions of that
plugin.

And I have also found:

http://www.ibiblio.org/maven2/maven-xdoclet2-plugin/maven-xdoclet2-plugin/

But I can't see any examples of usage or guidance.

Has anyone got any ideas here please?

Many thanks

Nathan

--
Nathan Sowatskey - Technical Leader, NMTG CTO Engineering - Desk 
+44-208-824-4259 - Mobile +44-7740-449794 - AIM id
NathanCisco - [EMAIL PROTECTED] 

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



Maven 2.0 - compile - No sources to compile

2005-06-07 Thread Nathan Sowatskey \(nsowatsk\)
Hi

I am trying out Maven 2.0 for the first time. At this stage it doesn't see
any code to compile.

This is the trace:

G:\nm_poc\ejb\jarm2 -e compile
+ Error stacktraces are turned on.
[INFO] inventory-service-pom: using locally installed snapshot
[INFO]
-
---
[INFO] Building Inventory Service
[INFO]
-
---
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local
repository
[INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local
reposi
tory
[INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local
reposit
ory
[INFO] [resources:resources]
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO]
-
---
[INFO] BUILD SUCCESSFUL
[INFO]
-
---
[INFO] Total time:  1 second
[INFO] Finished at: Tue Jun 07 21:26:32 CEST 2005
[INFO] Final Memory: 1M/2M
[INFO]
-
---

G:\nm_poc\ejb\jar

This is what I have in my pom.xml for the compiler plugin.

From pom.xml:

  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-compiler-plugin/artifactId
  configuration
compileSourceRootsjavax/compileSourceRoots
  /configuration
/plugin


I have tried various paths in the place where javax appears, but the results
seem to be the same.

And there is code in the directrory.

G:\nm_poc\ejb\jarls src/main/javax/oss
ApplicationContext.java QueryValue.java
AttributeAccess.javaSerializer.java
IllegalArgumentException.java   SerializerFactory.java
ManagedEntityKey.java   UnsupportedAttributeException.java
ManagedEntityValue.java XmlSerializer.java
ManagedEntityValueIterator.java XmlSerializerEncodingStyles.java

G:\nm_poc\ejb\jar

G:\nm_poc\ejb\jarls
pom.xml  src

Does anyone have a clue here please? I know that it must be obvious, but ...

Many thanks

Nathan

--
Nathan Sowatskey - Technical Leader, NMTG CTO Engineering - Desk 
+44-208-824-4259 - Mobile +44-7740-449794 - AIM id
NathanCisco - [EMAIL PROTECTED] 

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