You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Thomas Chang <th...@yahoo.de> on 2008/01/08 09:37:38 UTC

A question about

Hi all,
   
  Formerly I use the maven1 and in the "project.xml" I have the <dependency/> as follow:
   
  <dependency>
  <groupId>jsf-facelets</groupId>
  <artifactId>jsf-facelets</artifactId>
  <version>1.1.12</version>
  <type>jar</type>
  </dependency>
   
  And in the repository the dir-structure looks as follow:
  /repo
     /jsf-facelets
        /jars
           --jsf-facelets-1.1.12.jar
   
  If I have another version of jsf-facelets.jar, I can simply put them under the same dir. 
   
  Now by maven2 I have the same <dependency/> in POM.XML, but the repository structure must be as follow:
   
  /repo
     /jsf-facelets
        /jsf-facelets
          /1.1.12 
              --jsf-facelets-1.1.12
   
  If I have another version of jsf-facelets.jar. I have to create a new sub-dir with the version number such as follow:
   
   
  /repo
     /jsf-facelets
        /jsf-facelets
          /1.1.12 
              --jsf-facelets-1.1.12
          /1.1.13 
              --jsf-facelets-1.1.13
   
  I find this is more complicated.
   
  Is there anyway to do as by maven 1?
   
  Regards
   
  Thomas

       
---------------------------------
Ihr erstes Fernweh? Wo gibt es den schönsten Strand. 

Re: Error by running "Create a project" in "Maven in 5 Minutes"

Posted by Thomas Chang <th...@yahoo.de>.
You are right. :-)



Wayne Fay <wa...@gmail.com> schrieb: Show us the command line you typed. It seems you might have mistyped something.

Wayne

On 1/9/08, Thomas Chang  wrote:
> Hi all,
>
> I try to create a project according to the "Maven in 5 Minutes" under http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html.
>
> The mirror in my "setting.xml" is the remote repository in the server machine. I got error as follow. But when I run using the central mirror, i.e. without my mirror, then is OK.
>
> Somebody knows why?
>
> ********************
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating from archetype
>
> Embedded error: Artifact ID must be specified when creating a new project from a
> n archetype.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Wed Jan 09 20:40:46 CET 2008
> [INFO] Final Memory: 5M/9M
> [INFO] ------------------------------------------------------------------------
>
> C:\Project>
>
>
>
>
> ---------------------------------
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



       
---------------------------------
Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. 

Re: Error by running "Create a project" in "Maven in 5 Minutes"

Posted by Wayne Fay <wa...@gmail.com>.
Show us the command line you typed. It seems you might have mistyped something.

Wayne

On 1/9/08, Thomas Chang <th...@yahoo.de> wrote:
> Hi all,
>
> I try to create a project according to the "Maven in 5 Minutes" under http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html.
>
> The mirror in my "setting.xml" is the remote repository in the server machine. I got error as follow. But when I run using the central mirror, i.e. without my mirror, then is OK.
>
> Somebody knows why?
>
> ********************
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating from archetype
>
> Embedded error: Artifact ID must be specified when creating a new project from a
> n archetype.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Wed Jan 09 20:40:46 CET 2008
> [INFO] Final Memory: 5M/9M
> [INFO] ------------------------------------------------------------------------
>
> C:\Project>
>
>
>
>
> ---------------------------------
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Error by running "Create a project" in "Maven in 5 Minutes"

Posted by Wayne Fay <wa...@gmail.com>.
The "problem" email header is this one:
In-Reply-To: <19a9f6be0801080130k142ce7f6l1f235113191d03bf....>

When you reply to an email, your email client (or yahoo.de website)
inserts that header into the new email. Even when you change the
subject and delete the old email content, that header is still there.

As a result, your emails get threaded into unrelated conversations,
which as Dennis mentioned, is very annoying. So please, send a new
email when you have a new topic, and only "reply" when you are
responding to an existing thread/topic.

Wayne

