Unable to create a Checker
I just installed Maven from head today and ran maven checkstyle (maven-checkstyle-plugin-2.4-SNAPSHOT) and it gave me the following message: checkstyle:run: [echo] Using file:export/home/cruise/.maven/plugins/maven-checkstyle-plugin-2.4-SNAPS HOT/plugin-resources/sun_checks.xml file:export/home/cruise/.maven/plugins/maven-checkstyle-plugin-2.4-SNAP SHOT/plugin-resources/sun_checks.xml for checkstyle ... BUILD FAILED File.. file:/export/home/cruise/.maven/plugins/maven-checkstyle-plugin-2.4-SNAPSHOT /plugin.jelly file:/export/home/cruise/.maven/plugins/maven-checkstyle-plugin-2.4-SNAPSHO T/plugin.jelly Element... ant:checkstyle Line.. 141 Column 63 Unable to create a Checker: unable to read file://export/home/cruise/.maven/plugins/maven-checkstyle-plugin-2.4-SNAPSHO T/plugin-resources/sun_checks.xml file://export/home/cruise/.maven/plugins/maven-checkstyle-plugin-2.4-SNAPSH OT/plugin-resources/sun_checks.xml Total time: 24 seconds Finished at: Thu May 13 14:25:32 PDT 2004 I then installed 2.3 and it worked fine, bu tI noticed they were using different files: checkstyle:run: [echo] Using /export/home/cruise/.maven/plugins/maven-checkstyle-plugin-2.3/plugin-resour ces/sun_checks.xml for checkstyle ... BUILD SUCCESSFUL Total time: 1 minutes 2 seconds Finished at: Thu May 13 15:04:17 PDT 2004 I assume this is a bug, correct? Should I open an issue with JIRA? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ???
Resolving circular dependencies
Is there a plugin out there that could show me where a circular depency is occurring? I just tried running dashboard in my main project with a lot of subrojects and it tells me I have a cycle. The subproject that it detected the cycle on has many dependencies of its own and I would hate to manually go through each project.xml and trace back to the first subproject. If there is a plugin that does this that would be awesome. Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ???
Reactor prints itself out ...
I have a project with a few subprojects of varying folder-depth like this: App/ Project/ portlets/ portletA/ portletB/ Each subproject must have its dependencies copied to a specific location which is specified in each maven.xml separately. I wrote the following goal using reactor to run the goal on all subprojects: goal name=portal-deps maven:reactor basedir=.. postProcessing=false includes=**/project.xml goals=portal-deps banner=Copying portal dependencies ignoreFailures=false/ deploy:copy-deps todir=APP-INF/lib/ /goal However, when I run this goal, the reactor tag gets printed out: portal-deps: maven:reactor banner=Copying portal dependencies includes=**/project.xml postProcessing=false goals=portal-deps ignoreFailures=false basedir=../maven:reactor [copy] Copying 5 files to C:\eclipse\workspace\ETportalApp\APP-INF\lib BUILD SUCCESSFUL Total time: 1 seconds Finished at: Wed May 12 15:54:39 PDT 2004 So that strikes me as odd. And then none of my subprojects get run at all. Any idea what I'm doing wrong? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ???
Disappearing Tag Library
I just bootstrapped Maven from HEAD and it installed without a hitch. However, as soon as I try to run maven on a maven.xml with xmlns:maven=maven I get this: Tag library requested that is not present: 'maven' in plugin: 'null' Where did my tag library go? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ???
RE: Cruise Control Integration
I think this question should go to the CruiseControl mailing list, but it's easy, so I'll just drop some XML for you: project name=something-nightly bootstrappers currentbuildstatusbootstrapper file=logs/something-nightly/currentbuildstatus.txt/ cvsbootstrapper cvsroot=:pserver:[EMAIL PROTECTED]:/export/CVS file=something/project.xml/ /bootstrappers modificationset requireModification=true cvs localWorkingCopy=something/ cvsroot=:pserver:[EMAIL PROTECTED]:/export/CVS /cvs /modificationset schedule maven goal=clean scm:update-project java:compile jar:deploy-snapshot site:deploy projectfile=/somefolder/something/project.xml mavenscript=/usr/maven/bin/maven time=2300 /maven /schedule publishers currentbuildstatuspublisher file=/somefolder/logs/something-nightly/currentbuildstatus.txt /currentbuildstatuspublisher htmlemail logdir=/somewhere/projects/logs/something-nightly mailhost=smtp.somemailserver.com css=/usr/cruise/reporting/jsp/css/cruisecontrol.css subjectprefix=[BUILD] returnaddress=[EMAIL PROTECTED] defaultsuffix=@somewhere.com skipusers=true xsldir=/usr/cruise/reporting/jsp/xsl buildresultsurl=http://somewhere.com/something/index.html; always address=[EMAIL PROTECTED]/ /htmlemail /publishers /project This configuration will build the project every night at 11 pm. It is bootstrapped so that the project.xml is updated before the build actually takes place. Then, it uses maven to update the entire project, compile it, deploy a snapshot jar and then deploy a generated website. Then an email is sent to you notifying you of the status of the build. Hope that helps. -Original Message- From: Raphael Philipe Mendes da Silva [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 5:00 AM To: Maven Users List (E-mail) Subject: Cruise Control Integration Someone have some examples of using Cruise Control with Maven in a multiproject project? I'm loking for Cruise Control because of it features, like e-mail and Reports. Someone can help me? Thanks, Raphael Philipe Mendes da Silva DSB - Diretoria de Soluções em Billing CPqD Telecom IT Solutions Tel.: +55 19 3705-6957 www.cpqd.com.br [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgrade to RC2 and then NoSuchGoalException
I just recently upgraded from an RC1-SNAPSHOT to RC2 but when I ran the site goal maven gives me a NoSuchGoalException for maven-license-plugin:register in the xdoc plugin. Any ideas what might be causing this? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ???
RE: Upgrade to RC2 and then NoSuchGoalException
I tried clearing the plugin cache and I ran the site goal once more, but now maven is complaining about this, BUILD FAILED File.. file:/export/home/cruise/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly Element... j:include Line.. 345 Column 54 null:-1:-1: null Could not parse Jelly script Total time: 2 minutes 56 seconds Finished at: Mon May 10 16:13:48 PDT 2004 So I opened up the jelly script and didn't really see anything out of the ordinary: j:file name=${outFile} encoding=${outputencoding} omitXmlDeclaration=true outputMode=xml prettyPrint=no j:include uri=${stylesheet.toString()}/ /j:file Is this right? Any idea why it can't parse? -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 4:08 PM To: 'Maven Users List' Subject: RE: Upgrade to RC2 and then NoSuchGoalException Clear your plugin cache and try again (rm -rf ~/.maven/plugins on unix) RC3 fixes the problem -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 11 May 2004 7:36 AM To: [EMAIL PROTECTED] Subject: Upgrade to RC2 and then NoSuchGoalException I just recently upgraded from an RC1-SNAPSHOT to RC2 but when I ran the site goal maven gives me a NoSuchGoalException for maven-license-plugin:register in the xdoc plugin. Any ideas what might be causing this? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Upgrade to RC2 and then NoSuchGoalException
I'll take the option with the smiley next to it. Thanks. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 4:25 PM To: 'Maven Users List' Subject: RE: Upgrade to RC2 and then NoSuchGoalException Ah, this is a bug in xdoc-1.6 which was fixed in CVS a while ago. You can: - search the archives for the fix - build xdoc plugin from cvs - wait until the release later this week :) Cheers, Brett -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 11 May 2004 9:21 AM To: [EMAIL PROTECTED] Subject: RE: Upgrade to RC2 and then NoSuchGoalException I tried clearing the plugin cache and I ran the site goal once more, but now maven is complaining about this, BUILD FAILED File.. file:/export/home/cruise/.maven/plugins/maven-xdoc-plugin-1.6/ plugin.jelly Element... j:include Line.. 345 Column 54 null:-1:-1: null Could not parse Jelly script Total time: 2 minutes 56 seconds Finished at: Mon May 10 16:13:48 PDT 2004 So I opened up the jelly script and didn't really see anything out of the ordinary: j:file name=${outFile} encoding=${outputencoding} omitXmlDeclaration=true outputMode=xml prettyPrint=no j:include uri=${stylesheet.toString()}/ /j:file Is this right? Any idea why it can't parse? -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 4:08 PM To: 'Maven Users List' Subject: RE: Upgrade to RC2 and then NoSuchGoalException Clear your plugin cache and try again (rm -rf ~/.maven/plugins on unix) RC3 fixes the problem -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 11 May 2004 7:36 AM To: [EMAIL PROTECTED] Subject: Upgrade to RC2 and then NoSuchGoalException I just recently upgraded from an RC1-SNAPSHOT to RC2 but when I ran the site goal maven gives me a NoSuchGoalException for maven-license-plugin:register in the xdoc plugin. Any ideas what might be causing this? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Javadoc for multiple source directories
You know, I didn't have the package specified when I ran it earlier, but even after specifying the package, Maven would give me the same error. I do, however, have multiple packages throughout the pathelements so I'm not sure what to choose as the package. Also, are there some instructions some where on how to apply this patch? Thanks. -Original Message- From: Nathan Coast [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 7:03 PM To: Maven Users List Subject: Re: Javadoc for multiple source directories is the package name in the project.xml correct? I seem to remember that this causes errors like this. Also, I don't think that the maven.compile.src.set is used by the javadoc plugin (yet) see the bug http://jira.codehaus.org/secure/ViewIssue.jspa?id=12145 --- [EMAIL PROTECTED] wrote: To whoever can help me, I was looking through the mailing list archives for a solution to this and noticed someone had posted a solution which involved appending the additional source directories to the maven.compile.src.set using maven:addPath. So I tried to do something along this lines: path id=big.path pathelement location=${basedir}/dependencies/aaa/src/java/ pathelement location=${basedir}/dependencies/bbb/src/java/ pathelement location=${basedir}/dependencies/ccc/src/java/ /path maven:addPath id=maven.compile.src.set refid=big.path/ attainGoal name=javadoc:generate/ However, when I run this I get the following complaint: BUILD FAILED File.. file:/C:/Documents file:/C:/Documents and Settings/buorny/.maven/plugins/maven-javadoc-plugin-1.4-SNAPSHOT/ Element... ant:javadoc Line.. 106 Column 60 No source files and no packages have been specified. Does anyone have any idea why this might not be working? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ??? __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javadoc for multiple source directories
To whoever can help me, I was looking through the mailing list archives for a solution to this and noticed someone had posted a solution which involved appending the additional source directories to the maven.compile.src.set using maven:addPath. So I tried to do something along this lines: path id=big.path pathelement location=${basedir}/dependencies/aaa/src/java/ pathelement location=${basedir}/dependencies/bbb/src/java/ pathelement location=${basedir}/dependencies/ccc/src/java/ /path maven:addPath id=maven.compile.src.set refid=big.path/ attainGoal name=javadoc:generate/ However, when I run this I get the following complaint: BUILD FAILED File.. file:/C:/Documents file:/C:/Documents and Settings/buorny/.maven/plugins/maven-javadoc-plugin-1.4-SNAPSHOT/ Element... ant:javadoc Line.. 106 Column 60 No source files and no packages have been specified. Does anyone have any idea why this might not be working? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ???
Signing jars before deployment
Does anyone know of a good way to sign jars before deploying them? I've tried writing the following goal: goal name=jar:sign attainGoal name=jar:jar/ signjar jar=${maven.build.dir}/${maven.final.name}.jar alias=milkshake storepass=frylock/ attainGoal name=jar:deploy/ /goal Unfortunately, after the jar is signed the deploy goal causes the jar to be built again, without being signed. I couldn't seem to find any properties in the jar plugin reference to help with this, so I was wondering if anyone has any idea what the best approach to this would be. Thanks. Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ???
RE: Signing jars before deployment
I just wrote a goal based on the code for jar:deploy. I copied the contents of the goal and then inserted a signjar right before deploying. If anyone is interested here is the code: maven:user-check user=${maven.username}/ attainGoal name=jar:jar/ property name=maven.jar.to.deploy value=${maven.final.name}.jar/ j:set var=sl value=// util:replace var=jarToDeploy oldChar=\ newChar=/${maven.build.dir}/${maven.jar.to.deploy}/util:replace util:replace var=forwardSlashBaseDir oldChar=\ newChar=/ value=${basedir}/ j:if test=${!forwardSlashBaseDir.endsWith('/')} j:set var=base value=${forwardSlashBaseDir}/ / /j:if j:set var=relativePath${jarToDeploy.substring(base.length())}/j:set signjar jar=${maven.build.dir}/${maven.jar.to.deploy} alias=milkshake storepass=frylock/ deploy:artifact artifact=${relativePath} type=jars assureDirectoryCommand=mkdir -p siteCommand=cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp ${maven.remote.group} ${maven.jar.to.deploy} / Also, was wondering if it would make sense to have a property where you could specify the alias and storepass and if these have been set, have all the jar goals sign the jar right after generating it. I was thinking maybe a maven.keystore.alias and maven.keystore.pass and then in the jar goals just check if any of these are set. -Original Message- From: Buorn, Yoway Sent: Monday, May 03, 2004 11:05 AM To: [EMAIL PROTECTED] Subject: Signing jars before deployment Does anyone know of a good way to sign jars before deploying them? I've tried writing the following goal: goal name=jar:sign attainGoal name=jar:jar/ signjar jar=${maven.build.dir}/${maven.final.name}.jar alias=milkshake storepass=frylock/ attainGoal name=jar:deploy/ /goal Unfortunately, after the jar is signed the deploy goal causes the jar to be built again, without being signed. I couldn't seem to find any properties in the jar plugin reference to help with this, so I was wondering if anyone has any idea what the best approach to this would be. Thanks. Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with site:deploy
-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-changes-plugin:register: maven-changelog-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-file-activity-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-developer-activity-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-javadoc-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVarmaven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-jxr-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-junit-report-plugin:register: maven-tasklist-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-jellydoc-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-pmd-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-simian-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-faq-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-multiproject-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar maven-multichanges-plugin:register: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar xdoc:jelly-transform: maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar[echo] Generating /export/home/cruise/projects/adapter/target/docs/cvs-usage.html from /export/home/cruise/projects/adapter/target/generated-xdocs/cvs-usage.xml [echo] Generating /export/home/cruise/projects/adapter/target/docs/index.html from /export/home/cruise/projects/adapter/target/generated-xdocs/index.xml [echo] Generating /export/home/cruise/projects/adapter/target/docs/maven-reports.html from /export/home/cruise/projects/adapter/target/generated-xdocs/maven-reports.xml [echo] Generating /export/home/cruise/projects/adapter/target/docs/dependencies.html from /export/home/cruise/projects/adapter/target/generated-xdocs/dependencies.xml [echo] Generating /export/home/cruise/projects/adapter/target/docs/issue-tracking.html from /export/home/cruise/projects/adapter/target/generated-xdocs/issue-tracking.xml [echo] Generating /export/home/cruise/projects/adapter/target/docs/mail-lists.html from /export/home/cruise/projects/adapter/target/generated-xdocs/mail-lists.xml [echo] Generating /export/home/cruise/projects/adapter/target/docs/project-info.html from /export/home/cruise/projects/adapter/target/generated-xdocs/project-info.xml [echo] Generating /export/home/cruise/projects/adapter/target/docs/team-list.html from /export/home/cruise/projects/adapter/target/generated-xdocs/team-list.xml maven:pluginVar var=reports plugin=maven-xdoc-plugin property=reports/maven:pluginVar xdoc: xdoc:init: site:init: site:fsdeploy: [echo] siteAddress = siteDirectory = /var/apache/htdocs/adapter [copy] Copying 99 files to /var/apache/htdocs/adapter BUILD SUCCESSFUL Total time: 44 seconds Finished at: Thu Jan 08 09:53:25 PST 2004 Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
exec returned: -1 when building
I'm trying to build from CVS HEAD and I'm using the build-bootstrap.xml file, but the build fails and I get the following error: BUILD FAILED /export/home/yoway/maven/build-bootstrap.xml:266: exec returned: -1 at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:576) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:603) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) I'm using j2sdk1.4.1, ant 1.6.0 and trying to build from HEAD. I followed the directions on the maven website and copied optional.jar and junit.jar into ${ANT}/lib and have MAVEN_HOME set. I did not set MAVEN_HOME_LOCAL, but I don't think this is necessary. Any ideas what might be happening here? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: exec returned: -1 when building
I ran ant with the -d option to show debugging output, and it looked like it was unable to execute the maven that it just built. I tried running maven from the command line at that point and it said the file was not found. So I inspected the file and it turns out that it was in DOS format, so I just ran dos2unix to remove the ^M's and then ran maven maven:install instead of bootstrapping, and now my installation is going smoothly. Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying -Original Message- From: Buorn, Yoway Sent: Thursday, January 08, 2004 4:08 PM To: [EMAIL PROTECTED] Subject: exec returned: -1 when building I'm trying to build from CVS HEAD and I'm using the build-bootstrap.xml file, but the build fails and I get the following error: BUILD FAILED /export/home/yoway/maven/build-bootstrap.xml:266: exec returned: -1 at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:576) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:603) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) I'm using j2sdk1.4.1, ant 1.6.0 and trying to build from HEAD. I followed the directions on the maven website and copied optional.jar and junit.jar into ${ANT}/lib and have MAVEN_HOME set. I did not set MAVEN_HOME_LOCAL, but I don't think this is necessary. Any ideas what might be happening here? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
artifact:deploy-snapshot expects JAR with ${maven.final.name}
Here is my maven.xml: project xmlns:artifact=artifact default=asset:deploy goal name=asset:deploy attainGoal name=jar:snapshot/ artifact:deploy-snapshot artifact=${maven.build.dir}/${maven.final.name}.jar type=jar project=${pom}/ /goal /project When I run asset:deploy, I get the following: BUILD FAILED File.. file:/C:/eclipse/workspace/asset/ Element... artifact:deploy-snapshot Line.. 12 Column 24 Artifact file: 'C:\eclipse\workspace\asset/target/asset-1.0.jar' must exist Total time: 6 seconds Finished at: Wed Jan 07 13:30:41 PST 2004 According to the artifact plugin documentation, During deloyment following files are put to remote repository: * Timestamped Artifact file * MD5 checksum file of timestamped artifact file * Artifact file with version marked as SNAPSHOT * MD5 checksum file of this file * ${artifactId}-snapshot-version If the plugin wants to deploy the artifact marked with SNAPSHOT, why is it looking for asset-1.0.jar? Also, when I run the goal jar:snapshot, I get a JAR with the timestamp, but no SNAPSHOT JAR. Shouldn't an artifact be created and tagged with SNAPSHOT? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Distributions without version numbers in filename
I have a project that I use to create binary and source distributions of several subprojects. Each distribution includes all dependency JARs in the /lib directory, which are copied over using copy-deps. Does anyone know how I can rename these JARs to exclude the version numbers. I know I can get at all the JAR paths using ${pom.artifacts} and I know I can get at the projects using ${reactorProjects}, but is there a way for me to rename all the JARs to just the project names? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Update Eclipse .classpath after running maven eclipse
One of our guys here was working on a project in Eclipse while I was mavenizing the dependencies and running maven eclipse to update .classpath. When I was done, I asked him to update his project so that he could get the new .classpath and be on his way. Unfortunately, CVS came back with an error saying that .classpath already exists. He had already made some code changes, so we couldn't just checkout the whole thing. Has anybody encountered this? Any workarounds? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with jar:deploy-snapshot
After having already deployed a snapshot, when I run jar:deploy-snapshot again, I get the following error: [echo] Executing cd /usr/apache/htdocs/maven/distributed/jars; chmod g+w distributed-20031215.231511.jar; chgrp staff distributed-20031215.231511.jar; ln -sf distributed-20031215.231511.jar distributed-SNAPSHOT.jar; echo 20031215.231511 gt; distributed-snapshot-version with the username yoway on zurg [exec] ln: cannot create distributed-SNAPSHOT.jar: File exists When I check the repository, distributed-SNAPSHOT.jar is still pointing to the previous snapshot. This is a bug, right? Shouldn't the link maybe be deleted first? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with jar:deploy-snapshot
Oh, there's one more problem I encountered with jar:deploy-snapshot. Once the snapshot has been deployed (which I can do by deleting the last symbolic link), I can't seem to downloaded the JAR. Here's the error message: Attempting to download djdan-SNAPSHOT.jar. Error retrieving artifact from [http://dj.dan.gd-ais.com/maven/djdan/jars/djdan-SNAPSHOT.jar]: java.lang.Exception: Can't get djdan-SNAPSHOT.jar to C:\Documents and Settings\buorny\.maven\repository\djdan\jars\djdan-SNAPSHOT.jar WARNING: Failed to download djdan-SNAPSHOT.jar. The build cannot continue because of the following unsatisfied dependency: messagebusclient-SNAPSHOT.jar (no download url specified) Please help. Thank you. Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying -Original Message- From: Buorn, Yoway Sent: Monday, December 15, 2003 3:18 PM To: '[EMAIL PROTECTED]' Subject: Problem with jar:deploy-snapshot After having already deployed a snapshot, when I run jar:deploy-snapshot again, I get the following error: [echo] Executing cd /usr/apache/htdocs/maven/distributed/jars; chmod g+w distributed-20031215.231511.jar; chgrp staff distributed-20031215.231511.jar; ln -sf distributed-20031215.231511.jar distributed-SNAPSHOT.jar; echo 20031215.231511 gt; distributed-snapshot-version with the username yoway on zurg [exec] ln: cannot create distributed-SNAPSHOT.jar: File exists When I check the repository, distributed-SNAPSHOT.jar is still pointing to the previous snapshot. This is a bug, right? Shouldn't the link maybe be deleted first? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with jar:deploy-snapshot
I checked the permissions on the directories created and it turns out that all the directories are set to drwxrwx---. So I decided to just download the JAR from a web browser, and sure enough Apache wouldn't let me download it. So I can solve this problem by manually changing perms on the directories created, but is there a better way? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying -Original Message- From: Buorn, Yoway Sent: Monday, December 15, 2003 5:35 PM To: [EMAIL PROTECTED] Subject: RE: Problem with jar:deploy-snapshot Oh, there's one more problem I encountered with jar:deploy-snapshot. Once the snapshot has been deployed (which I can do by deleting the last symbolic link), I can't seem to downloaded the JAR. Here's the error message: Attempting to download djdan-SNAPSHOT.jar. Error retrieving artifact from [http://dj.dan.gd-ais.com/maven/djdan/jars/djdan-SNAPSHOT.jar]: java.lang.Exception: Can't get djdan-SNAPSHOT.jar to C:\Documents and Settings\buorny\.maven\repository\djdan\jars\djdan-SNAPSHOT.jar WARNING: Failed to download djdan-SNAPSHOT.jar. The build cannot continue because of the following unsatisfied dependency: messagebusclient-SNAPSHOT.jar (no download url specified) Please help. Thank you. Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying -Original Message- From: Buorn, Yoway Sent: Monday, December 15, 2003 3:18 PM To: '[EMAIL PROTECTED]' Subject: Problem with jar:deploy-snapshot After having already deployed a snapshot, when I run jar:deploy-snapshot again, I get the following error: [echo] Executing cd /usr/apache/htdocs/maven/distributed/jars; chmod g+w distributed-20031215.231511.jar; chgrp staff distributed-20031215.231511.jar; ln -sf distributed-20031215.231511.jar distributed-SNAPSHOT.jar; echo 20031215.231511 gt; distributed-snapshot-version with the username yoway on zurg [exec] ln: cannot create distributed-SNAPSHOT.jar: File exists When I check the repository, distributed-SNAPSHOT.jar is still pointing to the previous snapshot. This is a bug, right? Shouldn't the link maybe be deleted first? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jalopy and UnsupportedOperationException
Has anybody encountered this Exception while formatting with Jalopy? Yoway Buorn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Any success with Dashboard plugin and Reactor?
I was wondering if anybody had any success integrating Dashboard with a custom Reactor. I have 4 projects with parallel directory structures: /masterproject /projecta /projectb /projectc I have the dashboard plugin under reports in the masterproject POM and I added the following goal to masterproject's maven.xml: goal name=master:site maven:reactor basedir=${basedir}/.. includes=projecta/project.xml,projectb/project.xml,projectc/project.xml banner=Generating site for goals=site:generate,dashboard:report-single ignoreFailures=false postProcessing=true/ attainGoal name=dashboard:report/ /goal I followed the directions on the dashboard page (http://maven.apache.org/reference/plugins/dashboard/index.html) and was able to get Solution 1 working just fine. Solution 2 also worked. But I don't want to have any POMs or maven.xml one directory up from my projects. When I run the above goal, however, my Dashboard report comes out empty. Any ideas as to why this doesn't work or am I just totally off here? And should I consider not making all my project directories parallel? Thanks. Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Genapp goal
I'm not quite sure how you can specify a directory for genapp to generate a project in, but I have been modifying the template myself so I can help you with that. Inside your local Maven home directory just create a directory called template. Then in there you make a directory for each template you want to create. The best way to start is to extract the default directory from the genapp plugin JAR. It should be in the directory template-resources. Copy that over to your local Maven home directory and then you can start modifying the structure and configuration. Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying -Original Message- From: Vikas Phonsa [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 3:05 PM To: 'Maven Users List' Subject: Genapp goal Hi guys, How do u specify the destination directory for the genapp goal. I mean if I'm running maven in directory A but want the generated project to be placed in directory B, how do I specify that. Also what would be required to change the template used by genapp. Right now the default template generated the following dir structure src\java\com.packagename. I need it to be just src\com.packagename. Do I have to define and new template ? How and where ? Thanks Vikas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Seriously Customizing the Project Website
Thanks a million. That's exactly what I was looking for. Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying -Original Message- From: Stephen McConnell [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 4:32 PM To: Maven Users List Subject: Re: Seriously Customizing the Project Website You can take control of a lot of things by declaring a custom site.jsl. E.g: maven.xdoc.jsl = myAlternativeSite.jsl The Avalon site used a custom JSL - not much is custom but its custom all the same. http://avalon.apache.org/ Cheers, Steve. [EMAIL PROTECTED] wrote: I was wondering if anybody has attempted to make any significant cosmetic modifications to the website that is generated by site:generate? I'd like to do things like change the fonts and how the collapsible menus look. I'm even thinking about adding rich content like flash interfaces and applets. And I want to be able to move things around as far as the layout goes. I'm familiar with the list of xdoc properties but it's apparent that those properties are more geared toward simplification rather than customization. I can modify the plugin itself but as soon as I download a SNAPSHOT.jar all my customizations go away. So what I'm thinking of is sort of like what genapp does. First, it looks in ~/.maven/template for a customized template, and if not found, then defaults to the one in the jar. Is there a directory that site:generate looks in for CSS and XSL before going with the defaults? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems Make me a fire and I'm warm for a night. Set me on fire and I'm warm for the rest of my life. -- Ancient Didactical Saying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen J. McConnell mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What's the best way to include Javadoc from dependencies?
Hello, I'm not sure if anyone has tried this or if there really is a best way to do this that's already being done, but I'm having trouble thinking of a good way to do this, so I was hoping some of you guys might be able to give me some ideas. I have three projects and I'm trying to create one binary and one source distribution for all three projects. I can easily generate a distribution for each project using maven dist. I can even use maven multiproject:goal -Dgoal=dist to do it for all three at the same time, but what I want to do is create an archive that contains the source for all three projects and also the documentation as well. And then for the binary distribution I have a few images and a script that I want to archive. I also want to include a JRE so that the entire application doesn't really depend on anything outside fo the archive. My first thought was to have the distributions in a separate project all their own, something like this: /djxo-dist /djxo-codec /djxo-utils /djxo-viewer So, djxo-dist should generate a binary and source zip, while the other three should just generate JARs. And then djxo-dist would contain the following: /djxo-dist /bin /images /jre /docs /lib /src And then I was thinking I might use reactor to go into codec, utils and viewer to generate the javadoc and then just manually copy the src and javadoc out of each directory into /djxo-dist/src and /djxo-dist/docs. Does this sound about right or might there be a better way to do it? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems 112 Lakeview Canyon Road Thousand Oaks, CA 91362-5027 Tel 805 497 5074 Fax 805 497 5050 [EMAIL PROTECTED] So one day these two muffins were baking in an oven. One muffin turned to the other muffin and said, Boy it sure is hot in here. The other muffin turned to the first muffin and said, Holy crap! A talking muffin! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie question: how do I create Genapp templates?
Hi, I've been experimenting with Maven for some time now, but I'm still relatively new to the concepts and how a lot of the plugins work. I'm trying to modify the project descriptor that is created by Genapp. All I see in the FAQ is a question about adding a script for a template. Does this mean that what Genapp creates is based on a Jelly script? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems 112 Lakeview Canyon Road Thousand Oaks, CA 91362-5027 Tel 805 497 5074 Fax 805 497 5050 [EMAIL PROTECTED] So one day these two muffins were baking in an oven. One muffin turned to the other muffin and said, Boy it sure is hot in here. The other muffin turned to the first muffin and said, Holy crap! A talking muffin! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eclipse Plugin - eclipse.dependency
I have two projects, A and B. Project A depends on project B, so I set eclipse.dependency to true like this inside project.xml for project A: dependency groupIdprojectB/groupId artifactIdprojectB/artifactId version1.1/version properties eclipse.dependencytrue/eclipse.dependency /properties /dependency When I load up both projects in Eclipse and run Build All everything seems to build just fine. However, when I attempt to run, I get this: ServiceProperties: MissingResourceException - Can't find bundle for base name resources.properties.Services, locale en_US Unable to get server reference: null java.lang.NullPointerException The bundle in question lies within project B. If I leave out eclipse.dependency, then the project B JAR will show up as a build path library but it doesn't show up as a project dependency in Eclipse. So what I've had to do is just leave in eclipse.dependency and then manually add the JAR to the build path. Is there a way (perhaps another property to set) to have the project dependency and the library both show up? Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems 112 Lakeview Canyon Road Thousand Oaks, CA 91362-5027 Tel 805 497 5074 Fax 805 497 5050 [EMAIL PROTECTED] So one day these two muffins were baking in an oven. One muffin turned to the other muffin and said, Boy it sure is hot in here. The other muffin turned to the first muffin and said, Holy crap! A talking muffin! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiproject dependencies
Multiproject uses Reactor, which does determine the correct order to build in. I found that jar:install will make the project you just built (assuming it's a JAR) available for all subsequent builds. And there's two ways you can do it (I'm sure there's even more). First, I added an attainGoal name=jar:install/ within a maven.xml in each project directory. I usually put them in a postGoal/ that involves a jar:jar right before. The other way is to specify it in the goals list in Reactor, like so: goal name=wuteva:build maven:reactor basedir=${basedir} includes=**/${pattern}/**/project.xml excludes=project.xml goals=clean,java:compile,jar:jar,jar:install banner=Generating ignoreFailures=false/ /goal Hope that helps. Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems 112 Lakeview Canyon Road Thousand Oaks, CA 91362-5027 Tel 805 497 5074 Fax 805 497 5050 [EMAIL PROTECTED] So one day these two muffins were baking in an oven. One muffin turned to the other muffin and said, Boy it sure is hot in here. The other muffin turned to the first muffin and said, Holy crap! A talking muffin! -Original Message- From: Bateman, Patrick eMEDIA [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 5:39 AM To: 'Maven Users List' Subject: RE: multiproject dependencies I know this has been answered before, but just for clarity. When running the Multiproject goal and there is a dependency ordering requirement, does the Multiproject analyse the sub-projects dependencies and work out the correct order to build. If this is correct, then how do I get Maven to use the artefacts generated by the Multiproject goal to be included as the dependee's of the next sub-project being built. i.e. force the Multiproject goal to only generate SNAPSHOTs and then re-use these SNAPSHOTs within the same build. Thanks Pat -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 10 September 2003 08:23 To: Maven Users List Subject: Re: multiproject dependencies Beta10 multiproject has some bugs :-) Use the released version. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Nathan Coast [EMAIL PROTECTED] wrote on 10/09/2003 04:11:51 PM: :) just tried using multiproject and it barfed with maven-multiproject-plugin-1.0-SNAPSHOT/plugin.jelly:149:61: j:set This tag does not understand the 'name' attribute I checked the jelly docs and set doesn't seem to take a name attribute. I was using maven beta 10. I'm rebuilding maven from cvs now to see if this makes a diference. [EMAIL PROTECTED] wrote: Well, yes, since it uses the reactor. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Nathan Coast [EMAIL PROTECTED] wrote on 10/09/2003 02:54:58 PM: Hi, Does the multiproject plugin build dependent projects in the correct order (like the reactor does). thanks Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]