This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I think you mistakenly created a new post rather than replying to another post. Anyway, that text string appears to be a URI for a resource and should be passed to some program. The error you got is that Windows doesn't understand what you mean.
Peter Johnson wrote:I think you mistakenly created a new post rather than replying to another post. Anyway, that text string appears to be a URI for a resource and should be passed to some program. The error you got is that Windows doesn't understand what you mean.
Actually sir,
i m doing work on maven and subversion
i have created a maven project now i want to point it to my repository(created by svn tortoise) so i want to take advantages of maven build with maintaining subversion of our project.
i read that for this i have to change in pom.xml file from this site
but by following this site i m unable to performing release:prepare
anjana jalodiya
Greenhorn
Joined: Mar 09, 2011
Posts: 14
posted
0
Peter Johnson wrote:I think you mistakenly created a new post rather than replying to another post. Anyway, that text string appears to be a URI for a resource and should be passed to some program. The error you got is that Windows doesn't understand what you mean.
Actually Sir
I was wanted to send my code but facing some problem to send it.......
i have posted my question in mailing list.......or i just want to take advantages of maven build with maintaining subversion of my project
I am sorry, but I do not understand exactly what it is that you are trying to do. Here is what I do understand:
a) You have you source in Subversion and you do you builds with Maven.
b) You have configured your POM to reference the Subversion repository.
c) You are using the release:prepare goal
From my understanding, release:prepare will create an entry in the tags directory of the project, which marks the current trunk as being released. I assume that you want to do this only occasionally since mot every build is a release build.
It would help if you posted the pom.xml - just copy and past it into the post, and place the 'code' tags around it (select the pom.xml text in the editor window and click on the Post button). Also, post the full console output, starting from the command that you entered. Post this as text, not as a screen shot!
anjana jalodiya
Greenhorn
Joined: Mar 09, 2011
Posts: 14
posted
0
Peter Johnson wrote:I am sorry, but I do not understand exactly what it is that you are trying to do. Here is what I do understand:
a) You have you source in Subversion and you do you builds with Maven.
b) You have configured your POM to reference the Subversion repository.
c) You are using the release:prepare goal
From my understanding, release:prepare will create an entry in the tags directory of the project, which marks the current trunk as being released. I assume that you want to do this only occasionally since mot every build is a release build.
It would help if you posted the pom.xml - just copy and past it into the post, and place the 'code' tags around it (select the pom.xml text in the editor window and click on the Post button). Also, post the full console output, starting from the command that you entered. Post this as text, not as a screen shot!
yes sir i m exactly want as you are assuming
I want build with maven maintaining subversion together
And the operation that I have done on it through MS-Dos promt
C:\anu2\my-app>mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ my-app -
--
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\anu2\my-app\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ my-app ---
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.875s
[INFO] Finished at: Wed Mar 16 12:44:01 IST 2011
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
C:\anu2\my-app>mvn test compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ my-app -
--
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\anu2\my-app\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ my-app ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @
my-app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\anu2\my-app\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ my-ap
p ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ my-app ---
[INFO] Surefire report directory: C:\anu2\my-app\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.mycompany.app.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ my-app -
--
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\anu2\my-app\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ my-app ---
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.734s
[INFO] Finished at: Wed Mar 16 12:44:12 IST 2011
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
C:\anu2\my-app>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ my-app -
--
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\anu2\my-app\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ my-app ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @
my-app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\anu2\my-app\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ my-ap
p ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ my-app ---
[INFO] Surefire report directory: C:\anu2\my-app\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.mycompany.app.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ my-app ---
[INFO] Building jar: C:\anu2\my-app\target\my-app-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.422s
[INFO] Finished at: Wed Mar 16 12:44:29 IST 2011
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
C:\anu2\my-app>mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ my-app -
--
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\anu2\my-app\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ my-app ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @
my-app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\anu2\my-app\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ my-ap
p ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ my-app ---
[INFO] Surefire report directory: C:\anu2\my-app\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.mycompany.app.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ my-app ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ my-app ---
[INFO] Installing C:\anu2\my-app\target\my-app-1.0-SNAPSHOT.jar to C:\Documents
and Settings\smart\.m2\repository\com\mycompany\app\my-app\1.0-SNAPSHOT\my-app-1
.0-SNAPSHOT.jar
[INFO] Installing C:\anu2\my-app\pom.xml to C:\Documents and Settings\smart\.m2\
repository\com\mycompany\app\my-app\1.0-SNAPSHOT\my-app-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.406s
[INFO] Finished at: Wed Mar 16 12:44:42 IST 2011
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
C:\anu2\my-app>mvn release:prepare
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.0:prepare (default-cli) @ my-app ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.265s
[INFO] Finished at: Wed Mar 16 12:44:58 IST 2011
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0
:prepare (default-cli) on project my-app: Execution default-cli of goal org.apac
he.maven.plugins:maven-release-plugin:2.0:prepare failed: For input string: "" -
> [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/PluginExecutio nException
C:\anu2\my-app>m
[/code]
Re-run Maven using the -X switch to enable full debug logging.
Also, have you tried using the subversion url with the svn command? Did that work? You should ensure that the url works with svn before trying it with mvn.
anjana jalodiya
Greenhorn
Joined: Mar 09, 2011
Posts: 14
posted
0
Peter Johnson wrote:Have you tried following this advice:
Re-run Maven using the -X switch to enable full debug logging.
Also, have you tried using the subversion url with the svn command? Did that work? You should ensure that the url works with svn before trying it with mvn.
hows can we perform the following
Re-run Maven using the -X switch to enable full debug logging
and how can we check our sebversion url through svn command
as i am using svn tortoise I have check it through repository browser
file:///E:/my-app-repos/trunk this url is right