On 1/9/08, Dennis Lundberg <de...@apache.org> wrote:
> Can you please refrain from replying to an old message when you have a
> completely new question. This is most annoying for people using a
> mail-client that can show mail threads. If you have a new question just
> send a completely new message to users@maven.apache.org
>
> Thank you.
>
> Thomas Chang wrote:
> > Hi all,
> >
> > I try to create a project according to the "Maven in 5 Minutes" under http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html.
> >
> > The mirror in my "setting.xml" is the remote repository in the server machine. I got error as follow. But when I run using the central mirror, i.e. without my mirror, then is OK.
> >
> > Somebody knows why?
> >
> > ********************
> > [INFO] ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO] ------------------------------------------------------------------------
> > [INFO] Error creating from archetype
> >
> > Embedded error: Artifact ID must be specified when creating a new project from a
> > n archetype.
> > [INFO] ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO] ------------------------------------------------------------------------
> > [INFO] Total time: 2 seconds
> > [INFO] Finished at: Wed Jan 09 20:40:46 CET 2008
> > [INFO] Final Memory: 5M/9M
> > [INFO] ------------------------------------------------------------------------
> >
> > C:\Project>
> >
> >
> >
> >
> > ---------------------------------
> > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail.
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Error by running "Create a project" in "Maven in 5 Minutes"

Posted by Dennis Lundberg <de...@apache.org>.
Can you please refrain from replying to an old message when you have a 
completely new question. This is most annoying for people using a 
mail-client that can show mail threads. If you have a new question just 
send a completely new message to users@maven.apache.org

Thank you.

Thomas Chang wrote:
> Hi all,
> 
> I try to create a project according to the "Maven in 5 Minutes" under http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html.
> 
> The mirror in my "setting.xml" is the remote repository in the server machine. I got error as follow. But when I run using the central mirror, i.e. without my mirror, then is OK. 
> 
> Somebody knows why?
> 
> ********************
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating from archetype
> 
> Embedded error: Artifact ID must be specified when creating a new project from a
> n archetype.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Wed Jan 09 20:40:46 CET 2008
> [INFO] Final Memory: 5M/9M
> [INFO] ------------------------------------------------------------------------
> 
> C:\Project>
> 
> 
> 
>        
> ---------------------------------
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Error by running "Create a project" in "Maven in 5 Minutes"

Posted by Thomas Chang <th...@yahoo.de>.
Hi all,

I try to create a project according to the "Maven in 5 Minutes" under http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html.

The mirror in my "setting.xml" is the remote repository in the server machine. I got error as follow. But when I run using the central mirror, i.e. without my mirror, then is OK. 

Somebody knows why?

********************
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: Artifact ID must be specified when creating a new project from a
n archetype.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Jan 09 20:40:46 CET 2008
[INFO] Final Memory: 5M/9M
[INFO] ------------------------------------------------------------------------

C:\Project>



       
---------------------------------
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 

Re: A question about

Posted by Jeff MAURY <je...@jeffmaury.com>.
You should use the deploy plugin to do it:
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
Hand based manipulations are forbidden on local and remote repositories !!!!

Jeff


On Jan 8, 2008 10:27 AM, Thomas Chang <th...@yahoo.de> wrote:

> I think maybe you haven't understood what my question means since I
> haven't cleared my question clearly. :-)
>
>  Surely I will not put the jar-files in my local repository. But sometimes
> I have to put the jar-files in the remote repository in the server machine.
> For example by using spring. The srpnig.jar has no version number. So I
> have to add the version number to it. In this case I have to create the
> dir-structure in the repository. And I don't like creating sub-dir for each
> version number. I just want to put them together under the same dir.
>
>
>
>  **********************************
>  There is a nice way to do it. Don't start putting your own files in
>  your local repository. Take a look at mvn install:install-file [1] or mvn
>  deploy:deploy-file [2] if you are working with a team.
>
> Hth,
>
> Nick Stolwijk
>
> [1]
>
> http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
> [2]
>  http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
>
>
> -----Original Message-----
> From: Thomas Chang [mailto:thomas2004ch@yahoo.de]
> Sent: Tue 1/8/2008 9:37 AM
> To: users@maven.apache.org
> Subject: A question about <dependency/>
>
> Hi all,
>
>  Formerly I use the maven1 and in the "project.xml" I have the
>  <dependency/> as follow:
>
>  <dependency>
>  <groupId>jsf-facelets</groupId>
>  <artifactId>jsf-facelets</artifactId>
>  <version>1.1.12</version>
>  <type>jar</type>
>  </dependency>
>
>  And in the repository the dir-structure looks as follow:
>  /repo
>     /jsf-facelets
>        /jars
>           --jsf-facelets-1.1.12.jar
>
>  If I have another version of jsf-facelets.jar, I can simply put them
>  under the same dir.
>
>  Now by maven2 I have the same <dependency/> in POM.XML, but the
>  repository structure must be as follow:
>
>  /repo
>     /jsf-facelets
>        /jsf-facelets
>          /1.1.12
>              --jsf-facelets-1.1.12
>
>  If I have another version of jsf-facelets.jar. I have to create a new
>  sub-dir with the version number such as follow:
>
>
>  /repo
>     /jsf-facelets
>        /jsf-facelets
>          /1.1.12
>              --jsf-facelets-1.1.12
>          /1.1.13
>              --jsf-facelets-1.1.13
>
>  I find this is more complicated.
>
>  Is there anyway to do as by maven 1?
>
>  Regards
>
>  Thomas
>
>
>
>
> ---------------------------------
> Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com

