🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #153616

XML Formatter plugin Maven

#153616
From: J-23
Date: Wed, 10 Oct 2012 22:42
108 lines
4172 bytes
Witam
Próbuje sobie dodać do Maven http://code.google.com/p/xml-formatter/

Pobrałem plik jar z w/w strony dodałem go do Maven następującym poleceniem

mvn install:install-file 
-DgroupId=org.technicalsoftwareconfigurationmanagement.maven-plugin 
-DartifactId=org.technicalsoftwareconfigurationmanagement.maven-plugin 
-Dpackaging=jar -Dversion=2.1-SNAPSHOT -Dfile=xml-formatter-1.0.jar 
-DgeneratePom=true



zakończone zostało sukcesem

w pojo mam

<plugin>
	<groupId>org.technicalsoftwareconfigurationmanagement.maven-plugin</groupId>
	<artifactId>tscm-maven-plugin</artifactId>
	<version>2.1-SNAPSHOT</version>
	<configuration>
	<includes>
		<include>**/*.xml</include>
	</includes>
	<excludes>
		<exclude>**/target/**</exclude>
	</excludes>
         </configuration>
</plugin>

po wykonaniu polecenia

mvn 
org.technicalsoftwareconfigurationmanagement.maven-plugin:tscm-maven-plugin:2.1-SNAPSHOT:xmlFormatter

dostaje


C:\Users\�ukasz\workspace\NaviSoft>mvn 
org.technicalsoftwareconfigurationmanagem
ent.maven-plugin:tscm-maven-plugin:2.1-SNAPSHOT:xmlFormatter
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective 
model for
NaviSoft:NaviSoft:war:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:tomcat-maven-plug
in is missing. @ line 60, column 11
[WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-war-
plugin is missing. @ line 46, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they 
threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support 
buildin
g such malformed projects.
[WARNING]
[WARNING] The POM for 
org.technicalsoftwareconfigurationmanagement.maven-plugin:
tscm-maven-plugin:jar:2.1-SNAPSHOT is missing, no dependency information 
availab
le
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 2.078s
[INFO] Finished at: Wed Oct 10 23:58:42 CEST 2012
[INFO] Final Memory: 2M/61M
[INFO] 
------------------------------------------------------------------------
[ERROR] Plugin 
org.technicalsoftwareconfigurationmanagement.maven-plugin:tscm-ma
ven-plugin:2.1-SNAPSHOT or one of its dependencies could not be 
resolved: Failed
  to read artifact descriptor for 
org.technicalsoftwareconfigurationmanagement.ma
ven-plugin:tscm-maven-plugin:jar:2.1-SNAPSHOT: Could not find artifact 
org.techn
icalsoftwareconfigurationmanagement.maven-plugin:tscm-maven-plugin:pom:2.1-SNAPS
HOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please rea
d the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
C:\Users\�ukasz\workspace\NaviSoft>



Bede zobowiązany za pomoc

Mam Eclipse Indigo i jave 1.6

Pozdrawiam
Technical Details
Message-ID: <k54tu3$mhb$1@mx1.internetia.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.supermedia.pl!news.nask.pl!news.nask.org.pl!news.internetia.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.supermedia.pl!news.nask.pl!news.nask.org.pl!news.internetia.pl!not-for-mail
From: J-23 <baczeklu@poczta.fm>
Newsgroups: pl.comp.lang.java
Subject: XML Formatter plugin Maven
Date: Thu, 11 Oct 2012 00:42:29 +0200
Organization: Netia S.A.
Lines: 108
Message-ID: <k54tu3$mhb$1@mx1.internetia.pl>
NNTP-Posting-Host: 87-205-204-65.adsl.inetia.pl
Mime-Version: 1.0
X-Trace: mx1.internetia.pl 1349909251 23083 87.205.204.65 (10 Oct 2012 22:47:31 GMT)
X-Complaints-To: abuse@inetia.pl
NNTP-Posting-Date: Wed, 10 Oct 2012 22:47:31 +0000 (UTC)
X-Tech-Contact: usenet@internetia.pl
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1
X-Server-Info: http://www.internetia.pl/
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit