Comments (11)
The iterator was designed to use folders only and not files...can you give a real example where it might make sense to use iterating over files instead of folders.
from iterator-maven-plugin.
Thanks for looking at this, my actual making sense problem is un-signing a series of JAR files using webstart-maven-plugin
from iterator-maven-plugin.
For your convenience the iterated webstart-maven-plugin doesn't work with folders, although it states otherwise, so I am forced to go through a complicated series of steps via ant and other custom tasks only to increase complexityof my build
I hope this helps justifyinfthe requirement
from iterator-maven-plugin.
After having given enough thought,
I believe it makes sense to extend iterator with a common path-like selection having , etc. for more flexibility and control
Let me know your thoughts.
from iterator-maven-plugin.
Could you make a example project which shows the wished behaviour ?
from iterator-maven-plugin.
It is not very easy to produce a full project to demonstrate the exact problem, I can mostly describe.
So, imagine a folder hierarchy with JAR files that need to be un-signed
<plugin>
<groupId>com.soebes.maven.plugins</groupId>
<artifactId>iterator-maven-plugin</artifactId>
<version>0.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>iterator</goal>
</goals>
<configuration>
<folder>${project.basedir}/repository</folder>
<pluginExecutors>
<pluginExecutor>
<plugin>
<groupId>com.soebes.maven.plugins</groupId>
<artifactId>maven-echo-plugin</artifactId>
</plugin>
<goal>echo</goal>
<configuration>
<echos>
<echo>This is a message: @item@</echo>
</echos>
</configuration>
</pluginExecutor>
<pluginExecutor>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>webstart-maven-plugin</artifactId>
<version>:1.0-beta-8-SNAPSHOT</version>
</plugin>
<goal>unsign</goal>
<configuration>
<jarPath>@item@</jarPath> <!-- item must be full path and file -->
</configuration>
</pluginExecutor>
</pluginExecutors>
</configuration>
</execution>
</executions>
</plugin>
I hope this helps.
from iterator-maven-plugin.
Ah that makes it more clear..So the iteration should be done on a file base with absolute file path...and not on folder base....I think that needs an other goal...but I will see...
from iterator-maven-plugin.
I am having a similar issue, any update on this ?
from iterator-maven-plugin.
I have used "Ant" script as replacement, more confusing but works
from iterator-maven-plugin.
+1 Please add this feature. We need it for signing files
from iterator-maven-plugin.
any updates?
from iterator-maven-plugin.
Related Issues (20)
- Upgrade to smpp-plugins 2.1.2
- Changing to three digit version line.
- Iterator should not fail with no item HOT 1
- Problem with findbugs plugin
- Upgrade smpp-plugins to 2.3.0
- Parallelisation of iterator HOT 4
- Missing ItemsWithProperties properties should be set to "", not "null". HOT 1
- How to pass system properties from command line to invoker HOT 2
- How to access itemWithProperty values HOT 2
- Component descriptor cannot be found in the component repository HOT 4
- How to work with maven-ear-plugin?
- Prefix output message with current Item
- Support for maven-ant-plugin
- Fix "Plugin execution not covered by lifecycle configuration" errors in Eclipse HOT 1
- maven-install-plugin and maven-deploy-plugin behave differently with the same configuration in iterator-maven-plugin HOT 1
- Wrong example in http://khmarbaise.github.io/iterator-maven-plugin/invoker.html
- How to access item name as property
- Usage in Maven Antrun Plugin
- inherit plugin configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iterator-maven-plugin.