RE: A question about

Posted by Thomas Chang <th...@yahoo.de>.
I think maybe you haven't understood what my question means since I haven't cleared my question clearly. :-)
   
  Surely I will not put the jar-files in my local repository. But sometimes I have to put the jar-files in the remote repository in the server machine. For example by using spring. The srpnig.jar has no version number. So I have to add the version number to it. In this case I have to create the dir-structure in the repository. And I don't like creating sub-dir for each version number. I just want to put them together under the same dir.
   
   
   
  **********************************
  There is a nice way to do it. Don't start putting your own files in
 your local repository. Take a look at mvn install:install-file [1] or mvn
 deploy:deploy-file [2] if you are working with a team.

Hth,

Nick Stolwijk

[1]
 http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
[2]
 http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html


-----Original Message-----
From: Thomas Chang [mailto:thomas2004ch@yahoo.de]
Sent: Tue 1/8/2008 9:37 AM
To: users@maven.apache.org
Subject: A question about <dependency/>
 
Hi all,
   
  Formerly I use the maven1 and in the "project.xml" I have the
 <dependency/> as follow:
   
  <dependency>
  <groupId>jsf-facelets</groupId>
  <artifactId>jsf-facelets</artifactId>
  <version>1.1.12</version>
  <type>jar</type>
  </dependency>
   
  And in the repository the dir-structure looks as follow:
  /repo
     /jsf-facelets
        /jars
           --jsf-facelets-1.1.12.jar
   
  If I have another version of jsf-facelets.jar, I can simply put them
 under the same dir. 
   
  Now by maven2 I have the same <dependency/> in POM.XML, but the
 repository structure must be as follow:
   
  /repo
     /jsf-facelets
        /jsf-facelets
          /1.1.12 
              --jsf-facelets-1.1.12
   
  If I have another version of jsf-facelets.jar. I have to create a new
 sub-dir with the version number such as follow:
   
   
  /repo
     /jsf-facelets
        /jsf-facelets
          /1.1.12 
              --jsf-facelets-1.1.12
          /1.1.13 
              --jsf-facelets-1.1.13
   
  I find this is more complicated.
   
  Is there anyway to do as by maven 1?
   
  Regards
   
  Thomas



       
---------------------------------
Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. 

RE: A question about

Posted by ni...@planet.nl.
There is a nice way to do it. Don't start putting your own files in your local repository. Take a look at mvn install:install-file [1] or mvn deploy:deploy-file [2] if you are working with a team.

Hth,

Nick Stolwijk

[1] http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
[2] http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html


-----Original Message-----
From: Thomas Chang [mailto:thomas2004ch@yahoo.de]
Sent: Tue 1/8/2008 9:37 AM
To: users@maven.apache.org
Subject: A question about <dependency/>
 
Hi all,
   
  Formerly I use the maven1 and in the "project.xml" I have the <dependency/> as follow:
   
  <dependency>
  <groupId>jsf-facelets</groupId>
  <artifactId>jsf-facelets</artifactId>
  <version>1.1.12</version>
  <type>jar</type>
  </dependency>
   
  And in the repository the dir-structure looks as follow:
  /repo
     /jsf-facelets
        /jars
           --jsf-facelets-1.1.12.jar
   
  If I have another version of jsf-facelets.jar, I can simply put them under the same dir. 
   
  Now by maven2 I have the same <dependency/> in POM.XML, but the repository structure must be as follow:
   
  /repo
     /jsf-facelets
        /jsf-facelets
          /1.1.12 
              --jsf-facelets-1.1.12
   
  If I have another version of jsf-facelets.jar. I have to create a new sub-dir with the version number such as follow:
   
   
  /repo
     /jsf-facelets
        /jsf-facelets
          /1.1.12 
              --jsf-facelets-1.1.12
          /1.1.13 
              --jsf-facelets-1.1.13
   
  I find this is more complicated.
   
  Is there anyway to do as by maven 1?
   
  Regards
   
  Thomas

       
---------------------------------
Ihr erstes Fernweh? Wo gibt es den schönsten Strand.