Re: [macker-user] Maven and macker plugin working??
Brought to you by:
barredijkstra,
melquiades
|
From: Paul C. <can...@po...> - 2007-08-06 20:36:29
|
Yes, agreed, that would be a much nicer way to do it. I'll add it as
a feature request.
The Macker Maven plugin was developed by a kind volunteer, and is
maintained separately. Perhaps we can fold it in with the next
release. You are also more than welcome to take a crack at this
improvement!
Macker uses its own specialized regex syntax, designed to work well
with class names. It is more like a UNIX shell wildcards than
anything else, but it's basically its own beast:
http://innig.net/macker/guide/regex.html
Cheers,
Paul
On Aug 6, 2007, at 11:17 AM, copernic Jeremy wrote:
> Hello Paul,
>
> Thanks for your help, in fact I just found a link explaining how to
> use Macker with Maven 2 through the maven-antrun-plugin.
> http://docs.codehaus.org/display/MAVENUSER/Running+Macker+with+Maven+2
> It works fine for now but I must admit that I would prefer using a
> full maven-macker-plugin without any ant tasks and build.xml files.
> I think it could be great if we could define all the macker.xml's
> rules directly into the pom.xml of the maven project, or simply
> specify the location of the macker.xml file like the JettyConfig
> file style. Something like that:
>
> <plugin>
> <groupId>maven-plugins</groupId>
> <artifactId>maven-macker-plugin</artifactId>
> <version>0.4.2</version>
> <configuration>
> <mackerConfig>${basedir}src/test/
> macker.xml</mackerConfig>
> </configuration>
>
>
> </plugin>
>
> or
>
>
> <plugin>
> <groupId>maven-plugins</groupId>
> <artifactId>maven-macker-plugin</artifactId>
> <version>0.4.2</version>
> <configuration>
> <rulesets>
> <ruleSet>
> <accessRule>
> <from>myClass</from>
> <to>someJavaClass</to>
> </accessRule>
> </ruleSet>
> </ruleSets>
> .....
> </configuration>
>
>
> </plugin>
>
> Maybe someday, someone who knows well Macker and the development of
> maven plugins could try release one like that?!
>
> Now one last question, from what is the regex syntaxe of Macker
> based on? Apache like or is it more Java Regex?
>
> Thanks again.
>
> regards,
>
> Jeremy
>
>
>
>
> On 8/6/07, Paul Cantrell <can...@po... > wrote:
> I believe that Sourceforge says that there is "no version
> available" because the binary is hosted in the maven repository.
>
> I'm not much familiar with the Maven plugin, but I know that people
> used it successfully in the past. I wonder if it was only for Maven
> 1...? I'll try to dig up the name of the fellow who wrote the maven
> plugin, and see if he knows more about what your problem might be.
>
> Cheers,
>
> Paul
>
>
> On Aug 3, 2007, at 4:42 AM, copernic Jeremy wrote:
>
>> Hi all,
>> I am looking for the maven-macker-plugin, if there is one of course!
>> Indeed, the project website seems to say that there are no version
>> available yet: http://maven-plugins.sourceforge.net/maven-macker-
>> plugin/downloads.html
>> I have been googling the web for a few hour now but I only found
>> this version on repo1: http://repo1.maven.org/maven2/maven-plugins/
>> maven-macker-plugin/
>> Unfortunatly I can't figure out how to use it in my project
>> pom.xml. When I try this in my pom.xml I get the following error:
>>
>> The pom.xml :
>>
>> <project>
>> ....
>> <build>
>> <plugins>
>> ....
>>
>> <plugin>
>> <groupId>maven-plugins</groupId>
>> <artifactId>maven-macker-plugin</artifactId>
>> <version>0.4.2</version>
>>
>> <executions>
>> <execution>
>> <goals>
>> <goal> macker</goal>
>> </goals>
>> </execution>
>> </executions>
>> </plugin>
>> ....
>> </plugins>
>> </build>
>> ....
>> </project>
>>
>>
>> The error trace:
>>
>> ERROR]FATAL ERROR
>> [INFO]---------------------------------------------------------------
>> ---------
>> [INFO]The PluginDescriptor for the plugin maven-plugins:maven-
>> macker-plugin was not found
>> [INFO]---------------------------------------------------------------
>> ---------
>> [INFO]Trace
>> java.lang.IllegalStateException : The PluginDescriptor for the
>> plugin maven-plugins:maven-macker-plugin was not found
>>
>> at org.apache.maven.plugin.DefaultPluginManager.addPlugin
>> (DefaultPluginManager.java :294)
>> at
>> org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin
>> (DefaultPluginManager.java:198)
>> at
>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin
>> (DefaultPluginManager.java:163)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin
>> (DefaultLifecycleExecutor.java :1328)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifec
>> ycle(DefaultLifecycleExecutor.java :1292)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl
>> eMappings (DefaultLifecycleExecutor.java:1058)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
>> (DefaultLifecycleExecutor.java :529)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> dleFailures (DefaultLifecycleExecutor.java:309)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> ts (DefaultLifecycleExecutor.java:276)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
>> (DefaultLifecycleExecutor.java:143)
>> at org.apache.maven.DefaultMaven.doExecute
>> (DefaultMaven.java:393)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
>> 182)
>> at org.apache.maven.embedder.MavenEmbedder.execute
>> (MavenEmbedder.java:760)
>> at
>> org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run
>> (MavenJavaExecutor.java:257)
>> at org.netbeans.core.execution.RunClassThread.run
>> (RunClassThread.java:131)
>> [INFO]---------------------------------------------------------------
>> ---------
>>
>> It seems that there might be a problem with a descriptor file but
>> how can i resolve that?
>>
>> Regards,
>> Jeremy
>> ---------------------------------------------------------------------
>> ----
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems? Stop.
>> Now Search log events and configuration files using AJAX and a
>> browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> Macker-user mailing list
>> Mac...@li...
>> https://lists.sourceforge.net/lists/listinfo/macker-user
>>
>> Macker home page: http://innig.net/macker/
>
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Macker-user mailing list
> Mac...@li...
> https://lists.sourceforge.net/lists/listinfo/macker-user
>
> Macker home page: http://innig.net/macker/
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Macker-user mailing list
> Mac...@li...
> https://lists.sourceforge.net/lists/listinfo/macker-user
>
> Macker home page: http://innig.net/macker/
|