Re: Using maven directly from a java application ?
The snapshot is for the parent POM, so having a repository set in the POM has no effect as maven has to resolve the parent before reading the POM... You can run maven with -DremoteRepositories= http://people.apache.org/maven-snapshot-repository This avoids changing your settings and allow to build the embedder project. 2007/4/12, Thierry Lach <[EMAIL PROTECTED]>: While that will probably work, I don't find that to be an acceptible solution. I don't want to include any repositories in my settings.xml, as I am experimenting with several projects which build with m2 and I don't want to take a chance on running into plugin revision issues. If that repository is required for the build, it should be in the pom. On 4/11/07, franz see <[EMAIL PROTECTED]> wrote: > > > Good day, > > Try adding [1] to your list of repositories in your settings.xml > > Cheers, > Franz > > [1] http://people.apache.org/maven-snapshot-repository > > > Thierry Lach-2 wrote: > > > > I did svn co against [2] and ran mvn site, and got the following > error... > > > > [INFO] Scanning for projects... > > > > [INFO] > > > > > > [ERROR] FATAL ERROR > > > > [INFO] > > > > > > [INFO] Failed to resolve artifact. > > > > GroupId: org.apache.maven > > ArtifactId: maven > > Version: 2.1-SNAPSHOT > > > > Reason: Unable to download the artifact from any repository > > > > > > > > org.apache.maven:maven:pom:2.1-SNAPSHOT > > > > > > > > from the specified remote repositories: > > > > central (http://repo1.maven.org/maven2) > > > > > > > > > > > > > > On 4/10/07, franz see <[EMAIL PROTECTED]> wrote: > >> > >> > >> Good day, > >> > >> Try [1]. Also you can check out the the latest maven-embedder ( from > [2] > >> ) > >> and take a look at its examples and tests. You may also want to run mvn > >> site > >> against [2] to get the latest version of the guide presented in [1]. > >> > >> Cheers, > >> Franz > >> > >> [1] http://maven.apache.org/guides/mini/guide-embedding-m2.html > >> [2] > http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder > >> > >> > >> Wayne Fay wrote: > >> > > >> > Not that I am personally aware of. But search this list and the Maven > >> > Dev list -- you're bound to find something. > >> > > >> > Wayne > >> > > >> > On 4/10/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: > >> >> Thx for reply. > >> >> > >> >> There are some documentation about using embeded maven ?? > >> >> > >> >> -Message d'origine- > >> >> De: Wayne Fay [mailto:[EMAIL PROTECTED] > >> >> Envoyé: mardi 10 avril 2007 15:16 > >> >> À: Maven Users List > >> >> Objet: Re: Using maven directly from a java application ? > >> >> > >> >> You may want to try to use the Maven Embedder: > >> >> http://idisk.maven.org/jvanzyl/Public/embedder/ > >> >> > >> >> Wayne > >> >> > >> >> On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: > >> >> > Hi, > >> >> > > >> >> > > >> >> > > >> >> > I want to atomize the creation of the structure of my project. So > >> >> iwant to develop a desktop application in order to give to the end > >> user > >> >> > > >> >> > To fill some parameters like : groupId, artifactId ... > >> >> > > >> >> > My question how can I invoke all command mvn from my application > >> >> desktop , ie I don't want to use the mvn.bat I want to use java > >> classes > >> >> of maven directly ?? > >> >> > > >> >> > This is a simple to do or I must navigate on all java > classes maven > >> >> > >> >> > > >> >> > > >> >> > > >> >> > Thx > >> >> > > >> >> > > >> >> > > >> >> > > >&
Re: Using maven directly from a java application ?
While that will probably work, I don't find that to be an acceptible solution. I don't want to include any repositories in my settings.xml, as I am experimenting with several projects which build with m2 and I don't want to take a chance on running into plugin revision issues. If that repository is required for the build, it should be in the pom. On 4/11/07, franz see <[EMAIL PROTECTED]> wrote: Good day, Try adding [1] to your list of repositories in your settings.xml Cheers, Franz [1] http://people.apache.org/maven-snapshot-repository Thierry Lach-2 wrote: > > I did svn co against [2] and ran mvn site, and got the following error... > > [INFO] Scanning for projects... > > [INFO] > > > [ERROR] FATAL ERROR > > [INFO] > > > [INFO] Failed to resolve artifact. > > GroupId: org.apache.maven > ArtifactId: maven > Version: 2.1-SNAPSHOT > > Reason: Unable to download the artifact from any repository > > > > org.apache.maven:maven:pom:2.1-SNAPSHOT > > > > from the specified remote repositories: > > central (http://repo1.maven.org/maven2) > > > > > > > On 4/10/07, franz see <[EMAIL PROTECTED]> wrote: >> >> >> Good day, >> >> Try [1]. Also you can check out the the latest maven-embedder ( from [2] >> ) >> and take a look at its examples and tests. You may also want to run mvn >> site >> against [2] to get the latest version of the guide presented in [1]. >> >> Cheers, >> Franz >> >> [1] http://maven.apache.org/guides/mini/guide-embedding-m2.html >> [2] http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder >> >> >> Wayne Fay wrote: >> > >> > Not that I am personally aware of. But search this list and the Maven >> > Dev list -- you're bound to find something. >> > >> > Wayne >> > >> > On 4/10/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: >> >> Thx for reply. >> >> >> >> There are some documentation about using embeded maven ?? >> >> >> >> -Message d'origine- >> >> De: Wayne Fay [mailto:[EMAIL PROTECTED] >> >> Envoyé: mardi 10 avril 2007 15:16 >> >> À: Maven Users List >> >> Objet: Re: Using maven directly from a java application ? >> >> >> >> You may want to try to use the Maven Embedder: >> >> http://idisk.maven.org/jvanzyl/Public/embedder/ >> >> >> >> Wayne >> >> >> >> On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: >> >> > Hi, >> >> > >> >> > >> >> > >> >> > I want to atomize the creation of the structure of my project. So >> >> iwant to develop a desktop application in order to give to the end >> user >> >> > >> >> > To fill some parameters like : groupId, artifactId ... >> >> > >> >> > My question how can I invoke all command mvn from my application >> >> desktop , ie I don't want to use the mvn.bat I want to use java >> classes >> >> of maven directly ?? >> >> > >> >> > This is a simple to do or I must navigate on all java classes maven >> >> >> >> > >> >> > >> >> > >> >> > Thx >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > --- >> >> > >> >> > Merouane AMRAOUI >> >> > Consultant Expert >> >> > Division Développement >> >> > Email.: [EMAIL PROTECTED] >> >> > >> >> > Gsm .: 065 19 60 99 >> >> > Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 >> >> > OMNIDATA , 74 Bv AbdelMoumen >> >> > >> >> > >> >> > >> >> > >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Using--maven-directly-from-a-java-application---tf3546918s177.html#a9932032 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Using--maven-directly-from-a-java-application---tf3546918s177.html#a9940680 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using maven directly from a java application ?
Good day, Try adding [1] to your list of repositories in your settings.xml Cheers, Franz [1] http://people.apache.org/maven-snapshot-repository Thierry Lach-2 wrote: > > I did svn co against [2] and ran mvn site, and got the following error... > > [INFO] Scanning for projects... > > [INFO] > > > [ERROR] FATAL ERROR > > [INFO] > > > [INFO] Failed to resolve artifact. > > GroupId: org.apache.maven > ArtifactId: maven > Version: 2.1-SNAPSHOT > > Reason: Unable to download the artifact from any repository > > > > org.apache.maven:maven:pom:2.1-SNAPSHOT > > > > from the specified remote repositories: > > central (http://repo1.maven.org/maven2) > > > > > > > On 4/10/07, franz see <[EMAIL PROTECTED]> wrote: >> >> >> Good day, >> >> Try [1]. Also you can check out the the latest maven-embedder ( from [2] >> ) >> and take a look at its examples and tests. You may also want to run mvn >> site >> against [2] to get the latest version of the guide presented in [1]. >> >> Cheers, >> Franz >> >> [1] http://maven.apache.org/guides/mini/guide-embedding-m2.html >> [2] http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder >> >> >> Wayne Fay wrote: >> > >> > Not that I am personally aware of. But search this list and the Maven >> > Dev list -- you're bound to find something. >> > >> > Wayne >> > >> > On 4/10/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: >> >> Thx for reply. >> >> >> >> There are some documentation about using embeded maven ?? >> >> >> >> -Message d'origine- >> >> De: Wayne Fay [mailto:[EMAIL PROTECTED] >> >> Envoyé: mardi 10 avril 2007 15:16 >> >> À: Maven Users List >> >> Objet: Re: Using maven directly from a java application ? >> >> >> >> You may want to try to use the Maven Embedder: >> >> http://idisk.maven.org/jvanzyl/Public/embedder/ >> >> >> >> Wayne >> >> >> >> On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: >> >> > Hi, >> >> > >> >> > >> >> > >> >> > I want to atomize the creation of the structure of my project. So >> >> iwant to develop a desktop application in order to give to the end >> user >> >> > >> >> > To fill some parameters like : groupId, artifactId ... >> >> > >> >> > My question how can I invoke all command mvn from my application >> >> desktop , ie I don't want to use the mvn.bat I want to use java >> classes >> >> of maven directly ?? >> >> > >> >> > This is a simple to do or I must navigate on all java classes maven >> >> >> >> > >> >> > >> >> > >> >> > Thx >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > --- >> >> > >> >> > Merouane AMRAOUI >> >> > Consultant Expert >> >> > Division Développement >> >> > Email.: [EMAIL PROTECTED] >> >> > >> >> > Gsm .: 065 19 60 99 >> >> > Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 >> >> > OMNIDATA , 74 Bv AbdelMoumen >> >> > >> >> > >> >> > >> >> > >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Using--maven-directly-from-a-java-application---tf3546918s177.html#a9932032 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Using--maven-directly-from-a-java-application---tf3546918s177.html#a9940680 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using maven directly from a java application ?
I did svn co against [2] and ran mvn site, and got the following error... [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven ArtifactId: maven Version: 2.1-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.maven:maven:pom:2.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) On 4/10/07, franz see <[EMAIL PROTECTED]> wrote: Good day, Try [1]. Also you can check out the the latest maven-embedder ( from [2] ) and take a look at its examples and tests. You may also want to run mvn site against [2] to get the latest version of the guide presented in [1]. Cheers, Franz [1] http://maven.apache.org/guides/mini/guide-embedding-m2.html [2] http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder Wayne Fay wrote: > > Not that I am personally aware of. But search this list and the Maven > Dev list -- you're bound to find something. > > Wayne > > On 4/10/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: >> Thx for reply. >> >> There are some documentation about using embeded maven ?? >> >> -Message d'origine- >> De: Wayne Fay [mailto:[EMAIL PROTECTED] >> Envoyé: mardi 10 avril 2007 15:16 >> À: Maven Users List >> Objet: Re: Using maven directly from a java application ? >> >> You may want to try to use the Maven Embedder: >> http://idisk.maven.org/jvanzyl/Public/embedder/ >> >> Wayne >> >> On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: >> > Hi, >> > >> > >> > >> > I want to atomize the creation of the structure of my project. So >> iwant to develop a desktop application in order to give to the end user >> > >> > To fill some parameters like : groupId, artifactId ... >> > >> > My question how can I invoke all command mvn from my application >> desktop , ie I don't want to use the mvn.bat I want to use java classes >> of maven directly ?? >> > >> > This is a simple to do or I must navigate on all java classes maven >> >> > >> > >> > >> > Thx >> > >> > >> > >> > >> > >> > --- >> > >> > Merouane AMRAOUI >> > Consultant Expert >> > Division Développement >> > Email.: [EMAIL PROTECTED] >> > >> > Gsm .: 065 19 60 99 >> > Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 >> > OMNIDATA , 74 Bv AbdelMoumen >> > >> > >> > >> > >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Using--maven-directly-from-a-java-application---tf3546918s177.html#a9932032 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using maven directly from a java application ?
Good day, Try [1]. Also you can check out the the latest maven-embedder ( from [2] ) and take a look at its examples and tests. You may also want to run mvn site against [2] to get the latest version of the guide presented in [1]. Cheers, Franz [1] http://maven.apache.org/guides/mini/guide-embedding-m2.html [2] http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder Wayne Fay wrote: > > Not that I am personally aware of. But search this list and the Maven > Dev list -- you're bound to find something. > > Wayne > > On 4/10/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: >> Thx for reply. >> >> There are some documentation about using embeded maven ?? >> >> -Message d'origine- >> De: Wayne Fay [mailto:[EMAIL PROTECTED] >> Envoyé: mardi 10 avril 2007 15:16 >> À: Maven Users List >> Objet: Re: Using maven directly from a java application ? >> >> You may want to try to use the Maven Embedder: >> http://idisk.maven.org/jvanzyl/Public/embedder/ >> >> Wayne >> >> On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: >> > Hi, >> > >> > >> > >> > I want to atomize the creation of the structure of my project. So >> iwant to develop a desktop application in order to give to the end user >> > >> > To fill some parameters like : groupId, artifactId ... >> > >> > My question how can I invoke all command mvn from my application >> desktop , ie I don't want to use the mvn.bat I want to use java classes >> of maven directly ?? >> > >> > This is a simple to do or I must navigate on all java classes maven >> >> > >> > >> > >> > Thx >> > >> > >> > >> > >> > >> > --- >> > >> > Merouane AMRAOUI >> > Consultant Expert >> > Division Développement >> > Email.: [EMAIL PROTECTED] >> > >> > Gsm .: 065 19 60 99 >> > Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 >> > OMNIDATA , 74 Bv AbdelMoumen >> > >> > >> > >> > >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Using--maven-directly-from-a-java-application---tf3546918s177.html#a9932032 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using maven directly from a java application ?
Not that I am personally aware of. But search this list and the Maven Dev list -- you're bound to find something. Wayne On 4/10/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: Thx for reply. There are some documentation about using embeded maven ?? -Message d'origine- De: Wayne Fay [mailto:[EMAIL PROTECTED] Envoyé: mardi 10 avril 2007 15:16 À: Maven Users List Objet: Re: Using maven directly from a java application ? You may want to try to use the Maven Embedder: http://idisk.maven.org/jvanzyl/Public/embedder/ Wayne On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: > Hi, > > > > I want to atomize the creation of the structure of my project. So iwant to develop a desktop application in order to give to the end user > > To fill some parameters like : groupId, artifactId ... > > My question how can I invoke all command mvn from my application desktop , ie I don't want to use the mvn.bat I want to use java classes of maven directly ?? > > This is a simple to do or I must navigate on all java classes maven > > > > Thx > > > > > > --- > > Merouane AMRAOUI > Consultant Expert > Division Développement > Email.: [EMAIL PROTECTED] > > Gsm .: 065 19 60 99 > Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 > OMNIDATA , 74 Bv AbdelMoumen > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using maven directly from a java application ?
Thx for reply. There are some documentation about using embeded maven ?? -Message d'origine- De : Wayne Fay [mailto:[EMAIL PROTECTED] Envoyé : mardi 10 avril 2007 15:16 À : Maven Users List Objet : Re: Using maven directly from a java application ? You may want to try to use the Maven Embedder: http://idisk.maven.org/jvanzyl/Public/embedder/ Wayne On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: > Hi, > > > > I want to atomize the creation of the structure of my project. So iwant to > develop a desktop application in order to give to the end user > > To fill some parameters like : groupId, artifactId ... > > My question how can I invoke all command mvn from my application desktop , ie > I don't want to use the mvn.bat I want to use java classes of maven directly > ?? > > This is a simple to do or I must navigate on all java classes maven > > > > Thx > > > > > > --- > > Merouane AMRAOUI > Consultant Expert > Division Développement > Email.: [EMAIL PROTECTED] > > Gsm .: 065 19 60 99 > Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 > OMNIDATA , 74 Bv AbdelMoumen > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using maven directly from a java application ?
You may want to try to use the Maven Embedder: http://idisk.maven.org/jvanzyl/Public/embedder/ Wayne On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: Hi, I want to atomize the creation of the structure of my project. So iwant to develop a desktop application in order to give to the end user To fill some parameters like : groupId, artifactId ... My question how can I invoke all command mvn from my application desktop , ie I don't want to use the mvn.bat I want to use java classes of maven directly ?? This is a simple to do or I must navigate on all java classes maven Thx --- Merouane AMRAOUI Consultant Expert Division Développement Email.: [EMAIL PROTECTED] Gsm .: 065 19 60 99 Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 OMNIDATA , 74 Bv AbdelMoumen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using maven directly from a java application ?
Hi, I want to atomize the creation of the structure of my project. So iwant to develop a desktop application in order to give to the end user To fill some parameters like : groupId, artifactId ... My question how can I invoke all command mvn from my application desktop , ie I don't want to use the mvn.bat I want to use java classes of maven directly ?? This is a simple to do or I must navigate on all java classes maven Thx --- Merouane AMRAOUI Consultant Expert Division Développement Email.: [EMAIL PROTECTED] Gsm .: 065 19 60 99 Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 OMNIDATA , 74 Bv AbdelMoumen