Hi all, I need to implement a special kind of file wagon to fetch artefacts from existing file shares with a predefined structure. To realize that wagon, I read a lot of websites, but I’m still not able to call a simple Wagon which is only writing to System.out.
My Scenario: A simple Execute-Plugin uses the CustomWagon-Plugin to access a HelloWorld-Plugin on the local file system. That “access” is currently only a dummy configuration and the only reason of it is, to make use of the CustomWagon-Plugin while accessing the protocol testfs://… But sadly I do get always the following Exception: org.apache.maven.wagon.TransferFailedException: Unsupported Protocol: 'testfs': Cannot find wagon which supports the requested protocol: testfs Even if it is a little bit long, but I like to offer you as much information as possible about my problem. Therefore I added the used configuration below. Thank you 1000x for all your help Regards Matthias ---------------------------------------------------------------------------- The exception which I got always: ---------------------------------------------------------------------------- [INFO] Scanning for projects... [DEBUG] Adding extension: org.apache.maven.model.extens...@955c69f7 [DEBUG] Initialising extension: com.sap.test:CustomFileWagon [INFO] snapshot com.sap.test:CustomFileWagon:0.0.1-SNAPSHOT: checking for updates from testfs [WARNING] repository metadata for: 'snapshot com.sap.test:CustomFileWagon:0.0.1-SNAPSHOT' could not be retrieved from repository: testfs due to an error: Unsupported Protocol: 'testfs': Cannot find wagon which supports the requested protocol: testfs [DEBUG] Exception org.apache.maven.wagon.TransferFailedException: Unsupported Protocol: 'testfs': Cannot find wagon which supports the requested protocol: testfs … ---------------------------------------------------------------------------- The pom.xml of my CustomWagon: ---------------------------------------------------------------------------- <project… … <dependencies> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>2.0</version> </dependency> <dependency> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-file</artifactId> <version>1.0-beta-6</version> <type>jar</type> <scope>compile</scope> </dependency> </dependencies> </project> ---------------------------------------------------------------------------- The META-INF\plexus\components.xml of my CustomWagon: ---------------------------------------------------------------------------- <component-set><components><component> <role>org.apache.maven.wagon.Wagon</role> <role-hint>testfs</role-hint> <implementation>com.sap.test.CustomFileWagon</implementation> <instantiation-strategy>per-lookup</instantiation-strategy> </component></components></component-set> ---------------------------------------------------------------------------- The pom.xml of my Execute project ---------------------------------------------------------------------------- <project… … <build> <extensions> <extension> <groupId>com.sap.test</groupId> <artifactId>CustomFileWagon</artifactId> <version>0.0.1-SNAPSHOT</version> </extension> </extensions> <plugins><plugin> <groupId>com.sap.test</groupId> <artifactId>HelloWorld</artifactId> <version>0.0.1-SNAPSHOT</version> <executions> <execution> <goals><goal>install</goal></goals> </execution> </executions> </plugin></plugins> </build> </project> ---------------------------------------------------------------------------- The settings.xml inside of my .m2 directory ---------------------------------------------------------------------------- <settings> … <profiles><profile> <id>std</id> <pluginRepositories> <pluginRepository> <id>local</id> <url>//Docume~1/<userid>/.m2/repository</url> <layout>legacy</layout> </pluginRepository> </pluginRepositories> <repositories> <repository> <id>testfs</id> <url>testfs://Temp/</url> <layout>legacy</layout> </repository> </repositories> </profile></profiles> <activeProfiles> <activeProfile>std</activeProfile> </activeProfiles> </settings> -- View this message in context: http://www.nabble.com/implementation-of-a-custom-maven-wagon-tp24570980p24570980.html Sent from the Wagon - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: wagon-dev-unsubscr...@maven.apache.org For additional commands, e-mail: wagon-dev-h...@maven.apache.org