Re: keel:maven

Shash Chatterjee <[email protected]>
Newsgroups gmane.comp.java.keel.devel
Message-ID <[email protected]>
Raoul,

I too have gotten more "keel:maven" target does not exist errors, since 
the last time I deleted the plugin from the jars directory.  I think 
this is a Windows problem. Since then I have done a drastic step, which 
for at least three revs of the plugin hasn't bothered me anymore.  That 
is to uninstall Maven (I have 1.0.2), and reinstall it, but avoiding 
spaces in the directory name...so Maven now is installed  in 
"C:\asf\Maven-1.0.2".  That, and for good measure, deleting the local 
Maven repo....seems to have fixed the problem for good.  I can't explain 
it...so don't ask :-)

Also, if you do a "maven -Dgoal=jar:install muiltiproject:goal" it will 
now also build and install the "tool-maven-plugin" module in the jars 
directory.  So, you could have done a jar:install inadvertently, as I 
have done.  To avoid that, in your global build.properties, put 
something like:

maven.multiproject.excludes=keel-build/project.xml,tool-xdoclet/project.xml,tool-maven-plugin/project.xml

HTH,
Shash

Raoul Pierre wrote:

> Hello,
>
> I did a new try:
> - with "maven maven:install"
> - from {KEEL_HOME}/keel-build/maven-plugins/keel
> - and a slightly modified plugin.jelly from version 1.2.12
>
> Everything ran fine here. But as soon I tried to build default 
> project(*) with the modified maven keel plugin, I got the same error:
>
> Goal "keel:maven" does not exist in this project.
>
> See PS #2 for details.
>
> I'm sure I didn't do any "maven jar:install" under 
> {KEEL_HOME}/keel-build/maven-plugins/keel.
>
> Any idea?
>
> Pierre
>
> PS(*): with the project.xml file from the last Shash's email. The 
> build is OK with the downloaded maven keel plugin 1.2.12. And the 
> default application runs fine.
>
> PS #2:
>
> C:\DEV\keel\keel-build\maven-plugins\keel>maven plugin:install
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
>
> build:start:
>
> plugin:plugin:
> java:prepare-filesystem:
>    [mkdir] Created dir: 
> C:\DEV\keel\keel-build\maven-plugins\keel\target\classes
>
> java:compile:
>    [echo] Compiling to 
> C:\DEV\keel\keel-build\maven-plugins\keel/target/classes
>
> java:jar-resources:
> Copying 2 files to 
> C:\DEV\keel\keel-build\maven-plugins\keel\target\classes
>
> test:prepare-filesystem:
>    [mkdir] Created dir: 
> C:\DEV\keel\keel-build\maven-plugins\keel\target\test-classes
>    [mkdir] Created dir: 
> C:\DEV\keel\keel-build\maven-plugins\keel\target\test-reports
>
> test:test-resources:
>
> test:compile:
>
> test:test:
>
> jar:jar:
> keel:version:
>    [echo] Keel plugin v1.2.12
>
>    [echo] Creating Keel xdoclet info to be included in jar
> java:prepare-filesystem:
>
> java:compile:
>    [echo] Compiling to 
> C:\DEV\keel\keel-build\maven-plugins\keel/target/classes
>
> java:jar-resources:
>
> test:prepare-filesystem:
>
> test:test-resources:
>
> test:compile:
>
>    [echo] Processing meta-info for java source in 
> C:\DEV\keel\keel-build\maven-plugins\keel/src/java
>    [collect-metainfo] Writing Info descriptors as property files (.meta).
>    [collect-metainfo] Collecting service information.
>    [mkdir] Created dir: 
> C:\DEV\keel\keel-build\maven-plugins\keel\target\classes\conf\server
>    [jar] Building jar: 
> C:\DEV\keel\keel-build\maven-plugins\keel\target\maven-keel-plugin-1.2.12.jar 
>
>
>
> plugin:install:
>    [delete] Deleting 1 files from C:\dev\Maven-1.0.2\plugins
>    [delete] C:\Documents and Settings\Raoul\.maven\plugins not found.
>    [delete] Deleting 4 files from C:\Documents and 
> Settings\Raoul\.maven\cache
>    [delete] Deleted 6 directories from C:\Documents and 
> Settings\Raoul\.maven\cache
>    [copy] Copying 1 file to C:\dev\Maven-1.0.2\plugins
> BUILD SUCCESSFUL
> Total time: 8 seconds
> Finished at: Sat Mar 12 21:29:55 CET 2005
>
> C:\DEV\keel\keel-build\maven-plugins\keel>cd ..
>
> C:\DEV\keel\keel-build\maven-plugins>cd ..
>
> C:\DEV\keel\keel-build>cd default
>
> C:\DEV\keel\keel-build\default>maven clean
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
>
> build:start:
>
> clean:clean:
>    [delete] Deleting directory C:\DEV\keel\keel-build\default\target
> BUILD SUCCESSFUL
> Total time: 31 seconds
> Finished at: Sat Mar 12 21:38:51 CET 2005
>
> C:\DEV\keel\keel-build\default>maven keel:maven
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
>
> BUILD FAILED
> Goal "keel:maven" does not exist in this project.
> Total time: 2 seconds
> Finished at: Sat Mar 12 21:42:33 CET 2005
>
>
>
> http://keelframework.org/documentation.shtml
> Keelgroup mailing list
> [email protected]
> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.