Hi,
Sorry for the late answer. I tried on my work machine where we need a
litte special plugin and it worked fine. But when and tried it at home
on my mac it gave me an maven error.
What is the required maven version?
Regards
Anders
On Fri, Sep 16, 2011 at 15:42, Robert Manning
<rob...@gm...> wrote:
> Forgot to mention, if you run the "mvn archetype:generate..." command, you
> should do so outside of the source tree that you have checked out. The
> source code is not needed - the archetype has what it needs to generate a
> new project.
>
> Rob
>
> On Fri, Sep 16, 2011 at 8:38 AM, Robert Manning <rob...@gm...>
> wrote:
>>
>> Anders,
>>
>> This week I released a version of the maven archetype that I created for
>> generating plugin projects from scratch. When I tested it with the
>> following invocation:
>>
>> mvn archetype:generate -DarchetypeGroupId=net.sf.squirrel-sql.plugins
>> -DarchetypeArtifactId=squirrelsql-plugin-archetype
>> -DarchetypeVersion=3.3.0-rc1
>>
>> I noted that the directory structure that was created was not correct. I
>> have decided how to fix this but haven't had time to make the changes yet.
>> For now, you could run the command above and when it prompts you for
>> "package", just use "p". When it finishes, go into src/main/java and
>> src/test/java and move the "net" directory out from under the "p" directory,
>> so that you have src/main/java/net/.. and src/test/java/net/.. instead of
>> src/main/java/p/net.. and src/test/java/p/net/..
>>
>> If that is too confusing and I admit that it is, since you have the source
>> checked out, you could simply make changes to the ExamplePlugin in
>> sql12/plugins/example. To launch SQuirreL with the example plugin
>> installed, you should be able to execute the command:
>>
>> mvn clean install -P launch
>>
>> I will follow up when I have fixed the archetype, but it probably won't be
>> until sometime next week.
>>
>> Rob
>>
>>
>> On Fri, Sep 16, 2011 at 6:22 AM, Anders Holmbech Brandt
>> <an...@ho...> wrote:
>>>
>>> Anything new on this matter?
>>>
>>> Regards
>>>
>>> Anders
>>>
>>>
>>>
>>> On Mon, Sep 12, 2011 at 19:01, Robert Manning
>>> <rob...@gm...> wrote:
>>> > Yup, the use of the archetype (a critical step for new plugin
>>> > developers!)
>>> > was omitted from the documentation :(
>>> >
>>> > I will fix that soon and get back to you.
>>> >
>>> > Rob
>>> >
>>> > On Mon, Sep 12, 2011 at 9:32 AM, Anders Holmbech Brandt
>>> > <an...@ho...> wrote:
>>> >>
>>> >> Hi,
>>> >>
>>> >> I have just downloaded latest from trunk wanting to create a plugin.
>>> >> But following the guide found here:
>>> >> http://sourceforge.net/apps/trac/squirrel-sql/wiki/DeveloperGuide does
>>> >> not really get me anywhere except for different kind of build errors.
>>> >>
>>> >> The best result I'm getting is when disabling junittest but ends up
>>> >> with:
>>> >>
>>> >> [INFO] [INFO] --- maven-archetype-plugin:2.0:generate (default-cli) @
>>> >> standalone-pom ---
>>> >> [INFO] [INFO] Generating project in Batch mode
>>> >> [INFO] [INFO] Archetype repository missing. Using the one from
>>> >>
>>> >> [net.sf.squirrel-sql.plugins:squirrelsql-plugin-archetype:3.3.0-SNAPSHOT]
>>> >> found in cata
>>> >> log local
>>> >> [INFO] [ERROR] A Maven 2 project already exists in the directory
>>> >>
>>> >>
>>> >> C:\projects\sql12\plugins\squirrelsql-plugin-archetype\target\it\projects\firsttest\f
>>> >> irsttest
>>> >> [INFO] org.apache.maven.archetype.exception.ProjectDirectoryExists: A
>>> >> Maven 2 project already exists in the directory
>>> >> C:\projects\sql12\plugins\squirr
>>> >> elsql-plugin-archetype\target\it\projects\firsttest\firsttest
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator.generateArchetype(DefaultFilesetArchetypeGenerator.java:198)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processFileSetArchetype(DefaultArchetypeGenerator.java:136)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:106)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:149)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:209)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.archetype.DefaultArchetypeManager.generateProjectFromArchetype(DefaultArchetypeManager.java:71)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:190)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>> >> [INFO] at
>>> >>
>>> >> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>> >> [INFO] at
>>> >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>> >> [INFO] at
>>> >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>> >> [INFO] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>> >> [INFO] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>> >> [INFO] at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>> >> [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> >> [INFO] at
>>> >>
>>> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> >> [INFO] at
>>> >>
>>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> >> [INFO] at java.lang.reflect.Method.invoke(Method.java:597)
>>> >> [INFO] at
>>> >>
>>> >> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>> >> [INFO] at
>>> >>
>>> >> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>> >> [INFO] at
>>> >>
>>> >> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>> >> [INFO] at
>>> >>
>>> >> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>>> >> [INFO] [INFO]
>>> >>
>>> >> ------------------------------------------------------------------------
>>> >> [INFO] [INFO] BUILD FAILURE
>>> >> [INFO] [INFO]
>>> >>
>>> >> ------------------------------------------------------------------------
>>> >> [INFO] [INFO] Total time: 1.500s
>>> >> [INFO] [INFO] Finished at: Mon Sep 12 14:36:30 CEST 2011
>>> >> [INFO] [INFO] Final Memory: 5M/15M
>>> >> [INFO] [INFO]
>>> >>
>>> >> ------------------------------------------------------------------------
>>> >> [INFO] [ERROR] Failed to execute goal
>>> >> org.apache.maven.plugins:maven-archetype-plugin:2.0:generate
>>> >> (default-cli) on project standalone-pom: A Maven 2
>>> >> project already exists in the directory
>>> >>
>>> >>
>>> >> C:\projects\sql12\plugins\squirrelsql-plugin-archetype\target\it\projects\firsttest\firsttest
>>> >> -> [Help 1]
>>> >> [INFO] [ERROR]
>>> >> [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven
>>> >> with the -e switch.
>>> >> [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug
>>> >> logging.
>>> >> [INFO] [ERROR]
>>> >> [INFO] [ERROR] For more information about the errors and possible
>>> >> solutions, please read the following articles:
>>> >> [INFO] [ERROR] [Help 1]
>>> >> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>>> >> [INFO] ..FAILED (2.7 s)
>>> >> [INFO] The build exited with code 1. See
>>> >>
>>> >>
>>> >> C:\projects\sql12\plugins\squirrelsql-plugin-archetype\target\it\projects\firsttest\build.log
>>> >> for details.
>>> >> [INFO] -------------------------------------------------
>>> >> [INFO] Build Summary:
>>> >> [INFO] Passed: 0, Failed: 1, Errors: 0, Skipped: 0
>>> >> [INFO] -------------------------------------------------
>>> >> [ERROR] The following builds failed:
>>> >> [ERROR] * firsttest
>>> >> [INFO] -------------------------------------------------
>>> >> [INFO]
>>> >>
>>> >> ------------------------------------------------------------------------
>>> >> [INFO] Reactor Summary:
>>> >> [INFO]
>>> >> [INFO] SQuirreL Root POM ................................. SUCCESS
>>> >> [4.593s]
>>> >> [INFO] Framework Library ................................. SUCCESS
>>> >> [22.839s]
>>> >> [INFO] SQuirreL Main Application Jar ..................... SUCCESS
>>> >> [42.836s]
>>> >> [INFO] SQuirreL-SQL Plugins Parent POM ................... SUCCESS
>>> >> [0.046s]
>>> >> [INFO] SQuirreL-SQL Plugin Assembly Descriptor ........... SUCCESS
>>> >> [0.125s]
>>> >> [INFO] Example Plugin .................................... SUCCESS
>>> >> [0.719s]
>>> >> [INFO] SQuirreL Plugin Archetype ......................... FAILURE
>>> >> [8.905s]
>>> >> [INFO] Codecompletion Plugin ............................. SKIPPED
>>> >> [INFO] Dataimport Plugin ................................. SKIPPED
>>> >> What do I miss?
>>> >>
>>> >> And that is with adding extra memory to both heapspace and permgen
>>> >> space that is not mentioned.
>>> >>
>>> >> Regards
>>> >>
>>> >> Anders
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> Doing More with Less: The Next Generation Virtual Desktop
>>> >> What are the key obstacles that have prevented many mid-market
>>> >> businesses
>>> >> from deploying virtual desktops? How do next-generation virtual
>>> >> desktops
>>> >> provide companies an easier-to-deploy, easier-to-manage and more
>>> >> affordable
>>> >> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
>>> >> _______________________________________________
>>> >> Squirrel-sql-develop mailing list
>>> >> Squ...@li...
>>> >> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-develop
>>> >
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>>> http://p.sf.net/sfu/rim-devcon-copy2
>>> _______________________________________________
>>> Squirrel-sql-develop mailing list
>>> Squ...@li...
>>> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-develop
>>
>
>
|