You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Joseph Senecal <se...@apple.com> on 2011/07/19 04:43:23 UTC
Maven 3.1M2 cgen missing jars
Hi, I'm back again.
I've configured Maven to automatically generate java files from the model, but it looks like cgen has some dependancies that aren't being met.
7/18/11 7:33:56 PM PDT: Maven Builder: AUTO_BUILD requireFullBuild
7/18/11 7:33:57 PM PDT: [WARN] The POM for org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2 is missing, no dependency information available
7/18/11 7:33:57 PM PDT: [WARN] The POM for foundrylogic.vpp:vpp:jar:2.2.1 is missing, no dependency information available
7/18/11 7:33:57 PM PDT: Build errors for SFS; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2:cgen (cgen) on project SFS: Execution cgen of goal org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2:cgen failed: Plugin org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2, foundrylogic.vpp:vpp:jar:2.2.1: Failure to find org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
I found an entry for org.apache.cayenne.unpublished, but it was for a different artifact ID. I can't find a maven entry for foundrylogic.vpp at all. Any suggestions?
Here's the configuration I'm trying. I'm assuming paths are relative to the pom file.
<execution>
<id>cgen</id>
<configuration>
<!-- Configuration items go in here. See table, above. -->
<map>src/main/resources/PDCADomainMap.map</map>
<destDir>src/main/java/com/apple/mqm/db</destDir>
</configuration>
<goals>
<goal>cgen</goal>
</goals>
</execution>
Joe
Re: Maven 3.1M2 cgen missing jars
Posted by Joseph Senecal <se...@apple.com>.
Thanks!
That worked perfectly. I'm new to maven, I don't mind manually installing jars, I'm used to it :-)
Joe
On Jul 18, 2011, at 11:45 PM, Andrus Adamchik wrote:
> Actually this one is about cgen, which is definitely much more critical than the Modeler plugin, so we'll have to deal with it asap. Part of it is fixed per https://issues.apache.org/jira/browse/CAY-1555 (will be released in M3 soon). I will also check the situation with VPP jar. For now yeah, manually installing the jars in the local repo is the easiest workaround. You can get them from here:
>
> http://people.apache.org/~aadamchik/M2leftovers/
>
> and then do
>
> mvn install:install-file -DgroupId=org.apache.cayenne.unpublished -DartifactId=cayenne-project-unpublished -Dversion=3.1M2 -Dpackaging=jar -Dfile=/path/to/cayenne-project-unpublished-3.1M2.jar
>
> mvn install:install-file -DgroupId=foundrylogic.vpp -DartifactId=vpp -Dversion=2.2.1 -Dpackaging=jar -Dfile=/path/to/vpp-2.2.1.jar
>
> Cheers,
> Andrus
>
>
>
> On Jul 19, 2011, at 6:55 AM, Aristedes Maniatis wrote:
>
>> On Tue Jul 19 12:43:23 2011, Joseph Senecal wrote:
>>> Hi, I'm back again.
>>> I've configured Maven to automatically generate java files from the model, but it looks like cgen has some dependancies that aren't being met.
>>> 7/18/11 7:33:56 PM PDT: Maven Builder: AUTO_BUILD requireFullBuild
>>> 7/18/11 7:33:57 PM PDT: [WARN] The POM for org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2 is missing, no dependency information available
>>> 7/18/11 7:33:57 PM PDT: [WARN] The POM for foundrylogic.vpp:vpp:jar:2.2.1 is missing, no dependency information available
>>> 7/18/11 7:33:57 PM PDT: Build errors for SFS; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2:cgen (cgen) on project SFS: Execution cgen of goal org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2:cgen failed: Plugin org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2, foundrylogic.vpp:vpp:jar:2.2.1: Failure to find org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
>>> I found an entry for org.apache.cayenne.unpublished, but it was for a different artifact ID. I can't find a maven entry for foundrylogic.vpp at all. Any suggestions?
>>> Here's the configuration I'm trying. I'm assuming paths are relative to the pom file.
>>> <execution>
>>> <id>cgen</id>
>>> <configuration>
>>> <!-- Configuration items go in here. See table, above. -->
>>> <map>src/main/resources/PDCADomainMap.map</map>
>>> <destDir>src/main/java/com/apple/mqm/db</destDir>
>>> </configuration>
>>> <goals>
>>> <goal>cgen</goal>
>>> </goals>
>>> </execution>
>>> Joe
>>
>> There is a conversation on the dev list about this very issue. It has the subject "Value of starting the Modeler from Maven". But we don't have solutions to everything yet. For now, you'll need to put things by hand into your local .m2 repository.
>>
>> --
>> -------------------------->
>> Aristedes Maniatis
>> GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
>>
>
Re: Maven 3.1M2 cgen missing jars
Posted by Andrus Adamchik <an...@objectstyle.org>.
Actually this one is about cgen, which is definitely much more critical than the Modeler plugin, so we'll have to deal with it asap. Part of it is fixed per https://issues.apache.org/jira/browse/CAY-1555 (will be released in M3 soon). I will also check the situation with VPP jar. For now yeah, manually installing the jars in the local repo is the easiest workaround. You can get them from here:
http://people.apache.org/~aadamchik/M2leftovers/
and then do
mvn install:install-file -DgroupId=org.apache.cayenne.unpublished -DartifactId=cayenne-project-unpublished -Dversion=3.1M2 -Dpackaging=jar -Dfile=/path/to/cayenne-project-unpublished-3.1M2.jar
mvn install:install-file -DgroupId=foundrylogic.vpp -DartifactId=vpp -Dversion=2.2.1 -Dpackaging=jar -Dfile=/path/to/vpp-2.2.1.jar
Cheers,
Andrus
On Jul 19, 2011, at 6:55 AM, Aristedes Maniatis wrote:
> On Tue Jul 19 12:43:23 2011, Joseph Senecal wrote:
>> Hi, I'm back again.
>> I've configured Maven to automatically generate java files from the model, but it looks like cgen has some dependancies that aren't being met.
>> 7/18/11 7:33:56 PM PDT: Maven Builder: AUTO_BUILD requireFullBuild
>> 7/18/11 7:33:57 PM PDT: [WARN] The POM for org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2 is missing, no dependency information available
>> 7/18/11 7:33:57 PM PDT: [WARN] The POM for foundrylogic.vpp:vpp:jar:2.2.1 is missing, no dependency information available
>> 7/18/11 7:33:57 PM PDT: Build errors for SFS; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2:cgen (cgen) on project SFS: Execution cgen of goal org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2:cgen failed: Plugin org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2, foundrylogic.vpp:vpp:jar:2.2.1: Failure to find org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
>> I found an entry for org.apache.cayenne.unpublished, but it was for a different artifact ID. I can't find a maven entry for foundrylogic.vpp at all. Any suggestions?
>> Here's the configuration I'm trying. I'm assuming paths are relative to the pom file.
>> <execution>
>> <id>cgen</id>
>> <configuration>
>> <!-- Configuration items go in here. See table, above. -->
>> <map>src/main/resources/PDCADomainMap.map</map>
>> <destDir>src/main/java/com/apple/mqm/db</destDir>
>> </configuration>
>> <goals>
>> <goal>cgen</goal>
>> </goals>
>> </execution>
>> Joe
>
> There is a conversation on the dev list about this very issue. It has the subject "Value of starting the Modeler from Maven". But we don't have solutions to everything yet. For now, you'll need to put things by hand into your local .m2 repository.
>
> --
> -------------------------->
> Aristedes Maniatis
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
>
Re: Maven 3.1M2 cgen missing jars
Posted by Aristedes Maniatis <ar...@maniatis.org>.
On Tue Jul 19 12:43:23 2011, Joseph Senecal wrote:
> Hi, I'm back again.
>
> I've configured Maven to automatically generate java files from the model, but it looks like cgen has some dependancies that aren't being met.
>
> 7/18/11 7:33:56 PM PDT: Maven Builder: AUTO_BUILD requireFullBuild
> 7/18/11 7:33:57 PM PDT: [WARN] The POM for org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2 is missing, no dependency information available
> 7/18/11 7:33:57 PM PDT: [WARN] The POM for foundrylogic.vpp:vpp:jar:2.2.1 is missing, no dependency information available
> 7/18/11 7:33:57 PM PDT: Build errors for SFS; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2:cgen (cgen) on project SFS: Execution cgen of goal org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2:cgen failed: Plugin org.apache.cayenne.plugins:maven-cayenne-plugin:3.1M2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2, foundrylogic.vpp:vpp:jar:2.2.1: Failure to find org.apache.cayenne.unpublished:cayenne-project-unpublished:jar:3.1M2 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
>
> I found an entry for org.apache.cayenne.unpublished, but it was for a different artifact ID. I can't find a maven entry for foundrylogic.vpp at all. Any suggestions?
>
> Here's the configuration I'm trying. I'm assuming paths are relative to the pom file.
>
> <execution>
> <id>cgen</id>
> <configuration>
> <!-- Configuration items go in here. See table, above. -->
> <map>src/main/resources/PDCADomainMap.map</map>
> <destDir>src/main/java/com/apple/mqm/db</destDir>
> </configuration>
> <goals>
> <goal>cgen</goal>
> </goals>
> </execution>
>
> Joe
There is a conversation on the dev list about this very issue. It has
the subject "Value of starting the Modeler from Maven". But we don't
have solutions to everything yet. For now, you'll need to put things by
hand into your local .m2 repository.
--
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A