Archetype is invalid - Creating new project

524 views
Skip to first unread message

Roberto Schneiders

unread,
May 20, 2013, 1:06:34 PM5/20/13
to users...@googlegroups.com
I'm having trouble using Jabox. I had problems installing redmine and is not working. As I reported here.

Yet tried creating a new project. By putting information "maven-archetype-webapp" in the Maven Archetype I get an error message:
Archetype is invalid

By putting this information in the field he suggests me put it this way:
org.apache.maven.archetypes: maven-archetype-webapp: LATEST

That seems to be the only way the form is submitted. However, so an error occurs when creating the project, because the archetype does not exist!.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-webapp:LATEST) -> [Help 1]

Can anyone help me?

Dimitris Kapanidis

unread,
May 20, 2013, 1:19:00 PM5/20/13
to users...@googlegroups.com
Hi,

I just tested it in my instance and managed to create the same archetype instance (attached below).

I saw you''re using JDK 7, Jabox is best tested with JDK 6, try to switch to that and see if that can fix the issue.

Another issue might be connectivity, try to download http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-webapp/1.0/maven-archetype-webapp-1.0.pom from the same machine to see if that works.

Since you're running it on console with java -jar, post here the output of the console and I might be able to help you more.

regards,
dimitris


[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
[INFO] Archetype repository missing. Using the one from [org.apache.maven.archetypes:maven-archetype-webapp:1.0] found in catalog remote
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-webapp:LATEST
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.jabox
[INFO] Parameter: packageName, Value: org.jabox
[INFO] Parameter: package, Value: org.jabox
[INFO] Parameter: artifactId, Value: test11
[INFO] Parameter: basedir, Value: /home/tomcat/.jabox/gitRepo/test11
[INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: /home/tomcat/.jabox/gitRepo/test11/test11
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS



2013/5/20 Roberto Schneiders <anti...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "users-jabox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to users-jabox...@googlegroups.com.
To post to this group, send email to users...@googlegroups.com.
Visit this group at http://groups.google.com/group/users-jabox?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Roberto Schneiders

unread,
May 20, 2013, 1:38:37 PM5/20/13
to users...@googlegroups.com
I'll see if I can run on JDK6.

For now follows the full log attached.
log.txt

Dimitris Kapanidis

unread,
May 20, 2013, 1:56:25 PM5/20/13
to users...@googlegroups.com
ok, 

you cannot download the archetype because maven was auto-configured to point to nexus instance at http://localhost:8081/nexus/
[WARNING] Could not transfer metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml from/to nexus (http://localhost:8081/nexus/content/groups/public): Error transferring file: Connection refused: connect
You can fix that by editing ~/.jabox/.m2/settings.xml (your maven settings.xml): you'll find the localhost:8081 there, change it to the correct one (I think your Nexus runs at port 8090)

I'll check the code to make auto-configure point to the correct port.

If that doesn't work you can even move settings.xml to settings.xml.backup for example and run it again. It should then go to maven central repo directly for the archetypes instead of using local Nexus as gateway.



Roberto Schneiders

unread,
May 20, 2013, 2:05:29 PM5/20/13
to users...@googlegroups.com
I think the problem is not your code. This configuration was settings.xml in the folder C:\Users\Roberto\.m2 and not ~/.jabox/.m2/.

I was testing a nexus server before attempting Jabox. I'm going back to the original settings of Maven.

Roberto Schneiders

unread,
May 20, 2013, 2:39:54 PM5/20/13
to users...@googlegroups.com
I think the problem  with Maven was solved. Now is giving another error. Log attached.

Error creating project! Maybe the Container is not started yet?
log2.txt

Dimitris Kapanidis

unread,
May 20, 2013, 3:22:12 PM5/20/13
to users...@googlegroups.com


Try with a different project name, jaboxtest already exist,

"Directory jaboxtest already exists - please run from a clean directory"

Roberto Schneiders

unread,
May 20, 2013, 3:33:32 PM5/20/13
to users...@googlegroups.com
I do not think that's the problem. Here is a new log, cleaner. 

new name!
log3.txt

Roberto Schneiders

unread,
May 20, 2013, 3:38:25 PM5/20/13
to users...@googlegroups.com
Maybe this is happening because the password was not saved in the Servers settings page for redmine because of this other problem.

Dimitris Kapanidis

unread,
May 20, 2013, 3:40:55 PM5/20/13
to users...@googlegroups.com

OK, now it tries to authenticate to redmine to create the project there but rest api is not active. Goto redmine (default user admin/admin) and then settings authentication : enable rest api.

Note, if you change admin password, update jabox redmine info so that it can login.

"Authorization error. Please check if you provided a valid API access key or Login and Password and REST API service is enabled on the server."

Dimitris Kapanidis

unread,
May 20, 2013, 3:43:34 PM5/20/13
to users...@googlegroups.com

Yes, if redmine config is not correct you ll get the same error.

Roberto Schneiders

unread,
May 20, 2013, 3:52:32 PM5/20/13
to users...@googlegroups.com
The problem is that I can not change the settings of Redmine,  an error occurs, as reported in that other topic.

The redmine REST API was disabled. I Activated. 

Now an error occurs when creating a new project but do not tell me what it was. The console displays nothing.

Often error occurs when creating the project but it is created, it appears in the list of projects. And have some projects that I can not delete.

Roberto Schneiders

unread,
May 20, 2013, 4:00:23 PM5/20/13
to users...@googlegroups.com
Now I think I have a problem with subversion plugin. I deleted my subversion setup and added again the subversion embedded and it worked!

Roberto Schneiders

unread,
May 20, 2013, 4:22:40 PM5/20/13
to users...@googlegroups.com
Unfortunately I need to use my subversion repository. Do you have any idea what I can do to identify the problem?

Roberto Schneiders

unread,
May 22, 2013, 9:47:17 AM5/22/13
to users...@googlegroups.com
My SVN repository is at 1.7 version. The Jabox support this version?

Spiddy

unread,
May 23, 2013, 5:45:35 PM5/23/13
to users...@googlegroups.com
I haven't tested it with 1.7, what's the error message you get?

Roberto Schneiders

unread,
May 23, 2013, 8:31:16 PM5/23/13
to users...@googlegroups.com

The logs do not show any error. simply does not work.
--
You received this message because you are subscribed to a topic in the Google Groups "users-jabox" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/users-jabox/VFHX4uZ5mJQ/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to users-jabox...@googlegroups.com.

To post to this group, send email to users...@googlegroups.com.
Visit this group at http://groups.google.com/group/users-jabox?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
Att.
Roberto Schneiders

Roberto Schneiders

unread,
Jun 3, 2013, 2:02:34 PM6/3/13
to users...@googlegroups.com, roberto.s...@gmail.com
The problem is with the SVN version. Current Jabox not support version 1.7 of the repository.

Jabox are using version 1.3 of SVNKit. As the official website does not support version 1.7 of the SVN repository.

I Updated the version of this library. I sent a pull request.

I'm working to update Jenkins. The version used by Jabox also do not support SVN 1.7.
Reply all
Reply to author
Forward
0 new messages